-
Notifications
You must be signed in to change notification settings - Fork 1
/
cl_Synapse.h
52 lines (41 loc) · 991 Bytes
/
cl_Synapse.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef CL_SYNAPSE_H_
#define CL_SYNAPSE_H_
#include "GeneralIncludes.h"
typedef struct SynapseConstsStruct{
float gamma_p;
float gamma_d;
float theta_p;
float theta_d;
unsigned int delay;
float sigma;
float tau;
float tau_ca;
float c_pre;
float c_post;
float dt;
unsigned int no_syns; //number of MG type synapses, which get sent to GPU
} SynapseConsts;
typedef struct Synapse{
float * rho;
float * rho_initial; // for debugging, comparison, etc.
float * ca;
float * gauss;
unsigned int * time_of_last_update;
//unsigned int ** preT;
unsigned int * preT;
unsigned int * postT;
signed int * pre_lif;
signed int * post_lif;
unsigned char * initially_UP;
//unsigned char * receives_stimulation_flag;
} cl_Synapse;
typedef struct preT_event_queue{
int * no_events;
int ** neuron_id;
} SpikeQueue;
typedef struct fixed_synapse{
signed int * post_lif;
float * Jx;
unsigned int total_fixed_synapses;
} FixedSynapse;
#endif /*CL_SYNAPSE_H_*/