sPyNNaker neural_modelling 7.3.1
|
Recently spiked partners selection rule. More...
Go to the source code of this file.
Functions | |
static void | partner_spike_received (uint32_t time, spike_t spike) |
Notifies the rule that a spike has been received. | |
static bool | potential_presynaptic_partner (uint32_t time, uint32_t *restrict population_id, uint32_t *restrict sub_population_id, uint32_t *restrict neuron_id, spike_t *restrict spike, uint32_t *restrict m_pop_index) |
Choose the potential (remote) synaptic partner. | |
Variables | |
spike_t * | last_spikes_buffer [2] |
Spike accumulation buffers. | |
uint32_t | n_spikes [2] |
Spike buffer counters. | |
Recently spiked partners selection rule.
Definition in file last_neuron_selection_impl.h.
|
inlinestatic |
Notifies the rule that a spike has been received.
[in] | time | The time that the spike was received at |
[in] | spike | The spike that was received (includes the sending neuron ID) |
Definition at line 36 of file last_neuron_selection_impl.h.
|
inlinestatic |
Choose the potential (remote) synaptic partner.
Randomly (with uniform probability) select one of the last received spikes, and uses the source neuron from that.
[in] | time | The current time |
[out] | population_id | The ID of the other population |
[out] | sub_population_id | The ID of the subpopulation (corresponds to remote SpiNNaker core handling the population) |
[out] | neuron_id | The ID of the neuron within the subpopulation |
[out] | spike | The spike that made this a meaningful choice |
[out] | m_pop_index | The master population table index |
Definition at line 61 of file last_neuron_selection_impl.h.
|
extern |
Spike accumulation buffers.
Two arrays, one for current timestep, one for previous
Definition at line 21 of file last_neuron_selection_impl.c.
|
extern |
Spike buffer counters.
Two counters, one for current timestep, one for previous
Definition at line 22 of file last_neuron_selection_impl.c.