soc/add_sdram: add sdram csr

This commit is contained in:
Florent Kermarrec 2020-02-10 17:02:20 +01:00
parent 3921b6345c
commit 379d47a843
2 changed files with 1 additions and 6 deletions

View File

@ -905,6 +905,7 @@ class LiteXSoC(SoC):
timing_settings = module.timing_settings, timing_settings = module.timing_settings,
clk_freq = self.sys_clk_freq, clk_freq = self.sys_clk_freq,
**kwargs) **kwargs)
self.csr.add("sdram")
# LiteDRAM port ---------------------------------------------------------------------------- # LiteDRAM port ----------------------------------------------------------------------------
port = self.sdram.crossbar.get_port() port = self.sdram.crossbar.get_port()

View File

@ -18,12 +18,6 @@ __all__ = ["SoCSDRAM", "soc_sdram_args", "soc_sdram_argdict"]
# SoCSDRAM ----------------------------------------------------------------------------------------- # SoCSDRAM -----------------------------------------------------------------------------------------
class SoCSDRAM(SoCCore): class SoCSDRAM(SoCCore):
csr_map = {
"sdram": 8,
"l2_cache": 9,
}
csr_map.update(SoCCore.csr_map)
def __init__(self, platform, clk_freq, def __init__(self, platform, clk_freq,
l2_size = 8192, l2_size = 8192,
l2_reverse = True, l2_reverse = True,