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:
parent
53d3a0a9c2
commit
07d2483481
|
@ -329,8 +329,9 @@ class LiteDRAMCore(SoCSDRAM):
|
||||||
|
|
||||||
# SoCSDRAM ---------------------------------------------------------------------------------
|
# SoCSDRAM ---------------------------------------------------------------------------------
|
||||||
SoCSDRAM.__init__(self, platform, sys_clk_freq,
|
SoCSDRAM.__init__(self, platform, sys_clk_freq,
|
||||||
cpu_type = cpu_type,
|
cpu_type = cpu_type,
|
||||||
csr_alignment = csr_align,
|
csr_alignment = csr_align,
|
||||||
|
max_sdram_size = 0x01000000, # Only expose 16MB to the CPU, enough for Init/Calib.
|
||||||
**kwargs)
|
**kwargs)
|
||||||
|
|
||||||
# CRG --------------------------------------------------------------------------------------
|
# CRG --------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue