Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

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

7 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    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.

    --- Quote End ---

    How can it be generated in Excel ??
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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 ????
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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"
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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