tools/litex_sim: restore functionality of '--with-sdram' option
authorGabriel L. Somlo <gsomlo@gmail.com>
Thu, 23 May 2019 12:53:26 +0000 (08:53 -0400)
committerGabriel L. Somlo <gsomlo@gmail.com>
Thu, 23 May 2019 12:56:50 +0000 (08:56 -0400)
After LiteDRAM commit #50e1d478, an additional positional argument
('databits') is required by the PhySettings() constructor.

The value used here (32) will generate a 64MByte simulated SDRAM.

litex/tools/litex_sim.py

index 126da466b91ff3be09d6552817781e448f70b70c..033a0e45568efc3cd1d48afc2c5279bad531e9a1 100755 (executable)
@@ -116,6 +116,7 @@ class SimSoC(SoCSDRAM):
             sdram_module =  MT48LC16M16(100e6, "1:1") # use 100MHz timings
             phy_settings = PhySettings(
                 memtype="SDR",
+                databits=32,
                 dfi_databits=16,
                 nphases=1,
                 rdphase=0,