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.

Questa - How to exclude enum variants from toggle coverage using a .do file?

Plexiglas1

Newbie
Newbie level 4
Joined
Feb 19, 2025
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
43
This was originally posted in "Software Problems, Hints and Reviews", but it probably fits better here.

I'm using SystemVerilog and I'm trying to exclude coverage from a signal that never transitions into one of the enum variants in it's module.
The enum is used across multiple modules and imported from a package, so I can't just remove it.
I also can't exclude the whole signal because I want other enum variants to be covered.

My .do file contains something like this:
Code:
coverage exclude -du offending_module -togglenode {offending_signal.UNUSED} -comment {Enum variant UNUSED is unused in module}
But that doesn't work.
 
If you're using a coverage viewer like Questa’s Coverage Browser, you can manually filter out specific enum values after simulation.
 

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top