mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-29 12:08:51 +00:00
Fix (async latch).
This commit is contained in:
parent
a800a5b5cb
commit
6675c45e29
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue