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.
This commit is contained in:
Stephen Williams 2008-01-10 20:47:06 -08:00
parent 9d0cdc8ae9
commit 731f1df70b
1 changed files with 3 additions and 2 deletions

View File

@ -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: