106.2【電子系】ET3804301 數位系統設計實習 Lab. of Digital Systems Design
This repository contains HDL source code, simulation testbenches, and project files for a series of laboratory exercises in digital systems design using Intel (Altera) Quartus and ModelSim. Each lab/homework directory includes the Verilog modules, pin assignment files, and simulation setups required to build and verify designs on the DE2-115 FPGA board.
hw01/,hw02/,hw3/,lab4/: Project folders for each assignment/lab*.v: Verilog HDL source files*_tb.v: Testbench sources for simulation*.qpf,*.qsf,*.qws: Quartus project files and settingsincremental_db/,db/,output_files/,simulation/: Tool-generated or project-specific subdirectories
DE2_115_pin_assignments.csv: Pin map reference for the DE2-115 boardREADME.md: This document
- Quartus II / Intel Quartus Prime (version compatible with DE2-115 projects)
- ModelSim (Intel FPGA Edition recommended) for running simulations
- DE2-115 FPGA board (for hardware deployment)
git clone https://github.com/kuoyaoming/Lab.-of-Digital-Systems-Design.git
cd Lab.-of-Digital-Systems-Design- Launch Quartus.
- Open the desired project by selecting the corresponding
.qpffile (e.g.,hw01/hw01.qpf). - Review or update device and pin assignments as needed (
.qsfand provided CSV).
- In Quartus, set the active project to the target lab/homework.
- Run Analysis & Synthesis.
- Run Fitter (Place & Route).
- Generate programming file (
.sof).
- Connect the DE2-115 board via USB-Blaster.
- Open Programmer in Quartus.
- Select the generated
.soffile fromoutput_files/. - Click "Start" to program the device.
There are ready-to-use testbenches (e.g., *_tb.v). You can run simulations via Quartus-ModelSim integration or directly in ModelSim.
# From the project folder (e.g., hw01/)
vsim -do simulation/modelsim/simulate.doIf a do script is not available, compile sources manually in ModelSim:
vlib work
vlog *.v
vsim -c work.hw01_tb -do "run -all; quit"Adjust the top-level testbench target as needed (e.g., hw02_tb, lab3_tb).
- Some subfolders such as
incremental_db/,db/, andoutput_files/are tool-generated. They can be regenerated by Quartus and are kept here for convenience. - PDFs named
實習題目-*.pdfcontain the original lab assignments/specifications.
This repository is intended for educational purposes. If you plan to reuse code, please include proper attribution to the original author(s) and course.