The first FPGA project ---- lit 3 LEDs on the Development Board
1. new FPGA Project
Open the Quartus2 screen
File--new Project Wizard: Specify the path and project name of the project
Specify the FPGA device model you are using
2. Add a design file
This design uses Verilog HDL Hardware Description Language model
3. Modeling
The design has three output, no input, these three output corresponds to the FPGA chip three pins, while being set high, used to drive LED lights.
4. compiling the project
Processing--start compilation and generate a compile report
5. Pin Assignment
Pin assignment is designed to correspond to the actual hardware circuitry of the model that we have built up with the hardware description language.
Specify the pin for Node name in location .
After the pins are specified, theFPGA 's pin graph will be labeled accordingly.
After the pin assignment is complete, the project file needs to be synthesized: analysis&synthesis, Right-click,start, get a comprehensive report.
6. Burn the program to the chip
Tools--programmer
Hardware Setup ... Add Hardware: Usb-blaster
ADD File: add burn-write files . Sof
Click start to start the write program to the FPGA chip, and there will be a progress bar display, when the 100% is reached, that is, the success of the write, the Development Board on the corresponding LED Light is lit (this program is to write the program is downloaded into the SRAM , the power-down program will disappear, but after the completion of the burn, the circuit board does not need to reset, immediately respond).
7. write the program to Flash , power up automatically read
First, you need to convert . SOF write files to . Jic Files
File--convert Programming Files
whereConfiguration device:epcs64,(this option is based on the Developer Board user manual)
Adding a transform file to a device
Click Generate to generate the . Jic file, and finally give the prompt to generate the file successfully.
Burn write . Jic files into Flash , as in the process of burning writes to SRAM , just add the . Jic file, click Start button to do it. (This program is written to download the program to the external FPGA mounted FLASH chip, the power-down program will not disappear, power up, the program automatically loaded and started to run, but after the completion of the burn write , the circuit board needs to be re-power, the program will respond).
Attention:
So far, the entire FPGA Project has been completed, but there are other LEDs on the board that are not lit , so we need to set up the FPGA Pins that are not used on the chip.
Assignments----Device
Click Device and PIN Options ...
Unused Pins----Reserve all Unused pins:as input tri-stated(set to tri-state input) eliminates The faint light emitted by other LED lights.
The first FPGA project----lit 3 LEDs on the Development Board