De2 Pin Assignments Csv Reader

  1. July 30th, 2017, 01:22 AM#1
    Join Date
    Sep 2011
    Posts
    90
    Rep Power
    1

    importing pin assignments

    Hi ,

    I am using Quartus Prime ver 16.0 lite edition , i tried to import pin assignments for my DE2-115 board from a excel file "DE2_115_pin_assignments.csv" , compiled the project but i noticed the fitter didnt assigned and pin as per .csv file .

    I tried the manual approach and from within Pin Planner clicked on the CLK pin and tried to change its assignment , but a message poped up that its read-only ??? .

    This a new project creation .

    How do i import and force fitter to assign pins as per .csv file ????

    Regards ,

    Ahmed

  2. Re: importing pin assignments

    Maybe I missed a *.csv import option, I'm always importing pin assignments as tcl commands like
    set_location_assignment PIN_M20 -to LED_Blue
    They can be easily generated in Excel.
  3. July 30th, 2017, 08:18 AM#3
    Join Date
    Sep 2011
    Posts
    90
    Rep Power
    1

    Re: importing pin assignments

    How can it be generated in Excel ??
    Originally Posted by FvM
    Maybe I missed a *.csv import option, I'm always importing pin assignments as tcl commands like
    set_location_assignment PIN_M20 -to LED_Blue
    They can be easily generated in Excel.
  4. July 30th, 2017, 09:08 PM#4
    Join Date
    Sep 2011
    Posts
    90
    Rep Power
    1

    Re: importing pin assignments

    Is this the only way to set pin assignments in Quartus Prime ver 16.0 lite edition, i have also tried importing .qsf file , but it had no effect ????

    So i have to revert back to the old version of Quartus then ????
  5. July 31st, 2017, 07:29 AM#5
    Join Date
    Sep 2011
    Posts
    90
    Rep Power
    1

    Re: importing pin assignments

    I wrote my own tcl script for pin assignments , included the file in the project and tried to run it from within tcl console but no success , there are some errors as shown below

    Error:invalid command name "UART_nu.tcl"
    Error: while executing
    Error:"unknown_original UART_nu.tcl"
    Error: ("eval" body line 1)
    Error: invoked from within
    Error:"eval unknown_original $cmd $args"
    Error: (procedure "::unknown" line 7)
    Error: invoked from within
    Error:"UART_nu.tcl"
    dir
    Error:invalid command name "dir"
    Error: while executing
    Error:"unknown_original dir"
    Error: ("eval" body line 1)
    Error: invoked from within
    Error:"eval unknown_original $cmd $args"
    Error: (procedure "::unknown" line 7)
    Error: invoked from within
    Error:"dir"
    UART_nu.tcl
    Error:invalid command name "UART_nu.tcl"
    Error: while executing
    Error:"unknown_original UART_nu.tcl"
    Error: ("eval" body line 1)
    Error: invoked from within
    Error:"eval unknown_original $cmd $args"
    Error: (procedure "::unknown" line 7)
    Error: invoked from within
    Error:"UART_nu.tcl"
  6. July 31st, 2017, 07:30 AM#6
    Join Date
    Sep 2011
    Posts
    90
    Rep Power
    1

    Re: importing pin assignments

    the tcl file is saved as "UART_nu.tcl"
  7. July 31st, 2017, 10:26 AM#7
    Join Date
    May 2013
    Posts
    664
    Rep Power
    1

    Re: importing pin assignments

    I can't help much without seeing the script, but as far as the Pin Planner is concerned, try closing your project and trashing the db folder. Then reopen your project and go back into the Pin Planner to try to make manual assignments again.

    As far as the .csv file is concerned, I'd have to see the format you have in the file. If the format is not correct, you won't be able to use it for import.
  8. July 31st, 2017, 08:00 PM#8
    Join Date
    Sep 2011
    Posts
    90
    Rep Power
    1

    Re: importing pin assignments

    Solved the problem , within tcl console i wrote "source <de2_pins.tcl>" and it worked

Similar Threads

  1. Replies: 6
    Last Post: August 10th, 2012, 10:09 AM
  2. Replies: 0
    Last Post: July 6th, 2012, 11:30 PM
  3. Replies: 7
    Last Post: May 24th, 2010, 07:06 AM
  4. Replies: 8
    Last Post: March 30th, 2009, 05:01 AM
  5. Replies: 0
    Last Post: September 2nd, 2005, 10:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Forum Rules


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.

Comments

Leave a Reply

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