add exec state to FSM
This commit is contained in:
parent
7dec75c52e
commit
27b97dce01
4
top.vhd
4
top.vhd
@ -36,7 +36,7 @@ end entity config_top;
|
|||||||
|
|
||||||
|
|
||||||
architecture RTL of config_top is
|
architecture RTL of config_top is
|
||||||
type fsm_state_t is (IDLE, CMD, REPLY, HANG);
|
type fsm_state_t is (IDLE, CMD, EXEC, REPLY, HANG);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -187,6 +187,8 @@ begin -- architecture RTL
|
|||||||
if byte_ready_rx = '1' then
|
if byte_ready_rx = '1' then
|
||||||
-- TODO: Byte received. Do something
|
-- TODO: Byte received. Do something
|
||||||
end if;
|
end if;
|
||||||
|
when EXEC =>
|
||||||
|
null; -- TODO: handle Wishbone communication
|
||||||
when REPLY =>
|
when REPLY =>
|
||||||
-- TODO: if reply_is_error = '1' then: wait for response that
|
-- TODO: if reply_is_error = '1' then: wait for response that
|
||||||
-- indicates that the error is handled. Then switch back to command
|
-- indicates that the error is handled. Then switch back to command
|
||||||
|
Loading…
Reference in New Issue
Block a user