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.
This commit is contained in:
Cary R 2010-09-30 13:05:00 -07:00 committed by Stephen Williams
parent 87cd9a89e0
commit 09b80051bd
1 changed files with 1 additions and 0 deletions

View File

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