19#ifndef _WEIGHT_MULTIPLICATIVE_IMPL_H_
20#define _WEIGHT_MULTIPLICATIVE_IMPL_H_
63 weight_t weight,
index_t synapse_type) {
67 accum s1615_weight = kbits(weight <<
weight_shift[synapse_type]);
69 .weight = s1615_weight,
#define decay(x, d)
This is a type-generic decay "function".
Support functions for STDP.
Basic definitions for STDP.
static accum mul_accum_fixed(accum a, int32_t stdp_fixed)
Multiply an accum by an STDP fixed point and return an accum.
implementation for handling the processing of synapse rows.
uint32_t * weight_shift
Plasticity multiply shift array, in DTCM.
plasticity_weight_region_data_t * plasticity_weight_region_data
Global plasticity parameter data.
const plasticity_weight_region_data_t * weight_region
Reference to the configuration data.
static weight_state_t weight_one_term_apply_potentiation(weight_state_t state, int32_t potentiation)
Apply the potentiation rule to the weight state.
accum a2_plus
Scaling factor for weight delta on potentiation.
accum min_weight
Minimum weight.
static weight_state_t weight_get_initial(weight_t weight, index_t synapse_type)
Gets the initial weight state.
accum max_weight
Maximum weight.
accum a2_minus
Scaling factor for weight delta on depression.
static weight_state_t weight_one_term_apply_depression(weight_state_t state, int32_t depression)
Apply the depression rule to the weight state.
static weight_t weight_get_final(weight_state_t state)
Gets the final weight.
accum weight
The starting weight.
uint32_t weight_shift
Weight shift to S1615 version.
The configuration of the rule.
The current state data for the rule.
API for single-term weight dependence rules.