From f061b25a248b809498bf540e02e0f167476d44f7 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 10 Jun 2012 12:46:24 +0200 Subject: [PATCH] bus/wishbone/Tap: remove ack feature --- migen/bus/wishbone.py | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/migen/bus/wishbone.py b/migen/bus/wishbone.py index 35a8f8a1..83b27fe3 100644 --- a/migen/bus/wishbone.py +++ b/migen/bus/wishbone.py @@ -130,16 +130,8 @@ class InterconnectShared: return self._arbiter.get_fragment() + self._decoder.get_fragment() class Tap: - def __init__(self, bus=None, handler=print): - # If bus is None, create one and act as a normal slave. - # If we pass an existing one, dump the transactions - # without interfering with the bus. - if bus is None: - self.bus = Interface() - self.ack = True - else: - self.bus = bus - self.ack = False + def __init__(self, bus, handler=print): + self.bus = bus self.handler = handler def do_simulation(self, s): @@ -155,16 +147,7 @@ class Tap: self.handler(transaction) def get_fragment(self): - if self.ack: - sync = [ - self.bus.ack.eq(0), - If(self.bus.cyc & self.bus.stb & ~self.bus.ack, - self.bus.ack.eq(1) - ) - ] - else: - sync = [] - return Fragment(sync=sync, sim=[self.do_simulation]) + return Fragment(sim=[self.do_simulation]) class Initiator: def __init__(self, generator): -- 2.30.2