24#ifndef _SYNAPSE_TYPES_SEMD_IMPL_H_
25#define _SYNAPSE_TYPES_SEMD_IMPL_H_
32#define SYNAPSE_TYPE_BITS 2
35#define SYNAPSE_TYPE_COUNT 3
38#define NUM_EXCITATORY_RECEPTORS 2
40#define NUM_INHIBITORY_RECEPTORS 1
99 params->exc.init_input = state->
exc.synaptic_input_value;
101 params->inh.init_input = state->
inh.synaptic_input_value;
129 switch (synapse_type_index) {
159 excitatory_response[0] =
ZERO;
160 excitatory_response[1] =
163 return &excitatory_response[0];
173 inhibitory_response[0] = parameters->
inh.synaptic_input_value;
174 return &inhibitory_response[0];
184 switch (synapse_type_index) {
192 log_debug(
"did not recognise synapse type %i", synapse_type_index);
202 log_info(
"%12.6k + %12.6k - %12.6k",
203 parameters->
exc.synaptic_input_value,
205 parameters->
inh.synaptic_input_value);
214 log_info(
"exc_init = %11.4k\n", parameters->
exc.init);
218 log_info(
"inh_init = %11.4k\n", parameters->
inh.init);
219 log_info(
"gsyn_excitatory_initial_value = %11.4k\n",
220 parameters->
exc.synaptic_input_value);
221 log_info(
"gsyn_excitatory2_initial_value = %11.4k\n",
223 log_info(
"gsyn_inhibitory_initial_value = %11.4k\n",
224 parameters->
inh.synaptic_input_value);
void log_debug(const char *message,...)
void log_info(const char *message,...)
Utilities for synapse types with exponential decays.
decay_t decay
Decay multiplier per timestep.
input_t synaptic_input_value
The actual synaptic contribution.
decay_t init
Initial decay factor.
static void decay_and_init(exp_state_t *state, exp_params_t *params, REAL time_step_ms, uint32_t n_steps_per_timestep)
Calculate the exponential state from the exponential parameters.
static void exp_shaping(exp_state_t *exp_param)
Shapes a single parameter.
static void add_input_exp(exp_state_t *parameter, input_t input)
helper function to add input for a given timer period to a given neuron
The type of exponential decay parameters.
The type of exponential decay state.
accum REAL
Type used for "real" numbers.
REAL input_t
The type of an input.
static uint n_steps_per_timestep
The number of steps to run per timestep.
static stdp_params params
Configuration parameters.
API for synaptic behaviour types (see also src/neuron/input_types)
decay_t decay
Exponential decay multiplier.
input_t exc2_old
History storage used to reset synaptic state.
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,...
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
input_t scaling_factor
Scaling factor for the secondary response.
input_t exc2_old_init
History storage used to reset synaptic state.
input_t scaling_factor
Scaling factor for the secondary response.
exp_params_t exc2
Second excitatory synaptic input.
input_t multiplicator_init
Output scaling factor derived from first excitatory input.
input_t multiplicator
Output scaling factor derived from first excitatory input.
static void synapse_types_add_neuron_input(index_t synapse_type_index, synapse_types_t *parameter, input_t input)
adds the inputs for a give timer period to a given neuron that is being simulated by this model
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 a...
alpha_state_t inh
Inhibitory synaptic input.
REAL timestep_ms
The time step in milliseconds.
synapse_semd_input_buffer_regions
The supported synapse type indices.
@ INHIBITORY
Inhibitory synaptic input.
@ EXCITATORY_TWO
Second excitatory synaptic input.
@ EXCITATORY_ONE
First excitatory synaptic input.
static void synapse_types_print_parameters(synapse_types_t *parameters)
printer call
alpha_params_t exc
First excitatory synaptic input.
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 ...
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
exp_state_t exc2
Second excitatory synaptic input.
alpha_state_t exc
Excitatory synaptic input.
Delta synapses support just a single excitatory and inhibitory input each.