3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-06-21 16:20:26 +00:00

Emit latch warning.

This commit is contained in:
nella 2026-06-17 11:27:43 +02:00
parent a46bc77eeb
commit c814ef35e3
7 changed files with 16 additions and 1 deletions

View 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