From: Florent Kermarrec Date: Mon, 10 Feb 2020 16:02:20 +0000 (+0100) Subject: soc/add_sdram: add sdram csr X-Git-Tag: 24jan2021_ls180~677^2~26 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=379d47a8437d7cfffe52223122c98f2b1b26d890;p=litex.git soc/add_sdram: add sdram csr --- diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index 464e3f92..d4820261 100755 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -905,6 +905,7 @@ class LiteXSoC(SoC): timing_settings = module.timing_settings, clk_freq = self.sys_clk_freq, **kwargs) + self.csr.add("sdram") # LiteDRAM port ---------------------------------------------------------------------------- port = self.sdram.crossbar.get_port() diff --git a/litex/soc/integration/soc_sdram.py b/litex/soc/integration/soc_sdram.py index e68fbd1f..e72116cd 100644 --- a/litex/soc/integration/soc_sdram.py +++ b/litex/soc/integration/soc_sdram.py @@ -18,12 +18,6 @@ __all__ = ["SoCSDRAM", "soc_sdram_args", "soc_sdram_argdict"] # SoCSDRAM ----------------------------------------------------------------------------------------- class SoCSDRAM(SoCCore): - csr_map = { - "sdram": 8, - "l2_cache": 9, - } - csr_map.update(SoCCore.csr_map) - def __init__(self, platform, clk_freq, l2_size = 8192, l2_reverse = True,