prady019
Junior Member level 3
I have seen some threads about people seeking help in TCL scripts when you simulate a design on ModelSim without a testbench and i am one of them. I tried to write testbench but the design i am testing is very big and not fully known to me. So i was told to test few new functionality. :bang: :bang: :bang: :bang:
I took some advise from threads and read the application note for the same and modelsim_commands.pdf attached below.
Steps i follow are as follow
1. Create a project
2. Add all the .vhd files of design and compile them all.
3. Start the simulation via gui.
4. Transcript is available to write tcl scripts.
Few commands that helped me out starting simulation are
add wave
force -freeze
run
noforce
Combining these commands you can start your simulation and observe waveform in wave window. I have come this far and need your help guys. The problem i am facing is 'When i run the design after applying all the valid input to my DUT i can see change on my output net/reg. I have to read each value and then have to check whether its correct. Now i need to transfer the value in a TCL variable which i can use further to dump in a file or to apply some formula on that values to check where the output are correct or not.'
I took some advise from threads and read the application note for the same and modelsim_commands.pdf attached below.
Steps i follow are as follow
1. Create a project
2. Add all the .vhd files of design and compile them all.
3. Start the simulation via gui.
4. Transcript is available to write tcl scripts.
Few commands that helped me out starting simulation are
add wave
force -freeze
run
noforce
Combining these commands you can start your simulation and observe waveform in wave window. I have come this far and need your help guys. The problem i am facing is 'When i run the design after applying all the valid input to my DUT i can see change on my output net/reg. I have to read each value and then have to check whether its correct. Now i need to transfer the value in a TCL variable which i can use further to dump in a file or to apply some formula on that values to check where the output are correct or not.'