Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21611 Discussions

Command line scripting for windows 7

Altera_Forum
Honored Contributor II
1,353 Views

Hi all, 

 

I am new to Altera and planning to have some Command line scripting (for Windows 7 ) to compile code fully from start to end. 

Can anybody tell me some commands for that or provide any link of document/thread which can be used for windows 7? 

Thanks in advance.  

 

 

Nikhil M
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
644 Views

You need the quartus ii scripting reference manual (https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/manual/tclscriptrefmnl.pdf). 

 

However, I recommend you start with Quartus' GUI, especially if you're new to Altera. It'll help you understand the process required to take your source code through the tool chain to a target. You'll also find that, via the GUI's message window, Quartus will give you the commands it's running underneath - which will then help you towards your goal. You'll be looking for 'quartus_map', 'quartus_fit' & 'quartus_asm' to generate you programming files for your target. 

 

You might also want to look through using the quartus ii executables in shell scripts (http://quartushelp.altera.com/current/master.htm#mergedprojects/reference/scripting/tcl_about_execs_scripts_makes.htm), part of Quartus' online documentation. 

 

Cheers, 

Alex
0 Kudos
Altera_Forum
Honored Contributor II
644 Views

Hello sir, 

 

Thanks a lot for valuable reply..That is looking helpful..I will update once I will use that commands. 

 

Thanks once again. 

Nikhil M
0 Kudos
Altera_Forum
Honored Contributor II
644 Views

 

--- Quote Start ---  

 

I am new to Altera and planning to have some Command line scripting (for Windows 7 ) to compile code fully from start to end. 

Can anybody tell me some commands for that or provide any link of document/thread which can be used for windows 7? 

Thanks in advance.  

 

--- Quote End ---  

 

I've posted plenty of examples that use Tcl to script the synthesis and simulation flow. 

 

Take a look at the DE0-nano and BeMicro-CV examples ... 

 

See Post#2 

http://www.alteraforum.com/forum/showthread.php?t=45927 

 

See Post#5 

http://www.alteraforum.com/forum/showthread.php?t=43992 

 

See the Arria V example 

https://www.ovro.caltech.edu/~dwh/correlator/cobra_docs.html 

 

You should be able to run these from the command-line by passing the script to quartus_sh. 

 

Cheers, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
644 Views

 

--- Quote Start ---  

I've posted plenty of examples that use Tcl to script the synthesis and simulation flow. 

 

Take a look at the DE0-nano and BeMicro-CV examples ... 

 

See Post#2 

http://www.alteraforum.com/forum/showthread.php?t=45927 

 

See Post#5 

http://www.alteraforum.com/forum/showthread.php?t=43992 

 

See the Arria V example 

https://www.ovro.caltech.edu/~dwh/correlator/cobra_docs.html 

 

You should be able to run these from the command-line by passing the script to quartus_sh. 

 

Cheers, 

Dave 

--- Quote End ---  

 

 

Thanks Dave for the sharing.
0 Kudos
Reply