Skip to content

Commit

Permalink
write_memory parma fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Oct 19, 2023
1 parent 0276baa commit 761d21d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,8 @@ def _load_usable_sdram(
matrix_addresses_and_size)

# write sdram
transceiver.write_memory(
chip_x, chip_y, sdram_address, address_data, len(address_data))
transceiver.write_memory(chip_x, chip_y, sdram_address, address_data,
n_bytes=len(address_data))

# get the only processor on the chip
processor_id = list(cores.all_core_subsets.get_core_subset_for_chip(
Expand Down Expand Up @@ -547,8 +547,8 @@ def _load_address_data(
matrix_addresses_and_size, len(address_data))

# write sdram
transceiver.write_memory(
chip_x, chip_y, sdram_address, address_data, len(address_data))
transceiver.write_memory(chip_x, chip_y, sdram_address, address_data,
n_bytes=len(address_data))

# get the only processor on the chip
sorter_cores = cores.get_cores_for_binary(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ def __init__(self):
self._regions_rewritten = list()

@overrides(MockableTransceiver.write_memory)
def write_memory(
self, x, y, base_address, data, *, n_bytes=None, offset=0,
cpu=0, is_filename=False, get_sum=False):
def write_memory(self, x, y, base_address, data, *, n_bytes=None,
offset=0, cpu=0, get_sum=False):
self._regions_rewritten.append((base_address, data))


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ def malloc_sdram(self, x, y, size, app_id, tag=None):
return address

@overrides(Version5Transceiver.write_memory)
def write_memory(
self, x, y, base_address, data, *, n_bytes=None, offset=0,
cpu=0, is_filename=False, get_sum=False):
def write_memory(self, x, y, base_address, data, *, n_bytes=None,
offset=0, cpu=0, get_sum=False):
if isinstance(data, int):
data = struct.pack("<I", data)
self._regions_written.append((base_address, data))
Expand Down

0 comments on commit 761d21d

Please sign in to comment.