From 27b97dce010233393559c4f6c3a209994321e206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Thu, 23 Nov 2017 00:33:15 +0100 Subject: [PATCH] add exec state to FSM --- top.vhd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/top.vhd b/top.vhd index 1d0ac76..a7160f3 100644 --- a/top.vhd +++ b/top.vhd @@ -36,7 +36,7 @@ end entity config_top; 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 -- TODO: Byte received. Do something end if; + when EXEC => + null; -- TODO: handle Wishbone communication when REPLY => -- TODO: if reply_is_error = '1' then: wait for response that -- indicates that the error is handled. Then switch back to command