Skip to content

Commit 7091c00

Browse files
committed
liberty statetable auto dcl internal pins
Signed-off-by: James Cherry <[email protected]>
1 parent 5261a2a commit 7091c00

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

liberty/LibertyReader.cc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2153,11 +2153,9 @@ LibertyReader::makeStatetable()
21532153
LibertyPortSeq internal_ports;
21542154
for (const string &internal : statetable_->internalPorts()) {
21552155
LibertyPort *port = cell_->findLibertyPort(internal.c_str());
2156-
if (port)
2157-
internal_ports.push_back(port);
2158-
else
2159-
libWarn(0000, statetable_->line(), "statetable internal port %s not found.",
2160-
internal.c_str());
2156+
if (port == nullptr)
2157+
port = builder_.makePort(cell_, internal.c_str());
2158+
internal_ports.push_back(port);
21612159
}
21622160
cell_->makeStatetable(input_ports, internal_ports, statetable_->table());
21632161
statetable_ = nullptr;
@@ -3860,7 +3858,7 @@ LibertyReader::beginSequential(LibertyGroup *group,
38603858
if (has_size)
38613859
out_port = builder_.makeBusPort(cell_, out_name, size - 1, 0, nullptr);
38623860
else
3863-
out_port = builder_.makePort(cell_,out_name);
3861+
out_port = builder_.makePort(cell_, out_name);
38643862
out_port->setDirection(PortDirection::internal());
38653863
}
38663864
if (out_inv_name) {

0 commit comments

Comments
 (0)