|
sPyNNaker neural_modelling 7.4.2
|
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. | |
Basic definitions for STDP.
Definition in file stdp_typedefs.h.
| #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.
| #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.
| #define STDP_FIXED_MUL_16X16 | ( | a, | |
| b | |||
| ) | maths_fixed_mul16(a, b, STDP_FIXED_POINT) |
Multiply two STDP fixed point numbers.
| [in] | a | The first multiplicand |
| [in] | b | The second multiplicand |
Definition at line 38 of file stdp_typedefs.h.
| #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.
|
inlinestatic |
Multiply an accum by an STDP fixed point and return an accum.
Definition at line 45 of file stdp_typedefs.h.