yosys/tests/sim/dlatch.v

7 lines
98 B
Verilog
Raw Permalink Normal View History

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