probe expression widths of analog contribution expressions.

The expressions of a contribution statement are real valued by
definition, but we need to do the width probing anyhow in order
to resolve types and the widths of subexpressions.
This commit is contained in:
Stephen Williams 2008-11-28 18:40:47 -08:00
parent 17b937740a
commit fc00bd9a5b
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@
NetProc* AContrib::elaborate(Design*des, NetScope*scope) const NetProc* AContrib::elaborate(Design*des, NetScope*scope) const
{ {
probe_expr_width(des, scope, lval_);
probe_expr_width(des, scope, rval_);
NetExpr*lval = elab_and_eval(des, scope, lval_, -1); NetExpr*lval = elab_and_eval(des, scope, lval_, -1);
NetExpr*rval = elab_and_eval(des, scope, rval_, -1); NetExpr*rval = elab_and_eval(des, scope, rval_, -1);