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 final int
    Width of field of hash code for holding (one dimension of the) chip coordinate.
    static final int
    Width of field of hash code for holding processor ID.
    static final int
    DTCM available on each standard Processor.
    Ignore Links info for a four chip board.
    static final int
    The offset from zero in chips to get half size root values.
    static final int
    Maximum links available on a standard Router.
    static final int
    The maximum number of cores present on a chip.
    static final int
    Maximum X coordinate for a chip regardless of the type of machine.
    static final int
    Maximum Y coordinate for a chip regardless of the type of machine.
    static final int
    The number of router diagnostic counters.
    static final int
    Clock speed in MHz of a standard Processor.
    static final int
    Standard number of Processors on each Chip.
    static final int
    Width of field of hash code for holding region ID.
    static final int
    Entries available on a standard Router.
    static final int
    Default SDRAM per chip after SCAMP has reserved space for itself.
    static final int
    The number of rows of chips on each 48 Chip board.
    static final int
    The number of columns of chips on each 48 Chip board.
    static final int
    The height of only known triad in chips.
    static final int
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SDRAM_PER_CHIP

      public static final int SDRAM_PER_CHIP
      Default SDRAM per chip after SCAMP has reserved space for itself.
      See Also:
    • PROCESSOR_CLOCK_SPEED

      public static final int PROCESSOR_CLOCK_SPEED
      Clock speed in MHz of a standard Processor.
      See Also:
    • DTCM_AVAILABLE

      public static final int DTCM_AVAILABLE
      DTCM available on each standard Processor.
      See Also:
    • PROCESSORS_PER_CHIP

      public static final int PROCESSORS_PER_CHIP
      Standard number of Processors on each Chip.
      See Also:
    • ROUTER_AVAILABLE_ENTRIES

      public static final int ROUTER_AVAILABLE_ENTRIES
      Entries available on a standard Router.
      See Also:
    • MAX_X

      public static final int MAX_X
      Maximum X coordinate for a chip regardless of the type of machine.
      See Also:
    • MAX_Y

      public static final int MAX_Y
      Maximum Y coordinate for a chip regardless of the type of machine.
      See Also:
    • SIZE_X_OF_ONE_BOARD

      public static final int SIZE_X_OF_ONE_BOARD
      The number of rows of chips on each 48 Chip board.
      See Also:
    • SIZE_Y_OF_ONE_BOARD

      public static final int SIZE_Y_OF_ONE_BOARD
      The number of columns of chips on each 48 Chip board.
      See Also:
    • TRIAD_HEIGHT

      public static final int TRIAD_HEIGHT
      The 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:
    • TRIAD_WIDTH

      public static final int TRIAD_WIDTH
      The width of the triad in chips. Spalloc arranges boards in groups of three — triads — that tile out to form a large machine.
      See Also:
    • HALF_SIZE

      public static final int HALF_SIZE
      The offset from zero in chips to get half size root values.
      See Also:
    • NUM_ROUTER_DIAGNOSTIC_COUNTERS

      public static final int NUM_ROUTER_DIAGNOSTIC_COUNTERS
      The number of router diagnostic counters.
      See Also:
    • COORD_SHIFT

      public static final int COORD_SHIFT
      Width of field of hash code for holding (one dimension of the) chip coordinate.
      See Also:
    • MAX_NUM_CORES

      public static final int MAX_NUM_CORES
      The maximum number of cores present on a chip.
      See Also:
    • CORE_SHIFT

      public static final int CORE_SHIFT
      Width of field of hash code for holding processor ID.
      See Also:
    • REGION_SHIFT

      public static final int REGION_SHIFT
      Width of field of hash code for holding region ID.
      See Also:
  • Method Details

    • validateChipLocation

      public static void validateChipLocation(int x, int y) throws IllegalArgumentException
      Checks the X and Y coordinate parameters are legal ones regardless of the type of machine.
      Parameters:
      x - X coordinate of the chips location
      y - Y coordinate of the chips location
      Throws:
      IllegalArgumentException - Thrown if either x or y is negative or too big.
    • validateCoreLocation

      public static void validateCoreLocation(int x, int y, int p) throws IllegalArgumentException
      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 location
      y - Y coordinate of the core/chip's location
      p - P coordinate of the core's location
      Throws:
      IllegalArgumentException - Thrown if x, y, or p are negative or too big.