Can't trace signals with leading underscores.
|Assignee:||Wilson Snyder||% Done:|
I'm working with an existing (large) design that has a common idiom of using an underscore ('_') prefix for wires/regs that are active low.
Current head-of-line Verilator does not emit these signals in the VCD trace, but does emit all other signals.
Is there an option to set (or a patch I can apply) to permit Verilator to trace and dump signals that start with an underscore?
#1 Updated by Wilson Snyder over 3 years ago
- Status changed from New to Assigned
Would you like to attempt adding an option, say -trace-underscore, yourself?
Search for "Leading Underscore" and the next 3 lines in V3Trace.cpp. Then add a accessor to V3Option.h and parse it in V3Option.cpp, and document in bin/verilator. The options are in alphabetical order.
#3 Updated by Wilson Snyder over 3 years ago
- Category set to Invoking/Options
- Assignee set to Wilson Snyder
Perfect! I forgot about coverage, glad you added that too.
Pushed to git for next release.
I may make tracing _'s the default, but want to wait a few releases for this switch to exist so people can migrate.