testing 64-bit wishbone bus after 32-bit *still* fails ECP5 memtest *sigh*
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 21 Aug 2020 21:05:12 +0000 (22:05 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 21 Aug 2020 21:05:17 +0000 (22:05 +0100)
src/soc/litex/florent/sim.py
src/soc/simple/issuer_verilog.py

index e2d516bbc13b182dbc2814ce10ec214a9490111d..f8581f62097371490b141613a1ba941e77f36f55 100755 (executable)
@@ -37,8 +37,8 @@ class LibreSoCSim(SoCSDRAM):
         platform     = Platform()
         sys_clk_freq = int(100e6)
 
-        cpu_data_width = 32
-        #cpu_data_width = 64
+        #cpu_data_width = 32
+        cpu_data_width = 64
 
         if cpu_data_width == 32:
             variant = "standard32"
@@ -53,7 +53,7 @@ class LibreSoCSim(SoCSDRAM):
             #bus_data_width           = 64,
             cpu_variant              = variant,
             csr_data_width            = 32,
-            l2_cache_size             = 0,
+            l2_size             = 0,
             uart_name                = "sim",
             with_sdram               = with_sdram,
             sdram_module          = sdram_module,
@@ -210,9 +210,9 @@ class LibreSoCSim(SoCSDRAM):
         )
 
         # limit range of pc for debug reporting
-        #self.comb += active_dbg.eq((0x5108 <= pc) & (pc <= 0x5234))
+        self.comb += active_dbg.eq((0x5108 <= pc) & (pc <= 0x5234))
         #self.comb += active_dbg.eq((0x0 < pc) & (pc < 0x58))
-        self.comb += active_dbg.eq(1)
+        #self.comb += active_dbg.eq(1)
 
         # get the MSR
         self.sync += If(active_dbg & (uptime[0:cyclewid] == 28),
index f8f52d76949f92f473747f4cb8d8961327517677..46d36e99a581d462628083c288fb480e5c46365c 100644 (file)
@@ -26,7 +26,7 @@ if __name__ == '__main__':
                          # set to 32 for instruction-memory width=32
                          imem_reg_wid=64,
                          # set to 32 to make data wishbone bus 32-bit
-                         wb_data_wid=32,
+                         #wb_data_wid=32,
                          units=units)
     dut = TestIssuer(pspec)