From a97a539c06a509906802450f28340922ea50c16f Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 13 May 2025 07:56:20 +0200 Subject: VA: AspectC++ support --- VA/support/common.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'VA/support/common.h') 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 -- cgit v1.2.3