Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
if rst = '1' then
state <= IDLE;
ret_ack <= '0';
- report "MEM RST";
else
ret_dat := x"XXXXXXXXXXXXXXXX";
-- Active
if wishbone_in.cyc = '1' then
- report "MEM CYC";
case state is
when IDLE =>
- report "MEM IDLE";
if wishbone_in.stb = '1' then
-- write
if wishbone_in.we = '1' then
end if;
end if;
when ACK =>
- report "MEM ACK";
ret_ack <= '0';
state <= IDLE;
end case;
#include <sys/types.h>
#include <sys/stat.h>
-#define DEBUG
+#undef DEBUG
#define ALIGN_UP(VAL, SIZE) (((VAL) + ((SIZE)-1)) & ~((SIZE)-1))