diff --git a/cocotbext/axi/axi_master.py b/cocotbext/axi/axi_master.py index 3afa0b2..8227b37 100644 --- a/cocotbext/axi/axi_master.py +++ b/cocotbext/axi/axi_master.py @@ -415,8 +415,8 @@ class AxiMasterWrite(Reset): if isinstance(wuser, int): w.wuser = wuser else: - if wuser: - w.wuser = wuser.pop(0) + if wuser and k < len(wuser): + w.wuser = wuser[k] else: w.wuser = 0