I. Summary
Summarize the distribution and storage methods of FPGA pins in US us II.
Ii. Pin Allocation Method
In addition to qii software, you can select the "assignments-> pin" label (or click the button) to open the pin planner and assign the pin. The following two methods are available for Pin allocation.
Method 1: Import assignments Step 1:
Use notepad or similar software to create a TXT file (or CSV file) and write the pin distribution content in the following format (the content varies with the development version, this article uses my diy_de2 Development Board as an example ). [This method is the simplest format]
Note: There is a comma between the to and location keywords.
Figure 1 pin.txt
Step 2:
In the qii software, select "assignments-> Import assignments "., Import the xxx.txt0000xxx.csv file.
Figure 2 Import pin.txt
Step 3:
In the qii software, select the "assignments-> pin" tab (or click the button) to open the pin planner and verify that the PIN is correctly allocated.
Figure 3 verify that the pins are correctly allocated
Method 2: Import Source XXX. TCL
File Step 1:
In the qii software, use the "assignments-> remove assignments" label to remove the pin allocation content. In this operation, the allocated pin is not overwritten.
Figure 4 remove assignments
Note: skip step 1 when no pin allocation operation is performed.
Step 2:
Use notepad or similar software to create a new TCL file and write pin distribution content in the following format (different development versions have different content. This article uses my diy_de2 Development Board as an example ).
Note the usage of the keywords set_location_assignment and-.
Figure 5 pin. TCL
Step 3:
Execute pin. TCL
Method 1: In qii, use the "View-> utility windows-> TCL console" label to open the Tcl us ii tcl console. Execute the statement:
Figure 6 Source pin. TCL
Method 2: In qii, use "tools-> Tcl scripts ..." Label to open the Tcl scripts.
Figure 7 Tcl scripts
Select pin. TCL and select the "run" label to execute the Tcl file.
Step 4:
Step 3 of same method 1.
Iii. How to save FPGA pin distribution files
When using someone else's project, sometimes he cannot find his pin file, but he can save the bound pin and output it to the file.
Method 1:
View the pin binding status. Choose Quartus> assignment> pins to open the FPGA pin interface. In this menu, you can save the pin files in CSV format (in table format) and Tcl format.
Step: file-> export... -> Select the Save name and save format.
Method 2:
Output pin configuration directly. assignmengt-> export assignmengt can be saved in qsf format, which can be viewed in Notepad. The file also contains PIN information. Note: a new folder is created under the original project folder when it is saved.
For other configuration methods of components, you can use statements in the qsf file and Tcl file, or set them in the assignment-> device interface.
Load:
When using the existing pin file, you can select the pin file to be loaded from the options assignment-> Import assignment. In this case, you can load the qsf and CSV (or TXT) files.
Saved CSV (txt)File, qsfFileAnd TCLFile differences:
CSV (txt)File:Contains information about all pins on the chip, including allocated and unallocated pins;
QsfFile:Contains pin distribution information and chip information;
TCLFile:Only information about allocated pins is contained.