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) Sta *sta)
{ {
auto network = sta->cmdNetwork(); auto network = sta->cmdNetwork();
LibertyCell *libertyCell = network->libertyCell(inst); LibertyCell *liberty_cell = network->libertyCell(inst);
if (stringEqual(property, "name")) if (stringEqual(property, "name"))
return PropertyValue(network->name(inst)); return PropertyValue(network->name(inst));
else if (stringEqual(property, "full_name")) else if (stringEqual(property, "full_name"))
@ -903,15 +903,15 @@ getProperty(const Instance *inst,
else if (stringEqual(property, "is_hierarchical")) else if (stringEqual(property, "is_hierarchical"))
return PropertyValue(network->isHierarchical(inst)); return PropertyValue(network->isHierarchical(inst));
else if (stringEqual(property, "is_buffer")) 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")) 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")) else if (stringEqual(property, "is_inverter"))
return PropertyValue(libertyCell && libertyCell->isInverter()); return PropertyValue(liberty_cell && liberty_cell->isInverter());
else if (stringEqual(property, "is_macro")) 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")) else if (stringEqual(property, "is_memory_cell"))
return PropertyValue(libertyCell && libertyCell->isMemory()); return PropertyValue(liberty_cell && liberty_cell->isMemory());
else else
throw PropertyUnknown("instance", property); throw PropertyUnknown("instance", property);
} }
@ -1178,14 +1178,8 @@ getProperty(Clock *clk,
return PropertyValue(clk->name()); return PropertyValue(clk->name());
else if (stringEqual(property, "period")) else if (stringEqual(property, "period"))
return PropertyValue(clk->period(), sta->units()->timeUnit()); return PropertyValue(clk->period(), sta->units()->timeUnit());
else if (stringEqual(property, "sources")) else if (stringEqual(property, "source_pins"))
return PropertyValue(clk->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")) else if (stringEqual(property, "is_generated"))
return PropertyValue(clk->isGenerated()); return PropertyValue(clk->isGenerated());
else if (stringEqual(property, "is_virtual")) else if (stringEqual(property, "is_virtual"))