aen-npu-inference — Ethos-U85 inference on E8
First on-silicon NPU inference on the E1M-AEN801: a Vela-compiled int8 model dispatched to the Ethos-U85 (256-MAC) via TFLite-Micro + the Arm Ethos-U core driver.
Source: examples/aen/aen-npu-inference/.
The three variants
| Example | Model | Where it lives | Status |
|---|---|---|---|
aen-npu-inference | tiny int8 fixture | RAM | wiring baseline |
aen-npu-inference-alif | tiny_int8.tflite | SRAM0 (DMA-visible) | RESULT PASS — matched-runtime fix |
aen-npu-inference-person-mram | real person_detect MobileNet (int8, ~263 KiB, 100 % NPU) | MRAM slot0 | RESULT PASS |
What it does
- Loads a Vela-compiled int8 model and runs
MicroInterpreter→ Ethos-U85. - The
-alifvariant carries the matched-runtime fix that cleared the residualethosu_invoke=1: weak overrides forethosu_address_remap(CPU→NPU address translation) andethosu_config_select(MEM_ATTR index 0 → the SRAM AXI port). - The
-person-mramvariant links the real model into MRAM slot0 (it overflows the 256 KiB ITCM RAM-run) and boots via the MRAM-XIP two-blob Flow D helper. Vela report: 0 CPU ops / 44 NPU ops (100 %).
The model + tensor arena must be in SRAM0 (DMA-visible) with CONFIG_DCACHE=n.
Build
aen-npu-inference has no board.yaml: it is built with west plus the -D options listed in the example's README.md. Its embedded model is the in-tree fixture tiny_int8.tflite (Vela: 1 NPU op, 100 % NPU, 8 MACs); rebuild with -DAEN_NPU_MODEL=<real.tflite> for a real model. The "0 CPU ops / 44 NPU ops" Vela report above belongs to the person_detect model of aen-npu-inference-person-mram.
Expected output
Abridged:
=== aen-npu-inference ===
model : <model> (... bytes)
...
input : ... bytes (zero-filled)
output : ... bytes, argmax=... (val=...), first[0..N]=...
RESULT PASS: NPU inference complete -- model=<model> Invoke=OK out_bytes=... argmax=... npu_ready=...
See also
<alp/inference.h>— NPU dispatcher- E1M-AEN — inference
edgeai-vision-aen— full camera → NPU → OLED pipeline
Questions about this page? Email contact@alplab.ai