Skip to content

Commit dfb95b1

Browse files
committed
liberty test_cell name
Signed-off-by: James Cherry <cherry@parallaxsw.com>
1 parent 21a62eb commit dfb95b1

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

include/sta/Liberty.hh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,9 @@ protected:
10891089
class TestCell : public LibertyCell
10901090
{
10911091
public:
1092-
TestCell(LibertyCell *cell);
1092+
TestCell(LibertyLibrary *library,
1093+
const char *name,
1094+
const char *filename);
10931095

10941096
protected:
10951097
};

liberty/Liberty.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3159,8 +3159,10 @@ ScaleFactors::print()
31593159
}
31603160
}
31613161

3162-
TestCell::TestCell(LibertyCell *cell) :
3163-
LibertyCell(cell->libertyLibrary(), cell->name(), cell->filename())
3162+
TestCell::TestCell(LibertyLibrary *library,
3163+
const char *name,
3164+
const char *filename) :
3165+
LibertyCell(library, name, filename)
31643166
{
31653167
}
31663168

liberty/LibertyReader.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4743,7 +4743,10 @@ LibertyReader::beginTestCell(LibertyGroup *group)
47434743
if (cell_ && cell_->testCell())
47444744
libWarn(1262, group, "cell %s test_cell redefinition.", cell_->name());
47454745
else {
4746-
test_cell_ = new TestCell(cell_);
4746+
string name = cell_->name();
4747+
name += "/test_cell";
4748+
test_cell_ = new TestCell(cell_->libertyLibrary(), name.c_str(),
4749+
cell_->filename());
47474750
cell_->setTestCell(test_cell_);
47484751

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

0 commit comments

Comments
 (0)