sPyNNaker neural_modelling  7.4.2
timing_pair_impl.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 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 
19 #include "timing_pair_impl.h"
20 
21 //---------------------------------------
22 // Globals
23 //---------------------------------------
24 // Exponential lookup-tables
29 
30 //---------------------------------------
31 // Functions
32 //---------------------------------------
33 address_t timing_initialise(address_t address) {
34 
35  // Copy LUTs from following memory
36  address_t lut_address = address;
37  tau_plus_lookup = maths_copy_int16_lut(&lut_address);
38  tau_minus_lookup = maths_copy_int16_lut(&lut_address);
39 
40  return lut_address;
41 }
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 spike pairs.