orangecrab: Fix sdcard wishbone addressing
authorMatt Johnston <matt@codeconstruct.com.au>
Fri, 19 Nov 2021 05:13:15 +0000 (13:13 +0800)
committerMatt Johnston <matt@codeconstruct.com.au>
Mon, 17 Jan 2022 04:55:14 +0000 (12:55 +0800)
Orangecrab missed out on:

Make wishbone addresses be in units of doublewords or words
Author: Paul Mackerras <paulus@ozlabs.org>
Date:   Wed Sep 15 18:18:09 2021 +1000

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
fpga/top-orangecrab0.2.vhdl

index 98c75c487de2c2f0f7912f13b94c841fc4f02b9a..f4097db23a309dbca7de0c2c03ae224a6dc8d0a1 100644 (file)
@@ -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;