interface for different weight implementations for the weight half of a STDP rule.
More...
Go to the source code of this file.
interface for different weight implementations for the weight half of a STDP rule.
the API interface contains:
Definition in file weight.h.
◆ 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] | address | the absolute address in SRAM where the weight parameters are stored. |
[in] | n_synapse_types | The number of synapse types |
[in] | ring_buffer_to_input_buffer_left_shifts | how 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()
Gets the initial weight state.
- Parameters
-
[in] | weight | The weight at the start |
[in] | synapse_type | The type of synapse involved |
- Returns
- The initial weight state.
◆ weight_get_final()
Gets the final weight.
- Parameters
-
[in] | new_state | The updated weight state |
- Returns
- The new weight.
◆ weight_decay()
Decay the weight inside the state by multiplication.
- Parameters
-
[in] | state | The state containing the current weight |
[in] | decay | The "decay" to multiply the weight by, in STDP fixed point format |
◆ weight_get_update()
Get the weight inside during update in STDP fixed point format.
- Parameters
-
[in] | state | The state containing the current weight |
- Returns
- The weight in s1615 format