31 uint32_t allow_self_connections;
47 *
region = ¶ms_sdram[1];
49 log_debug(
"All to all connector, allow_self_connections = %u",
50 params->allow_self_connections);
76 void *generator, uint32_t pre_lo, uint32_t pre_hi,
77 uint32_t post_lo, uint32_t post_hi, UNUSED uint32_t post_index,
78 uint32_t post_slice_start, uint32_t post_slice_count,
79 unsigned long accum weight_scale, accum timestep_per_delay,
80 param_generator_t weight_generator, param_generator_t delay_generator,
84 uint32_t post_start = max(post_slice_start, post_lo);
85 uint32_t post_end =
min(post_slice_start + post_slice_count - 1, post_hi);
88 for (uint32_t pre = pre_lo; pre <= pre_hi; pre++) {
89 for (uint32_t post = post_start; post <= post_end; post++) {
90 if (obj->allow_self_connections || pre != post) {
91 uint32_t local_post = post - post_slice_start;
96 weight, delay, weight_scale)) {
static void * connection_generator_all_to_all_initialise(void **region)
Initialise the all-to-all connection generator.
static void connection_generator_all_to_all_free(void *generator)
Free the all-to-all connection generator.
static bool connection_generator_all_to_all_generate(void *generator, uint32_t pre_lo, uint32_t pre_hi, uint32_t post_lo, uint32_t post_hi, uint32_t post_index, uint32_t post_slice_start, uint32_t post_slice_count, unsigned long accum weight_scale, accum timestep_per_delay, param_generator_t weight_generator, param_generator_t delay_generator, matrix_generator_t matrix_generator)
Generate connections with the all-to-all connection generator.
The parameters to be passed around for this connector.
void log_error(const char *message,...)
void log_debug(const char *message,...)
General types associated with generators.
static uint16_t rescale_delay(accum delay, accum timestep_per_delay)
Rescales a delay to account for timesteps and type-converts it.
bool matrix_generator_write_synapse(matrix_generator_t generator, uint32_t pre_index, uint16_t post_index, accum weight, uint16_t delay, unsigned long accum weight_scale)
Write a synapse with a matrix generator.
The data for a matrix generator.
accum param_generator_generate(param_generator_t generator)
Generate value with a parameter generator.
void sark_free(void *ptr)
region
spike source array region IDs in human readable form
static stdp_params params
Configuration parameters.