26#ifndef VOGELS_2011_IMPL_H
27#define VOGELS_2011_IMPL_H
64static inline int16_t timing_decay_post(
73 return (uint16_t) decayed_trace;
83 uint32_t time, uint32_t
last_time, int16_t last_trace) {
86 int32_t decayed_trace = timing_decay_post(
time,
last_time, last_trace);
91 return (int16_t)new_trace;
133 uint32_t time, UNUSED
pre_trace_t trace, UNUSED uint32_t last_pre_time,
134 UNUSED
pre_trace_t last_pre_trace, uint32_t last_post_time,
139 uint32_t time_since_last_post =
time - last_post_time;
145 log_debug(
"\t\t\ttime_since_last_post_event=%u, decayed_o1=%d\n",
146 time_since_last_post, decayed_o1);
163 uint32_t time, UNUSED
post_trace_t trace, uint32_t last_pre_time,
164 pre_trace_t last_pre_trace, UNUSED uint32_t last_post_time,
167 uint32_t time_since_last_pre =
time - last_pre_time;
172 log_debug(
"\t\t\ttime_since_last_pre_event=%u, decayed_r1=%d\n",
173 time_since_last_pre, decayed_r1);
uint32_t time
The current timer tick value.
void log_debug(const char *message,...)
uint32_t last_time
The time of the most recently-considered spike.
Support functions for STDP.
static int32_t maths_lut_exponential_decay(uint32_t time, const int16_lut *lut)
Get value from lookup table.
Lookup Table of 16-bit integers.
Basic definitions for STDP.
#define STDP_FIXED_POINT_ONE
The number 1.0 in the fixed point math used by STDP.
#define STDP_FIXED_MUL_16X16(a, b)
Multiply two STDP fixed point numbers.
Synapses just hold weight.
plasticity_trace_region_data_t plasticity_trace_region_data
Global plasticity parameter data.
The type of post-spike traces.
The type of pre-spike traces.
static post_trace_t timing_add_post_spike(uint32_t time, uint32_t last_time, post_trace_t last_trace)
Add a post spike to the post trace.
static update_state_t timing_apply_pre_spike(uint32_t time, pre_trace_t trace, uint32_t last_pre_time, pre_trace_t last_pre_trace, uint32_t last_post_time, post_trace_t last_post_trace, update_state_t previous_state)
Apply a pre-spike timing rule state update.
static int16_t timing_add_spike(uint32_t time, uint32_t last_time, int16_t last_trace)
Common code for adding a spike to the trace.
static pre_trace_t timing_add_pre_spike(uint32_t time, uint32_t last_time, pre_trace_t last_trace)
Add a pre spike to the pre trace.
int16_t post_trace_t
Type of post-traces.
int16_t pre_trace_t
Type of pre-traces.
static update_state_t timing_apply_post_spike(uint32_t time, post_trace_t trace, uint32_t last_pre_time, pre_trace_t last_pre_trace, uint32_t last_post_time, post_trace_t last_post_trace, update_state_t previous_state)
Apply a post-spike timing rule state update.
static post_trace_t timing_get_initial_post_trace(void)
Get an initial post-synaptic timing trace.
int16_lut * tau_lookup
Lookup table for pre-computed τ
Configuration information about plasticity traces.
static weight_state_t weight_one_term_apply_potentiation(weight_state_t state, int32_t a2_plus)
Apply the potentiation rule to the weight state.
API for single-term weight dependence rules.