From 66338431f58eb1c124d6f54aff4a65f0fdb4c6d8 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 20 Jan 2013 13:45:39 +0000 Subject: [PATCH] Fix for bug 913 (was 3587570). probe_expr_width() must be called before calling elab_and_eval(), to determine the expression type. --- elaborate.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/elaborate.cc b/elaborate.cc index 9c5512abf..763446334 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -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 "