Skip to content

Commit faa7570

Browse files
authored
Merge pull request #2416 from Pinata-Consulting/variables-docs
docs: autogenerate flow variables table
2 parents b582177 + 8abc4cf commit faa7570

26 files changed

+945
-347
lines changed

docs/user/FlowVariables.md

Lines changed: 275 additions & 264 deletions
Large diffs are not rendered by default.

flow/scripts/cdl.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
source $::env(SCRIPTS_DIR)/load.tcl
2+
erase_non_stage_variables final
23
load_design 6_final.odb 6_final.sdc
34

45
write_cdl -masters $::env(CDL_FILE) $::env(RESULTS_DIR)/6_final.cdl

flow/scripts/cts.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
utl::set_metrics_stage "cts__{}"
22
source $::env(SCRIPTS_DIR)/load.tcl
3+
erase_non_stage_variables cts
34
load_design 3_place.odb 3_place.sdc
45

56
# Clone clock tree inverters next to register loads

flow/scripts/defaults.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
dir_path = os.path.dirname(os.path.realpath(__file__))
77

8-
yaml_path = os.path.join(dir_path, "defaults.yaml")
8+
yaml_path = os.path.join(dir_path, "variables.yaml")
99
with open(yaml_path, "r") as file:
1010
data = yaml.safe_load(file)
1111

1212
for key, value in data.items():
13-
if value["value"] is None:
13+
if value.get("value", None) is None:
1414
continue
1515
print(f'{key}?={value["value"]}')

flow/scripts/defaults.yaml

Lines changed: 0 additions & 78 deletions
This file was deleted.

flow/scripts/density_fill.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
source $::env(SCRIPTS_DIR)/load.tcl
2+
erase_non_stage_variables final
23
load_design 5_route.odb 5_route.sdc
34

45
if {[env_var_equals USE_FILL 1]} {

flow/scripts/detail_place.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
utl::set_metrics_stage "detailedplace__{}"
22
source $::env(SCRIPTS_DIR)/load.tcl
3+
erase_non_stage_variables place
34
load_design 3_4_place_resized.odb 2_floorplan.sdc
45

56
source $::env(PLATFORM_DIR)/setRC.tcl

flow/scripts/detail_route.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ if {[expr [file exists $::env(REPORTS_DIR)/congestion.rpt] && \
77
utl::set_metrics_stage "detailedroute__{}"
88
source $::env(SCRIPTS_DIR)/load.tcl
99
load_design 5_1_grt.odb 4_cts.sdc
10+
erase_non_stage_variables route
1011
set_propagated_clock [all_clocks]
1112

1213
set additional_args ""

flow/scripts/fillcell.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
source $::env(SCRIPTS_DIR)/load.tcl
2+
erase_non_stage_variables route
23
if {[env_var_exists_and_non_empty FILL_CELLS]} {
34
load_design 5_2_route.odb 4_cts.sdc
45

flow/scripts/final_report.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
utl::set_metrics_stage "finish__{}"
22
source $::env(SCRIPTS_DIR)/load.tcl
3+
erase_non_stage_variables final
34
load_design 6_1_fill.odb 6_1_fill.sdc
45

56
set_propagated_clock [all_clocks]

0 commit comments

Comments
 (0)