From 125429a1c089775b05d4d13739ee7fc72285079f Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Thu, 20 Aug 2020 16:52:23 +0200 Subject: Base pointer offset and soft reset Allow user to define a base pointer offset, if the CPU and the NPU have address spaces offseted from each other. Soft reset NPU before every inference. Added log prints. Change-Id: I98a746d20dc780fefa23ad68816f5ba2ba2e6c6e --- src/ethosu_config.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ethosu_config.h') diff --git a/src/ethosu_config.h b/src/ethosu_config.h index 07eb824..91fe660 100644 --- a/src/ethosu_config.h +++ b/src/ethosu_config.h @@ -108,6 +108,14 @@ #define AXI_LIMIT3_MAX_OUTSTANDING_WRITES 16 #endif +/* + * Address offset between the CPU and the NPU. The offset is + * applied to the QBASE and BASEP registers. + */ +#ifndef BASE_POINTER_OFFSET +#define BASE_POINTER_OFFSET 0 +#endif + #ifdef PMU_AUTOINIT /* * Register control -- cgit v1.2.1