I have a flip-flop with an asynchronous reset and an enable. Here is my code:
module DFF_aSR(in, enable, clock, reset, out);
input in, enable, clock, reset;
output out;
reg out;
always @ (posedge clock or posedge reset) begin
if (reset) begin
out <= 1'b0;
end
else if (enable) begin
out <= in;
end
end
endmodule
But here is my resulting waveform, which shows that the relatch is not happening after the reset, why is this so?