Class CPUInfo
java.lang.Object
uk.ac.manchester.spinnaker.messages.model.CPUInfo
- All Implemented Interfaces:
HasChipLocation,HasCoreLocation
Represents information about the state of a CPU.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface uk.ac.manchester.spinnaker.machine.HasChipLocation
asChipLocation, getScampCore, onSameChipAsMethods inherited from interface uk.ac.manchester.spinnaker.machine.HasCoreLocation
asCoreLocation, onSameCoreAs
-
Constructor Details
-
CPUInfo
- Parameters:
location- Which core was queried for the information.buffer- The data received from SDRAM on the board, in a little-endian buffer.
-
-
Method Details
-
getX
public int getX()- Specified by:
getXin interfaceHasChipLocation
-
getY
public int getY()- Specified by:
getYin interfaceHasChipLocation
-
getP
public int getP()- Specified by:
getPin interfaceHasCoreLocation
-
getRegisters
public int[] getRegisters()- Returns:
- The current register values (r0…r7).
-
getProcessorStateRegister
public int getProcessorStateRegister()- Returns:
- The value in the processor state register (PSR).
-
getStackPointer
public int getStackPointer()- Returns:
- The current stack pointer value (SP).
-
getLinkRegister
public int getLinkRegister()- Returns:
- The current link register value (LR).
-
getRunTimeError
- Returns:
- The reason for a run time error.
-
getPhysicalCPUID
public byte getPhysicalCPUID()- Returns:
- The physical ID of this processor.
-
getState
- Returns:
- The current state of the core.
-
getApplicationID
public int getApplicationID()- Returns:
- The ID of the application running on the core.
-
getApplicationMailboxDataAddress
public int getApplicationMailboxDataAddress()- Returns:
- The address of the data in SDRAM for the application mailbox.
-
getMonitorMailboxDataAddress
public int getMonitorMailboxDataAddress()- Returns:
- The address of the data in SDRAM of the monitor mailbox.
-
getApplicationMailboxCommand
- Returns:
- The command currently in the mailbox being sent from the monitor processor to the application.
-
getMonitorMailboxCommand
- Returns:
- The command currently in the mailbox being sent from the application to the monitor processor.
-
getSoftwareErrorCount
public short getSoftwareErrorCount()- Returns:
- The number of software errors counted.
-
getSoftwareSourceFilenameAddress
public int getSoftwareSourceFilenameAddress()- Returns:
- The address of the filename of the software source.
-
getSoftwareSourceLineNumber
public int getSoftwareSourceLineNumber()- Returns:
- The line number of the software source.
-
getTime
public int getTime()- Returns:
- The time at which the application started, in seconds since 00:00:00 GMT on 1 January 1970.
-
getApplicationName
- Returns:
- The name of the application running on the core.
-
getIobufAddress
public int getIobufAddress()- Returns:
- The address of the IOBUF buffer in SDRAM.
-
getSoftwareVersion
public int getSoftwareVersion()- Returns:
- The software version.
-
getUser
public int[] getUser()- Returns:
- The current user values (user0…user3).
-
getUser
public int getUser(int index) - Parameters:
index- Which index in the user array to read. Must be in range 0 to 3 (inclusive).- Returns:
- The current user value (userindex).
-
toString
-
getStatusDescription
- Returns:
- A description of the state.
-