actorlib/fifo: do not duplicate safe write logic
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 4 Sep 2013 15:33:53 +0000 (17:33 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 4 Sep 2013 15:33:53 +0000 (17:33 +0200)
migen/actorlib/fifo.py

index 817941c778f73e574433d6ea22d762bc95f0884a..78be8200a51ffe5b95397cecf42223dbc807247b 100644 (file)
@@ -14,7 +14,7 @@ class _FIFOActor(Module):
 
                self.comb += [
                        self.sink.ack.eq(self.fifo.writable),
-                       self.fifo.we.eq(self.sink.stb & self.sink.ack),
+                       self.fifo.we.eq(self.sink.stb),
                        self.fifo.din.eq(self.sink.payload),
 
                        self.source.stb.eq(self.fifo.readable),
@@ -22,7 +22,6 @@ class _FIFOActor(Module):
                        self.fifo.re.eq(self.source.ack)
                ]
 
-
 class SyncFIFO(_FIFOActor):
        def __init__(self, layout, depth):
                _FIFOActor.__init__(self, fifo.SyncFIFO, layout, depth)