Skip to content

Commit

Permalink
ast: Substitute rvalues when parsing out print arguments
Browse files Browse the repository at this point in the history
Apply the local substitutions stemming from process context when parsing
out format arguments to `$display` or other statements.
  • Loading branch information
povik committed Sep 5, 2023
1 parent d4d9516 commit 2d0fc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontends/ast/genrtlil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ struct AST_INTERNAL::ProcessGenerator
arg.realtime = true;
} else {
arg.type = VerilogFmtArg::INTEGER;
arg.sig = node->genRTLIL();
arg.sig = node->genWidthRTLIL(-1, false, &subst_rvalue_map.stdmap());
arg.signed_ = is_signed;
}
args.push_back(arg);
Expand Down

0 comments on commit 2d0fc04

Please sign in to comment.