1
0
mirror of synced 2026-01-18 01:12:10 +00:00
YosysHQ.yosys/tests/sim/adlatch.v
Miodrag Milanovic 271ac28b41 Added test cases
2022-02-16 13:27:59 +01:00

9 lines
128 B
Verilog

module adlatch( input d, rst, en, output reg q );
always @* begin
if (rst)
q = 0;
else if (en)
q = d;
end
endmodule