diff --git a/cocotbext/eth/gmii.py b/cocotbext/eth/gmii.py index d3dab4a..f7075a8 100644 --- a/cocotbext/eth/gmii.py +++ b/cocotbext/eth/gmii.py @@ -55,21 +55,23 @@ class GmiiFrame: else: self.data = bytearray(data) self.error = error + + if tx_complete is not None: self.tx_complete = tx_complete @classmethod - def from_payload(cls, payload, min_len=60): + def from_payload(cls, payload, min_len=60, tx_complete=None): payload = bytearray(payload) if len(payload) < min_len: payload.extend(bytearray(min_len-len(payload))) payload.extend(struct.pack('