Transmit data without using pop

This commit is contained in:
Alex Forencich
2021-04-12 13:53:28 -07:00
parent a767e00ce5
commit c060f6c963

View File

@@ -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