Forum Discussion

anrfpga's avatar
anrfpga
Icon for New Contributor rankNew Contributor
4 years ago
Solved

loading sta package in tcl script with quartus_sh

Hello everyone,

I am trying to load the sta package in a tcl script to set all pins to virtual using the script (make_all_pins_virtual) provided here: https://www.intel.com/content/www/us/en/support/programmable/support-resources/design-examples/quartus/all-virtual-pins.html?wapkw=make_all_pins_virtual

I noticed that the timing and advanced_timing packages are no longer available but the same procedures are available under the sta package, so I replaced the following two lines

load_package timing
load_package advanced_timing

with

load_package sta

However, I could not load the library as I am getting the following error. I am able to load the flow, project and report packages successfully though.

Error (23035): Tcl error: ERROR: Quartus Prime Tcl package "::quartus::sta" is only available for use in the following executables:
        quartus_fit
        quartus_sta

So is the sta package not usable using quartus_sh executable? Is there any alternative to this? Or am I missing something?

Any help is appreciated. Let me know if any more information is required

  • Usually when I encounter such errors, I run the Tcl script with the 'quartus_sta' executable instead, like this:

    quartus_sta -t my_script.tcl

    Can you try this and see if it works?

    - hh

5 Replies

  • sstrell's avatar
    sstrell
    Icon for Super Contributor rankSuper Contributor

    quartus_sh is just for running Quartus in a shell, including basic tasks like running scripts. The sta Tcl package is loaded automatically when you run the Fitter or timing analyzer executables, as noted in the error you got.

    See the command line and Tcl help for details. You can access it easily in the GUI by opening the Tcl console from the View menu and then clicking the little ? icon.

  • harnhua's avatar
    harnhua
    Icon for New Contributor rankNew Contributor

    Usually when I encounter such errors, I run the Tcl script with the 'quartus_sta' executable instead, like this:

    quartus_sta -t my_script.tcl

    Can you try this and see if it works?

    - hh

  • anrfpga's avatar
    anrfpga
    Icon for New Contributor rankNew Contributor

    That works. Thank you. I just moved from vivado to quartus for a new project and I was assuming quartus_sh can do everything that the quartus GUI can do similar to the vivado non-project mode.

    • harnhua's avatar
      harnhua
      Icon for New Contributor rankNew Contributor
      Great to hear that it is working now. Like you, I use both tools and have to get used to their differences too.

      Best,
      - hh