Forum Discussion

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

Quartus workflow

Hi,

My project keeps growing and I am having some difficulties to keep all source files in one place. Other thing what bothers me is constantly switching between modelsim and Quartus. For now I create separate projects for modelsim(functional simulation, testbench) and Quartus (synthesis, testing on hardware, signaltap).

Can someone share what workflow you use?

What structure do you have for project files?

What is the best workflow for creating testbech files and simulating complex designs?

Thanks

18 Replies

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

    --- Quote Start ---

    I agree with your statement about free software. Ok so I will write my code with Notepad++, what next? How do you check your syntax and other compilation errors?

    Thank you for your time

    --- Quote End ---

    I usually just use vcom in modelsim or "analysis and elaboration" in quartus. Modelsim more often though.

    You can grab modelsim output console into notepad++ but I haven't done that...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    By the way quartus text editor also has column edit mode (Alt+mouse right click).

    --- Quote Start ---

    I usually just use vcom in modelsim

    --- Quote End ---

    Can you explain that? What I do not understand how you locate errors in yor code? So you write your code in notepad++. Compile with modelsim and there is error in your code. How do you locate which line or file causes error?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    By the way quartus text editor also has column edit mode (Alt+mouse right click).

    Can you explain that? What I do not understand how you locate errors in yor code? So you write your code in notepad++. Compile with modelsim and there is error in your code. How do you locate which line or file causes error?

    --- Quote End ---

    Vcom and the quartus compiler tell you the line number of syntax error.

    Most of our development time is spent writing the code and in simulation - so there is no need for the quartus gui. Hence the use of notepad++
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Could you help me to run modelsim compilation from command line or atleast from where to start?

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

    You can run the commands inside modelsim in the console, or you can run them from command line if your add the modelsim folder to your path.

    
    # first of all create a library
    Vlib work
    # compile a vhdl
    Vcom myvhdl.vhd 
    
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you.

    I was able to compile single files from notepad++ NppExec plugin, by running vcom command.

    Do i have to compile each file one by one? Lets say I have hierarchy something like this:

    -|top_tb

    --|top

    ---|inst0

    ---|inst1

    ----|inst0
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yes, or you could write a .Do file to compile them all. .Do is just a script file containing all the vcom commands

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

    I have created .tcl file to compile my source files. I would like to modify that it would compile all *.vhd files into work library, but there is a problem with compilation order. All files have to be compiled in right order. Is there a way to automaticaly resolve compilation order like Modelsim gui does?