Forum Discussion

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

quartus_sh does not run from Tcl Console, but can be run cmd line

Hi,

my problem is that I can not run quartus_sh from Tcl Console (invalid command name "quartus_sh"), but it works from cmd line. The path to the 'bin' added to PATH variable. I use Quartus 14.0. Cannot find any solutions in the forum.

Do you know how to solve the problem?

4 Replies

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

    No, I want to run some_script.tcl before compilation. To do it I set "set_global_assignment -name PRE_FLOW_SCRIPT_FILE quartus_sh:some_script.tcl" in tcl console.

    But there is no effect from setting the assignment. Now I see that quartus_sh does not work at all:

    quartus_sh

    Error:invalid command name "quartus_sh"

    Error: while executing

    Error:"unknown_original quartus_sh"

    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:"quartus_sh"

    But there is no problems with running quartus_sh from command line...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Hi,

    my problem is that I can not run quartus_sh from Tcl Console (invalid command name "quartus_sh"), but it works from cmd line. The path to the 'bin' added to PATH variable. I use Quartus 14.0. Cannot find any solutions in the forum.

    Do you know how to solve the problem?

    --- Quote End ---

    I encountered the same problem also. Has anyone got the solution? Please help
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    ... To do it I set "set_global_assignment -name PRE_FLOW_SCRIPT_FILE quartus_sh:some_script.tcl" in tcl console ...

    --- Quote End ---

    Works for me. You have to put this line into your project's .qsf file, not into the tcl console.