sPyNNaker neural_modelling 7.2.2
|
This file contains the main function of the application framework, which the application programmer uses to configure and run applications. More...
#include "c_main_neuron_common.h"
#include "c_main_synapse_common.h"
#include "c_main_common.h"
#include "regions.h"
#include "profile_tags.h"
#include "spike_processing.h"
Go to the source code of this file.
Data Structures | |
struct | combined_provenance |
The combined provenance from synapses and neurons. More... | |
Enumerations | |
enum | callback_priorities { MC = -1 , DMA = 0 , USER = 0 , TIMER = 0 , SDP = 1 , BACKGROUND = 1 } |
Identify the priorities for all tasks. More... | |
Functions | |
static void | c_main_store_provenance_data (address_t provenance_region) |
Callback to store provenance data (format: neuron_provenance). | |
void | resume_callback (void) |
the function to call when resuming a simulation | |
static void | process_ring_buffers (void) |
Process the ring buffers for the next time step. | |
void | background_callback (uint timer_count, uint local_time) |
Background activities called from timer. | |
void | timer_callback (uint timer_count, uint unused) |
Timer interrupt callback. | |
static bool | initialise (void) |
Initialises the model by reading in the regions and checking recording data. | |
void | c_main (void) |
The entry point for this model. | |
Variables | |
const struct common_regions | COMMON_REGIONS |
From the regions, extract those that are common. | |
const struct common_priorities | COMMON_PRIORITIES |
Identify the priorities of the common tasks. | |
const struct neuron_regions | NEURON_REGIONS |
From the regions, extract those that are neuron-specific. | |
const struct synapse_regions | SYNAPSE_REGIONS |
From the regions, extract those that are synapse-specific. | |
uint32_t | time |
The current timer tick value. | |
static uint32_t | timer_period |
timer tick period (in microseconds) | |
static uint32_t | simulation_ticks = 0 |
The number of timer ticks to run for before being expected to exit. | |
static uint32_t | infinite_run |
Determines if this model should run for infinite time. | |
static uint32_t | recording_flags = 0 |
The recording flags indicating if anything is recording. | |
static uint32_t | n_backgrounds_queued = 0 |
The number of background tasks queued / running. | |
static uint32_t | n_background_overloads = 0 |
The number of times the background couldn't be added. | |
static uint32_t | max_backgrounds_queued = 0 |
The maximum number of background tasks queued. | |
static weight_t * | ring_buffers |
The ring buffers to be used in the simulation. | |
This file contains the main function of the application framework, which the application programmer uses to configure and run applications.
This is the main entrance class for most of the neural models. The following Figure shows how all of the c code interacts with each other and what classes are used to represent over arching logic (such as plasticity, spike processing, utilities, synapse types, models)
Definition in file c_main.c.
enum callback_priorities |
|
static |
Callback to store provenance data (format: neuron_provenance).
[out] | provenance_region | Where to write the provenance data |
void resume_callback | ( | void | ) |
|
inlinestatic |
|
static |
const struct common_regions COMMON_REGIONS |
From the regions, extract those that are common.
const struct common_priorities COMMON_PRIORITIES |
const struct neuron_regions NEURON_REGIONS |
From the regions, extract those that are neuron-specific.
const struct synapse_regions SYNAPSE_REGIONS |
From the regions, extract those that are synapse-specific.
uint32_t time |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |