mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-21 16:20:26 +00:00
Emit latch warning.
This commit is contained in:
parent
a46bc77eeb
commit
c814ef35e3
7 changed files with 16 additions and 1 deletions
8
tests/various/synth_latch_warning.ys
Normal file
8
tests/various/synth_latch_warning.ys
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
read_verilog <<EOT
|
||||
module top(input d, en, output reg q);
|
||||
always @* if (en) q = d;
|
||||
endmodule
|
||||
EOT
|
||||
logger -expect warning "is a latch of type" 1
|
||||
synth_ice40
|
||||
logger -check-expected
|
||||
Loading…
Add table
Add a link
Reference in a new issue