sPyNNaker neural_modelling 7.1.1
Loading...
Searching...
No Matches
Macros | Functions
stdp_typedefs.h File Reference

Basic definitions for STDP. More...

Go to the source code of this file.

Macros

#define STDP_FIXED_POINT   11
 Position of the point in the fixed point math used by STDP.
 
#define STDP_FIXED_POINT_ONE   (1 << STDP_FIXED_POINT)
 The number 1.0 in the fixed point math used by STDP.
 
#define STDP_FIXED_MUL_16X16(a, b)   maths_fixed_mul16(a, b, STDP_FIXED_POINT)
 Multiply two STDP fixed point numbers.
 
#define S1615_TO_STDP_RIGHT_SHIFT   4
 

Functions

static accum mul_accum_fixed (accum a, int32_t stdp_fixed)
 Multiply an accum by an STDP fixed point and return an accum.
 

Detailed Description

Basic definitions for STDP.

Definition in file stdp_typedefs.h.

Macro Definition Documentation

◆ STDP_FIXED_POINT

#define STDP_FIXED_POINT   11

Position of the point in the fixed point math used by STDP.

Definition at line 29 of file stdp_typedefs.h.

◆ STDP_FIXED_POINT_ONE

#define STDP_FIXED_POINT_ONE   (1 << STDP_FIXED_POINT)

The number 1.0 in the fixed point math used by STDP.

Definition at line 31 of file stdp_typedefs.h.

◆ STDP_FIXED_MUL_16X16

#define STDP_FIXED_MUL_16X16 (   a,
 
)    maths_fixed_mul16(a, b, STDP_FIXED_POINT)

Multiply two STDP fixed point numbers.

Parameters
[in]aThe first multiplicand
[in]bThe second multiplicand
Returns
The product

Definition at line 38 of file stdp_typedefs.h.

◆ S1615_TO_STDP_RIGHT_SHIFT

#define S1615_TO_STDP_RIGHT_SHIFT   4

The amount of right shift required to take a weight from s1615 format to STDP_FIXED_POINT format (s4,11)

Definition at line 42 of file stdp_typedefs.h.

Function Documentation

◆ mul_accum_fixed()

static accum mul_accum_fixed ( accum  a,
int32_t  stdp_fixed 
)
inlinestatic

Multiply an accum by an STDP fixed point and return an accum.

Definition at line 45 of file stdp_typedefs.h.