P
Paul
Guest
Hi
/*
always @(posedge CLK) begin
if (ACK0) ex<=1; else ex<=0; // always 1 clock later !!!!!
end
*/
always @(ACK0) begin
if (ACK0) ex<=1; else ex<=0; // syncronous !!!!!
end
I've noticed in simulation that to have "ex" and "ACK0" syncronized,
one can not use CLK as its sensitive list. Else it would happen "ex"
is always one clock late than ACK0.
I wonder how far back this behaviour was decreed? No new beginner
could forsee such behavior.
/*
always @(posedge CLK) begin
if (ACK0) ex<=1; else ex<=0; // always 1 clock later !!!!!
end
*/
always @(ACK0) begin
if (ACK0) ex<=1; else ex<=0; // syncronous !!!!!
end
I've noticed in simulation that to have "ex" and "ACK0" syncronized,
one can not use CLK as its sensitive list. Else it would happen "ex"
is always one clock late than ACK0.
I wonder how far back this behaviour was decreed? No new beginner
could forsee such behavior.