Update docs and make requested changes

This commit is contained in:
Akash Levy 2024-07-14 22:05:15 -07:00
parent 85ae6b6d27
commit a3f7231acb
2 changed files with 7 additions and 13 deletions

Binary file not shown.

View File

@ -889,7 +889,7 @@ getProperty(const Instance *inst,
Sta *sta)
{
auto network = sta->cmdNetwork();
LibertyCell *libertyCell = network->libertyCell(inst);
LibertyCell *liberty_cell = network->libertyCell(inst);
if (stringEqual(property, "name"))
return PropertyValue(network->name(inst));
else if (stringEqual(property, "full_name"))
@ -903,15 +903,15 @@ getProperty(const Instance *inst,
else if (stringEqual(property, "is_hierarchical"))
return PropertyValue(network->isHierarchical(inst));
else if (stringEqual(property, "is_buffer"))
return PropertyValue(libertyCell && libertyCell->isBuffer());
return PropertyValue(liberty_cell && liberty_cell->isBuffer());
else if (stringEqual(property, "is_clock_gate"))
return PropertyValue(libertyCell && libertyCell->isClockGate());
return PropertyValue(liberty_cell && liberty_cell->isClockGate());
else if (stringEqual(property, "is_inverter"))
return PropertyValue(libertyCell && libertyCell->isInverter());
return PropertyValue(liberty_cell && liberty_cell->isInverter());
else if (stringEqual(property, "is_macro"))
return PropertyValue(libertyCell && libertyCell->isMacro());
return PropertyValue(liberty_cell && liberty_cell->isMacro());
else if (stringEqual(property, "is_memory_cell"))
return PropertyValue(libertyCell && libertyCell->isMemory());
return PropertyValue(liberty_cell && liberty_cell->isMemory());
else
throw PropertyUnknown("instance", property);
}
@ -1178,14 +1178,8 @@ getProperty(Clock *clk,
return PropertyValue(clk->name());
else if (stringEqual(property, "period"))
return PropertyValue(clk->period(), sta->units()->timeUnit());
else if (stringEqual(property, "sources"))
else if (stringEqual(property, "source_pins"))
return PropertyValue(clk->pins());
else if (stringEqual(property, "generated"))
return PropertyValue(clk->isGenerated());
else if (stringEqual(property, "virtual"))
return PropertyValue(clk->isVirtual());
else if (stringEqual(property, "propagated"))
return PropertyValue(clk->isPropagated());
else if (stringEqual(property, "is_generated"))
return PropertyValue(clk->isGenerated());
else if (stringEqual(property, "is_virtual"))