Fix exception when tready not connected

This commit is contained in:
Alex Forencich
2020-11-26 01:26:19 -08:00
parent 96feba1016
commit 2d3ad7658b

View File

@@ -541,6 +541,7 @@ class AxiStreamSink(object):
await RisingEdge(self.clock) await RisingEdge(self.clock)
if hasattr(self.bus, "tready"):
self.bus.tready <= (not self.full() and not self.pause) self.bus.tready <= (not self.full() and not self.pause)
async def _run_pause(self): async def _run_pause(self):