ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_npu_arena_t Struct Reference

Caller-provided runtime arena for a model's RUNTIME regions. More...

#include <ra8_npu_loader.h>

Data Fields

uint8_t * base
 Runtime arena base in NPU-visible SRAM (writable).
uint32_t bytes
 Runtime arena capacity in bytes (0 if no runtime rgn).

Detailed Description

Caller-provided runtime arena for a model's RUNTIME regions.

base is a writable block in NPU-visible system SRAM into which the loader lays out every region the blob marks RUNTIME (scratch / output activations), each 16-byte aligned and in descriptor order. bytes is its capacity; the loader fails with k_ra8_err_no_mem if the runtime regions do not fit. A model with only BAKED regions may pass a zero-size arena (base may then be nullptr).

Invariant
base addresses at least bytes writable bytes reachable by the NPU.
Example:
static uint8_t s_arena[4096];
ra8_npu_arena_t arena = { .base = s_arena, .bytes = (uint32_t)sizeof(s_arena) };
static uint8_t s_arena[k_c6_cam_arena_bytes]
Definition c6_cam_app.c:43
Caller-provided runtime arena for a model's RUNTIME regions.
See also
ra8_npu_load
Since
0.1.0

Definition at line 78 of file ra8_npu_loader.h.

Field Documentation

◆ base

uint8_t* ra8_npu_arena_t::base

Runtime arena base in NPU-visible SRAM (writable).

Definition at line 79 of file ra8_npu_loader.h.

◆ bytes

uint32_t ra8_npu_arena_t::bytes

Runtime arena capacity in bytes (0 if no runtime rgn).

Definition at line 80 of file ra8_npu_loader.h.


The documentation for this struct was generated from the following file: