sPyNNaker neural_modelling 7.2.2
|
Inlined neuron implementation following standard component model. More...
#include "neuron_impl.h"
#include <neuron/models/neuron_model.h>
#include <neuron/input_types/input_type.h>
#include <neuron/additional_inputs/additional_input.h>
#include <neuron/threshold_types/threshold_type.h>
#include <neuron/synapse_types/synapse_types.h>
#include <neuron/current_sources/current_source.h>
#include <debug.h>
#include <bit_field.h>
#include <recording.h>
#include <neuron/neuron_recording.h>
Go to the source code of this file.
Enumerations | |
enum | word_recording_indices { V_RECORDING_INDEX = 0 , GSYN_EXC_RECORDING_INDEX = 1 , GSYN_INH_RECORDING_INDEX = 2 , N_RECORDED_VARS = 3 } |
Indices for recording of words. More... | |
enum | bitfield_recording_indices { SPIKE_RECORDING_BITFIELD = 0 , N_BITFIELD_VARS = 1 } |
Indices for recording of bitfields. More... | |
Functions | |
static bool | neuron_impl_initialise (uint32_t n_neurons) |
Initialise the particular implementation of the data. | |
static void | neuron_impl_add_inputs (index_t synapse_type_index, index_t neuron_index, input_t weights_this_timestep) |
Add inputs to the neuron. | |
static uint32_t | n_words_needed (size_t size) |
The number of words required to hold an object of given size. | |
static void | neuron_impl_load_neuron_parameters (address_t address, uint32_t next, uint32_t n_neurons, address_t save_initial_state) |
Load in the neuron parameters. | |
static void | neuron_impl_do_timestep_update (uint32_t timer_count, uint32_t time, uint32_t n_neurons) |
Do the timestep update for the particular implementation. | |
static void | neuron_impl_store_neuron_parameters (address_t address, uint32_t next, uint32_t n_neurons) |
Stores neuron parameters back into SDRAM. | |
void | neuron_impl_print_inputs (uint32_t n_neurons) |
Print the inputs to the neurons. | |
void | neuron_impl_print_synapse_parameters (uint32_t n_neurons) |
Print the synapse parameters of the neurons. | |
const char * | neuron_impl_get_synapse_type_char (uint32_t synapse_type) |
Get the synapse type character for a synapse type. | |
Variables | |
static neuron_t * | neuron_array |
Array of neuron states. | |
static input_type_t * | input_type_array |
Input states array. | |
static additional_input_t * | additional_input_array |
Additional input array. | |
static threshold_type_t * | threshold_type_array |
Threshold states array. | |
static synapse_types_t * | synapse_types_array |
The synapse shaping parameters. | |
static uint | n_steps_per_timestep |
The number of steps to run per timestep. | |
Inlined neuron implementation following standard component model.
Definition in file neuron_impl_standard.h.
Indices for recording of words.
Definition at line 39 of file neuron_impl_standard.h.
Indices for recording of bitfields.
Enumerator | |
---|---|
SPIKE_RECORDING_BITFIELD | Spike event recording index. |
N_BITFIELD_VARS | Number of recorded bitfields. |
Definition at line 51 of file neuron_impl_standard.h.
|
static |
Initialise the particular implementation of the data.
[in] | n_neurons | The number of neurons |
Definition at line 83 of file neuron_impl_standard.h.
|
static |
Add inputs to the neuron.
[in] | synapse_type_index | the synapse type (e.g. exc. or inh.) |
[in] | neuron_index | the index of the neuron |
[in] | weights_this_timestep | weight inputs to be added |
Definition at line 142 of file neuron_impl_standard.h.
|
static |
The number of words required to hold an object of given size.
[in] | size | The size of object |
Definition at line 154 of file neuron_impl_standard.h.
|
static |
Load in the neuron parameters.
[in] | address | SDRAM block to read parameters from |
[in] | next | Offset of next address in store |
[in] | n_neurons | number of neurons |
[in] | save_initial_state | If not 0, SDRAM block to copy parameters to |
Definition at line 164 of file neuron_impl_standard.h.
|
static |
Do the timestep update for the particular implementation.
[in] | timer_count | The timer count, used for TDMA packet spreading |
[in] | time | The time step of the update |
[in] | n_neurons | The number of neurons |
Definition at line 239 of file neuron_impl_standard.h.
|
static |
Stores neuron parameters back into SDRAM.
[out] | address | the address in SDRAM to start the store |
[in] | next | Offset of next address in store |
[in] | n_neurons | number of neurons |
Definition at line 351 of file neuron_impl_standard.h.
void neuron_impl_print_inputs | ( | uint32_t | n_neurons | ) |
Print the inputs to the neurons.
[in] | n_neurons | The number of neurons |
Definition at line 402 of file neuron_impl_standard.h.
void neuron_impl_print_synapse_parameters | ( | uint32_t | n_neurons | ) |
Print the synapse parameters of the neurons.
[in] | n_neurons | The number of neurons |
Definition at line 433 of file neuron_impl_standard.h.
const char * neuron_impl_get_synapse_type_char | ( | uint32_t | synapse_type | ) |
Get the synapse type character for a synapse type.
[in] | synapse_type | The synapse type |
Definition at line 443 of file neuron_impl_standard.h.
|
static |
Array of neuron states.
Definition at line 62 of file neuron_impl_standard.h.
|
static |
Input states array.
Definition at line 65 of file neuron_impl_standard.h.
|
static |
Additional input array.
Definition at line 68 of file neuron_impl_standard.h.
|
static |
Threshold states array.
Definition at line 71 of file neuron_impl_standard.h.
|
static |
The synapse shaping parameters.
Definition at line 74 of file neuron_impl_standard.h.
|
static |
The number of steps to run per timestep.
Definition at line 77 of file neuron_impl_standard.h.