liberty statetable auto dcl internal pins

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2024-08-10 07:59:06 -07:00
parent 5261a2a91b
commit 7091c00b1d
1 changed files with 4 additions and 6 deletions

View File

@ -2153,11 +2153,9 @@ LibertyReader::makeStatetable()
LibertyPortSeq internal_ports;
for (const string &internal : statetable_->internalPorts()) {
LibertyPort *port = cell_->findLibertyPort(internal.c_str());
if (port)
if (port == nullptr)
port = builder_.makePort(cell_, internal.c_str());
internal_ports.push_back(port);
else
libWarn(0000, statetable_->line(), "statetable internal port %s not found.",
internal.c_str());
}
cell_->makeStatetable(input_ports, internal_ports, statetable_->table());
statetable_ = nullptr;