spynnaker.pyNN.models.utility_models.delays package¶
Module contents¶
- class spynnaker.pyNN.models.utility_models.delays.DelayExtensionMachineVertex(sdram, label, vertex_slice, app_vertex=None)¶
Bases:
MachineVertex
,ProvidesProvenanceDataFromMachineImpl
,AbstractHasAssociatedBinary
,AbstractGeneratesDataSpecification
- Parameters:
sdram (AbstractSDRAM) – The SDRAM required by the vertex
label (str) – The name of the vertex
vertex_slice (Slice) – The slice of the vertex
app_vertex (ApplicationVertex) – The application vertex that caused this machine vertex to be created. If None, there is no such application vertex.
- BACKGROUND_MAX_QUEUED_NAME = 'Max_backgrounds_queued'¶
- BACKGROUND_OVERLOADS_NAME = 'Times_the_background_queue_overloaded'¶
- COUNT_SATURATION_NAME = 'saturation_count'¶
- DELAYED_FOR_TRAFFIC_NAME = 'Number_of_times_delayed_to_spread_traffic'¶
- class EXTRA_PROVENANCE_DATA_ENTRIES(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Bases:
Enum
Indices into raw provenance data about delay extension vertices.
- MAX_BACKGROUND_QUEUED = 10¶
The maximum number of packets queued for background processing
- N_BACKGROUND_OVERLOADS = 11¶
The number of times the background queue overflowed
- N_BUFFER_OVERFLOWS = 4¶
The number of times a buffer overflowed
- N_DELAYS = 5¶
The number of delays
- N_LATE_SPIKES = 9¶
The number of packets that arrived too late
- N_PACKETS_ADDED = 2¶
The number of packets added to a send queue
- N_PACKETS_DROPPED_DUE_TO_INVALID_KEY = 8¶
The number of packets lost due to an invalid key
- N_PACKETS_LOST_DUE_TO_COUNT_SATURATION = 6¶
The number of packets lost due to saturation
- N_PACKETS_PROCESSED = 1¶
The number of packets processed
- N_PACKETS_RECEIVED = 0¶
The number of packets received
- N_PACKETS_SENT = 3¶
The number of packets sent
- N_PACKETS_WITH_INVALID_NEURON_IDS = 7¶
The number of packets with bad neuron IDs
- INPUT_BUFFER_LOST_NAME = 'Times_the_input_buffer_lost_packets'¶
- INVALID_KEY_COUNT_NAME = 'invalid_key_count'¶
- INVALID_NEURON_ID_COUNT_NAME = 'invalid_neuron_count'¶
- MISMATCH_ADDED_FROM_PROCESSED_NAME = 'Number_of_packets_added_to_delay_slot'¶
- N_EXTRA_PROVENANCE_DATA_ENTRIES = 12¶
- N_LATE_SPIKES_NAME = 'Number_of_late_spikes'¶
- N_PACKETS_PROCESSED_NAME = 'Number_of_packets_processed'¶
- N_PACKETS_RECEIVED_NAME = 'Number_of_packets_received'¶
- N_PACKETS_SENT_NAME = 'Number_of_packets_sent'¶
- generate_data_specification(spec, placement)[source]¶
Generate a data specification.
- Parameters:
spec (DataSpecificationGenerator) – The data specification to write to
placement (Placement) – The placement the vertex is located at
- get_binary_start_type()[source]¶
Get the start type of the binary to be run.
- Return type:
ExecutableType
- get_n_keys_for_partition(partition_id)[source]¶
Get the number of keys required by the given partition of edges.
- parse_extra_provenance_items(label, x, y, p, provenance_data)[source]¶
Convert the remaining provenance words (those not in the standard set) into provenance items.
Called by
get_provenance_data_from_machine()
- Parameters:
label (str) – A descriptive label for the vertex (derived from label and placed position) to be used for provenance error reporting to the user.
x (int) – x coordinate of the chip where this core
y (int) – y coordinate of the core where this core
p (int) – virtual id of the core
provenance_data (list(int)) – The list of words of raw provenance data.
- property sdram_required¶
The SDRAM space required by the vertex.
- Return type:
- class spynnaker.pyNN.models.utility_models.delays.DelayExtensionVertex(partition, delay_per_stage, n_delay_stages, n_colour_bits, label='DelayExtension')¶
Bases:
ApplicationVertex
,AbstractHasDelayStages
Provide delays to incoming spikes in multiples of the maximum delays of a neuron (typically 16 or 32).
- Parameters:
partition (ApplicationEdgePartition) – The partition that this delay is supporting
delay_per_stage (int) – the delay per stage
n_delay_stages (int) – the (initial) number of delay stages needed
n_colour_bits (int) – the number of bits for event colouring
label (str) – the vertex label
- MAX_DTCM_AVAILABLE = 54756¶
- MAX_SLOTS = 8¶
- SAFETY_FACTOR = 5000¶
- add_outgoing_edge(edge)[source]¶
Add an outgoing edge to the delay extension.
- Parameters:
edge (DelayedApplicationEdge) – The edge to add
- property n_colour_bits¶
The number of bits for event colouring.
- property n_delay_stages¶
The maximum number of delay stages required by any connection out of this delay extension vertex.
- Return type:
- property outgoing_edges¶
The outgoing edges from this vertex.
- Return type:
- property partition¶
The partition that this delay is supporting.
- property source_vertex¶
- Return type: