yann_sun
Member level 1
Hi, all
My question is why neg_A and neg_B are unequal.
To be specific, neg_A derives from the last negative edge of A, however, neg_B is the present negative edge of B.
Stimulus A and B are the same.
Here is the code
always @(A) begin
if(A) pos_A=$realtime;
else neg_A=$realtime;
end
always @(negedge B) begin
neg_B=$realtime;
$display("%f",neg_A);
$display("%f",neg_B);
end
My question is why neg_A and neg_B are unequal.
To be specific, neg_A derives from the last negative edge of A, however, neg_B is the present negative edge of B.
Stimulus A and B are the same.
Here is the code
always @(A) begin
if(A) pos_A=$realtime;
else neg_A=$realtime;
end
always @(negedge B) begin
neg_B=$realtime;
$display("%f",neg_A);
$display("%f",neg_B);
end