tb/asmicon/asmicon_wb: more complete testing by default
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 26 Nov 2012 17:19:41 +0000 (18:19 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 26 Nov 2012 17:19:41 +0000 (18:19 +0100)
tb/asmicon/asmicon_wb.py

index 78aaddf6ca70085cab70a568a3f4a7cab39e1567..28f6dc286d2a738c867c2673a7a4cbacc26e71d7 100644 (file)
@@ -10,18 +10,18 @@ from common import sdram_phy, sdram_geom, sdram_timing, DFILogger
 l2_size = 8192 # in bytes
 
 def my_generator():
-       #for x in range(20):
-               #t = TWrite(x, x)
-               #yield t
-               #print(str(t) + " delay=" + str(t.latency))
        for x in range(20):
-               t = TRead(4194304//4 + x)
+               t = TWrite(x, x)
+               yield t
+               print(str(t) + " delay=" + str(t.latency))
+       for x in range(20):
+               t = TRead(x)
+               yield t
+               print(str(t) + " delay=" + str(t.latency))
+       for x in range(20):
+               t = TRead(x+l2_size//4)
                yield t
                print(str(t) + " delay=" + str(t.latency))
-       #for x in range(20):
-               #t = TRead(x+l2_size//4)
-               #yield t
-               #print(str(t) + " delay=" + str(t.latency))
 
 def main():
        controller = ASMIcon(sdram_phy, sdram_geom, sdram_timing)