1 2 3 4 5 6
module dlatch( input d, en, output reg q ); always @* begin if ( en ) q = d; end endmodule