Skip to content

Commit

Permalink
get_region_base_addres
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Oct 4, 2023
1 parent d3c71cd commit f64037a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def _get_provenance_region_address(self, transceiver, placement):
:rtype: int
"""
# Get the App Data for the core
region_table_address = transceiver.get_cpu_information_from_core(
placement.x, placement.y, placement.p).user[0]
region_table_address = transceiver.get_region_base_address(
placement.x, placement.y, placement.p)

# Get the provenance region base address
prov_region_entry_address = get_region_base_address_offset(
Expand Down
4 changes: 2 additions & 2 deletions spinn_front_end_common/utilities/helpful_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def locate_memory_region_for_placement(placement, region):
:rtype: int
"""
transceiver = FecDataView.get_transceiver()
regions_base_address = transceiver.get_cpu_information_from_core(
placement.x, placement.y, placement.p).user[0]
regions_base_address = transceiver.get_region_base_address(
placement.x, placement.y, placement.p)

# Get the position of the region in the pointer table
element_addr = get_region_base_address_offset(regions_base_address, region)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1471,8 +1471,8 @@ def _print_packet_num_being_sent(packet_count, n_packets):
def get_provenance_data_from_machine(self, placement):
# Get the App Data for the core
transceiver = FecDataView.get_transceiver()
region_table_address = transceiver.get_cpu_information_from_core(
placement.x, placement.y, placement.p).user[0]
region_table_address = transceiver.get_region_base_address(
placement.x, placement.y, placement.p)

# Get the provenance region base address
prov_region_entry_address = get_region_base_address_offset(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ def __get_provenance_region_address(self, txrx, place):
:rtype: int
"""
if self._prov_region is None:
region_table_addr = txrx.get_cpu_information_from_core(
place.x, place.y, place.p).user[0]
region_table_addr = txrx.get_region_base_address(
place.x, place.y, place.p)
region_entry_addr = get_region_base_address_offset(
region_table_addr, _DSG_REGIONS.PROVENANCE_AREA)
self._prov_region, = _ONE_WORD.unpack(txrx.read_memory(
Expand Down

0 comments on commit f64037a

Please sign in to comment.