litedram_gen: Limit SDRAM size exposed to the CPU to 16MB.

This is enough for the Initialization/Calibration and fixes the mapping issues
with large SDRAMs.
This commit is contained in:
Florent Kermarrec 2020-02-20 09:29:38 +01:00
parent 53d3a0a9c2
commit 07d2483481
1 changed files with 3 additions and 2 deletions

View File

@ -329,8 +329,9 @@ class LiteDRAMCore(SoCSDRAM):
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM.__init__(self, platform, sys_clk_freq,
cpu_type = cpu_type,
csr_alignment = csr_align,
cpu_type = cpu_type,
csr_alignment = csr_align,
max_sdram_size = 0x01000000, # Only expose 16MB to the CPU, enough for Init/Calib.
**kwargs)
# CRG --------------------------------------------------------------------------------------