memtest: use actual values in TB
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 15 Jul 2013 19:34:14 +0000 (21:34 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 15 Jul 2013 19:34:14 +0000 (21:34 +0200)
milkymist/memtest/__init__.py

index 61914b13ea31eb8cd5e573d312d8070905ed7301..6cc7256d8592113de151eefefd154409b689fa6f 100644 (file)
@@ -39,11 +39,11 @@ class _LFSRTB(Module):
                self.comb += self.lfsr.ce.eq(1)
 
        def do_simulation(self, s):
-               print(s.rd(self.lfsr.o))
+               print("{0:032x}".format(s.rd(self.lfsr.o)))
 
 def _sim_lfsr():
        from migen.sim.generic import Simulator
-       tb = _LFSRTB(3, 4, [3, 2])
+       tb = _LFSRTB(128)
        sim = Simulator(tb)
        sim.run(20)