Cast write data to bytes instead of bytearray

This commit is contained in:
Alex Forencich
2021-11-10 23:45:46 -08:00
parent c08f22c710
commit da24857dd2
2 changed files with 2 additions and 2 deletions

View File

@@ -325,7 +325,7 @@ class AxiMasterWrite(Reset):
self.in_flight_operations += 1 self.in_flight_operations += 1
self._idle.clear() self._idle.clear()
cmd = AxiWriteCmd(address, bytearray(data), awid, burst, size, lock, cmd = AxiWriteCmd(address, bytes(data), awid, burst, size, lock,
cache, prot, qos, region, user, wuser, event) cache, prot, qos, region, user, wuser, event)
self.write_command_queue.put_nowait(cmd) self.write_command_queue.put_nowait(cmd)

View File

@@ -153,7 +153,7 @@ class AxiLiteMasterWrite(Reset):
self.in_flight_operations += 1 self.in_flight_operations += 1
self._idle.clear() self._idle.clear()
self.write_command_queue.put_nowait(AxiLiteWriteCmd(address, bytearray(data), prot, event)) self.write_command_queue.put_nowait(AxiLiteWriteCmd(address, bytes(data), prot, event))
return event return event