From: Sebastien Bourdeauducq Date: Wed, 4 Sep 2013 15:33:53 +0000 (+0200) Subject: actorlib/fifo: do not duplicate safe write logic X-Git-Tag: 24jan2021_ls180~2099^2~462 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=91422788efa153419e62bc47f5daa39478ee4269;p=litex.git actorlib/fifo: do not duplicate safe write logic --- diff --git a/migen/actorlib/fifo.py b/migen/actorlib/fifo.py index 817941c7..78be8200 100644 --- a/migen/actorlib/fifo.py +++ b/migen/actorlib/fifo.py @@ -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)