sPyNNaker neural_modelling 7.2.2
Loading...
Searching...
No Matches
timing_recurrent_dual_fsm_impl.c
Go to the documentation of this file.
1/*
2 * Copyright (c) 2017 The University of Manchester
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
20
21//---------------------------------------
22// Globals
23//---------------------------------------
30
31// Global plasticity parameter data
33
35typedef struct {
36 int32_t accumulator_depression_plus_one;
37 int32_t accumulator_potentiation_minus_one;
40 uint32_t following_data[];
42
43//---------------------------------------
44// Functions
45//---------------------------------------
46uint32_t *timing_initialise(address_t address) {
48
49 // Copy plasticity region data from address
50 // **NOTE** this seems somewhat safer than relying on sizeof
52 config->accumulator_depression_plus_one;
54 config->accumulator_potentiation_minus_one;
55
56 // Copy LUTs from following memory
57 spin1_memcpy(pre_exp_dist_lookup, config->pre_exp_dist_lookup,
58 sizeof(config->pre_exp_dist_lookup));
59 spin1_memcpy(post_exp_dist_lookup, config->post_exp_dist_lookup,
60 sizeof(config->post_exp_dist_lookup));
61
62 return config->following_data;
63}
uint32_t * address_t
void spin1_memcpy(void *dst, void const *src, uint len)
#define STDP_FIXED_POINT_ONE
The number 1.0 in the fixed point math used by STDP.
uint16_t pre_exp_dist_lookup[STDP_FIXED_POINT_ONE]
Lookup table for picking exponentially distributed random value for pre-traces.
uint32_t * timing_initialise(address_t address)
Initialise the timing dependence state (global) from SDRAM.
plasticity_trace_region_data_t plasticity_trace_region_data
Global plasticity parameter data.
uint16_t post_exp_dist_lookup[STDP_FIXED_POINT_ONE]
Lookup table for picking exponentially distributed random value for post-traces.
How the configuration data for dual_fsm is laid out in SDRAM.
Recurrent timing rule using finite state machine.
int32_t accumulator_potentiation_minus_one
Threshold below which we won't hit potentiation trigger after increment.
int32_t accumulator_depression_plus_one
Threshold above which we won't hit depression trigger after decrement.
Configuration information about plasticity traces.