summaryrefslogtreecommitdiff
path: root/VA/support/common.h
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2025-05-13 07:56:20 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2025-05-13 07:56:20 +0200
commita97a539c06a509906802450f28340922ea50c16f (patch)
tree36e9aa83ad13fd5aa425a0843a02dd97bd9ff535 /VA/support/common.h
parent8a1cf3ddba768597f222adb777023a3fd8a0ec4c (diff)
VA: AspectC++ support
Diffstat (limited to 'VA/support/common.h')
-rwxr-xr-xVA/support/common.h14
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