sPyNNaker neural_modelling 7.3.1
Loading...
Searching...
No Matches
Functions
weight.h File Reference

interface for different weight implementations for the weight half of a STDP rule. More...

#include <common/neuron-typedefs.h>
#include <neuron/synapse_row.h>

Go to the source code of this file.

Functions

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.
 
static weight_state_t weight_get_initial (weight_t weight, index_t synapse_type)
 Gets the initial weight state.
 
static weight_t weight_get_final (weight_state_t new_state)
 Gets the final weight.
 
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.
 

Detailed Description

interface for different weight implementations for the weight half of a STDP rule.

the API interface contains:

Definition in file weight.h.

Function Documentation

◆ weight_initialise()

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.

Parameters
[in]addressthe absolute address in SRAM where the weight parameters are stored.
[in]n_synapse_typesThe number of synapse types
[in]ring_buffer_to_input_buffer_left_shiftshow much a value needs to be shifted in the left direction to support comprises with fixed point arithmetic
Returns
the end of the weight region as an absolute SDRAM memory address.

Definition at line 42 of file weight_additive_one_term_impl.c.

◆ weight_get_initial()

static weight_state_t weight_get_initial ( weight_t  weight,
index_t  synapse_type 
)
static

Gets the initial weight state.

Parameters
[in]weightThe weight at the start
[in]synapse_typeThe type of synapse involved
Returns
The initial weight state.

◆ weight_get_final()

static weight_t weight_get_final ( weight_state_t  new_state)
static

Gets the final weight.

Parameters
[in]new_stateThe updated weight state
Returns
The new weight.

◆ weight_decay()

static void weight_decay ( weight_state_t state,
int32_t  decay 
)
static

Decay the weight inside the state by multiplication.

Parameters
[in]stateThe state containing the current weight
[in]decayThe "decay" to multiply the weight by, in STDP fixed point format

◆ weight_get_update()

static accum weight_get_update ( weight_state_t  state)
static

Get the weight inside during update in STDP fixed point format.

Parameters
[in]stateThe state containing the current weight
Returns
The weight in s1615 format