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

what is .do file in modelsim?

Altera_Forum
Honored Contributor II
7,936 Views

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
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
3,745 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
3,745 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
3,745 Views

Thank you......

0 Kudos
Altera_Forum
Honored Contributor II
3,745 Views

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.

0 Kudos
Reply