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:
parent
0a06cf5d28
commit
66338431f5
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Reference in New Issue