Hướng dẫn sử dụng Quartus Tạo project với Verilog Tạo project Tham khảo link https //www youtube com/watch?v=lc Q8OX3Cb0 1 File > New project wizard 2 Project Type = Empty project 3 Device family = Cy[.]
Trang 1Hướng dẫn sử dụng Quartus
-Tạo project với Verilog
1 Tạo project
Tham khảo link: https://www.youtube.com/watch?v=lc-Q8OX3Cb0
1 File -> New project wizard
2 Project Type = Empty project
3 Device family = Cyclone IV GX
Device name = EP4CGX150DF31C7
2 Tạo tập tin code Verilog
Tham khảo link: https://www.youtube.com/watch?v=lc-Q8OX3Cb0
1 File -> New -> Verilog HDL File
2 Lưu tập tin:
- Tên file bắt buộc phải trùng với tên của module
- Mỗi file chỉ được chứa 1 module
- Cuối file cần them vào một dòng trống (blank line)
3 Tích hợp mô phỏng vào Quartus
1 Tools -> Options
2 General -> EDA Tool Options
3 Ở mục ModelSim-Altera, chọn đường dẫn
<Thư mục cài đặt Quartus>\modelsim_ase\win32aloem
4 OK
4 Tạo tập tin mô phỏng
Tham khảo link: https://www.youtube.com/watch?v=sGQoBnFcmwc
Tham khảo project mẫu trên e-learming
1 Tên của module nên đặt theo cấu trúc <tên module cần mô phỏng>_tb
5 Mô phỏng
Thiết lập
1 Assignments -> Settings
2 EDA Tool Settings -> Simulation
Trang 23 Tool name = ModelSim-Altera
NativeLink settings = Compile test bench
4 Test Benches -> New
5 Test bench name = trùng với tên tập tin mô phỏng
6 File Name -> dẫn tới tập tin mô phỏng
7 Add -> OK
8 OK -> OK
Chạy mô phỏng
1 Tools -> Run Simulation Tool -> RTL Simulation
6 Phân tích thiết kế và sửa lỗi
1 Processing -> Start -> Start Analysis & Synthesis
7 Gán chân cho thiết kế
Tham khảo link: https://www.youtube.com/watch?v=lc-Q8OX3Cb0 (phần Pin Planner) Tham khảo tài liệu de2i-150 usermanual trên elearning để biết mã gán chân cho chip
EP4CGX150DF31C7 trên board thực hành
8 Biên dịch
1 Processing -> Start Compilation
9 Cài đặt driver (tùy chọn)
Hướng dẫn cài đặt driver và link download xem tại link: https://www.youtube.com/watch? v=qzTRw6xtZ3E
10 Hiện thực thiết kế trên FPGA
Tham khảo link: https://www.youtube.com/watch?v=lc-Q8OX3Cb0 (phần Program Device)