---
title: "NPU Inference (Ethos-U85)"
description: "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: https://docs.alplab.ai/sdk/examples/aen/aen-npu-inference
---

# `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/`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-npu-inference).

## The three variants

| Example | Model | Where it lives | Status |
|---|---|---|---|
| [`aen-npu-inference`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-npu-inference) | tiny int8 fixture | RAM | wiring baseline |
| [`aen-npu-inference-alif`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-npu-inference-alif) | `tiny_int8.tflite` | SRAM0 (DMA-visible) | **RESULT PASS** — matched-runtime fix |
| [`aen-npu-inference-person-mram`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-npu-inference-person-mram) | real `person_detect` MobileNet (int8, ~263 KiB, 100 % NPU) | **MRAM slot0** | **RESULT PASS** |

## What it does

1. Loads a Vela-compiled int8 model and runs `MicroInterpreter` → Ethos-U85.
2. The `-alif` variant carries the matched-runtime fix that cleared the residual `ethosu_invoke=1`: weak overrides for `ethosu_address_remap` (CPU→NPU address translation) and `ethosu_config_select` (MEM_ATTR index 0 → the SRAM AXI port).
3. The `-person-mram` variant 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>`](https://docs.alplab.ai/sdk/api/inference) — NPU dispatcher
- [E1M-AEN — inference](https://docs.alplab.ai/e1m/e1m-aen#inference)
- [`edgeai-vision-aen`](https://docs.alplab.ai/sdk/examples/aen/edgeai-vision-aen) — full camera → NPU → OLED pipeline
