N
Neo
Guest
I have code something like this -
always @(posedge pclk or negedge presetn)
if (!presetn) begin
state <= IDLE;
r_ready <= 1'b0;
end
else begin
case(state)
IDLE: begin
r_ready <= 1'b0;
if(t_ready)
state <= START;
end
START: begin
-----
-----
endcase
end
The weird thing is that state is changing to start in the same clock
as t_ready is asserted.
Is this a possible behavior from the code above?
Thanks,
Neo
always @(posedge pclk or negedge presetn)
if (!presetn) begin
state <= IDLE;
r_ready <= 1'b0;
end
else begin
case(state)
IDLE: begin
r_ready <= 1'b0;
if(t_ready)
state <= START;
end
START: begin
-----
-----
endcase
end
The weird thing is that state is changing to start in the same clock
as t_ready is asserted.
Is this a possible behavior from the code above?
Thanks,
Neo