Skip to content

Commit

Permalink
Merge pull request The-OpenROAD-Project#2041 from Pinata-Consulting/y…
Browse files Browse the repository at this point in the history
…osys-log-cmd

synth: use log_cmd like elsewhere to log synth command args
  • Loading branch information
maliberty authored Jun 1, 2024
2 parents 71a5895 + 67fc611 commit 26998c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flow/scripts/synth_preamble.tcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
yosys -import

source $::env(SCRIPTS_DIR)/util.tcl

if {[info exist ::env(CACHED_NETLIST)]} {
exec cp $::env(CACHED_NETLIST) $::env(RESULTS_DIR)/1_1_yosys.v
if {[info exist ::env(CACHED_REPORTS)]} {
Expand Down Expand Up @@ -108,7 +110,7 @@ close $constr

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

0 comments on commit 26998c0

Please sign in to comment.