sPyNNaker neural_modelling 7.2.2
|
implementation of synapse_types.h for Exponential shaping More...
Go to the source code of this file.
Data Structures | |
struct | synapse_types_params_t |
struct | synapse_types_t |
Delta synapses support just a single excitatory and inhibitory input each. More... | |
Macros | |
#define | SYNAPSE_TYPE_BITS 1 |
Number of bits to encode the synapse type. | |
#define | SYNAPSE_TYPE_COUNT 2 |
Number of synapse types. | |
#define | NUM_EXCITATORY_RECEPTORS 1 |
Number of excitatory receptors. | |
#define | NUM_INHIBITORY_RECEPTORS 1 |
Number of inhibitory receptors. | |
Enumerations | |
enum | exponential_synapse_input_buffer_regions { EXCITATORY , INHIBITORY } |
The supported synapse type indices. More... | |
Functions | |
static void | synapse_types_initialise (synapse_types_t *state, synapse_types_params_t *params, uint32_t n_steps_per_timestep) |
static void | synapse_types_save_state (synapse_types_t *state, synapse_types_params_t *params) |
static void | synapse_types_shape_input (synapse_types_t *parameters) |
decays the stuff thats sitting in the input buffers as these have not yet been processed and applied to the neuron. | |
static void | synapse_types_add_neuron_input (index_t synapse_type_index, synapse_types_t *parameters, input_t input) |
adds the inputs for a give timer period to a given neuron that is being simulated by this model | |
static input_t * | synapse_types_get_excitatory_input (input_t *excitatory_response, synapse_types_t *parameters) |
extracts the excitatory input buffers from the buffers available for a given parameter set | |
static input_t * | synapse_types_get_inhibitory_input (input_t *inhibitory_response, synapse_types_t *parameters) |
extracts the inhibitory input buffers from the buffers available for a given parameter set | |
static const char * | synapse_types_get_type_char (index_t synapse_type_index) |
returns a human readable character for the type of synapse. examples would be X = excitatory types, I = inhibitory types etc etc. | |
static void | synapse_types_print_input (synapse_types_t *parameters) |
prints the input for a neuron ID given the available inputs currently only executed when the models are in debug mode, as the prints are controlled from the synapses.c print_inputs() method. | |
static void | synapse_types_print_parameters (synapse_types_t *parameters) |
printer call | |
implementation of synapse_types.h for Exponential shaping
This is used to give a simple exponential decay to synapses.
If we have combined excitatory/inhibitory synapses it will be because both excitatory and inhibitory synaptic time-constants (and thus propagations) are identical.
Definition in file synapse_types_exponential_impl.h.
struct synapse_types_params_t |
Definition at line 55 of file synapse_types_alpha_impl.h.
Data Fields | ||
---|---|---|
alpha_params_t | exc | First excitatory synaptic input. |
alpha_params_t | inh |
Inhibitory synaptic input |
REAL | time_step_ms | |
input_t | exc | |
input_t | inh | |
exp_params_t | exc | First excitatory synaptic input. |
exp_params_t | exc2 | Second excitatory synaptic input. |
exp_params_t | inh |
Inhibitory synaptic input |
input_t | multiplicator_init | Output scaling factor derived from first excitatory input. |
input_t | exc2_old_init | History storage used to reset synaptic state. |
input_t | scaling_factor | Scaling factor for the secondary response. |
REAL | timestep_ms | The time step in milliseconds. |
struct synapse_types_t |
Delta synapses support just a single excitatory and inhibitory input each.
Definition at line 71 of file synapse_types_alpha_impl.h.
Data Fields | ||
---|---|---|
alpha_state_t | exc |
Excitatory synaptic input. First excitatory synaptic input. |
alpha_state_t | inh |
Inhibitory synaptic input. Inhibitory synaptic input |
input_t | exc | Excitatory synaptic input. |
input_t | inh | Inhibitory synaptic input. |
exp_state_t | exc |
First excitatory synaptic input. Excitatory synaptic input. |
exp_state_t | exc2 | Second excitatory synaptic input. |
exp_state_t | inh |
Inhibitory synaptic input. Inhibitory synaptic input |
input_t | multiplicator | Output scaling factor derived from first excitatory input. |
input_t | exc2_old | History storage used to reset synaptic state. |
input_t | scaling_factor | Scaling factor for the secondary response. |
#define SYNAPSE_TYPE_BITS 1 |
Number of bits to encode the synapse type.
ceil(log2(SYNAPSE_TYPE_COUNT))
Definition at line 36 of file synapse_types_exponential_impl.h.
#define SYNAPSE_TYPE_COUNT 2 |
Number of synapse types.
NUM_EXCITATORY_RECEPTORS + NUM_INHIBITORY_RECEPTORS
Definition at line 39 of file synapse_types_exponential_impl.h.
#define NUM_EXCITATORY_RECEPTORS 1 |
Number of excitatory receptors.
Definition at line 42 of file synapse_types_exponential_impl.h.
#define NUM_INHIBITORY_RECEPTORS 1 |
Number of inhibitory receptors.
Definition at line 44 of file synapse_types_exponential_impl.h.
The supported synapse type indices.
Enumerator | |
---|---|
EXCITATORY | Excitatory synaptic input. |
INHIBITORY | Inhibitory synaptic input. |
Definition at line 66 of file synapse_types_exponential_impl.h.
|
inlinestatic |
Definition at line 75 of file synapse_types_exponential_impl.h.
|
inlinestatic |
Definition at line 81 of file synapse_types_exponential_impl.h.
|
inlinestatic |
decays the stuff thats sitting in the input buffers as these have not yet been processed and applied to the neuron.
This is to compensate for the valve behaviour of a synapse in biology (spike goes in, synapse opens, then closes slowly) plus the leaky aspect of a neuron.
[in,out] | parameters | the parameters to update |
Definition at line 95 of file synapse_types_exponential_impl.h.
|
inlinestatic |
adds the inputs for a give timer period to a given neuron that is being simulated by this model
[in] | synapse_type_index | the type of input that this input is to be considered (aka excitatory or inhibitory etc) |
[in,out] | parameters | the parameters to update |
[in] | input | the inputs for that given synapse_type. |
Definition at line 107 of file synapse_types_exponential_impl.h.
|
inlinestatic |
extracts the excitatory input buffers from the buffers available for a given parameter set
[in,out] | excitatory_response | Buffer to put response in |
[in] | parameters | the pointer to the parameters to use |
Definition at line 125 of file synapse_types_exponential_impl.h.
|
inlinestatic |
extracts the inhibitory input buffers from the buffers available for a given parameter set
[in,out] | inhibitory_response | Buffer to put response in |
[in] | parameters | the pointer to the parameters to use |
Definition at line 136 of file synapse_types_exponential_impl.h.
|
inlinestatic |
returns a human readable character for the type of synapse. examples would be X = excitatory types, I = inhibitory types etc etc.
[in] | synapse_type_index | the synapse type index (there is a specific index interpretation in each synapse type) |
Definition at line 147 of file synapse_types_exponential_impl.h.
|
inlinestatic |
prints the input for a neuron ID given the available inputs currently only executed when the models are in debug mode, as the prints are controlled from the synapses.c print_inputs() method.
[in] | parameters | the pointer to the parameters to use |
Definition at line 164 of file synapse_types_exponential_impl.h.
|
inlinestatic |
printer call
[in] | parameters | the pointer to the parameters to print |
Definition at line 173 of file synapse_types_exponential_impl.h.