mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Associate trace codes with function indices (#4610)
For each traced variable, also register the trace function index that will write it.
This commit is contained in:
@@ -649,6 +649,8 @@ class EmitCTrace final : EmitCFunc {
|
||||
puts("(c+" + cvtToStr(nodep->code()));
|
||||
if (nodep->arrayRange().ranged()) puts("+i*" + cvtToStr(nodep->widthWords()));
|
||||
puts(",");
|
||||
puts(cvtToStr(nodep->fidx()));
|
||||
puts(",");
|
||||
putsQuoted(VIdProtect::protectWordsIf(nodep->showname(), nodep->protect()));
|
||||
// Direction
|
||||
if (v3Global.opt.traceFormat().fst()) {
|
||||
|
||||
Reference in New Issue
Block a user