Skip to content

Commit fda3322

Browse files
authored
Merge pull request #3057 from Pinata-Consulting/log-cmd-consistency
scripts: use log_cmd more consistently rather than ad-hoc puts
2 parents d8a8142 + 7313629 commit fda3322

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

flow/scripts/floorplan.tcl

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ if {$methods_defined > 1} {
5656

5757
if {$use_floorplan_def} {
5858
# Initialize floorplan by reading in floorplan DEF
59-
puts "Read in Floorplan DEF to initialize floorplan: $env(FLOORPLAN_DEF)"
60-
read_def -floorplan_initialize $env(FLOORPLAN_DEF)
59+
log_cmd read_def -floorplan_initialize $env(FLOORPLAN_DEF)
6160
} elseif {$use_footprint} {
6261
# Initialize floorplan using ICeWall FOOTPRINT
6362
ICeWall load_footprint $env(FOOTPRINT)
@@ -93,18 +92,15 @@ if {$use_floorplan_def} {
9392
}
9493

9594
if { [env_var_exists_and_non_empty MAKE_TRACKS] } {
96-
puts "Reading $::env(MAKE_TRACKS)"
97-
source $::env(MAKE_TRACKS)
95+
log_cmd source $::env(MAKE_TRACKS)
9896
} elseif {[file exists $::env(PLATFORM_DIR)/make_tracks.tcl]} {
99-
puts "Reading $::env(PLATFORM_DIR)/make_tracks.tcl"
100-
source $::env(PLATFORM_DIR)/make_tracks.tcl
97+
log_cmd source $::env(PLATFORM_DIR)/make_tracks.tcl
10198
} else {
10299
make_tracks
103100
}
104101

105102
if {[env_var_exists_and_non_empty FOOTPRINT_TCL]} {
106-
puts "Reading $::env(FOOTPRINT_TCL)"
107-
source $::env(FOOTPRINT_TCL)
103+
log_cmd source $::env(FOOTPRINT_TCL)
108104
}
109105

110106
if { [env_var_equals REMOVE_ABC_BUFFERS 1] } {
@@ -193,14 +189,12 @@ if { [env_var_equals RESYNTH_AREA_RECOVER 1] } {
193189
}
194190

195191
if { [env_var_exists_and_non_empty POST_FLOORPLAN_TCL] } {
196-
puts "Reading $::env(POST_FLOORPLAN_TCL)"
197-
source $::env(POST_FLOORPLAN_TCL)
192+
log_cmd source $::env(POST_FLOORPLAN_TCL)
198193
}
199194

200195

201196
if {[env_var_exists_and_non_empty IO_CONSTRAINTS]} {
202-
puts "Reading $::env(IO_CONSTRAINTS)"
203-
source $::env(IO_CONSTRAINTS)
197+
log_cmd source $::env(IO_CONSTRAINTS)
204198
}
205199

206200
write_db $::env(RESULTS_DIR)/2_1_floorplan.odb

flow/scripts/load.tcl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@ proc load_design {design_file sdc_file} {
2828
read_sdc $::env(RESULTS_DIR)/$sdc_file
2929

3030
if [file exists $::env(PLATFORM_DIR)/derate.tcl] {
31-
puts "Reading in $::env(PLATFORM_DIR)/derate.tcl"
32-
source $::env(PLATFORM_DIR)/derate.tcl
31+
log_cmd source $::env(PLATFORM_DIR)/derate.tcl
3332
}
3433

35-
puts "Reading in $::env(PLATFORM_DIR)/setRC.tcl"
36-
source $::env(PLATFORM_DIR)/setRC.tcl
34+
log_cmd source $::env(PLATFORM_DIR)/setRC.tcl
3735

3836
if { [env_var_equals LIB_MODEL CCS] } {
3937
puts "Using CCS delay calculation"

0 commit comments

Comments
 (0)