boards/targets/sim: desactivate refresh for simulation
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 20 Jun 2016 14:00:19 +0000 (16:00 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 20 Jun 2016 14:00:19 +0000 (16:00 +0200)
litex/boards/targets/sim.py

index c04e883a2a79da88a7ebdc9a4e5c2865a0f5810c..9c892911c614225ebb95f8e0cf6d58ba64b30946 100755 (executable)
@@ -15,6 +15,7 @@ from litex.soc.integration.soc_core import mem_decoder
 from litedram.common import PhySettings
 from litedram.modules import IS42S16160
 from litedram.phy.model import SDRAMPHYModel
+from litedram.core.controller import ControllerSettings
 
 from liteeth.phy.model import LiteEthPHYModel
 from liteeth.core.mac import LiteEthMAC
@@ -49,7 +50,8 @@ class BaseSoC(SoCSDRAM):
             self.submodules.sdrphy = SDRAMPHYModel(sdram_module, phy_settings)
             self.register_sdram(self.sdrphy,
                                 sdram_module.geom_settings,
-                                sdram_module.timing_settings)
+                                sdram_module.timing_settings,
+                                ControllerSettings(with_refresh=False))
             # reduce memtest size to speed up simulation
             self.add_constant("MEMTEST_DATA_SIZE", 8*1024)
             self.add_constant("MEMTEST_ADDR_SIZE", 8*1024)