Skip to content

Commit

Permalink
Merge pull request #357 from SpiNNakerManchester/send_chip_update_pro…
Browse files Browse the repository at this point in the history
…venance_and_exit

move send_chip_update_provenance_and_exit to transciever
  • Loading branch information
rowleya authored Oct 2, 2023
2 parents 3664f2d + b5fd937 commit 8c40423
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spinnman/transceiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1971,6 +1971,24 @@ def update_provenance_and_exit(self, x, y, p):
data=_ONE_WORD.pack(SDP_RUNNING_MESSAGE_CODES
.SDP_UPDATE_PROVENCE_REGION_AND_EXIT.value)))

def send_chip_update_provenance_and_exit(self, x, y, p):
"""
Sends a singnal to update the provenance and exit
:param int x:
:param int y:
:param int p:
"""
cmd = SDP_RUNNING_MESSAGE_CODES.SDP_UPDATE_PROVENCE_REGION_AND_EXIT
port = SDP_PORTS.RUNNING_COMMAND_SDP_PORT

self.send_sdp_message(SDPMessage(
SDPHeader(
flags=SDPFlag.REPLY_NOT_EXPECTED,
destination_port=port.value, destination_cpu=p,
destination_chip_x=x, destination_chip_y=y),
data=_ONE_WORD.pack(cmd.value)))

def __str__(self):
addr = self._scamp_connections[0].remote_ip_address
n = len(self._all_connections)
Expand Down

0 comments on commit 8c40423

Please sign in to comment.