sPyNNaker neural_modelling 7.3.1
|
Post-synaptic events. More...
Go to the source code of this file.
Data Structures | |
struct | nm_post_trace_t |
struct | post_event_history_t |
Trace history of post-synaptic events. More... | |
struct | post_event_window_t |
Post event window description. More... | |
Macros | |
#define | MAX_POST_SYNAPTIC_EVENTS 16 |
Maximum number of post-synaptic events supported. | |
Functions | |
static void | print_event_history (const post_event_history_t *events) |
Print a post-synaptic event history. | |
static post_event_history_t * | post_events_init_buffers (uint32_t n_neurons) |
Initialise an array of post-synaptic event histories. | |
static post_event_window_t | post_events_get_window_delayed (const post_event_history_t *events, uint32_t begin_time, uint32_t end_time) |
Get the post-synaptic event window. | |
static post_event_window_t | post_events_next (post_event_window_t window) |
Advance a post-synaptic event window to the next event. | |
static bool | post_events_next_is_dopamine (post_event_window_t window) |
static void | post_events_add (uint32_t time, post_event_history_t *events, post_trace_t post_trace, int16_t dopamine_trace, bool dopamine) |
Add a post-synaptic event to the history. | |
static void | print_delayed_window_events (const post_event_history_t *post_event_history, uint32_t begin_time, uint32_t end_time, uint32_t delay_dendritic) |
Print the post-synaptic event history. | |
Post-synaptic events.
Definition in file post_events_with_da.h.
struct nm_post_trace_t |
Definition at line 35 of file post_events_with_da.h.
Data Fields | ||
---|---|---|
int16_t | dopamine_trace | |
post_trace_t | post_trace |
struct post_event_history_t |
Trace history of post-synaptic events.
Definition at line 39 of file post_events.h.
Data Fields | ||
---|---|---|
uint32_t | count_minus_one | Number of events stored (minus one) |
uint32_t | times[MAX_POST_SYNAPTIC_EVENTS] | Event times. |
post_trace_t | traces[MAX_POST_SYNAPTIC_EVENTS] | Event traces. |
nm_post_trace_t | traces[MAX_POST_SYNAPTIC_EVENTS] | Event traces. |
uint32_t | dopamine_trace_markers | Bit field to indicate whether a trace is dopamine or not. |
uint32_t | count | Number of events stored. |
update_post_trace_t | traces[MAX_EVENTS] | Event traces. |
struct post_event_window_t |
Post event window description.
Definition at line 49 of file post_events.h.
Data Fields | ||
---|---|---|
post_trace_t | prev_trace | The previous post-synaptic event trace. |
uint32_t | prev_time | The previous post-synaptic event time. |
const post_trace_t * | next_trace | The next post-synaptic event trace. |
const uint32_t * | next_time | The next post-synaptic event time. |
uint32_t | num_events | The number of events. |
uint32_t | prev_time_valid | Whether the previous post-synaptic event is valid (based on time) |
nm_post_trace_t | prev_trace | The previous post-synaptic event trace. |
const nm_post_trace_t * | next_trace | The next post-synaptic event trace. |
uint32_t | dopamine_trace_markers | Bit field to indicate whether a trace is dopamine or not. |
#define MAX_POST_SYNAPTIC_EVENTS 16 |
Maximum number of post-synaptic events supported.
Definition at line 33 of file post_events_with_da.h.
|
inlinestatic |
Print a post-synaptic event history.
[in] | events | The history |
Definition at line 80 of file post_events_with_da.h.
|
inlinestatic |
Initialise an array of post-synaptic event histories.
[in] | n_neurons | Number of neurons |
Definition at line 92 of file post_events_with_da.h.
|
inlinestatic |
Get the post-synaptic event window.
[in] | events | The post-synaptic event history |
[in] | begin_time | The start of the window |
[in] | end_time | The end of the window |
Definition at line 123 of file post_events_with_da.h.
|
inlinestatic |
Advance a post-synaptic event window to the next event.
[in] | window | The window to advance |
Definition at line 170 of file post_events_with_da.h.
|
inlinestatic |
Definition at line 191 of file post_events_with_da.h.
|
inlinestatic |
Add a post-synaptic event to the history.
[in] | time | the time of the event |
[in,out] | events | the history to add to |
[in] | trace | the trace of the event |
Definition at line 201 of file post_events_with_da.h.
|
inlinestatic |
Print the post-synaptic event history.
[in] | post_event_history | the history |
[in] | begin_time | The start time of the history |
[in] | end_time | The end time of the history |
[in] | delay_dendritic | The amount of dendritic delay |
Definition at line 245 of file post_events_with_da.h.