orangecrab: use litesdcard
authorMatt Johnston <matt@codeconstruct.com.au>
Fri, 14 Jan 2022 00:04:18 +0000 (08:04 +0800)
committerMatt Johnston <matt@codeconstruct.com.au>
Mon, 17 Jan 2022 04:55:14 +0000 (12:55 +0800)
Currently not working (tested in Linux)

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

index ea8fa26db26a2496b89729c6fcc7afb830252247..4ef104c69757a937193f733ecaefb9f9a292b3d1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -183,6 +183,7 @@ OPENOCD_JTAG_CONFIG=openocd/olimex-arm-usb-tiny-h.cfg
 OPENOCD_DEVICE_CONFIG=openocd/LFE5U-85F.cfg
 toplevel=fpga/top-orangecrab0.2.vhdl
 litedram_target=orangecrab-85-0.2
+soc_extra_v += litesdcard/generated/lattice/litesdcard_core.v
 endif
 
 # ECP5-EVN
index c3cd33232443c3a5188132864e834e75fcd34c69..98c75c487de2c2f0f7912f13b94c841fc4f02b9a 100644 (file)
@@ -22,8 +22,8 @@ entity toplevel is
         SPI_FLASH_DEF_QUAD : boolean := true;
         LOG_LENGTH         : natural := 0;
         UART_IS_16550      : boolean  := true;
-        HAS_UART1          : boolean  := true;
-        USE_LITESDCARD     : boolean := false;
+        HAS_UART1          : boolean  := false;
+        USE_LITESDCARD     : boolean := true;
         ICACHE_NUM_LINES   : natural := 64;
         NGPIO              : natural := 0
         );
@@ -47,7 +47,7 @@ entity toplevel is
         spi_flash_wp_n   : inout std_ulogic;
         spi_flash_hold_n : inout std_ulogic;
 
-        -- SD card
+        -- SD card wires
         sdcard_data   : inout std_ulogic_vector(3 downto 0);
         sdcard_cmd    : inout std_ulogic;
         sdcard_clk    : out   std_ulogic;