46 UNUSED uint32_t *ring_buffer_to_input_buffer_left_shifts) {
51 struct plasticity_weight_region_data_two_term_t *dtcm_copy =
53 sizeof(
struct plasticity_weight_region_data_two_term_t) *
55 if (dtcm_copy ==
NULL) {
56 log_error(
"Could not initialise weight region data");
62 log_error(
"Could not initialise weight region data");
67 dtcm_copy[s].min_weight =
config->min_weight;
68 dtcm_copy[s].max_weight =
config->max_weight;
69 dtcm_copy[s].a2_plus =
config->a2_plus;
70 dtcm_copy[s].a2_minus =
config->a2_minus;
71 dtcm_copy[s].a3_plus =
config->a3_plus;
72 dtcm_copy[s].a3_minus =
config->a3_minus;
75 weight_shift[s] = ring_buffer_to_input_buffer_left_shifts[s];
77 log_debug(
"\tSynapse type %u: Min weight:%d, Max weight:%d, A2+:%d, A2-:%d,"
79 s, dtcm_copy[s].min_weight, dtcm_copy[s].max_weight,
80 dtcm_copy[s].a2_plus, dtcm_copy[s].a2_minus,
81 dtcm_copy[s].a3_plus, dtcm_copy[s].a3_minus);
void log_error(const char *message,...)
void log_debug(const char *message,...)
static uint32_t n_synapse_types
The number of synapse types.
address_t weight_initialise(address_t address, uint32_t n_synapse_types, uint32_t *ring_buffer_to_input_buffer_left_shifts)
Initialises the weight aspect of an STDP rule.
uint32_t * weight_shift
Plasticity multiply shift array, in DTCM.
plasticity_weight_region_data_t * plasticity_weight_region_data
Global plasticity parameter data.
How the configuration data for additive_two_term is laid out in SDRAM. The layout is an array of thes...
Additive dual-term weight dependence rule.
The configuration of the rule.