From 2d0fc040cfe4413e3b2c8209b4b5a23b5866374b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Tue, 5 Sep 2023 21:40:24 +0200 Subject: [PATCH] ast: Substitute rvalues when parsing out print arguments Apply the local substitutions stemming from process context when parsing out format arguments to `$display` or other statements. --- frontends/ast/genrtlil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc index 81fb3189d..d62f06ae5 100644 --- a/frontends/ast/genrtlil.cc +++ b/frontends/ast/genrtlil.cc @@ -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);