Skip to content

Commit

Permalink
fix wrong reference to check_assign_statements
Browse files Browse the repository at this point in the history
  • Loading branch information
kareefardi committed Nov 12, 2023
1 parent 1153701 commit 000c992
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/tcl_commands/checkers.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion scripts/tcl_commands/synthesis.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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 } {
Expand Down

0 comments on commit 000c992

Please sign in to comment.