Skip to content
Snippets Groups Projects
Commit 686f37aa authored by Piotr Miedzik's avatar Piotr Miedzik
Browse files

wb_slave_adapter: fixed FSM

parent 97bc7197
Branches
Tags
No related merge requests found
...@@ -170,11 +170,11 @@ begin -- rtl ...@@ -170,11 +170,11 @@ begin -- rtl
else else
case fsm_state is case fsm_state is
when IDLE => when IDLE =>
if slave_in.stb ='1' and master_in.stall='0' and master_in.ack='0' then if slave_in.stb ='1' and slave_in.cyc = '1' and master_in.stall='0' and master_in.ack='0' then
fsm_state <= WAIT4ACK; fsm_state <= WAIT4ACK;
end if; end if;
when WAIT4ACK => when WAIT4ACK =>
if master_in.ack='1' then if (slave_in.stb = '0' and slave_in.cyc = '0') or master_in.ack='1' then
fsm_state <= IDLE; fsm_state <= IDLE;
end if; end if;
end case; end case;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment