Forum Discussion

fogl's avatar
fogl
Icon for Occasional Contributor rankOccasional Contributor
5 years ago

qsys-script: invalid command name

Hello everybody,

I would like to run the .tcl script i exported from GUI wizard to generate the design without the GUI.

I wrote a .tcl script which includes the line:

qsys-script --script=internal_osc.tcl --package-version=16.0

When i run my script, i gen an error:

invalid command name "qsys-script"

while executing

"unknown_original qsys-script --script=internal_osc.tcl --..."

("eval" body line 1)

invoked from within

"eval unknown_original $cmd $args"

(procedure "::unknown" line 7)

invoked from within

"qsys-script --script=internal_osc.tcl --package-version=16.0"

(file "synthProject.tcl" line 12)

I noticed a thread with a similar problem (https://forums.intel.com/s/question/0D50P00003yyOXWSA2/qsysscript-problems ), but additional package-version parameter doesn't solve my problem. Does anybody have an idea what is the problem with my script.

Regards

Klemen

10 Replies

  • fogl's avatar
    fogl
    Icon for Occasional Contributor rankOccasional Contributor

    Yes i have. This file was generated by quartus.

    Regards

    internal_osc.tcl

    --------------------

    # qsys scripting (.tcl) file for internal_osc

    package require -exact qsys 16.0

    create_system {internal_osc}

    set_project_property DEVICE_FAMILY {MAX 10}

    set_project_property DEVICE {10M02SCU169C8G}

    set_project_property HIDE_FROM_IP_CATALOG {true}

    # Instances and instance parameters

    # (disabled instances are intentionally culled)

    add_instance int_osc_0 altera_int_osc 19.1

    set_instance_parameter_value int_osc_0 {CBX_AUTO_BLACKBOX} {ALL}

    set_instance_parameter_value int_osc_0 {CLOCK_FREQUENCY_1} {116}

    set_instance_parameter_value int_osc_0 {CLOCK_FREQUENCY_2} {77}

    # exported interfaces

    set_instance_property int_osc_0 AUTO_EXPORT {true}

    # interconnect requirements

    set_interconnect_requirement {$system} {qsys_mm.clockCrossingAdapter} {HANDSHAKE}

    set_interconnect_requirement {$system} {qsys_mm.enableEccProtection} {FALSE}

    set_interconnect_requirement {$system} {qsys_mm.insertDefaultSlave} {FALSE}

    set_interconnect_requirement {$system} {qsys_mm.maxAdditionalLatency} {1}

    save_system {internal_osc.qsys}

  • fogl's avatar
    fogl
    Icon for Occasional Contributor rankOccasional Contributor

    And the .tcl script i run:

    package require ::quartus::project

    qsys-script --script=internal_osc.tcl --package-version=16.0

  • Do you execute the script in the command shell?

    I am able to run your script though and get warning messages instead of an error.

  • fogl's avatar
    fogl
    Icon for Occasional Contributor rankOccasional Contributor

    Yes, i run the script in shell.

    I am using linux - Ubuntu 18.04.1 LTS.

  • fogl's avatar
    fogl
    Icon for Occasional Contributor rankOccasional Contributor

    I was not aware this is possible. What is the command to run the .tcl script in nios II?

    I found the intelFPGA_lite/19.1/nios2eds/nios2_command_shell.sh, if i run it it returns this:

    ------------------------------------------------

    Altera Nios2 Command Shell

    Version 19.1, Build 670

    ------------------------------------------------

    I was experimenting with options acording to exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...] but no luck.

    Regards

  • You can run again your tcl script:

    qsys-script --script=internal_osc.tcl --package-version=16.0

  • fogl's avatar
    fogl
    Icon for Occasional Contributor rankOccasional Contributor

    I was able to execute this command and it seems this solved the problem, Thank you for your help :)

    Regards