yosys/tests/sim/adlatch.v

9 lines
128 B
Verilog
Raw Normal View History

2022-02-15 02:35:53 -06:00
module adlatch( input d, rst, en, output reg q );
always @* begin
if (rst)
q = 0;
else if (en)
q = d;
end
endmodule