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

Quartus II TCL or command line question !!!

Altera_Forum
Honored Contributor II
1,928 Views

hi all, 

I would like to ask, how can I add VHDL files to existing Quartus II project using TCL or command line???  

so far I am able to create new Quartus II project using quartus_sh --tcl_eval. 

Thank you
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
662 Views

You can use the command-line to run a Tcl file. That Tcl file can contain commands to setup an entire project. 

 

Take a look at the example I posted in this thread ... 

 

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

 

Start by running the Tcl file from within the Quartus GUI via the Tcl console. 

 

You can also run the same script from the command-line by starting the NIOS II IDE shell, changing to the project folder, and then typing 

 

quartus_sh -t scripts/synth.tcl 

 

at which point you'll see all the Quartus messages fly by on your console. 

 

Cheers, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
662 Views

Thank you, Dave for your answer, but it seems very specific solution to D0 board.  

All I need is one command to add VHDL top file and other VHDL files to the project.  

I created a project using quartus_sh --tcl_eval project_new <name>, I want to add VHDL file to that <name> this is my problem which command should I use?? 

Thank you
0 Kudos
Altera_Forum
Honored Contributor II
662 Views

 

--- Quote Start ---  

 

Thank you, Dave for your answer, but it seems very specific solution to D0 board.  

 

--- Quote End ---  

 

The project is, but the use of Tcl scripts is generic. Take a look at the scripts and understand how they work. 

 

 

--- Quote Start ---  

 

All I need is one command to add VHDL top file and other VHDL files to the project.  

 

--- Quote End ---  

 

No, you don't. An FPGA project involves more than just the HDL code. You need Tcl commands to add VHDL files, to add SDC constraints files, to select the device type, etc etc. 

 

 

--- Quote Start ---  

 

I created a project using quartus_sh --tcl_eval project_new <name>, I want to add VHDL file to that <name> this is my problem which command should I use?? 

 

--- Quote End ---  

 

Read the synthesis script (scripts/synth.tcl) and you will see the code to create a new project, to select the device, to add files, etc. 

 

Cheers, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
662 Views

Thank you Dave, I found the commands. 

You are the best :D
0 Kudos
Reply