Forum Discussion

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

tcl script and absolute file locations

I use Altium and I have the following script for including a mega function,

set_global_assignment -name QIP_FILE FIR_LP.qip

the problem is that I have to place all the mega function generated files in the project directory. Can I add an absolute path e.g. C:\mega\FIR_LP.qip and does this mean Quartus will then search this directory for the mega function library. If so what is the exact syntax?

2 Replies

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

    Most megafunctions create .qip files with relative paths. For example, if I do a PLL, the .qip has the following line in it:

    set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) "mypll.v"]

    So $::quartus(qip_path) is a variable on where the .qip file is, and mypll.v is then relative to that.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    And you should be able to do exact paths:

    set_global_assignment -name QIP_FILE "C:/mega/FIR_LP.qip"