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 11# To remove [WARNING STA-1212] from the logs for ASAP7.
22# /OpenROAD-flow-scripts/flow/platforms/asap7/lib/asap7sc7p5t_SIMPLE_RVT_TT_nldm_211120.lib.gz line 13178, timing group from output port.
33# Added following suppress_message
4- log_cmd suppress_message STA 1212
4+ suppress_message STA 1212
Original file line number Diff line number Diff line change @@ -3,13 +3,8 @@ source $::env(SCRIPTS_DIR)/util.tcl
33source $::env(SCRIPTS_DIR) /report_metrics.tcl
44
55proc load_design { design_file sdc_file } {
6- # Source platform-related Tcl command (initially for suppressing Liberty
7- # warnings
8- if { [env_var_exists_and_non_empty PLATFORM_TCL] } {
9- log_cmd source $::env(PLATFORM_TCL)
10- }
6+ source_env_var_if_exists PLATFORM_TCL
117
12- # Read liberty files
138 source $::env(SCRIPTS_DIR) /read_liberty.tcl
149
1510 # 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 @@ -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