simple regression dcache test was faulty. wishbone pipeline related
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 26 Apr 2021 20:23:39 +0000 (21:23 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 26 Apr 2021 20:23:39 +0000 (21:23 +0100)
src/soc/experiment/dcache.py

index b94a7cad1d6ee98095a1284957bbd10f5a7544d2..0bba63149b0a113d385154d8cd6a811d3abe8627 100644 (file)
@@ -1644,7 +1644,9 @@ cache_tags(r1.store_index)((i + 1) * TAG_WIDTH - 1 downto i * TAG_WIDTH) <=
         comb += self.wb_out.eq(r1.wb)
 
         # deal with litex not doing wishbone pipeline mode
-        comb += self.wb_in.stall.eq(self.wb_out.cyc & ~self.wb_in.ack)
+        # XXX in wrong way.  FIFOs are needed in the SRAM test
+        # so that stb/ack match up
+        #comb += self.wb_in.stall.eq(self.wb_out.cyc & ~self.wb_in.ack)
 
         # call sub-functions putting everything together, using shared
         # signals established above
@@ -1794,7 +1796,7 @@ def dcache_regression_sim(dut, mem):
     yield
     yield
 
-    addr = 1
+    addr = 0
     row = addr
     addr *= 8
 
@@ -1925,9 +1927,7 @@ if __name__ == '__main__':
     for i in range(memsize):
         mem.append(i)
 
-    test_dcache(mem, dcache_regression_sim, "random")
-
-    exit(0)
+    test_dcache(mem, dcache_regression_sim, "simpleregression")
 
     mem = []
     memsize = 256