3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-06-29 12:08:51 +00:00

Fix (async latch).

This commit is contained in:
nella 2026-06-24 13:01:52 +02:00
parent a800a5b5cb
commit 6675c45e29

View file

@ -1,7 +1,7 @@
design -reset
read_verilog <<EOT
module top(input g, rn, d, output reg q);
always @* if (~rn) q <= 0; else if (g) q <= d;
module top(input g, d, output reg q);
always @* if (g) q = d;
endmodule
EOT
hierarchy -top top