File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed
Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ source $::env(SCRIPTS_DIR)/util.tcl
33source $::env(SCRIPTS_DIR) /report_metrics.tcl
44
55proc load_design { design_file sdc_file } {
6- # Read liberty files
6+ source_env_var_if_exists PLATFORM_TCL
7+
78 source $::env(SCRIPTS_DIR) /read_liberty.tcl
89
910 # Read design files
Original file line number Diff line number Diff line change 11source $::env(SCRIPTS_DIR) /util.tcl
2- # Read liberty files
2+
3+ source_env_var_if_exists PLATFORM_TCL
4+
35source $::env(SCRIPTS_DIR) /read_liberty.tcl
46
5- # Read def
67if { [env_var_exists_and_non_empty DEF_FILE] } {
7- # Read lef
88 log_cmd read_lef $::env(TECH_LEF)
99 log_cmd read_lef $::env(SC_LEF)
1010 if { [env_var_exists_and_non_empty ADDITIONAL_LEFS] } {
Original file line number Diff line number Diff line change 1- # Source platform-related Tcl command (initially for suppressing Liberty
2- # warnings
3- if { [env_var_exists_and_non_empty PLATFORM_TCL] } {
4- source $::env(PLATFORM_TCL)
5- }
6-
71# Read Liberty
82if { [env_var_exists_and_non_empty CORNERS] } {
93 # corners
Original file line number Diff line number Diff line change @@ -205,3 +205,9 @@ proc place_density_with_lb_addon { } {
205205 }
206206 return $place_density
207207}
208+
209+ proc source_env_var_if_exists { env_var } {
210+ if { [env_var_exists_and_non_empty $env_var ] } {
211+ source $::env($env_var)
212+ }
213+ }
You can’t perform that action at this time.
0 commit comments