Previous topic

spinnman.model.core_subsets module

Next topic

spinnman.model.cpu_state module

This Page

spinnman.model.cpu_info module

class spinnman.model.cpu_info.CPUInfo(x, y, p, cpu_data)[source]

Bases: object

Represents information about the state of a CPU

Parameters:
  • x (int) – The x-coordinate of a chip
  • y (int) – The y-coordinate of a chip
  • p (int) – The id of a core on the chip
  • cpu_data (bytearray) – An array of bytes received from SDRAM on the board
Raises spinnman.exceptions.SpinnmanInvalidParameterException:
 

If the array does not contain a cpu data structure

Attributes

application_id The id of the application running on the core
application_mailbox_command The command currently in the mailbox being sent from the monitor processor to the application
application_mailbox_data_address The address of the data in SDRAM for the application mailbox
application_name The name of the application running on the core
iobuf_address The address of the IOBUF buffer in SDRAM
link_register The current link register value (lr)
monitor_mailbox_command The command currently in the mailbox being sent from the application to the monitor processor
monitor_mailbox_data_address The address of the data in SDRAM of the monitor mailbox
p The id of the core on the chip
processor_state_register The value in the processor state register (psr)
registers The current register values (r0 - r7)
run_time_error The reason for a run time error
software_error_count The number of software errors counted
software_source_filename_address The address of the filename of the software source
software_source_line_number The line number of the software source
stack_pointer The current stack pointer value (sp)
state The current state of the core
time The time at which the application started
user The current user values (user0 - user3)
x The x-coordinate of the chip containing the core
y The y-coordinate of the chip containing the core