Skip to content

Commit 26998c0

Browse files
authored
Merge pull request #2041 from Pinata-Consulting/yosys-log-cmd
synth: use log_cmd like elsewhere to log synth command args
2 parents 71a5895 + 67fc611 commit 26998c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flow/scripts/synth_preamble.tcl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
yosys -import
22

3+
source $::env(SCRIPTS_DIR)/util.tcl
4+
35
if {[info exist ::env(CACHED_NETLIST)]} {
46
exec cp $::env(CACHED_NETLIST) $::env(RESULTS_DIR)/1_1_yosys.v
57
if {[info exist ::env(CACHED_REPORTS)]} {
@@ -108,7 +110,7 @@ close $constr
108110

109111
proc synthesize_check {synth_args} {
110112
# Generic synthesis
111-
synth -top $::env(DESIGN_NAME) -run :fine {*}$synth_args
113+
log_cmd synth -top $::env(DESIGN_NAME) -run :fine {*}$synth_args
112114
json -o $::env(RESULTS_DIR)/mem.json
113115
# Run report and check here so as to fail early if this synthesis run is doomed
114116
exec -- python3 $::env(SCRIPTS_DIR)/mem_dump.py --max-bits $::env(SYNTH_MEMORY_MAX_BITS) $::env(RESULTS_DIR)/mem.json

0 commit comments

Comments
 (0)