From 2d3ad7658bbad3de576a7fe06b71ea48133b6a6c Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Thu, 26 Nov 2020 01:26:19 -0800 Subject: [PATCH] Fix exception when tready not connected --- cocotbext/axi/axis.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cocotbext/axi/axis.py b/cocotbext/axi/axis.py index 61a9f69..5115c5e 100644 --- a/cocotbext/axi/axis.py +++ b/cocotbext/axi/axis.py @@ -541,7 +541,8 @@ class AxiStreamSink(object): 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): for val in self._pause_generator: