Forum Discussion
Altera_Forum
Honored Contributor
18 years agogodfather, can you cut and paste the contents of the file "waves.do"? This would help me in understanding the syntax of the macro.
I have a few questions here.......in the example sent by godfather, I'm assuming all of these tcl commands are executed within the ModelSim environment. However, I am creating a MS-DOS batch script to execute these command outside the vsim enviroment. This would be similar to using a csh script on a UNIX box. I'm trying to run the simulator, possibly in gui mode (not sure yet), and then run the waveform viewer after it's complete. To execute the sim, I'm using: vsim <options> cfg_FPGA_tb, where cfg_FPGA_tb is the configuration name of the VHDL testbench. The idea is to run the sim until completion, and let the testbench stop it from running (this is how I currently have the ncsim environment setup). To generate a signal list to view, how do I tell the simulator which areas of the design I want to view (with ncsim, I have to use the probe command and the hierarchical path to the area I want to look at)? To view the results with ModelSim, from what I can understand so far, is to use the "view" command within vsim. So, I'm guessing that I would use a command similar to vsim -do waveforms.do, where waveforms.do would contain the commands to view the results of the simulation. If I'm missing something here, please let me know.