From 90fecb920c9617168e23c3f129e3bef9df855f25 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 15 Jul 2013 21:34:14 +0200 Subject: [PATCH] memtest: use actual values in TB --- milkymist/memtest/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milkymist/memtest/__init__.py b/milkymist/memtest/__init__.py index 61914b13..6cc7256d 100644 --- a/milkymist/memtest/__init__.py +++ b/milkymist/memtest/__init__.py @@ -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) -- 2.30.2