From: Florent Kermarrec Date: Thu, 19 Mar 2015 15:08:03 +0000 (+0100) Subject: sdram: raise NotImplementedError if Minicon is used others memories than SDR (not... X-Git-Tag: 24jan2021_ls180~2472 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82fe83a1c4940e4664d839d682cc31b0c6258bca;p=litex.git sdram: raise NotImplementedError if Minicon is used others memories than SDR (not functional for now) --- diff --git a/misoclib/soc/sdram.py b/misoclib/soc/sdram.py index 7e47cf1d..237cad22 100644 --- a/misoclib/soc/sdram.py +++ b/misoclib/soc/sdram.py @@ -36,6 +36,8 @@ class SDRAMSoC(SoC): if self._sdram_phy_registered: raise FinalizeError self._sdram_phy_registered = True + if self.ramcon_type == "minicon" and phy.settings.memtype != "SDR": + raise NotImplementedError("Minicon only supports SDR memtype for now (" + phy.settings.memtype + ")") # Core self.submodules.sdram = SDRAMCore(phy, self.ramcon_type, sdram_geom, sdram_timing)