Skip to content

Commit 116bc99

Browse files
authored
Merge pull request #3313 from Pinata-Consulting/reduce-log-spam
make: silently suppress warnings in read_liberty.tcl
2 parents e68e9c7 + 232e59e commit 116bc99

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

flow/scripts/load.tcl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,8 @@ source $::env(SCRIPTS_DIR)/util.tcl
33
source $::env(SCRIPTS_DIR)/report_metrics.tcl
44

55
proc 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

flow/scripts/open.tcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
source $::env(SCRIPTS_DIR)/util.tcl
2-
# Read liberty files
2+
3+
source_env_var_if_exists PLATFORM_TCL
4+
35
source $::env(SCRIPTS_DIR)/read_liberty.tcl
46

5-
# Read def
67
if { [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] } {

flow/scripts/util.tcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)