Skip to content

Commit

Permalink
get_property liberty_port drive_resistance
Browse files Browse the repository at this point in the history
  • Loading branch information
jjcherry56 committed Jul 27, 2020
1 parent 3970a1b commit 746ed77
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions search/Property.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
namespace sta {

using std::string;
using std::max;

static PropertyValue
pinSlewProperty(const Pin *pin,
Expand Down Expand Up @@ -690,6 +691,11 @@ getProperty(const LibertyPort *port,
}
else if (stringEqual(property, "is_register_clock"))
return PropertyValue(port->isRegClk());
else if (stringEqual(property, "drive_resistance")) {
float drive = max(port->driveResistance(RiseFall::rise(), MinMax::max()),
port->driveResistance(RiseFall::fall(), MinMax::max()));
return PropertyValue(drive);
}
else if (stringEqual(property, "drive_resistance_rise_min"))
return PropertyValue(port->driveResistance(RiseFall::rise(),
MinMax::min()));
Expand Down

0 comments on commit 746ed77

Please sign in to comment.