From 3141ef71d0b4e24a0bbadc5979a6dfa39a18a43e Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 30 Sep 2010 13:03:44 -0700 Subject: [PATCH] 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 70fe2a0b5..2ba7073b0 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -4194,6 +4194,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;