liberty test_cell name
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
21a62ebccf
commit
dfb95b1cfe
|
|
@ -1089,7 +1089,9 @@ protected:
|
||||||
class TestCell : public LibertyCell
|
class TestCell : public LibertyCell
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TestCell(LibertyCell *cell);
|
TestCell(LibertyLibrary *library,
|
||||||
|
const char *name,
|
||||||
|
const char *filename);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -3159,8 +3159,10 @@ ScaleFactors::print()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TestCell::TestCell(LibertyCell *cell) :
|
TestCell::TestCell(LibertyLibrary *library,
|
||||||
LibertyCell(cell->libertyLibrary(), cell->name(), cell->filename())
|
const char *name,
|
||||||
|
const char *filename) :
|
||||||
|
LibertyCell(library, name, filename)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4743,7 +4743,10 @@ LibertyReader::beginTestCell(LibertyGroup *group)
|
||||||
if (cell_ && cell_->testCell())
|
if (cell_ && cell_->testCell())
|
||||||
libWarn(1262, group, "cell %s test_cell redefinition.", cell_->name());
|
libWarn(1262, group, "cell %s test_cell redefinition.", cell_->name());
|
||||||
else {
|
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_);
|
cell_->setTestCell(test_cell_);
|
||||||
|
|
||||||
// Do a recursive parse of cell into the test_cell because it has
|
// Do a recursive parse of cell into the test_cell because it has
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue