SpiNNFrontEndCommon  7.4.0
Common support code for user-facing front end systems.
key_atom_map.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019 The University of Manchester
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
19 #ifndef __KEY_ATOM_MAP_H__
20 #define __KEY_ATOM_MAP_H__
21 
24 typedef struct key_atom_pair_t {
26  uint32_t key;
28  uint32_t n_atoms;
30  uint32_t core_shift: 5;
32  uint32_t n_atoms_per_core: 27;
34 
37 typedef struct key_atom_data_t {
39  uint32_t n_pairs;
43 
44 #endif // __KEY_ATOM_MAP_H__
uint32_t key
Multicast key.
Definition: key_atom_map.h:26
key_atom_pair_t pairs[]
The array of mappings.
Definition: key_atom_map.h:41
uint32_t n_atoms_per_core
Number of atoms per core.
Definition: key_atom_map.h:32
uint32_t core_shift
Core shift.
Definition: key_atom_map.h:30
uint32_t n_atoms
Number of atoms for the key.
Definition: key_atom_map.h:28
uint32_t n_pairs
How many key-atom maps are present?
Definition: key_atom_map.h:39
A mapping from multicast keys to sections of a contiguous range of atoms (neurons,...
Definition: key_atom_map.h:37
A pair containing a multicast key and the number of contiguous atoms (neurons, etc....
Definition: key_atom_map.h:24