How to Use TCL with ModelSim
Edited by Sunildrak, Josef aaron feniel, Teresa, Crystal Johnson and 8 others
This article may benefit from a new introduction. You can help wikiHow by improving the current introduction, or writing a new one to match the format described in the Writer's Guide. Please remove this notice once this page has been improved. Notice added on: 2014-05-31. |
EditSteps
-
1Click on File > New > Source > Do.
- Note that the design file needs to be added before adding a TCL file.
-
2Paste the code and make the changes required.
-
3Create a library.
- vlib work
- vmap work work
-
4Compile the counter verilog code and add the file extension of the file.
- vlog counter.v
-
5Load it for simulation. Use only the module name.
- vsim counter
-
6Open some selected windows for viewing.
- view structure
- view signals
- view wave
-
7Show some of the signals in the wave window.
- add wave
-
8Force the signals with logic values 0 or 1.
- force rst 1
- force rst 0
- run
-
9Save the file as any_name.tcl in the same working directory.
-
10In the Transcript window type the command do any_name.tcl.
Article Info
Categories: Summarization
Recent edits by: WritingEnthusiast14, Lucky_JY, Basheera.A
Thanks to all authors for creating a page that has been read 121 times.