The method of FPGA pin assignment preservation in QUARTUS2

Source: Internet
Author: User

I. Summary

The method of allocating and preserving FPGA pins in Quartus II is summarized.

second, the Pin allocation method

The FPGA pin assignment, in addition to the QII software, select the "Assignments->pin" tab (or click the button), open the Pin Planner, assign the PIN, there are the following 2 ways.

method One: Import AssignmentsStep 1:

Use Notepad or similar software to create a new TXT file (or CSV file), the following format pin assignment content (different development version, the content is also different, this article in my use of the Diy_de2 Development Board as an example). "This is the easiest way to format"

Note: The To and location two keywords have a half-width comma in the middle.    

Figure 1 Pin.txt

Step 2:

In the Qii software, select "Assignments, Import Assignments". , import xxx.txt or xxx.csv files to

Figure 2 Importing Pin.txt

Step 3:

In the Qii software, select the "Assignments pin" tab (or click the button) to open the pin Planner to verify that the pins are assigned correctly.  

Figure 3 Verifying that the pins are assigned correctly

method Two: Import the source Xxx.tcl fileStep 1:

In the QII software, use the "Assignments, remove Assignments" tab to remove pin assignments to ensure that the assigned pins do not have errors due to overwriting.

Figure 4 Remove Assignments

Note: You can skip step 1 in a new project without performing any pin assignment operations.

Step 2:

Use Notepad or similar software to create a new Tcl file, in the following format Pin assignment content (different development version, the content is also different, this article in my use of the Diy_de2 Development Board as an example).

Note the use of keywords set_location_assignment and-to.

Figure 5 PIN.TCL

Step 3:

Executive PIN.TCL

Method 1: In the QII software, use the "View-, Utility Windows-a TCL Console" tab to open the Quartus II tcl console. Execute statement:

Figure 6 Source Pin.tcl

Method 2: In the QII software, use the "Tools, tcl Scripts ..." tab to open the Tcl Scripts.

Figure 7 Tcl Scripts

Select Pin.tcl, select the "Run" tab and execute the TCL file.

Step 4:

Step 3 of the same method 1.

three, FPGA pin allocation file Preservation method

When using someone else's project, sometimes can't find his pin file, but can save his already bound pin, output to the file.

method One:

View pin bindings, Quartus-Assignment, Pins, open the FPGA pin interface, where the pin file can be saved in CSV format (tabular format) and TCL format in the menu of this interface.

Step: Select Save name and save format with Export ....

Method Two:

The direct output pin configuration, assignmengt-I, export assignmengt, can be saved in QSF format, which can be viewed in Notepad, where the PIN information is also included in the file. Note: When you save, a new folder is created under the original project folder.

As for the other configuration of the components, can be set in the Qsf file and Tcl file with the statement, also can be set in assignment, device, interface.

Load:

With an existing pin file, you can select the pin file to load in the Import Assignment option assignment. At this point, you can load QSF and CSV (or txt) files.

saved CSV (TXT) documents, QSF file and Tcl the difference between files:

csv (TXT) file: contains all pin information of the chip, including assigned and unassigned;

QSF file: contains pin assignment information and chip information;

Tcl file: contains only the assigned PIN information.

FPGA pin Assignment Saving method in Quartus2 (RPM)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.