sdram: raise NotImplementedError if Minicon is used others memories than SDR (not...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 19 Mar 2015 15:08:03 +0000 (16:08 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 19 Mar 2015 15:08:03 +0000 (16:08 +0100)
misoclib/soc/sdram.py

index 7e47cf1d5018fe2e949e87fb384510f734f1533f..237cad227b55c4e641c85c53acd27a5421129d0d 100644 (file)
@@ -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)