Forum Discussion

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

TCL Scripting

I wrote different style of tcl scripts and has caused the error.

1st style:

quartus_sh -t project_open.tcl

quartus_sh -t pin_assignment.tcl

2nd style

quartus_sh -t pin_assignment.tcl -project Test

project_open.tcl

project_open Test

pin_assignment.tcl

set_global_assignment .....

1st and 2nd style get an ERROR: Open project does not exist..

3rd style (Working)

quartus_sh -t pin_assignment_new.tcl

pin_assignment_new.tcl

project_open Test

set_global_assignment .....

My question is does it necessary to include project_open <project_name> in tcl file when i want to call quartus_sh -t <>.tcl

Can i do it using 1st style or 2nd style? Or any better way?

Thanks

2 Replies

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

    Look as far as i know the open project_open command should be present on the very first line of any assignment you are trying to make to the project.

    Suppose in the first case when you are executing the first command it should not throw an error. The second tcl file however is an all new execution in the quartus shell it wont have any reference to the previous command executed.

    The second command seeks to make assignments but the project is not visible to it. So i guess the 3rd style is required.

    Now coming to your second case after you give the name for tcl file you have to provide the script arguement i dont thing the -project option will work, it might not throw a syntax error for that but it wont have any effects.

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

    if that is the case then i have no choice to stick with the style. Thanks