From 1103783b08a1e2dd06a6c673f6746cde9ad1c04f Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Fri, 11 Dec 2020 23:45:23 -0800 Subject: [PATCH] Return tdata when AxiStreamFrame is cast to bytes --- cocotbext/axi/axis.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cocotbext/axi/axis.py b/cocotbext/axi/axis.py index b37d072..66cee81 100644 --- a/cocotbext/axi/axis.py +++ b/cocotbext/axi/axis.py @@ -208,6 +208,9 @@ class AxiStreamFrame(object): def __iter__(self): return self.tdata.__iter__() + def __bytes__(self): + return bytes(self.tdata) + class AxiStreamSource(object):