Skip to content

Commit

Permalink
Merge branch 'parallaxsw:master' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
akashlevy authored Oct 25, 2024
2 parents 87e29f9 + dfb95b1 commit 262f200
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion include/sta/Liberty.hh
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,9 @@ protected:
class TestCell : public LibertyCell
{
public:
TestCell(LibertyCell *cell);
TestCell(LibertyLibrary *library,
const char *name,
const char *filename);

protected:
};
Expand Down
6 changes: 4 additions & 2 deletions liberty/Liberty.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3159,8 +3159,10 @@ ScaleFactors::print()
}
}

TestCell::TestCell(LibertyCell *cell) :
LibertyCell(cell->libertyLibrary(), cell->name(), cell->filename())
TestCell::TestCell(LibertyLibrary *library,
const char *name,
const char *filename) :
LibertyCell(library, name, filename)
{
}

Expand Down
5 changes: 4 additions & 1 deletion liberty/LibertyReader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4747,7 +4747,10 @@ LibertyReader::beginTestCell(LibertyGroup *group)
if (cell_ && cell_->testCell())
libWarn(1262, group, "cell %s test_cell redefinition.", cell_->name());
else {
test_cell_ = new TestCell(cell_);
string name = cell_->name();
name += "/test_cell";
test_cell_ = new TestCell(cell_->libertyLibrary(), name.c_str(),
cell_->filename());
cell_->setTestCell(test_cell_);

// Do a recursive parse of cell into the test_cell because it has
Expand Down

0 comments on commit 262f200

Please sign in to comment.