P
paz
Guest
I have this code:
generate
for (i=0; i< DATA_WIDTH; i=i+1)
begin
always @(d)
begin
$display("loop of bit %d with value %b->%b of sync %m -at time
%t ,last time change at %t",i,d_delay1,d,$time,t_prev);
spike_time = $time - t_prev;
if (SPIKE_MON_EN == 1 && start_monitor == 1 && en == 1 &&
spike_time < `MIN_SPIKE_TIME)
begin
#1 if (rst_b)
$display("SYNC SPIKE MONITOR ERROR: at time %t, in
%m.d[%d], spike = %d ps", $time, i, spike_time);
end
t_prev = $time;
end
end
endgenerate
I'm getting this line in my log:
loop of bit 130 with value 0->0 of sync testbench.genblk1[130]
-at time 669.300ns ,last time change at 191.770ns
How can it be? as you can see the value of the bit didn't change.
The result is that when the value is changing I'm getting the error
message.
I have checked the fsdb dump, and couldn't see any spikes there.
any idea?
generate
for (i=0; i< DATA_WIDTH; i=i+1)
begin
always @(d)
begin
$display("loop of bit %d with value %b->%b of sync %m -at time
%t ,last time change at %t",i,d_delay1,d,$time,t_prev);
spike_time = $time - t_prev;
if (SPIKE_MON_EN == 1 && start_monitor == 1 && en == 1 &&
spike_time < `MIN_SPIKE_TIME)
begin
#1 if (rst_b)
$display("SYNC SPIKE MONITOR ERROR: at time %t, in
%m.d[%d], spike = %d ps", $time, i, spike_time);
end
t_prev = $time;
end
end
endgenerate
I'm getting this line in my log:
loop of bit 130 with value 0->0 of sync testbench.genblk1[130]
-at time 669.300ns ,last time change at 191.770ns
How can it be? as you can see the value of the bit didn't change.
The result is that when the value is changing I'm getting the error
message.
I have checked the fsdb dump, and couldn't see any spikes there.
any idea?