soc/sdram: fix do_finalize
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 1 Apr 2015 20:38:04 +0000 (22:38 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 1 Apr 2015 20:38:04 +0000 (22:38 +0200)
misoclib/soc/sdram.py

index d921285a5cf29a34aae9a82cf049c1cdfc2f98ca..a878727aca58a682c24aa339c95db3f117211d90 100644 (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)