sdram: raise NotImplementedError if Minicon is used others memories than SDR (not functional for now)
This commit is contained in:
parent
9f2e5cd7b6
commit
82fe83a1c4
|
@ -36,6 +36,8 @@ class SDRAMSoC(SoC):
|
||||||
if self._sdram_phy_registered:
|
if self._sdram_phy_registered:
|
||||||
raise FinalizeError
|
raise FinalizeError
|
||||||
self._sdram_phy_registered = True
|
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
|
# Core
|
||||||
self.submodules.sdram = SDRAMCore(phy, self.ramcon_type, sdram_geom, sdram_timing)
|
self.submodules.sdram = SDRAMCore(phy, self.ramcon_type, sdram_geom, sdram_timing)
|
||||||
|
|
Loading…
Reference in New Issue