Commit 140a1c2 1 parent 4290209 commit 140a1c2 Copy full SHA for 140a1c2
File tree 1 file changed +9
-1
lines changed
tools/vivado_gen/templates
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ set report_file [lindex $argv 1]
18
18
# synthesis related settings
19
19
set_part {{project.part}}
20
20
21
+ # Turn inferred latch warnings into errors
22
+
21
23
# Load the sources
22
24
{% for source in project .sources %}
23
25
{% set suffix = source .path .suffix %}
@@ -56,4 +58,10 @@ report_utilization -file $report_file
56
58
{% for file in project .post_synth_tcl_files %}
57
59
source {{file.absolute().as_posix()}}
58
60
{% endfor %}
59
- write_checkpoint -force $output_checkpoint
61
+ write_checkpoint -force $output_checkpoint
62
+
63
+ # WARNING: [Synth 8-327] inferring latch for variable ....
64
+ if {[get_msg_config -count -id {Synth 8-327}] != 0} {
65
+ puts "ERROR: One or more inferred latches were found. Please check the synthesis report for details: WARNING: [Synth 8-327] inferring latch for...."
66
+ exit 1
67
+ }
You can’t perform that action at this time.
0 commit comments