sPyNNaker neural_modelling  development
timing_nearest_pair_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 //---------------------------------------
24 // Exponential lookup-tables
29 
30 //---------------------------------------
31 // Functions
32 //---------------------------------------
33 address_t timing_initialise(address_t address) {
34  log_debug("\tSTDP nearest-pair rule");
35 
36  // Copy LUTs from following memory
37  address_t lut_address = address;
38  tau_plus_lookup = maths_copy_int16_lut(&lut_address);
39  tau_minus_lookup = maths_copy_int16_lut(&lut_address);
40 
41  return lut_address;
42 }
static int16_lut * maths_copy_int16_lut(address_t *address)
Copy a Lookup Table from SDRAM to DTCM, updating the address.
Definition: maths.h:57
Lookup Table of 16-bit integers.
Definition: maths.h:44
int16_lut * tau_minus_lookup
Lookup table for τ- exponential decay.
int16_lut * tau_plus_lookup
Lookup table for τ+ exponential decay.
address_t timing_initialise(address_t address)
Initialise the timing dependence state (global) from SDRAM.
Timing rule using msot recent spike pair.