From 82fe83a1c4940e4664d839d682cc31b0c6258bca Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 19 Mar 2015 16:08:03 +0100 Subject: [PATCH] sdram: raise NotImplementedError if Minicon is used others memories than SDR (not functional for now) --- misoclib/soc/sdram.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.30.2