sPyNNaker neural_modelling 7.2.2
|
API for synapse dynamics. More...
Go to the source code of this file.
Functions | |
bool | synapse_dynamics_initialise (address_t address, uint32_t n_neurons, uint32_t n_synapse_types, uint32_t *ring_buffer_to_input_buffer_left_shifts) |
Initialise the synapse dynamics. | |
bool | synapse_dynamics_process_plastic_synapses (synapse_row_plastic_data_t *plastic_region_data, synapse_row_fixed_part_t *fixed_region, weight_t *ring_buffers, uint32_t time, uint32_t colour_delay, bool *write_back) |
Process the dynamics of the synapses. | |
void | synapse_dynamics_process_post_synaptic_event (uint32_t time, index_t neuron_index) |
Inform the synapses that the neuron fired. | |
void | synapse_dynamics_print_plastic_synapses (synapse_row_plastic_data_t *plastic_region_data, synapse_row_fixed_part_t *fixed_region, uint32_t *ring_buffer_to_input_buffer_left_shifts) |
Print the synapse dynamics. | |
uint32_t | synapse_dynamics_get_plastic_pre_synaptic_events (void) |
Get the counters for plastic pre synaptic events based on (if the model was compiled with SYNAPSE_BENCHMARK parameter) or returns 0. | |
uint32_t | synapse_dynamics_get_plastic_saturation_count (void) |
Get the number of ring buffer saturation events due to adding plastic weights. | |
bool | synapse_dynamics_find_neuron (uint32_t id, synaptic_row_t row, weight_t *weight, uint16_t *delay, uint32_t *offset, uint32_t *synapse_type) |
Search the synaptic row for the the connection with the specified post-synaptic ID. | |
bool | synapse_dynamics_remove_neuron (uint32_t offset, synaptic_row_t row) |
Remove the entry at the specified offset in the synaptic row. | |
bool | synapse_dynamics_add_neuron (uint32_t id, synaptic_row_t row, weight_t weight, uint32_t delay, uint32_t type) |
Add an entry in the synaptic row. | |
uint32_t | synapse_dynamics_n_connections_in_row (synapse_row_fixed_part_t *fixed) |
Get the number of connections in the given row. | |
API for synapse dynamics.
Definition in file synapse_dynamics.h.
bool synapse_dynamics_initialise | ( | address_t | address, |
uint32_t | n_neurons, | ||
uint32_t | n_synapse_types, | ||
uint32_t * | ring_buffer_to_input_buffer_left_shifts | ||
) |
Initialise the synapse dynamics.
[in] | address | Where the configuration data is |
[in] | n_neurons | Number of neurons |
[in] | n_synapse_types | Number of synapse types |
[in] | ring_buffer_to_input_buffer_left_shifts | How to interpret the values from the ring buffers |
Definition at line 276 of file synapse_dynamics_stdp_izhikevich_neuromodulation.c.
bool synapse_dynamics_process_plastic_synapses | ( | synapse_row_plastic_data_t * | plastic_region_data, |
synapse_row_fixed_part_t * | fixed_region, | ||
weight_t * | ring_buffers, | ||
uint32_t | time, | ||
uint32_t | colour_delay, | ||
bool * | write_back | ||
) |
Process the dynamics of the synapses.
[in,out] | plastic_region_data | Where the plastic data is |
[in] | fixed_region | Where the fixed data is |
[in,out] | ring_buffers | The ring buffers |
[in] | time | The current simulation time |
[out] | Whether | to write back anything |
Definition at line 460 of file synapse_dynamics_stdp_izhikevich_neuromodulation.c.
void synapse_dynamics_process_post_synaptic_event | ( | uint32_t | time, |
index_t | neuron_index | ||
) |
Inform the synapses that the neuron fired.
[in] | time | The current simulation time |
[in] | neuron_index | Which neuron are we processing |
Definition at line 109 of file c_main_local_only.c.
void synapse_dynamics_print_plastic_synapses | ( | synapse_row_plastic_data_t * | plastic_region_data, |
synapse_row_fixed_part_t * | fixed_region, | ||
uint32_t * | ring_buffer_to_input_buffer_left_shifts | ||
) |
Print the synapse dynamics.
[in] | plastic_region_data | Where the plastic data is |
[in] | fixed_region | Where the fixed data is |
[in] | ring_buffer_to_input_buffer_left_shifts | How to interpret the values from the ring buffers |
Definition at line 315 of file synapse_dynamics_stdp_izhikevich_neuromodulation.c.
uint32_t synapse_dynamics_get_plastic_pre_synaptic_events | ( | void | ) |
Get the counters for plastic pre synaptic events based on (if the model was compiled with SYNAPSE_BENCHMARK parameter) or returns 0.
Definition at line 146 of file synapse_dynamics_stdp_common.h.
uint32_t synapse_dynamics_get_plastic_saturation_count | ( | void | ) |
Get the number of ring buffer saturation events due to adding plastic weights.
Definition at line 150 of file synapse_dynamics_stdp_common.h.
bool synapse_dynamics_find_neuron | ( | uint32_t | id, |
synaptic_row_t | row, | ||
weight_t * | weight, | ||
uint16_t * | delay, | ||
uint32_t * | offset, | ||
uint32_t * | synapse_type | ||
) |
Search the synaptic row for the the connection with the specified post-synaptic ID.
[in] | id | the (core-local) ID of the neuron to search for in the synaptic row |
[in] | row | the core-local address of the synaptic row |
[out] | weight | address to contain the weight of the connection |
[out] | delay | address to contain the delay of the connection |
[out] | offset | address to contain the offset of the connection |
[out] | synapse_type | the synapse type of the connection |
Definition at line 512 of file synapse_dynamics_stdp_izhikevich_neuromodulation.c.
bool synapse_dynamics_remove_neuron | ( | uint32_t | offset, |
synaptic_row_t | row | ||
) |
Remove the entry at the specified offset in the synaptic row.
[in] | offset | the offset in the row at which to remove the entry |
[in] | row | the core-local address of the synaptic row |
Definition at line 542 of file synapse_dynamics_stdp_izhikevich_neuromodulation.c.
bool synapse_dynamics_add_neuron | ( | uint32_t | id, |
synaptic_row_t | row, | ||
weight_t | weight, | ||
uint32_t | delay, | ||
uint32_t | type | ||
) |
Add an entry in the synaptic row.
[in] | id | the (core-local) ID of the post-synaptic neuron to be added |
[in] | row | the core-local address of the synaptic row |
[in] | weight | the initial weight associated with the connection |
[in] | delay | the delay associated with the connection |
[in] | type | the type of the connection (e.g. inhibitory) |
Definition at line 560 of file synapse_dynamics_stdp_izhikevich_neuromodulation.c.
uint32_t synapse_dynamics_n_connections_in_row | ( | synapse_row_fixed_part_t * | fixed | ) |
Get the number of connections in the given row.
[in] | fixed | the fixed region of the synaptic row |
Definition at line 201 of file synapse_dynamics_stdp_common.h.