Skip to content

Commit

Permalink
get_region_base_address
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Aug 17, 2023
1 parent 891cfb3 commit 33ed7b7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions unittests/model_tests/neuron/test_synaptic_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,9 @@ def write_memory(self, x, y, base_address, data, n_bytes=None, offset=0,
data = struct.Struct("<I").pack(data)
self._data_to_read[base_address:base_address + len(data)] = data

@overrides(Transceiver.get_cpu_information_from_core)
def get_cpu_information_from_core(self, x, y, p):
bs = bytearray(128)
cpu_data = _INFO_PATTERN.unpack_from(bytes(bs), 0)
return CPUInfo(x=1, y=2, p=3, cpu_data=cpu_data)
@overrides(Transceiver.get_region_base_address)
def get_region_base_address(self, x, y, p):
return 0

@overrides(Transceiver.read_memory)
def read_memory(self, x, y, base_address, length, cpu=0):
Expand Down

0 comments on commit 33ed7b7

Please sign in to comment.