Fix a crash in PowerRails when a terminal is not connected.
* Bug: In Katana::GlobalNetTable::getRootNet(), when tracking up the net through the plug (to look if it's connected to a top level clock), we may encounter an *unconnected* plug. We where not checking that case, and went crashing. Now issue a warning and return NULL. This indicates that, up until now, we didn't encounter any unconnected Plug in our netlists. This did show up due to a building error in the SRAM Standard Cell generator.
This commit is contained in:
parent
82cd53b107
commit
df1ba66c09
|
@ -255,6 +255,12 @@ namespace {
|
||||||
|
|
||||||
upNet = plug->getNet();
|
upNet = plug->getNet();
|
||||||
path = path.getHeadPath();
|
path = path.getHeadPath();
|
||||||
|
|
||||||
|
if (not upNet) {
|
||||||
|
cerr << Warning( "GlobalNetTable::getRootNet(): Unconnected %s."
|
||||||
|
, getString(plug).c_str() ) << endl;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue