From b394f2f45eec96aab73d97600cb43234aea38fa3 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 25 Mar 2016 12:26:02 +0100 Subject: [PATCH] test/mac_wishbone_tb: fix simulation --- test/mac_wishbone_tb.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/test/mac_wishbone_tb.py b/test/mac_wishbone_tb.py index f94c9a5..cad9056 100755 --- a/test/mac_wishbone_tb.py +++ b/test/mac_wishbone_tb.py @@ -60,9 +60,11 @@ class SRAMReaderDriver: yield def clear_done(self): - yield self.obj.ev.done.clear.eq(1) + yield self.obj.ev.pending.re.eq(1) + yield self.obj.ev.pending.r.eq(1) yield - yield self.obj.ev.done.clear.eq(0) + yield self.obj.ev.pending.re.eq(0) + yield self.obj.ev.pending.r.eq(0) yield @@ -75,9 +77,11 @@ class SRAMWriterDriver: yield def clear_available(self): - yield self.obj.ev.available.clear.eq(1) + yield self.obj.ev.pending.re.eq(1) + yield self.obj.ev.pending.r.eq(1) yield - yield self.obj.ev.available.clear.eq(0) + yield self.obj.ev.pending.re.eq(0) + yield self.obj.ev.pending.r.eq(0) yield @@ -103,8 +107,6 @@ def main_generator(dut): errors = 0 for i in range(2): - for i in range(20): - yield for slot in range(2): print("slot {}: ".format(slot), end="") # fill tx memory