Update SD version and start working on DMA
This commit is contained in:
@@ -9,6 +9,7 @@ INCLUDE=include/sdram_controller_define.vh
|
||||
TB_NAME=sim_top
|
||||
|
||||
COPY_FILES=addr_map.mem init_hex.mem
|
||||
SD_IMAGE=sd_image.bin
|
||||
|
||||
FLAGS=-DSIM -DRTL_SIM -DVERILATOR -DSDIO_AXI
|
||||
|
||||
@@ -17,9 +18,12 @@ all: waves
|
||||
waves: $(TB_NAME)
|
||||
./$(TB_NAME) -fst
|
||||
|
||||
$(TB_NAME): $(SUPER6502_FPGA_SOURCES) $(SIM_SOURCES) $(COPY_FILES)
|
||||
$(TB_NAME): $(SUPER6502_FPGA_SOURCES) $(SIM_SOURCES) $(COPY_FILES) $(SD_IMAGE)
|
||||
iverilog -g2005-sv $(FLAGS) -s $@ -o $@ $(INCLUDE) $(SUPER6502_FPGA_SOURCES) $(SIM_SOURCES) -I ../../
|
||||
|
||||
$(SD_IMAGE):
|
||||
dd if=/dev/urandom bs=1 count=65536 of=$(SD_IMAGE)
|
||||
|
||||
# I feel like this should also realize that the outside files are newer...
|
||||
.PHONY: $(COPY_FILES)
|
||||
$(COPY_FILES): ../../$@
|
||||
|
||||
@@ -180,7 +180,8 @@ IOBUF dat_buf (
|
||||
);
|
||||
|
||||
mdl_sdio #(
|
||||
.LGMEMSZ(16)
|
||||
.LGMEMSZ(16),
|
||||
.MEMFILE("sd_image.bin")
|
||||
) u_sd_card_emu (
|
||||
.sd_clk(o_sd_clk),
|
||||
.sd_cmd(w_sd_cmd),
|
||||
|
||||
Reference in New Issue
Block a user