spinnman.model.enums package¶
Module contents¶
-
class
spinnman.model.enums.
CPUState
(value, doc='')[source]¶ Bases:
enum.Enum
SARK CPU States.
-
CPU_STATE_12
= 12¶ Spare
-
CPU_STATE_13
= 13¶ Spare
-
CPU_STATE_14
= 14¶ Spare
-
C_MAIN
= 6¶ Entered c_main
-
DEAD
= 0¶ Dead core
-
FINISHED
= 11¶ Exited application
-
IDLE
= 15¶ Idle (SARK stub)
-
INITIALISING
= 4¶ Initialising (transient)
-
PAUSED
= 10¶ Paused in application
-
POWERED_DOWN
= 1¶ Powered down
-
READY
= 5¶ Ready to execute
-
RUNNING
= 7¶ Running (API/Event)
-
RUN_TIME_EXCEPTION
= 2¶ Died with Run Time Error
-
SYNC0
= 8¶ Waiting for sync 0
-
SYNC1
= 9¶ Waiting for sync 1
-
WATCHDOG
= 3¶ Watchdog expired
-
-
class
spinnman.model.enums.
DiagnosticFilterDefaultRoutingStatus
(value, doc='')[source]¶ Bases:
enum.Enum
Default routing flags for the diagnostic filters.
Note
Only one has to match for the counter to be incremented.
-
DEFAULT_ROUTED
= 0¶ Packet is to be default routed
-
NON_DEFAULT_ROUTED
= 1¶ Packet is not to be default routed
-
-
class
spinnman.model.enums.
DiagnosticFilterDestination
(value, doc='')[source]¶ Bases:
enum.Enum
Destination flags for the diagnostic filters.
Note
Only one has to match for the counter to be incremented.
-
DUMP
= 0¶ Destination is to dump the packet
-
LINK_0
= 3¶ Destination is link 0
-
LINK_1
= 4¶ Destination is link 1
-
LINK_2
= 5¶ Destination is link 2
-
LINK_3
= 6¶ Destination is link 3
-
LINK_4
= 7¶ Destination is link 4
-
LINK_5
= 8¶ Destination is link 5
-
LOCAL
= 1¶ Destination is a local core (but not the monitor core)
-
LOCAL_MONITOR
= 2¶ Destination is the local monitor core
-
-
class
spinnman.model.enums.
DiagnosticFilterEmergencyRoutingStatus
(value, doc='')[source]¶ Bases:
enum.Enum
Emergency routing status flags for the diagnostic filters.
Note
Only one has to match for the counter to be incremented.
-
FIRST_STAGE
= 2¶ Packet is in first hop of emergency route; packet wouldn’t have reached this router without emergency routing
-
FIRST_STAGE_COMBINED
= 1¶ Packet is in first hop of emergency route; packet should also have been sent here by normal routing
-
NORMAL
= 0¶ Packet is not emergency routed
-
SECOND_STAGE
= 3¶ Packet is in last hop of emergency route and should now return to normal routing
-
-
class
spinnman.model.enums.
DiagnosticFilterPacketType
(value, doc='')[source]¶ Bases:
enum.Enum
Packet type flags for the diagnostic filters.
Note
Only one has to match for the counter to be incremented.
-
FIXED_ROUTE
= 3¶ Packet is fixed-route
-
MULTICAST
= 0¶ Packet is multicast
-
NEAREST_NEIGHBOUR
= 2¶ Packet is nearest-neighbour
-
POINT_TO_POINT
= 1¶ Packet is point-to-point
-
-
class
spinnman.model.enums.
DiagnosticFilterPayloadStatus
(value, doc='')[source]¶ Bases:
enum.Enum
Payload flags for the diagnostic filters.
Note
Only one has to match for the counter to be incremented.
-
WITHOUT_PAYLOAD
= 1¶ Packet doesn’t have a payload
-
WITH_PAYLOAD
= 0¶ Packet has a payload
-
-
class
spinnman.model.enums.
DiagnosticFilterSource
(value, doc='')[source]¶ Bases:
enum.Enum
Source flags for the diagnostic filters.
Note
Only one has to match for the counter to be incremented.
-
LOCAL
= 0¶ Source is a local core
-
NON_LOCAL
= 1¶ Source is not a local core
-
-
class
spinnman.model.enums.
MailboxCommand
(value, doc='')[source]¶ Bases:
enum.Enum
Commands sent between an application and the monitor processor.
-
SHM_CMD
= 4¶ The mailbox contains a command
-
SHM_IDLE
= 0¶ The mailbox is idle
-
SHM_MSG
= 1¶ The mailbox contains an SDP message
-
SHM_NOP
= 2¶ The mailbox contains a no-operation (used for watchdog)
-
SHM_SIGNAL
= 3¶ The mailbox contains a signal
-
-
class
spinnman.model.enums.
P2PTableRoute
(value, doc='')[source]¶ Bases:
enum.Enum
P2P Routing table routes.
-
EAST
= 0¶
-
MONITOR
= 7¶ Route to the monitor on the current chip
-
NONE
= 6¶ No route to this chip
-
NORTH
= 2¶
-
NORTH_EAST
= 1¶
-
SOUTH
= 5¶
-
SOUTH_WEST
= 4¶
-
WEST
= 3¶
-
-
class
spinnman.model.enums.
RouterError
(value, doc='')[source]¶ Bases:
enum.Enum
Router error flags.
-
ERROR
= 2147483648¶ Error packet detected (0x80000000)
-
FRAMING
= 268435456¶ Framing Error (0x10000000)
-
OVERFLOW
= 1073741824¶ More than one error packet detected (0x40000000)
-
PARITY
= 536870912¶ Parity Error (0x20000000)
-
TIMESTAMP
= 134217728¶ Timestamp Error (0x08000000)
-
-
class
spinnman.model.enums.
RunTimeError
(value, doc='')[source]¶ Bases:
enum.Enum
SARK Run time errors.
-
ABORT
= 9¶ Generic user abort
-
API
= 19¶ API startup failure
-
DABT
= 5¶ Data abort
-
DIVBY0
= 11¶ Divide by zero
-
ENABLE
= 15¶ Bad event enable
-
EVENT
= 12¶ Event startup failure
-
FIQ
= 7¶ Unhandled FIQ
-
IOBUF
= 14¶ Failed to allocate IO buffer
-
IRQ
= 6¶ Unhandled IRQ
-
MALLOC
= 10¶ “malloc” failure
-
NONE
= 0¶ No error
-
NULL
= 16¶ Generic null pointer error
-
PABT
= 4¶ Prefetch abort
-
PKT
= 17¶ Pkt startup failure
-
RESET
= 1¶ Branch through zero
-
SARK_VERSRION_INCORRECT
= 20¶ SW version conflict
-
SVC
= 3¶ Undefined SVC or no handler
-
SWERR
= 13¶ Fatal SW error
-
TIMER
= 18¶ Timer startup failure
-
UNDEF
= 2¶ Undefined instruction
-
VIC
= 8¶ Unconfigured VIC vector
-