Commit 1afc48fb authored by Jean-Paul Chaput's avatar Jean-Paul Chaput
Browse files

Forgot to update pointers to merged nets in BlifParser.

parent db26e143
......@@ -726,17 +726,23 @@ namespace {
else if (not net) { // Net doesn't exist yet
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()) {
net->merge( plugNet );
plugNet = net;
}
else {
plugNet->merge( net );
net = plugNet;
}
else plugNet->merge( net );
}
// if (subckt->getModel()->getCell()->getName() == "sm0") {
// 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()) {
ostringstream message;
message << "In " << instance << "\n "
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment