19#ifndef _SYNAPSE_STRUCTURE_WEIGHT_STATE_ACCUMULATOR_WINDOW_H_
20#define _SYNAPSE_STRUCTURE_WEIGHT_STATE_ACCUMULATOR_WINDOW_H_
60 update_state.
state = (uint32_t) synaptic_word.
state;
78 .state = (
unsigned int) state.
state,
121 return synaptic_word.
weight;
124static inline void synapse_structure_decay_weight(
129static inline accum synapse_structure_get_update_weight(
update_state_t state) {
#define decay(x, d)
This is a type-generic decay "function".
unsigned int window_length
The window length.
int16_t accumulator
The accumulator.
plastic_synapse_t final_state_t
Final states are actually directly what is stored.
uint32_t window_length
The window length.
static plastic_synapse_t synapse_structure_get_final_synaptic_word(final_state_t final_state)
Get the final plastic synapse data from the final state.
uint8_t state
State machine state.
weight_state_t weight_state
The weight staet.
unsigned int weight
The weight.
static plastic_synapse_t synapse_structure_create_synapse(weight_t weight)
Create the initial plastic synapse data.
static update_state_t synapse_structure_get_update_state(plastic_synapse_t synaptic_word, index_t synapse_type)
Get the update state from the synapse structure.
unsigned int state
The state machine state.
int32_t state
State machine state.
static weight_t synapse_structure_get_final_weight(final_state_t final_state)
Get the final weight from the final state.
int32_t accumulator
The accumulator (in ARM-friendly format)
int accumulator
The accumulator.
static final_state_t synapse_structure_get_final_state(update_state_t state)
Get the final state from the update state.
static weight_t synapse_structure_get_weight(plastic_synapse_t synaptic_word)
Get the current synaptic weight from the plastic synapse data.
weight_t weight
The state.
Plastic synapse contains normal 16-bit weight and an accumulator.
static weight_t weight_get_final(weight_state_t new_state)
Gets the final weight.
static weight_state_t weight_get_initial(weight_t weight, index_t synapse_type)
Gets the initial weight state.
static void weight_decay(weight_state_t *state, int32_t decay)
Decay the weight inside the state by multiplication.
static accum weight_get_update(weight_state_t state)
Get the weight inside during update in STDP fixed point format.
The current state data for the rule.