From 049f0549d83204f8aba9cdde6aebae3ff27e6c49 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Fri, 19 Nov 2021 13:13:15 +0800 Subject: [PATCH] orangecrab: Fix sdcard wishbone addressing Orangecrab missed out on: Make wishbone addresses be in units of doublewords or words Author: Paul Mackerras Date: Wed Sep 15 18:18:09 2021 +1000 Signed-off-by: Matt Johnston --- fpga/top-orangecrab0.2.vhdl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpga/top-orangecrab0.2.vhdl b/fpga/top-orangecrab0.2.vhdl index 98c75c4..f4097db 100644 --- a/fpga/top-orangecrab0.2.vhdl +++ b/fpga/top-orangecrab0.2.vhdl @@ -463,7 +463,7 @@ begin -- Gate cyc with chip select from SoC wb_sdcard_cyc <= wb_ext_io_in.cyc and wb_ext_is_sdcard; - wb_sdcard_adr <= x"0000" & wb_ext_io_in.adr(15 downto 2); + wb_sdcard_adr <= x"0000" & wb_ext_io_in.adr(13 downto 0); wb_sdcard_out.stall <= not wb_sdcard_out.ack; -- 2.30.2