get_property pin is_register_clock
This commit is contained in:
parent
46d2446f88
commit
b54125a1ae
|
|
@ -688,6 +688,8 @@ getProperty(const LibertyPort *port,
|
||||||
float cap = port->capacitance(RiseFall::rise(), MinMax::max());
|
float cap = port->capacitance(RiseFall::rise(), MinMax::max());
|
||||||
return PropertyValue(sta->units()->capacitanceUnit()->asString(cap, 6));
|
return PropertyValue(sta->units()->capacitanceUnit()->asString(cap, 6));
|
||||||
}
|
}
|
||||||
|
else if (stringEqual(property, "is_register_clock"))
|
||||||
|
return PropertyValue(port->isRegClk());
|
||||||
else if (stringEqual(property, "drive_resistance_rise_min"))
|
else if (stringEqual(property, "drive_resistance_rise_min"))
|
||||||
return PropertyValue(port->driveResistance(RiseFall::rise(),
|
return PropertyValue(port->driveResistance(RiseFall::rise(),
|
||||||
MinMax::min()));
|
MinMax::min()));
|
||||||
|
|
@ -741,6 +743,10 @@ getProperty(const Pin *pin,
|
||||||
return PropertyValue(network->pathName(pin));
|
return PropertyValue(network->pathName(pin));
|
||||||
else if (stringEqual(property, "direction"))
|
else if (stringEqual(property, "direction"))
|
||||||
return PropertyValue(network->direction(pin)->name());
|
return PropertyValue(network->direction(pin)->name());
|
||||||
|
else if (stringEqual(property, "is_register_clock")) {
|
||||||
|
const LibertyPort *port = network->libertyPort(pin);
|
||||||
|
return PropertyValue(port && port->isRegClk());
|
||||||
|
}
|
||||||
else if (stringEqual(property, "clocks")) {
|
else if (stringEqual(property, "clocks")) {
|
||||||
ClockSet clks;
|
ClockSet clks;
|
||||||
sta->clocks(pin, clks);
|
sta->clocks(pin, clks);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue