the data is input in the first posedge clock but the output should present after 2 clock cycles.
i've tried using #delay but not quite getting it.
clk=0;
forever #10 clk = ~clk;
always @ (posedge clk) begin //synchronous rst
#60 q<=d;
end
the data is input in the first posedge clock but the output should present after 2 clock cycles.
i've tried using #delay but not quite getting it.
clk=0;
forever #10 clk = ~clk;
always @ (posedge clk) begin //synchronous rst
#60 q<=d;
end