sdram: raise NotImplementedError if Minicon is used others memories than SDR (not functional for now)

This commit is contained in:
Florent Kermarrec 2015-03-19 16:08:03 +01:00
parent 9f2e5cd7b6
commit 82fe83a1c4
1 changed files with 2 additions and 0 deletions

View 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)