read_verilog no warn on pg_pin connections

This commit is contained in:
James Cherry 2021-07-07 16:57:34 -07:00
parent 66c97a2579
commit b9116bd56d
1 changed files with 10 additions and 4 deletions

View File

@ -1889,6 +1889,12 @@ VerilogReader::makeNamedInstPins(Cell *cell,
} }
} }
else { else {
LibertyPgPort *pg_port = nullptr;
LibertyCell *lib_cell = network_->libertyCell(cell);
if (lib_cell)
pg_port = lib_cell->findPgPort(port_name);
// Do not warn about connections to pg ports (which are ignored).
if (pg_port == nullptr)
linkWarn(201, parent_module->filename(), mod_inst->line(), linkWarn(201, parent_module->filename(), mod_inst->line(),
"instance %s port %s not found.", "instance %s port %s not found.",
verilogName(mod_inst), verilogName(mod_inst),