sPyNNaker neural_modelling 7.2.2
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
synapse_structure_weight_state_accumulator_impl.h File Reference

Synapse made of weight, accumulator, and other state. More...

#include "synapse_structure.h"

Go to the source code of this file.

Data Structures

struct  plastic_synapse_t
 Plastic synapse contains normal 16-bit weight and an accumulator. More...
 
struct  update_state_t
 

Typedefs

typedef plastic_synapse_t final_state_t
 Final states are actually directly what is stored.
 

Functions

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.
 
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_final_weight (final_state_t final_state)
 Get the final weight from the final state.
 
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.
 
static plastic_synapse_t synapse_structure_create_synapse (weight_t weight)
 Create the initial plastic synapse data.
 
static weight_t synapse_structure_get_weight (plastic_synapse_t synaptic_word)
 Get the current synaptic weight from the plastic synapse data.
 
static void synapse_structure_decay_weight (update_state_t *state, uint32_t decay)
 
static accum synapse_structure_get_update_weight (update_state_t state)
 

Detailed Description

Synapse made of weight, accumulator, and other state.

Definition in file synapse_structure_weight_state_accumulator_impl.h.


Data Structure Documentation

◆ plastic_synapse_t

struct plastic_synapse_t

Plastic synapse contains normal 16-bit weight and an accumulator.

Plastic synapse contains normal 16-bit weight, a small state machine, an accumulator, and the size of the relevance window.

Plastic synapse contains normal 16-bit weight, a small state machine and an accumulator

Definition at line 26 of file synapse_structure_weight_accumulator_impl.h.

Data Fields
weight_t weight The state.

Weight.

int16_t accumulator The accumulator.
int8_t accumulator Accumulator.
uint8_t state State machine state.
unsigned int weight: 16 The weight.
int accumulator: 4 The accumulator.
unsigned int state: 2 The state machine state.
unsigned int window_length: 10 The window length.

◆ update_state_t

struct update_state_t

The update state is a weight state with 32-bit ARM-friendly version of the accumulator

The update state is a weight state with 32-bit ARM-friendly versions of the accumulator and the state

The update state is a weight state with 32-bit ARM-friendly versions of the accumulator, state and window length

Definition at line 35 of file synapse_structure_weight_accumulator_impl.h.

Data Fields
weight_state_t weight_state The weight staet.

The weight state.

Weight state.

int32_t accumulator The accumulator (in ARM-friendly format)

The accumulator.

Accumulator.

int32_t state State machine state.

The state machine state.

uint32_t window_length The window length.

Typedef Documentation

◆ final_state_t

Final states are actually directly what is stored.

Definition at line 42 of file synapse_structure_weight_state_accumulator_impl.h.

Function Documentation

◆ synapse_structure_get_update_state()

static update_state_t synapse_structure_get_update_state ( plastic_synapse_t  synaptic_word,
index_t  synapse_type 
)
inlinestatic

Get the update state from the synapse structure.

Parameters
[in]synaptic_wordThe plastic synapse data
[in]synapse_typeWhat (supported) type of synapse is this?
Returns
The update state

Creates update state, using weight dependence to initialise the weight state, and copying other parameters from the synaptic word into 32-bit form

Definition at line 54 of file synapse_structure_weight_state_accumulator_impl.h.

◆ synapse_structure_get_final_state()

static final_state_t synapse_structure_get_final_state ( update_state_t  state)
inlinestatic

Get the final state from the update state.

Parameters
[in]statethe update state
Returns
the final state

Definition at line 68 of file synapse_structure_weight_state_accumulator_impl.h.

◆ synapse_structure_get_final_weight()

static weight_t synapse_structure_get_final_weight ( final_state_t  final_state)
inlinestatic

Get the final weight from the final state.

Parameters
[in]final_statethe final state
Returns
the final weight

Definition at line 85 of file synapse_structure_weight_state_accumulator_impl.h.

◆ synapse_structure_get_final_synaptic_word()

static plastic_synapse_t synapse_structure_get_final_synaptic_word ( final_state_t  final_state)
inlinestatic

Get the final plastic synapse data from the final state.

Parameters
[in]final_statethe final state
Returns
the final plastic synapse data, ready to be stored

Definition at line 94 of file synapse_structure_weight_state_accumulator_impl.h.

◆ synapse_structure_create_synapse()

static plastic_synapse_t synapse_structure_create_synapse ( weight_t  weight)
inlinestatic

Create the initial plastic synapse data.

Parameters
[in]weightthe initial synaptic weight
Returns
the plastic synapse data

Definition at line 103 of file synapse_structure_weight_state_accumulator_impl.h.

◆ synapse_structure_get_weight()

static weight_t synapse_structure_get_weight ( plastic_synapse_t  synaptic_word)
inlinestatic

Get the current synaptic weight from the plastic synapse data.

Parameters
[in]synaptic_wordthe plastic synapse data
Returns
the current synaptic weight

Definition at line 117 of file synapse_structure_weight_state_accumulator_impl.h.

◆ synapse_structure_decay_weight()

static void synapse_structure_decay_weight ( update_state_t state,
uint32_t  decay 
)
inlinestatic

◆ synapse_structure_get_update_weight()

static accum synapse_structure_get_update_weight ( update_state_t  state)
inlinestatic