Forum Discussion

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

tcl file problem when compiling

Greetings,

I keep getting an error:

Error: Tcl error: can't find package ::ddr::settings

while executing

"package require ::ddr::settings"

(file "verify_timing_for_ddr_ctrl.tcl" line 54)

invoked from within

"source verify_timing_for_ddr_ctrl.tcl"

(file "auto_verify_ddr_timing.tcl" line 11)

The line of actual code looks like this:

package require ::quartus::project

I am not sure what the " :: " mean. Can anyone steer me in a direction as to where I might start looking

thank you

1 Reply

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

    --- Quote Start ---

    Error: Tcl error: can't find package ::ddr::settings

    --- Quote End ---

    Tcl packages are essentially libraries. The :: are namespace separators, basically a way of hierarchically arranging procedure names so that they are unique (rather than having to prefix functions with ddr_settings_xxx).

    Search in your Quartus installation for "package provide ::ddr::settings" and see where that Tcl package resides ... chances are its with the DDR IP.

    The environment variable TCLLIBPATH can be set to point to the location of the package file, and so long as there is a pkgIndex.tcl file in that location that points to all the package tcl scripts, it should start to work. You can check by typing package require ::ddr::settings in a Tcl shell that you start after the environment variable has been set. You can look at the variable using puts $env(TCLLIBPATH).

    Cheers,

    Dave