Class ChipInfo
java.lang.Object
uk.ac.manchester.spinnaker.messages.model.ChipInfo
- All Implemented Interfaces:
HasChipLocation
Represents the system variables for a chip, received from the chip SDRAM.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
long
int
int
int
int
int
int
int
int[]
getLEDs()
int
int
getLock()
int
int
int
int
int
int
int
int
int
int
int
int
int
byte[]
int
int
int
int
int
getSize()
int
byte[]
int
int
int
int
int
int
getUser0()
int
getUser1()
int
getUser2()
int
getUser4()
byte[]
int
getX()
int
getY()
boolean
boolean
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface uk.ac.manchester.spinnaker.machine.HasChipLocation
asChipLocation, getScampCore, onSameChipAs
-
Constructor Details
-
ChipInfo
Parse a system data block.- Parameters:
systemData
- The data retrieved from SDRAM on the board.
-
-
Method Details
-
getX
public int getX()- Specified by:
getX
in interfaceHasChipLocation
- Returns:
- The X coordinate of the chip.
-
getY
public int getY()- Specified by:
getY
in interfaceHasChipLocation
- Returns:
- The Y coordinate of the chip.
-
getSize
- Returns:
- The number of chips in the x- and y-dimensions.
-
getDebugChip
- Returns:
- The location of the chip to send debug messages to.
-
isPeerToPeerAvailable
public boolean isPeerToPeerAvailable()- Returns:
- Indicates if peer-to-peer is working on the chip.
-
getNearestNeighbourLastID
public int getNearestNeighbourLastID()- Returns:
- The last ID used in nearest neighbour transaction.
-
getEthernetChip
- Returns:
- The location of the nearest chip with Ethernet.
-
getHardwareVersion
public int getHardwareVersion()- Returns:
- The version of the hardware in use.
-
isEthernetAvailable
public boolean isEthernetAvailable()- Returns:
- Indicates if Ethernet is available on this chip.
-
getP2PBRepeats
public int getP2PBRepeats()- Returns:
- Number of times to send out P2PB packets.
-
getLogP2PSequenceLength
public int getLogP2PSequenceLength()- Returns:
- Log (base 2) of the peer-to-peer sequence length.
-
getClockDivisor
public int getClockDivisor()- Returns:
- The clock divisors for system & router clocks.
-
getTimePhaseScale
public int getTimePhaseScale()- Returns:
- The time-phase scaling factor.
-
getClockMilliseconds
public long getClockMilliseconds()- Returns:
- The time since startup in milliseconds.
-
getTimeMilliseconds
public int getTimeMilliseconds()- Returns:
- The number of milliseconds in the current second.
-
getUnixTimestamp
public int getUnixTimestamp()- Returns:
- The time in seconds since midnight, 1st January 1970.
-
getRouterTimePhaseTimer
public int getRouterTimePhaseTimer()- Returns:
- The router time-phase timer.
-
getCPUClock
public int getCPUClock()- Returns:
- The CPU clock frequency in MHz.
-
getSDRAMClock
public int getSDRAMClock()- Returns:
- The SDRAM clock frequency in MHz.
-
getNearestNeighbourForward
public int getNearestNeighbourForward()- Returns:
- Nearest-Neighbour forward parameter.
-
getNearestNeighbourRetry
public int getNearestNeighbourRetry()- Returns:
- Nearest-Neighbour retry parameter.
-
getLinkPeekTimeout
public int getLinkPeekTimeout()- Returns:
- The link peek/poke timeout in microseconds.
-
getLEDFlashPeriod
public int getLEDFlashPeriod()- Returns:
- The LED period in millisecond units, or 10 to show load.
-
getNetInitBCWaitTime
public int getNetInitBCWaitTime()- Returns:
- The time to wait after last BC during network initialisation in 10 ms units.
-
getNetInitPhase
public int getNetInitPhase()- Returns:
- The phase of boot process (see enum netinit_phase_e).
-
getBootChip
- Returns:
- The location of the chip from which the system was booted.
-
getLEDs
public int[] getLEDs()- Returns:
- The LED definitions.
-
getRandomSeeed
public int getRandomSeeed()- Returns:
- The random seed.
-
isRootChip
public boolean isRootChip()- Returns:
- Indicates if this is the root chip.
-
getNearestNeighbourDelay
public int getNearestNeighbourDelay()- Returns:
- The delay between nearest-neighbour packets in microseconds.
-
getSoftwareWatchdogCount
public int getSoftwareWatchdogCount()- Returns:
- The number of watch dog timeouts before an error is raised.
-
getSystemRAMHeapAddress
- Returns:
- The base address of the system SDRAM heap.
-
getSDRAMHeapAddress
- Returns:
- The base address of the user SDRAM heap.
-
getIOBUFSize
public int getIOBUFSize()- Returns:
- The size of the iobuf buffer in bytes.
-
getSystemSDRAMSize
public int getSystemSDRAMSize()- Returns:
- The size of the system SDRAM in bytes.
-
getSystemBufferSize
public int getSystemBufferSize()- Returns:
- The size of the system buffer in words.
-
getBootSignature
public int getBootSignature()- Returns:
- The boot signature.
-
getNearestNeighbourMemoryAddress
- Returns:
- The memory pointer for nearest neighbour global operations.
-
getLock
public int getLock()- Returns:
- The lock. (??)
-
getLinksAvailable
- Returns:
- Bit mask (6 bits) of links enabled.
-
getLastBiffID
public int getLastBiffID()- Returns:
- Last ID used in BIFF packet.
-
getBoardTestFlags
public int getBoardTestFlags()- Returns:
- Board testing flags.
-
getUser0
public int getUser0()- Returns:
- The first user variable.
-
getUser1
public int getUser1()- Returns:
- The second user variable.
-
getUser2
public int getUser2()- Returns:
- The third user variable.
-
getUser4
public int getUser4()- Returns:
- The fourth user variable.
-
getStatusMap
public byte[] getStatusMap()- Returns:
- The status map set during SCAMP boot.
-
getPhysicalToVirtualCoreMap
public byte[] getPhysicalToVirtualCoreMap()- Returns:
- The physical core ID to virtual core ID map; entries with a value of 0xFF are non-operational cores.
-
getVirtualToPhysicalCoreMap
public byte[] getVirtualToPhysicalCoreMap()- Returns:
- The virtual core ID to physical core ID map.
-
getVirtualCoreIDs
- Returns:
- A list of available cores by virtual core ID (including the monitor).
-
getNumWorkingCores
public int getNumWorkingCores()- Returns:
- The number of working cores.
-
getNumSCAMPWorkingCores
public int getNumSCAMPWorkingCores()- Returns:
- The number of SCAMP working cores.
-
getSDRAMBaseAddress
- Returns:
- The base address of SDRAM.
-
getSystemRAMBaseAddress
- Returns:
- The base address of System RAM.
-
getSystemSDRAMBaseAddress
- Returns:
- The base address of System SDRAM.
-
getCPUInformationBaseAddress
- Returns:
- The base address of the CPU information blocks.
-
getSystemSDRAMHeapAddress
- Returns:
- The base address of the system SDRAM heap.
-
getRouterTableCopyAddress
- Returns:
- The address of the copy of the routing tables.
-
getP2PHopTableAddress
- Returns:
- The address of the peer-to-peer hop tables.
-
getAllocatedTagTableAddress
- Returns:
- The address of the allocated tag table.
-
getFirstFreeRouterEntry
public int getFirstFreeRouterEntry()- Returns:
- The ID of the first free router entry.
-
getNumActiveP2PAddresses
public int getNumActiveP2PAddresses()- Returns:
- The number of active peer-to-peer addresses.
-
getAppDataTableAddress
- Returns:
- The address of the application data table.
-
getMonitorMailboxFlags
public int getMonitorMailboxFlags()- Returns:
- The monitor incoming mailbox flags.
-
getIPAddress
- Returns:
- The IP address of the chip.
-
getFixedRoute
public int getFixedRoute()- Returns:
- A (virtual) copy of the router FR register.
-
getBoardInfoAddress
- Returns:
- A pointer to the board information structure.
-