Forgot to update pointers to merged nets in BlifParser.
This commit is contained in:
parent
db26e14358
commit
1afc48fb4c
|
@ -726,17 +726,23 @@ namespace {
|
||||||
else if (not net) { // Net doesn't exist yet
|
else if (not net) { // Net doesn't exist yet
|
||||||
plugNet->addAlias( netName );
|
plugNet->addAlias( netName );
|
||||||
}
|
}
|
||||||
else if (plugNet != net){ // Plus already connected to another net
|
else if (plugNet != net){ // Plug already connected to another net
|
||||||
if (not plugNet->isExternal()) {
|
if (not plugNet->isExternal()) {
|
||||||
net->merge( plugNet );
|
net->merge( plugNet );
|
||||||
|
plugNet = net;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
plugNet->merge( net );
|
||||||
|
net = plugNet;
|
||||||
}
|
}
|
||||||
else plugNet->merge( net );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (subckt->getModel()->getCell()->getName() == "sm0") {
|
// if (subckt->getModel()->getCell()->getName() == "sm0") {
|
||||||
// cerr << "sm0 plug:" << plug->getMasterNet()->getName() << " => net:" << net->getName() << endl;
|
// cerr << "sm0 plug:" << plug->getMasterNet()->getName() << " => net:" << net->getName() << endl;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
cerr << "plugNet=" << (void*)plugNet << endl;
|
||||||
|
cerr << "plug->getMasterNet()=" << (void*)(plug->getMasterNet()) << endl;
|
||||||
if (plugNet->isSupply() and not plug->getMasterNet()->isSupply()) {
|
if (plugNet->isSupply() and not plug->getMasterNet()->isSupply()) {
|
||||||
ostringstream message;
|
ostringstream message;
|
||||||
message << "In " << instance << "\n "
|
message << "In " << instance << "\n "
|
||||||
|
|
Loading…
Reference in New Issue