From 000c992a07a3b45db65db2e6559125fd94dd77df Mon Sep 17 00:00:00 2001 From: kareefardi Date: Sun, 12 Nov 2023 21:08:27 +0200 Subject: [PATCH] fix wrong reference to check_assign_statements --- scripts/tcl_commands/checkers.tcl | 4 ++-- scripts/tcl_commands/synthesis.tcl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/tcl_commands/checkers.tcl b/scripts/tcl_commands/checkers.tcl index f8b368d74..234a6fc4c 100755 --- a/scripts/tcl_commands/checkers.tcl +++ b/scripts/tcl_commands/checkers.tcl @@ -72,8 +72,8 @@ proc run_synthesis_checkers {log report} { check_synth_misc $report } -proc check_assign_statements {args} { - set checker [count_matches assign $::env(synthesis_results).v] +proc check_assign_statements {netlist} { + set checker [count_matches assign $netlist] if { $checker != 0 } { puts_err "There are assign statements in the netlist." diff --git a/scripts/tcl_commands/synthesis.tcl b/scripts/tcl_commands/synthesis.tcl index 257e4b6d7..bb0eae4df 100755 --- a/scripts/tcl_commands/synthesis.tcl +++ b/scripts/tcl_commands/synthesis.tcl @@ -132,7 +132,7 @@ proc run_synthesis {args} { exec echo "[TIMER::get_runtime]" | python3 $::env(SCRIPTS_DIR)/write_runtime.py "synthesis - yosys" if { $::env(QUIT_ON_ASSIGN_STATEMENTS) == 1 } { - check_assign_statements + check_assign_statements $::env(CURRENT_NETLIST) } if { $::env(QUIT_ON_UNMAPPED_CELLS) == 1 } {