Skip to content

Commit fdb8217

Browse files
authored
Merge pull request #3730 from The-OpenROAD-Project-staging/parasitics-flow-variable
Added LAYER_PARASITICS_FILE flow variable for setRC.tcl
2 parents 3e633b0 + 23cbbf1 commit fdb8217

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

docs/user/FlowVariables.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ configuration file.
159159
| <a name="IR_DROP_LAYER"></a>IR_DROP_LAYER| Default metal layer to report IR drop.| |
160160
| <a name="KLAYOUT_TECH_FILE"></a>KLAYOUT_TECH_FILE| A mapping from LEF/DEF to GDS using the KLayout tool.| |
161161
| <a name="LATCH_MAP_FILE"></a>LATCH_MAP_FILE| Optional mapping file supplied to Yosys to map latches| |
162+
| <a name="LAYER_PARASITICS_FILE"></a>LAYER_PARASITICS_FILE| Path to per layer parasitics file. Defaults to $(PLATFORM_DIR)/setRC.tcl.| |
162163
| <a name="LIB_FILES"></a>LIB_FILES| A Liberty file of the standard cell library with PVT characterization, input and output characteristics, timing and power definitions for each cell.| |
163164
| <a name="MACRO_BLOCKAGE_HALO"></a>MACRO_BLOCKAGE_HALO| Distance beyond the edges of a macro that will also be covered by the blockage generated for that macro. Note that the default macro blockage halo comes from the largest of the specified MACRO_PLACE_HALO x or y values. This variable overrides that calculation.| |
164165
| <a name="MACRO_EXTENSION"></a>MACRO_EXTENSION| Sets the number of GCells added to the blockages boundaries from macros.| |
@@ -518,6 +519,7 @@ configuration file.
518519
- [GUI_TIMING](#GUI_TIMING)
519520
- [IR_DROP_LAYER](#IR_DROP_LAYER)
520521
- [KLAYOUT_TECH_FILE](#KLAYOUT_TECH_FILE)
522+
- [LAYER_PARASITICS_FILE](#LAYER_PARASITICS_FILE)
521523
- [LIB_FILES](#LIB_FILES)
522524
- [MACRO_EXTENSION](#MACRO_EXTENSION)
523525
- [PLATFORM](#PLATFORM)

flow/scripts/floorplan_to_place.tcl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,11 @@ write_db $::env(RESULTS_DIR)/3_4_place_resized.odb
321321
# Detailed placement
322322
utl::set_metrics_stage "detailedplace__{}"
323323

324-
source $::env(PLATFORM_DIR)/setRC.tcl
324+
if { [env_var_exists_and_non_empty LAYER_PARASITICS_FILE] } {
325+
log_cmd source $::env(LAYER_PARASITICS_FILE)
326+
} else {
327+
log_cmd source $::env(PLATFORM_DIR)/setRC.tcl
328+
}
325329

326330
proc do_dpl { } {
327331
# Only for use with hybrid rows

flow/scripts/load.tcl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ proc load_design { design_file sdc_file } {
3232
log_cmd source $::env(PLATFORM_DIR)/derate.tcl
3333
}
3434

35-
source $::env(PLATFORM_DIR)/setRC.tcl
35+
if { [env_var_exists_and_non_empty LAYER_PARASITICS_FILE] } {
36+
log_cmd source $::env(LAYER_PARASITICS_FILE)
37+
} else {
38+
log_cmd source $::env(PLATFORM_DIR)/setRC.tcl
39+
}
3640

3741
if { [env_var_equals LIB_MODEL CCS] } {
3842
puts "Using CCS delay calculation"

flow/scripts/open.tcl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ proc read_timing { input_file } {
3434
source $::env(PLATFORM_DIR)/derate.tcl
3535
}
3636

37-
source $::env(PLATFORM_DIR)/setRC.tcl
37+
if { [env_var_exists_and_non_empty LAYER_PARASITICS_FILE] } {
38+
log_cmd source $::env(LAYER_PARASITICS_FILE)
39+
} else {
40+
log_cmd source $::env(PLATFORM_DIR)/setRC.tcl
41+
}
3842
if { $design_stage >= 4 } {
3943
# CTS has run, so propagate clocks
4044
set_propagated_clock [all_clocks]

flow/scripts/variables.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,10 @@ PLACE_SITE:
429429
- floorplan
430430
type: string
431431
tunable: 1
432+
LAYER_PARASITICS_FILE:
433+
description: |
434+
Path to per layer parasitics file. Defaults to $(PLATFORM_DIR)/setRC.tcl.
435+
type: string
432436
TAPCELL_TCL:
433437
description: |
434438
Path to Endcap and Welltie cells file.

0 commit comments

Comments
 (0)