spinn_front_end_common.interface.buffer_management.buffer_models package¶
Module contents¶
- class spinn_front_end_common.interface.buffer_management.buffer_models.AbstractReceiveBuffersToHost¶
Bases:
object
Indicates that this
MachineVertex
can receive buffers.
- class spinn_front_end_common.interface.buffer_management.buffer_models.AbstractSendsBuffersFromHost¶
Bases:
object
A vertex that sends buffers of keys to be transmitted at given timestamps in the simulation.
- abstract buffering_input() bool [source]¶
Return True if the input of this vertex is to be buffered.
- Return type:
- abstract get_next_timestamp(region: int) int [source]¶
Get the next timestamp at which there are still keys to be sent for the given region.
- abstract get_region_buffer_size(region: int) int [source]¶
Get the size of the buffer to be used in SDRAM on the machine for the region in bytes.
- abstract get_regions() Iterable[int] [source]¶
Get the set of regions for which there are keys to be sent.
- Returns:
Iterable of region IDs
- Return type:
iterable(int)
- abstract is_empty(region: int) bool [source]¶
Return true if there are no spikes to be buffered for the specified region.
- abstract is_next_key(region: int, timestamp: int) bool [source]¶
Determine if there are still keys to be sent at the given timestamp for the given region.
- class spinn_front_end_common.interface.buffer_management.buffer_models.SendsBuffersFromHostPreBufferedImpl¶
Bases:
AbstractSendsBuffersFromHost
Implementation of
AbstractReceiveBuffersToHost
that uses an existing set of buffers for the details.- buffering_input() bool [source]¶
Return True if the input of this vertex is to be buffered.
- Return type:
- get_next_timestamp(region: int) int [source]¶
Get the next timestamp at which there are still keys to be sent for the given region.
- get_regions() Collection[int] [source]¶
Get the set of regions for which there are keys to be sent.
- Returns:
Iterable of region IDs
- Return type:
iterable(int)
- is_empty(region: int) bool [source]¶
Return true if there are no spikes to be buffered for the specified region.
- is_next_key(region: int, timestamp: int) bool [source]¶
Determine if there are still keys to be sent at the given timestamp for the given region.
- is_next_timestamp(region: int) bool [source]¶
Determine if there is another timestamp with data to be sent.