sPyNNaker neural_modelling 7.2.2
|
The synapse expander for neuron cores. More...
#include "matrix_generator.h"
#include "connection_generator.h"
#include "param_generator.h"
#include "rng.h"
#include <spin1_api.h>
#include <data_specification.h>
#include <debug.h>
#include <key_atom_map.h>
#include "common_mem.h"
#include "bit_field_expander.h"
Go to the source code of this file.
Data Structures | |
struct | connection_builder_config_t |
The configuration of the connection builder. More... | |
Macros | |
#define | INVALID_REGION_ID 0xFFFFFFFF |
Functions | |
static bool | read_connection_builder_region (void **region, void *synaptic_matrix, uint32_t post_slice_start, uint32_t post_slice_count, uint32_t post_index, unsigned long accum *weight_scales, accum timestep_per_delay) |
Generate the synapses for a single connector. | |
static bool | run_synapse_expander (data_specification_metadata_t *ds_regions, void *params_address) |
Read the data for the expander. | |
void | c_main (void) |
Entry point. | |
Variables | |
expander_config_t | |
rng_t * | population_rng |
An RNG that starts in the same place on every core of the Population. | |
rng_t * | core_rng |
An RNG that is local to the current core. | |
The synapse expander for neuron cores.
Definition in file synapse_expander.c.
struct connection_builder_config_t |
The configuration of the connection builder.
Definition at line 38 of file synapse_expander.c.
Data Fields | ||
---|---|---|
uint32_t | pre_lo | |
uint32_t | pre_hi | |
uint32_t | post_lo | |
uint32_t | post_hi | |
uint32_t | synapse_type | |
uint32_t | matrix_type | |
uint32_t | connector_type | |
uint32_t | weight_type | |
uint32_t | delay_type |
#define INVALID_REGION_ID 0xFFFFFFFF |
Definition at line 35 of file synapse_expander.c.
|
static |
Generate the synapses for a single connector.
[in,out] | in_region | The address to read the parameters from. Should be updated to the position just after the parameters after calling. |
[in] | synaptic_matrix_region | The address of the synaptic matrices |
[in] | post_slice_start | The start of the slice of the post-population to generate for |
[in] | post_slice_count | The number of neurons to generate for |
[in] | n_synapse_type_bits | The number of bits in the synapse type |
[in] | n_synapse_index_bits | The number of bits for the neuron index id |
[in] | weight_scales | An array of weight scales, one for each synapse type |
Definition at line 88 of file synapse_expander.c.
|
static |
Read the data for the expander.
[in] | ds_regions | The data specification regions |
[in] | params_address | The address of the expander parameters |
Definition at line 137 of file synapse_expander.c.
void c_main | ( | void | ) |
Entry point.
Definition at line 203 of file synapse_expander.c.
expander_config_t |
Definition at line 68 of file synapse_expander.c.
rng_t* population_rng |
An RNG that starts in the same place on every core of the Population.
Definition at line 70 of file synapse_expander.c.
rng_t* core_rng |
An RNG that is local to the current core.
Definition at line 71 of file synapse_expander.c.