File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,18 @@ source $::env(SCRIPTS_DIR)/read_liberty.tcl
55# Read def
66if {[env_var_exists_and_non_empty DEF_FILE]} {
77 # Read lef
8- read_lef $::env(TECH_LEF)
9- read_lef $::env(SC_LEF)
8+ log_cmd read_lef $::env(TECH_LEF)
9+ log_cmd read_lef $::env(SC_LEF)
1010 if {[env_var_exists_and_non_empty ADDITIONAL_LEFS]} {
1111 foreach lef $::env(ADDITIONAL_LEFS) {
12- read_lef $lef
12+ log_cmd read_lef $lef
1313 }
1414 }
1515 set input_file $::env(DEF_FILE)
16- read_def $input_file
16+ log_cmd read_def $input_file
1717} else {
1818 set input_file $::env(ODB_FILE)
19- read_db $input_file
19+ log_cmd read_db $input_file
2020}
2121
2222proc read_timing {input_file} {
@@ -27,7 +27,7 @@ proc read_timing {input_file} {
2727 if {$sdc_file == " " } {
2828 set sdc_file $::env(SDC_FILE)
2929 }
30- read_sdc $sdc_file
30+ log_cmd read_sdc $sdc_file
3131 if [file exists $::env(PLATFORM_DIR) /derate.tcl] {
3232 source $::env(PLATFORM_DIR) /derate.tcl
3333 }
Original file line number Diff line number Diff line change 11proc log_cmd {cmd args} {
22 # log the command, escape arguments with spaces
3- puts " $cmd [ join [lmap arg $args {expr {[string match {* *} $arg ] ? " \" $arg \" " : $arg }}] " " ]"
3+ puts -nonewline " $cmd [ join [lmap arg $args {expr {[string match {* *} $arg ] ? " \" $arg \" " : " $arg " }}] " " ]"
4+ set start [clock seconds]
45 $cmd {*}$args
6+ set time [expr {[clock seconds] - $start }]
7+ if {$time >= 5} {
8+ puts -nonewline " ($time seconds)"
9+ }
10+ puts " "
511}
612
713proc fast_route {} {
You can’t perform that action at this time.
0 commit comments