From 09b80051bd4fc9e9c2cdf815c99dc1b854544d70 Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 30 Sep 2010 13:05:00 -0700 Subject: [PATCH] V0.9: Add probe_expr_width() for specparam value. This patch adds a call to probe_expr_width() before a specparam value is evaluated. This calculates the expression type/width. --- elaborate.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/elaborate.cc b/elaborate.cc index 97539a37c..19d339c85 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -4129,6 +4129,7 @@ bool Module::elaborate(Design*des, NetScope*scope) const for (specparam_it_t cur = specparams.begin() ; cur != specparams.end() ; cur ++ ) { + probe_expr_width(des, scope, (*cur).second); need_constant_expr = true; NetExpr*val = elab_and_eval(des, scope, (*cur).second, -1); need_constant_expr = false;