From 731f1df70b4a49e2ef35e19e3a4ba3f8fe4b4a3b Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Thu, 10 Jan 2008 20:47:06 -0800 Subject: [PATCH] Hook up input port part select properly. The input part select that is used to match a module port to a short vector connected to it was wired incorrectly. --- elaborate.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/elaborate.cc b/elaborate.cc index d93389fa2..059b7718c 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -814,13 +814,14 @@ NetNet*PGModule::resize_net_to_port_(Design*des, NetScope*scope, case NetNet::PINPUT: if (tmp->vector_width() > sig->vector_width()) { - node = new NetPartSelect(sig, 0, tmp->vector_width(), + node = new NetPartSelect(tmp, 0, sig->vector_width(), NetPartSelect::PV); + connect(node->pin(0), sig->pin(0)); } else { node = new NetPartSelect(sig, 0, tmp->vector_width(), NetPartSelect::VP); + connect(node->pin(0), tmp->pin(0)); } - connect(node->pin(0), tmp->pin(0)); break; case NetNet::PINOUT: