soc/sdram: fix do_finalize

This commit is contained in:
Florent Kermarrec 2015-04-01 22:38:04 +02:00
parent 369086a178
commit 2d23ab7a85
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class SDRAMSoC(SoC):
raise NotImplementedError("Unsupported SDRAM width of {} > 32".format(sdram_width))
def do_finalize(self):
if not self.integrated_ram_size:
if not self.integrated_main_ram_size:
if not self._sdram_phy_registered:
raise FinalizeError("Need to call SDRAMSoC.register_sdram_phy()")
SoC.do_finalize(self)