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,7 +541,8 @@ class AxiStreamSink(object):
await RisingEdge(self.clock) await RisingEdge(self.clock)
self.bus.tready <= (not self.full() and not self.pause) if hasattr(self.bus, "tready"):
self.bus.tready <= (not self.full() and not self.pause)
async def _run_pause(self): async def _run_pause(self):
for val in self._pause_generator: for val in self._pause_generator: