Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- Is there another solution to call / get the paths for qsys-generate and qsys-script corresponding to the quartus version currently used? --- Quote End --- Yes. Take a look at the scripts used for the DE0-nano SDRAM design I posted; http://www.alteraforum.com/forum/showthread.php?t=45927 The script synth.tcl drives the design. If the qsys_system.qsys script does not exist, it generates it from qsys_system.tcl. Once qsys_system.qsys exists, the script calls synth_qsys.tcl to "generate" the Qsys system. All of this is done using Quartus Tcl, and within Quartus Tcl, QUARTUS_ROOTDIR is correct. As you have noticed, the same cannot be said when just starting a Command shell. Note however that if you run your scripts from a NIOS II IDE Shell (a Cygwin shell) specific to the Quartus installation, then the QUARTUS_ROOTDIR environment variable will be correct. Poke around in those scripts and you might get some ideas. Regarding the use of pre-flow scripts, take a look at the BeMicro-CV DDR design in the examples zip posted here (post# 5); http://www.alteraforum.com/forum/showthread.php?t=43992 Cheers, Dave