actorlib/fifo: do not duplicate safe write logic

This commit is contained in:
Sebastien Bourdeauducq 2013-09-04 17:33:53 +02:00
parent 523565be63
commit 91422788ef

View 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)