Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Code Coverage in Questasim

Status
Not open for further replies.

shahsanket24

Junior Member level 3
Joined
Nov 24, 2011
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,434
hi everyone,

i have return one simple code in verilog now i want to see the code coverage for the same can anyone guide me which command we need to execute in batch mode to add code coverage and to view the same.
 

hi everyone,

i have return one simple code in verilog now i want to see the code coverage for the same can anyone guide me which command we need to execute in batch mode to add code coverage and to view the same.


first compile the file with cover option
b–Collect branch statistics.
c–Collect condition statistics.
e–Collect expression statistics.
s–Collect statement statistics. Default.
t–Collect toggle statistics. Cannot be used if ’x’ is specified.
x–Collect extended toggle statistics
Cannot be used if ’t’ is specified(Toggle Coverage)

Code:
vlog -cover  bcs work.test_bench
start vsim with coverage switch
Eg
Code:
vsim -coverage work.test_bench
 
Last edited:

ok thank you very much.....
Can u please tell me how to check the generated coverage report..?
 

once you have compiled the file with cover options like bcs
then run the simulation with coverage option

Eg
Code:
vlog -cover bcs *.v
# QuestaSim vlog 10.0b Compiler 2011.05 May  5 2011
# -- Compiling module counter
# -- Compiling module test_counter
# 
# Top level modules:
# 	test_counter
vsim -coverage test_counter
# vsim -coverage test_counter 
# ** Note: (vsim-3812) Design is being optimized...
# Loading work.test_counter(fast)
run 20000

now you could see a window

like this Local coverage Aggregation



undock that window



Here you can see the code coverage statistics
 
hi all, can you explain some method to merge random test case coverage with sv language?
 

hello blooz,
It was really helpful information.Thnk you very much for youe great support.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top