Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17267 Discussions

tcl script and absolute file locations

Altera_Forum
Honored Contributor II
2,158 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
913 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
913 Views

And you should be able to do exact paths: 

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