Different EDA tools return STA object properties in different ways. For compatibility with other EDA tools, this PR adds two TCL STA flags that affect how object properties are returned:
sta_boolean_props_as_int: when set to 0, boolean properties on objects are returned as "true"/"false" instead of "0"/"1" (default: true)
sta_direction_props_short: when set to 1, direction properties on objects are returned as "in"/"out" instead of "input"/"output" (default: false)
The default flag settings should leave the previous OpenSTA behavior intact.
Tasks:
[x] Add flag getters/setters to {Sdc.hh, Sdc.cc, Sta.hh, Sta.cc, Variables.tcl, Search.i}
[x] Implement modified getProperty/asString behavior in Property.cc
[x] Patch cases where direction is compared to input/output to allow in/out in {PortDirection.cc, Power.tcl, Sdc.tcl}
Different EDA tools return STA object properties in different ways. For compatibility with other EDA tools, this PR adds two TCL STA flags that affect how object properties are returned:
sta_boolean_props_as_int
: when set to 0, boolean properties on objects are returned as "true"/"false" instead of "0"/"1" (default: true)sta_direction_props_short
: when set to 1, direction properties on objects are returned as "in"/"out" instead of "input"/"output" (default: false)The default flag settings should leave the previous OpenSTA behavior intact.
Tasks:
Sdc.hh
,Sdc.cc
,Sta.hh
,Sta.cc
,Variables.tcl
,Search.i
}getProperty
/asString
behavior inProperty.cc
input
/output
to allowin
/out
in {PortDirection.cc
,Power.tcl
,Sdc.tcl
}get_property_flags
test case