1 Tokree

De2 Pin Assignment Csv Download Site

I found two examples from the web that I thought I would share on the CSV format. IMO the CSV format is the easiest format to generate when you already have a list of pin assignments. I realize the QSF probably is good for some things, but its seems like an overly wordy format for pin assignments. And any Alteraians reading this=> Add a few lines of examples in the help file would be really helpful.

EXAMPLE1:
To,Location
dataa[0],PIN_D3
dataa[1],PIN_C2
dataa[2],PIN_D2
dataa[3],PIN_D1
dataa[4],PIN_G6
dataa[5],PIN_G5
dataa[6],PIN_E3
dataa[7],PIN_F3
datab[0],PIN_J3
datab[1],PIN_G2
datab[2],PIN_G1
datab[3],PIN_K2
datab[4],PIN_K1
datab[5],PIN_K4
datab[6],PIN_K3
datab[7],PIN_L4
rdaddress[0],PIN_E1
rdaddress[1],PIN_F2
rdaddress[2],PIN_F1
rdaddress[3],PIN_H5
rdaddress[4],PIN_J4
wraddress[0],PIN_H6
wraddress[1],PIN_G4
wraddress[2],PIN_G3
wraddress[3],PIN_H4
wraddress[4],PIN_H3
wren,PIN_F5

EXAMPLE2:
From,To,Assignment Name,Value,Enabled
*,adsc_n_to_the_ext_ssram,tco Requirement,3.3 ns,Yes
*,bwe_n_to_the_ext_ssram,tco Requirement,3.3 ns,Yes
*,chipenable1_n_to_the_ext_ssram,tco Requirement,3.3 ns,Yes
*,ext_ssram_bus_data,tco Requirement,3.3 ns,Yes
*,ext_ssram_bus_data,tsu Requirement,6 ns,Yes
*,outputenable_n_to_the_ext_ssram,tco Requirement,3.3 ns,Yes
*,ext_ssram_bus_address,tco Requirement,3.3 ns,Yes
*,bw_n_to_the_ext_ssram,tco Requirement,3.3 ns,Yes
,ext_ssram_bus_address[2],Location,PIN_G5,Yes
,ext_ssram_bus_address[3],Location,PIN_G6,Yes
,ext_ssram_bus_address[4],Location,PIN_C2,Yes
,ext_ssram_bus_address[5],Location,PIN_C3,Yes
,ext_ssram_bus_address[6],Location,PIN_B2,Yes
,ext_ssram_bus_address[7],Location,PIN_B3,Yes
,ext_ssram_bus_address[8],Location,PIN_L9,Yes
,ext_ssram_bus_address[9],Location,PIN_F7,Yes

Last edited by kito; September 29th, 2009 at 09:00 AM.

Wentworth Institute of Technology

Department of Electrical Engineering and Technology

Elec 667 Advanced Programmable Logic

Assigning Pins using DE2_pin_assignments.csv

  1. Adding pin assignments can become a tedious chore as the NIOS II processors become loaded with more and more features.In our early labs since there are only a few switches and LEDs we are working with, this typically will be fairly short typing assignment.However, let’s take the opportunity to introduce a short-cut.Quartus II will allow users to import assignments using comma-separated-values files (*.csv).Altera uses COOP students from Canadian universities and one lucky student got to type 400+ assignments into a spreadsheet.This file is called DE2_pin_assignments.csv and is found on the Altera website:

ftp://ftp.altera.com/up/pub/Altera_Material/QII_9.1/Development_Boards/DE2/

  1. Save this file where you can find it later.
  2. To import these assignments into Quartus II for use with any project, click Assignments on the main menu and select Import Assignments.The following screen will appear:

  1. Browse to the DE2_Board_pin_assignments.csv location.ALSO, deselect Copy existing assignments into…. and then click OK. In the Quartus II message window you should see that 425 assignments were written.
  2. We have to deal with the FPGA unused pins.Some authors suggest they should be set to “inputs tri-stated with weak pull up”.Here is the click path to deal with that issue.
    1. Assignments>>Device.
    2. Click “Device and Pin option” button:

    1. Select the Unused Pins tab then used the pull down to see your options.

  1. Your application may not tolerate the output pushing ground out the I/O’s so consider “As output driving an unspecified signal” or the recommended “As input tri=stated with weak pull-up”.
  2. Also, Dual Purpose Pins, specifically nCEO which is used by the IRDA_TXD, needs to be changed.

    1. Click on the Dual-Purpose Pins tab
    2. Double-left click in the Value column for NCEO a pull down menu appears
    3. Select “Use as regular I/O”.
    4. Close out of here back to your project
  1. Suppose you’ve all ready used some assignment in a previous project and you want to reuse the file but you’ve deleted some IP.Those pins are still assigned.Here’s how you can clean them up.
  2. Assignment>>Remove Assignments looks interesting and I did notice some categories related to trouble shooting: Design Assistant, Programmer, Signal Probe, Signal Tap II, Incremental Compilation.

Figure 34 Subjects for further investigation at a later date.

  1. The check box at the bottom “Remove obsolete assignment” may work if we knew what Quartus considers an obsolete assignment.Click on Help and type obsolete assignments into the search box.Two topics come up that appear interesting.One of them gives us a definition: the removal of design assignments that no longer exist.We did make assignments for pins that have nothing connected to them externally or internally.What about the other two removal choices: global and instance?Include in your lab reports a screen shot of the Remove Assignments text box what boxes you checked to clean up the excessive pin assignments.
  2. Check the results by clicking Assignments>>Assignment Editor.

  1. I love this feature.You can import all the pins then trim away the ones you don’t want.The assignment of the global 50 MHz clock is correctly assigned to PIN_N2 and KEY(0) goes to the pin (PIN_G26) for the blue push button.The switches are assigned starting from the right end of the row and using the next 7 consecutively.LEDG go the right pins to turn on the green LEDs.Everything is correct.
  2. Include in your lab reports a screen shot of some of the pin assignments with the message about the number of assignments written.

Leave a Comment

(0 Comments)

Your email address will not be published. Required fields are marked *