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.
This commit is contained in:
Cary R 2010-09-30 13:03:44 -07:00 committed by Stephen Williams
parent 0950fbb9a3
commit 3141ef71d0
1 changed files with 1 additions and 0 deletions

View File

@ -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;