soc_sdram: update with litedram
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 9 Sep 2018 00:10:50 +0000 (02:10 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 9 Sep 2018 00:13:00 +0000 (02:13 +0200)
litex/soc/integration/soc_sdram.py

index 238ede4c6bfc17ab771a2ea0b6982666edc4a303..30548cef0de3a48001870adedba860ad67df2562 100644 (file)
@@ -15,8 +15,12 @@ __all__ = ["SoCSDRAM", "soc_sdram_args", "soc_sdram_argdict"]
 
 class ControllerInjector(Module, AutoCSR):
     def __init__(self, phy, geom_settings, timing_settings, **kwargs):
-        self.submodules.dfii = dfii.DFIInjector(geom_settings.addressbits, geom_settings.bankbits,
-                phy.settings.dfi_databits, phy.settings.nphases)
+        self.submodules.dfii = dfii.DFIInjector(
+            geom_settings.addressbits,
+            geom_settings.bankbits,
+            phy.settings.nranks,
+            phy.settings.dfi_databits,
+            phy.settings.nphases)
         self.comb += self.dfii.master.connect(phy.dfi)
 
         self.submodules.controller = controller = core.LiteDRAMController(