Skip to content

Commit 232e59e

Browse files
committed
make: silently suppress warnings in read_liberty.tcl, review feedback
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent e7486ae commit 232e59e

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

flow/scripts/load.tcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +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-
# 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

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/read_liberty.tcl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
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
82
if { [env_var_exists_and_non_empty CORNERS] } {
93
# corners

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)