diff options
Diffstat (limited to 'VA/support/common.h')
-rwxr-xr-x | VA/support/common.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/VA/support/common.h b/VA/support/common.h index cee09e2..6ce6e23 100755 --- a/VA/support/common.h +++ b/VA/support/common.h @@ -1,14 +1,20 @@ #ifndef _COMMON_H_ #define _COMMON_H_ +enum kernels { + kernel1 = 0, + nr_kernels = 1, +}; + // Structures used by both the host and the dpu to communicate information typedef struct { + /* + * Size per DPU cannot exceed 32 bit, as each DPU only has 64 MiB of memory + * (i.e., only needs 26 bit for addressing). + */ uint32_t size; uint32_t transfer_size; - enum kernels { - kernel1 = 0, - nr_kernels = 1, - } kernel; + enum kernels kernel; } dpu_arguments_t; // Transfer size between MRAM and WRAM |