sPyNNaker neural_modelling 7.3.1
Loading...
Searching...
No Matches
Functions | Variables
last_neuron_selection_impl.h File Reference

Recently spiked partners selection rule. More...

#include "partner.h"
#include <neuron/spike_processing.h>

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_tlast_spikes_buffer [2]
 Spike accumulation buffers.
 
uint32_t n_spikes [2]
 Spike buffer counters.
 

Detailed Description

Recently spiked partners selection rule.

Definition in file last_neuron_selection_impl.h.

Function Documentation

◆ partner_spike_received()

static void partner_spike_received ( uint32_t  time,
spike_t  spike 
)
inlinestatic

Notifies the rule that a spike has been received.

Parameters
[in]timeThe time that the spike was received at
[in]spikeThe spike that was received (includes the sending neuron ID)

Definition at line 36 of file last_neuron_selection_impl.h.

◆ potential_presynaptic_partner()

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 
)
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.

Parameters
[in]timeThe current time
[out]population_idThe ID of the other population
[out]sub_population_idThe ID of the subpopulation (corresponds to remote SpiNNaker core handling the population)
[out]neuron_idThe ID of the neuron within the subpopulation
[out]spikeThe spike that made this a meaningful choice
[out]m_pop_indexThe master population table index
Returns
True if a choice was made

Definition at line 61 of file last_neuron_selection_impl.h.

Variable Documentation

◆ last_spikes_buffer

spike_t* last_spikes_buffer[2]
extern

Spike accumulation buffers.

Two arrays, one for current timestep, one for previous

Definition at line 21 of file last_neuron_selection_impl.c.

◆ n_spikes

uint32_t n_spikes[2]
extern

Spike buffer counters.

Two counters, one for current timestep, one for previous

Definition at line 22 of file last_neuron_selection_impl.c.