Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

Quartus II TCL or command line question !!!

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

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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