From 42e4e18ec80ce25fea0422f254550e98ebd23eae Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 30 Nov 2022 18:13:57 -0500 Subject: [PATCH] Support multiple $dumpvar identifiers --- src/verilog.y | 2 +- test_regress/t/t_trace_two_a.v | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/verilog.y b/src/verilog.y index 289b4e6fb..5b4c9cb96 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -3869,7 +3869,7 @@ system_t_call: // IEEE: system_tf_call (as task) | yD_DUMPVARS parenE { $$ = new AstDumpCtl{$1, VDumpCtlType::VARS, new AstConst{$1, 0}}; } | yD_DUMPVARS '(' expr ')' { $$ = new AstDumpCtl{$1, VDumpCtlType::VARS, $3}; } - | yD_DUMPVARS '(' expr ',' idDotted ')' { $$ = new AstDumpCtl{$1, VDumpCtlType::VARS, $3}; DEL($5); } + | yD_DUMPVARS '(' expr ',' exprList ')' { $$ = new AstDumpCtl{$1, VDumpCtlType::VARS, $3}; DEL($5); } | yD_DUMPALL parenE { $$ = new AstDumpCtl{$1, VDumpCtlType::ALL}; } | yD_DUMPALL '(' expr ')' { $$ = new AstDumpCtl{$1, VDumpCtlType::ALL}; DEL($3); } | yD_DUMPFLUSH parenE { $$ = new AstDumpCtl{$1, VDumpCtlType::FLUSH}; } diff --git a/test_regress/t/t_trace_two_a.v b/test_regress/t/t_trace_two_a.v index 83f3ed363..b6a310870 100644 --- a/test_regress/t/t_trace_two_a.v +++ b/test_regress/t/t_trace_two_a.v @@ -33,6 +33,8 @@ module t (/*AUTOARG*/ `ifdef TEST_DUMP $dumpfile(filename); $dumpvars(0); // Intentionally no ", top" for parsing coverage with just (expr) + $dumpvars(1, top); // Intentionally checking parsing coverage + $dumpvars(1, top, top); // Intentionally checking parsing coverage $dumplimit(10 * 1024 * 1024); `elsif TEST_DUMPPORTS $dumpports(top, filename);