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)
internal_ports.push_back(port);
else
libWarn(0000, statetable_->line(), "statetable internal port %s not found.",
internal.c_str());
if (port == nullptr)
port = builder_.makePort(cell_, internal.c_str());
internal_ports.push_back(port);
}
cell_->makeStatetable(input_ports, internal_ports, statetable_->table());
statetable_ = nullptr;
@ -3860,7 +3858,7 @@ LibertyReader::beginSequential(LibertyGroup *group,
if (has_size)
out_port = builder_.makeBusPort(cell_, out_name, size - 1, 0, nullptr);
else
out_port = builder_.makePort(cell_,out_name);
out_port = builder_.makePort(cell_, out_name);
out_port->setDirection(PortDirection::internal());
}
if (out_inv_name) {