diff --git a/docs/user/FlowVariables.md b/docs/user/FlowVariables.md
index 47dcd08162..c365c7240c 100644
--- a/docs/user/FlowVariables.md
+++ b/docs/user/FlowVariables.md
@@ -336,6 +336,7 @@ configuration file.
| VERILOG_TOP_PARAMS| Apply toplevel params (if exist). Passed in as a list of key value pairs in tcl syntax; separated by spaces: PARAM1 VALUE1 PARAM2 VALUE2| |
| VIA_IN_PIN_MAX_LAYER| Passed as -via_in_pin_top_layer to pin_access and detailed_route.| |
| VIA_IN_PIN_MIN_LAYER| Passed as -via_in_pin_bottom_layer to pin_access and detailed_route.| |
+| WIRE_LOAD_MODEL| Name of a Liberty wire_load group applied with set_wire_load_model whenever open.tcl reads timing. OpenSTA applies a wire-load model only to nets without parasitics, so it gives wire delay to timing read before placement and leaves placed and routed timing unaffected. An unknown name is an error. Empty, the default, applies none. A platform whose libraries define no wire_load group can supply one in a Liberty file listed in ADDITIONAL_LIBS.| |
| WRITE_ODB_AND_SDC_EACH_STAGE| Save out .sdc and .odb file after each stage, useful to disable when using a single OpenROAD instance to run all stages of the flow.| 1|
| YOSYS_FLAGS| Flags to pass to yosys.| -v 3|
## synth variables
@@ -679,4 +680,5 @@ configuration file.
- [TAP_CELL_NAME](#TAP_CELL_NAME)
- [TECH_LEF](#TECH_LEF)
- [USE_FILL](#USE_FILL)
+- [WIRE_LOAD_MODEL](#WIRE_LOAD_MODEL)
diff --git a/flow/scripts/open.tcl b/flow/scripts/open.tcl
index c9241ca506..c8061687ab 100644
--- a/flow/scripts/open.tcl
+++ b/flow/scripts/open.tcl
@@ -50,6 +50,10 @@ proc read_timing { input_file } {
} else {
log_cmd source $::env(PLATFORM_DIR)/setRC.tcl
}
+ if { [env_var_exists_and_non_empty WIRE_LOAD_MODEL] } {
+ # OpenSTA applies a wire-load model only to nets without parasitics.
+ log_cmd set_wire_load_model -name $::env(WIRE_LOAD_MODEL)
+ }
if { $design_stage >= 4 } {
# CTS has run, so propagate clocks
set_propagated_clock [all_clocks]
diff --git a/flow/scripts/variables.json b/flow/scripts/variables.json
index b73bc809b7..a9044c2ca4 100644
--- a/flow/scripts/variables.json
+++ b/flow/scripts/variables.json
@@ -1538,6 +1538,10 @@
"route"
]
},
+ "WIRE_LOAD_MODEL": {
+ "description": "Name of a Liberty wire_load group applied with set_wire_load_model\nwhenever open.tcl reads timing. OpenSTA applies a wire-load model only\nto nets without parasitics, so it gives wire delay to timing read\nbefore placement and leaves placed and routed timing unaffected. An\nunknown name is an error. Empty, the default, applies none. A platform\nwhose libraries define no wire_load group can supply one in a Liberty\nfile listed in ADDITIONAL_LIBS.\n",
+ "type": "string"
+ },
"WRITE_ODB_AND_SDC_EACH_STAGE": {
"default": 1,
"description": "Save out .sdc and .odb file after each stage, useful to disable when using a single OpenROAD instance to run all stages of the flow.\n",
diff --git a/flow/scripts/variables.yaml b/flow/scripts/variables.yaml
index 9f4b15500e..fb88d87e1f 100644
--- a/flow/scripts/variables.yaml
+++ b/flow/scripts/variables.yaml
@@ -533,6 +533,16 @@ LAYER_PARASITICS_FILE:
description: |
Path to per layer parasitics file. Defaults to $(PLATFORM_DIR)/setRC.tcl.
type: string
+WIRE_LOAD_MODEL:
+ description: |
+ Name of a Liberty wire_load group applied with set_wire_load_model
+ whenever open.tcl reads timing. OpenSTA applies a wire-load model only
+ to nets without parasitics, so it gives wire delay to timing read
+ before placement and leaves placed and routed timing unaffected. An
+ unknown name is an error. Empty, the default, applies none. A platform
+ whose libraries define no wire_load group can supply one in a Liberty
+ file listed in ADDITIONAL_LIBS.
+ type: string
TAPCELL_TCL:
description: |
Path to Endcap and Welltie cells file.