mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
memtest: use actual values in TB
This commit is contained in:
parent
7ce2031d07
commit
90fecb920c
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue