SpiNNFrontEndCommon 7.2.2
Common support code for user-facing front end systems.
|
implementation of data_specification.h More...
Go to the source code of this file.
Macros | |
#define | N_REGIONS 32 |
Enumerations | |
enum | { DATA_SPECIFICATION_MAGIC_NUMBER = 0xAD130AD6 , DATA_SPECIFICATION_VERSION = 0x00010000 , VERSION_MASK = 0xFFFF , VERSION_SHIFT = 16 } |
Misc constants. More... | |
Functions | |
static void | verify_checksum (data_specification_metadata_t *ds_regions, uint32_t region) |
Verify the checksum of a region; on failure, RTE. | |
data_specification_metadata_t * | data_specification_get_data_address (void) |
Gets the location of the data for this core using the user0 entry of the SARK VCPU structure. | |
bool | data_specification_read_header (data_specification_metadata_t *ds_regions) |
Reads the header from the address given and checks if the parameters are of the correct values. | |
implementation of data_specification.h
Definition in file data_specification.c.
#define N_REGIONS 32 |
Definition at line 40 of file data_specification.c.
Misc constants.
Definition at line 27 of file data_specification.c.
|
inlinestatic |
Verify the checksum of a region; on failure, RTE.
[in] | ds_regions | The array of region metadata |
[in] | region | The region to verify |
Definition at line 48 of file data_specification.c.
data_specification_metadata_t * data_specification_get_data_address | ( | void | ) |
Gets the location of the data for this core using the user0 entry of the SARK VCPU structure.
Locates the start address for a core in SDRAM. This value is loaded into the user0 register of the core during the tool chain loading.
Does not validate the value! That's data_specification_read_header()
Definition at line 76 of file data_specification.c.
bool data_specification_read_header | ( | data_specification_metadata_t * | ds_regions | ) |
Reads the header from the address given and checks if the parameters are of the correct values.
Reads the header written by a DSE and checks that the magic number which is written by every DSE is consistent. Inconsistent DSE magic numbers would reflect a model being used with an different DSE interface than the DSE used by the host machine.
[in] | ds_regions | The address of the start of the data generated |
Definition at line 95 of file data_specification.c.