Forum Discussion

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

what is .do file in modelsim?

Hi,

I am new to altera modesim. wt is .do file???? I have created a nios system.i am faollowing http://www.altera.com/literature/an/an351.pdf . but at end while simulating I am not able to find any .do file in my design.

from ecipse run as >>>nios II modelsim a modelsim window comes. selecting variabls and running in wave window not giving output. In the above pdf it is written to load wave.do file. but I am not finding any macro file in load> macro file. how to generate .do file or maco fi I modelsim??

Any reply highly appreciated.

Thank you

4 Replies

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

    --- Quote Start ---

    Hi,

    I am new to altera modesim. wt is .do file???? I have created a nios system.i am faollowing http://www.altera.com/literature/an/an351.pdf . but at end while simulating I am not able to find any .do file in my design.

    from ecipse run as >>>nios II modelsim a modelsim window comes. selecting variabls and running in wave window not giving output. In the above pdf it is written to load wave.do file. but I am not finding any macro file in load> macro file. how to generate .do file or maco fi I modelsim??

    Any reply highly appreciated.

    Thank you

    --- Quote End ---

    I haven't used modelsim with a nios processor but in general you have to generate an input (stimulus) to your system in order to see the output. In a .do file you can generate the clock signal, the reset signal, input signal needed to run the simulation. Another (more flexible but a little complicated) way is to create a tesbench in vhdl.

    Have a look here:

    http://pages.cs.wisc.edu/~david/courses/cs552/s10/includes/modelsim.html#do

    http://www.tkt.cs.tut.fi/tools/public/tutorials/mentor/modelsim/getting_started/gsms.html
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    a .do file is just a script file for modelsim. It is written in TCL.

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

    After setting up your simulation, with the required signals in a Wave window, press the 'save' icon in the wave window. This generates the wave.do file with all the signal names in it. Next time you open this simulation, you can restore the wave settings by typing 'do wave.do' at the modelsim prompt.