Fix for bug 913 (was 3587570).

probe_expr_width() must be called before calling elab_and_eval(), to
determine the expression type.
This commit is contained in:
Martin Whitaker 2013-01-20 13:45:39 +00:00 committed by Cary R
parent 0a06cf5d28
commit 66338431f5
1 changed files with 1 additions and 0 deletions

View File

@ -1858,6 +1858,7 @@ void PGModule::elaborate_udp_(Design*des, PUdp*udp, NetScope*scope) const
if (pins[idx] == 0)
continue;
probe_expr_width(des, scope, pins[idx]);
NetExpr*expr_tmp = elab_and_eval(des, scope, pins[idx], 1, 1);
if (expr_tmp == 0) {
cerr << "internal error: Expression too complicated "