sPyNNaker neural_modelling 7.1.1
Loading...
Searching...
No Matches
Data Structures | Functions
local_only.h File Reference

Defines the "local-only" processing of spikes, that is, the processing of spikes without using transfers from SDRAM. More...

#include <common/neuron-typedefs.h>

Go to the source code of this file.

Data Structures

struct  local_only_provenance
 

Functions

bool local_only_initialise (void *local_only_addr, void *local_only_params_addr, uint32_t n_rec_regions_used, uint16_t **ring_buffers)
 Set up local-only processing of spikes.
 
void local_only_clear_input (uint32_t time)
 Clear the spikes for the last time step.
 
void local_only_store_provenance (struct local_only_provenance *prov)
 Store provenance gathered during run.
 

Detailed Description

Defines the "local-only" processing of spikes, that is, the processing of spikes without using transfers from SDRAM.

Definition in file local_only.h.


Data Structure Documentation

◆ local_only_provenance

struct local_only_provenance

Definition at line 25 of file local_only.h.

Data Fields
uint32_t max_spikes_received_per_timestep The maximum number of spikes received in a time step.
uint32_t n_spikes_dropped The number of spikes dropped due to running out of time in a time step.
uint32_t n_spikes_lost_from_input The number of spikes dropped due to the queue having no space.
uint32_t max_input_buffer_size The maximum size of the spike input queue at any time.

Function Documentation

◆ local_only_initialise()

bool local_only_initialise ( void *  local_only_addr,
void *  local_only_params_addr,
uint32_t  n_rec_regions_used,
uint16_t **  ring_buffers 
)

Set up local-only processing of spikes.

Parameters
[in]local_only_addrThe address from which to read common data
[in]local_only_params_addrThe address from which to read implementation-specific data
[in]n_rec_regions_usedThe number of recording regions used before here
[out]ring_buffersPointer to the ring buffers that hold future inputs
Returns
Whether the set up was done or not

Definition at line 164 of file local_only.c.

◆ local_only_clear_input()

void local_only_clear_input ( uint32_t  time)

Clear the spikes for the last time step.

Parameters
[in]timeThe time step at which the request is asked

Definition at line 218 of file local_only.c.

◆ local_only_store_provenance()

void local_only_store_provenance ( struct local_only_provenance prov)

Store provenance gathered during run.

Parameters
[out]provPointer to the struct to store the provenance in

Definition at line 234 of file local_only.c.