liberty test_cell name

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2024-10-25 08:41:22 -07:00
parent 21a62ebccf
commit dfb95b1cfe
3 changed files with 11 additions and 4 deletions

View File

@ -1089,7 +1089,9 @@ protected:
class TestCell : public LibertyCell
{
public:
TestCell(LibertyCell *cell);
TestCell(LibertyLibrary *library,
const char *name,
const char *filename);
protected:
};

View File

@ -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)
{
}

View File

@ -4743,7 +4743,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