yosys/tests/sim/dlatch.v

7 lines
98 B
Verilog

module dlatch( input d, en, output reg q );
always @* begin
if ( en )
q = d;
end
endmodule