Get the pin count from the Liberty cell not the Cell (#334)
The Cell may come from LEF which doesn't have internal pins that Liberty does. This used to work by dumb luck where the extra two power pins in LEF happened to align to the extra two internal pins from Liberty. With the change to pg_pins this no longer works. Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
This commit is contained in:
parent
c4b94c3ee5
commit
759348402d
|
|
@ -534,7 +534,7 @@ VerilogReader::makeModuleInst(const string *module_vname,
|
||||||
// to reduce the memory footprint of the verilog parser.
|
// to reduce the memory footprint of the verilog parser.
|
||||||
if (liberty_cell
|
if (liberty_cell
|
||||||
&& hasScalarNamedPortRefs(liberty_cell, pins)) {
|
&& hasScalarNamedPortRefs(liberty_cell, pins)) {
|
||||||
int port_count = network_->portBitCount(cell);
|
const int port_count = liberty_cell->portBitCount();
|
||||||
StdStringSeq net_names(port_count);
|
StdStringSeq net_names(port_count);
|
||||||
for (VerilogNet *vnet : *pins) {
|
for (VerilogNet *vnet : *pins) {
|
||||||
VerilogNetPortRefScalarNet *vpin =
|
VerilogNetPortRefScalarNet *vpin =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue