FPGA: prevent erasure of first ROM byte on reconfiguration

This commit is contained in:
Maximilian Rehkopf 2011-10-13 11:17:19 +02:00
parent cdf4342edd
commit 1887036e86

View File

@ -59,6 +59,7 @@ reg [10:0] cyclecnt;
initial cyclecnt = 11'd0;
reg SD_DMA_SRAM_WEr;
initial SD_DMA_SRAM_WEr = 1'b1;
assign SD_DMA_SRAM_WE = (cyclecnt < 1025 && SD_DMA_STATUSr) ? SD_DMA_SRAM_WEr : 1'b1;
reg SD_DMA_NEXTADDRr;