In reply to dave_59:
what happens here if the clk period is 4ns?
Does that mean that at the 2nd posedge of the clk this always block is not triggered as the assignment to B is blocking?
always@(posedge clk)
begin
A = 1;
B = #5 A+1;
end
How about this always block at the 2nd posedge of the clock?
always@(posedge clk)
begin
A = 1;
#5 B = A+1;
end