always_latch.v 172 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
module test(a, b, en);
    output reg a;
    input wire b;
    input wire en;
    always @(*) begin
        if (en) begin
            a <= b;
        end
    end
endmodule