pynn_brainscales.brainscales2.simulator.BackgroundSpikeSourcePlacement

class pynn_brainscales.brainscales2.simulator.BackgroundSpikeSourcePlacement(permutation: Optional[List[int]] = None)

Bases: object

Tracks assignment of pyNN IDs of SpikeSourcePoissonOnChip based populations to the corresponding hardware entity, i.e. BackgroundSpikeSourceOnDLS. We use one source on each hemisphere to ensure arbitrary routing works. Default constructed with reversed 1 to 1 permutation to yield better distribution for small networks.

Variables

DEFAULT_PERMUTATION – Default permutation, where allocation is ordered to start at the highest-enum PADI-bus to reduce overlap with allocated neurons.

__init__(permutation: Optional[List[int]] = None)
Parameters

permutation – Look up table for permutation. Index: HW related population neuron enumeration. Value: HW neuron enumeration.

Methods

__init__([permutation])

param permutation

Look up table for permutation. Index: HW related

id2source(neuron_id)

Get hardware coordinate from pyNN ID

register_id(neuron_id)

Register a new ID to placement

Attributes

DEFAULT_PERMUTATION

DEFAULT_PERMUTATION: Final[List[int]] = [3, 2, 1, 0]
id2source(neuron_id: Union[List[pynn_brainscales.brainscales2.simulator.ID], pynn_brainscales.brainscales2.simulator.ID])pyhalco_hicann_dls_vx_v3.PADIBusOnPADIBusBlock

Get hardware coordinate from pyNN ID

Parameters

neuron_id – pyNN neuron ID

register_id(neuron_id: Union[List[pynn_brainscales.brainscales2.simulator.ID], pynn_brainscales.brainscales2.simulator.ID])

Register a new ID to placement

Parameters

neuron_id – pyNN neuron ID to be registered