Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17043 Discussions

tcl script and absolute file locations

Altera_Forum
Honored Contributor II
2,007 Views

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?
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
762 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
762 Views

And you should be able to do exact paths: 

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