Error when trying to use ModelSim Toggle Coverage tool

331 views
Skip to first unread message

Matt

unread,
Mar 16, 2010, 7:10:49 PM3/16/10
to ECE 156B W10
Hi

I was wondering if anyone else has gotten this error message when
trying to use Tools -> Toggle Coverage -> Enable -> Signals in region
when simulating their test benches. Whenever I try to do this, I get
a message in the transcript that says:

toggle enable sim:/alu_testbench/*
# ** Error: (vsim-3451) Toggle checking is not enabled.
#

Does anybody know how to enable it? I also tried to make a coverage
report using Tools -> Coverage Report -> Text... but all that I get is
a blank text file.

Thanks,
-Matt

Mota, Elvis

unread,
Mar 17, 2010, 12:22:30 AM3/17/10
to ece-15...@googlegroups.com
Use the command line to enable toggle and statement coverage.
Type
vlog -cover best <filename.v> (all the files in the project including
your testbench)

Then type
vsim -coverage <testbench filename>

You can then run the test by typing

run 1 ms (example for running test for 1 ms)

Elvis

Michael Zimmer

unread,
Mar 17, 2010, 12:47:12 AM3/17/10
to ece-15...@googlegroups.com
Right-click -> Properties -> Coverage (on v file)
and
Start Simulation -> Others -> Enable Coverage

is how to do it using the GUI

Michael

Reply all
Reply to author
Forward
0 new messages