Class MachineDefaults
java.lang.Object
uk.ac.manchester.spinnaker.machine.MachineDefaults
public final class MachineDefaults extends Object
Default values for a SpiNNaker machine comprised of SpiNNaker-1 chips running
on boards of version 2 through 5.
- Author:
- Christian-B
-
Field Summary
Fields Modifier and Type Field Description static int
COORD_SHIFT
Width of field of hash code for holding (one dimension of the) chip coordinate.static int
CORE_SHIFT
Width of field of hash code for holding processor ID.static int
DTCM_AVAILABLE
DTCM available on each standard Processor.static Map<ChipLocation,EnumSet<Direction>>
FOUR_CHIP_DOWN_LINKS
Ignore Links info for a four chip board.static int
HALF_SIZE
The offset from zero in chips to get half size root values.static int
MAX_LINKS_PER_ROUTER
Maximum links available on a standard Router.static int
MAX_NUM_CORES
The maximum number of cores present on a chip.static int
MAX_X
Maximum X coordinate for a chip regardless of the type of machine.static int
MAX_Y
Maximum Y coordinate for a chip regardless of the type of machine.static int
NUM_ROUTER_DIAGNOSTIC_COUNTERS
The number of router diagnostic counters.static int
PROCESSOR_CLOCK_SPEED
Clock speed in MHz of a standard Processor.static int
PROCESSORS_PER_CHIP
Standard number of Processors on each Chip.static int
REGION_SHIFT
Width of field of hash code for holding region ID.static int
ROUTER_AVAILABLE_ENTRIES
Entries available on a standard Router.static int
SDRAM_PER_CHIP
Default SDRAM per chip after SCAMP has reserved space for itself.static int
SIZE_X_OF_ONE_BOARD
The number of rows of chips on each 48 Chip board.static int
SIZE_Y_OF_ONE_BOARD
The number of columns of chips on each 48 Chip board.static int
TRIAD_HEIGHT
The height of only known triad in chips.static int
TRIAD_WIDTH
The width of the triad in chips. -
Method Summary
Modifier and Type Method Description static void
validateChipLocation(int x, int y)
Checks the X and Y coordinate parameters are legal ones regardless of the type of machine.static void
validateCoreLocation(int x, int y, int p)
Checks the X, Y, and P coordinate parameters are legal ones regardless of the type of machine.
-
Field Details
-
SDRAM_PER_CHIP
public static final int SDRAM_PER_CHIPDefault SDRAM per chip after SCAMP has reserved space for itself.- See Also:
- Constant Field Values
-
PROCESSOR_CLOCK_SPEED
public static final int PROCESSOR_CLOCK_SPEEDClock speed in MHz of a standard Processor.- See Also:
- Constant Field Values
-
DTCM_AVAILABLE
public static final int DTCM_AVAILABLEDTCM available on each standard Processor.- See Also:
- Constant Field Values
-
PROCESSORS_PER_CHIP
public static final int PROCESSORS_PER_CHIPStandard number of Processors on each Chip.- See Also:
- Constant Field Values
-
ROUTER_AVAILABLE_ENTRIES
public static final int ROUTER_AVAILABLE_ENTRIESEntries available on a standard Router.- See Also:
- Constant Field Values
-
MAX_LINKS_PER_ROUTER
public static final int MAX_LINKS_PER_ROUTERMaximum links available on a standard Router.- See Also:
- Constant Field Values
-
MAX_X
public static final int MAX_XMaximum X coordinate for a chip regardless of the type of machine.- See Also:
- Constant Field Values
-
MAX_Y
public static final int MAX_YMaximum Y coordinate for a chip regardless of the type of machine.- See Also:
- Constant Field Values
-
SIZE_X_OF_ONE_BOARD
public static final int SIZE_X_OF_ONE_BOARDThe number of rows of chips on each 48 Chip board.- See Also:
- Constant Field Values
-
SIZE_Y_OF_ONE_BOARD
public static final int SIZE_Y_OF_ONE_BOARDThe number of columns of chips on each 48 Chip board.- See Also:
- Constant Field Values
-
TRIAD_HEIGHT
public static final int TRIAD_HEIGHTThe height of only known triad in chips. Spalloc arranges boards in groups of three — triads — that tile out to form a large machine.- See Also:
- Constant Field Values
-
TRIAD_WIDTH
public static final int TRIAD_WIDTHThe width of the triad in chips. Spalloc arranges boards in groups of three — triads — that tile out to form a large machine.- See Also:
- Constant Field Values
-
HALF_SIZE
public static final int HALF_SIZEThe offset from zero in chips to get half size root values.- See Also:
- Constant Field Values
-
NUM_ROUTER_DIAGNOSTIC_COUNTERS
public static final int NUM_ROUTER_DIAGNOSTIC_COUNTERSThe number of router diagnostic counters.- See Also:
- Constant Field Values
-
COORD_SHIFT
public static final int COORD_SHIFTWidth of field of hash code for holding (one dimension of the) chip coordinate.- See Also:
- Constant Field Values
-
MAX_NUM_CORES
public static final int MAX_NUM_CORESThe maximum number of cores present on a chip.- See Also:
- Constant Field Values
-
CORE_SHIFT
public static final int CORE_SHIFTWidth of field of hash code for holding processor ID.- See Also:
- Constant Field Values
-
REGION_SHIFT
public static final int REGION_SHIFTWidth of field of hash code for holding region ID.- See Also:
- Constant Field Values
-
FOUR_CHIP_DOWN_LINKS
Ignore Links info for a four chip board.
-
-
Method Details
-
validateChipLocation
Checks the X and Y coordinate parameters are legal ones regardless of the type of machine.- Parameters:
x
- X coordinate of the chips locationy
- Y coordinate of the chips location- Throws:
IllegalArgumentException
- Thrown if either x or y is negative or too big.
-
validateCoreLocation
Checks the X, Y, and P coordinate parameters are legal ones regardless of the type of machine.- Parameters:
x
- X coordinate of the core/chip's locationy
- Y coordinate of the core/chip's locationp
- P coordinate of the core's location- Throws:
IllegalArgumentException
- Thrown if x, y, or p are negative or too big.
-