83typedef enum : uint32_t {
103typedef enum : uint32_t {
128typedef enum : uint32_t {
150typedef enum : uint32_t {
171typedef enum : uint32_t {
192typedef enum : uint32_t {
208typedef enum : uint32_t {
226typedef enum : uint32_t {
261 value |= (uint32_t)buf[byte_off + i] << (i * 8U);
ra8_npu_blob_role_t
Role a region plays in the model's tensor arena layout.
@ k_ra8_npu_blob_role_input
Input activation tensor.
@ k_ra8_npu_blob_role_scratch
Scratch / working arena (runtime).
@ k_ra8_npu_blob_role_weights
Read-only weight/bias arena (baked).
@ k_ra8_npu_blob_role_other
Any other region.
@ k_ra8_npu_blob_role_output
Output activation tensor.
ra8_npu_blob_word_t
Word indices of the fixed .npub header (little-endian 32-bit words).
@ k_ra8_npu_blob_word_version
format version.
@ k_ra8_npu_blob_header_words
Header field / word count.
@ k_ra8_npu_blob_word_cmd_bytes
command-stream length in bytes.
@ k_ra8_npu_blob_word_accel
accelerator config (informational).
@ k_ra8_npu_blob_word_region_count
number of region descriptors.
@ k_ra8_npu_blob_word_checksum
FNV-1a digest over the payload.
@ k_ra8_npu_blob_word_magic
magic == k_ra8_npu_blob_magic.
@ k_ra8_npu_blob_word_cmd_offset
byte offset to the command stream.
@ k_ra8_npu_blob_word_total_bytes
whole blob length in bytes.
ra8_npu_blob_ident_t
Container magic marker and format version.
@ k_ra8_npu_blob_magic
First word: "NPU1" little-endian.
@ k_ra8_npu_blob_version
Container format version.
ra8_npu_blob_accel_t
Vela accelerator configuration recorded in the header (informational).
@ k_ra8_npu_blob_accel_ethos_u55_256
ethos-u55-256 (RA8P1 SKU).
ra8_npu_blob_rflag_t
Region descriptor flag bits.
@ k_ra8_npu_blob_rflag_baked
Region bytes are baked into the blob.
static uint32_t ra8_npu_blob_read_word(const uint8_t *buf, uint32_t byte_off)
Read one little-endian 32-bit word from a .npub byte buffer.
ra8_npu_blob_fnv_t
FNV-1a 32-bit constants for the payload checksum.
@ k_ra8_npu_blob_fnv_offset
FNV-1a 32-bit offset basis.
@ k_ra8_npu_blob_fnv_prime
FNV-1a 32-bit prime.
ra8_npu_blob_rdesc_t
Word indices of one region descriptor in the region table.
@ k_ra8_npu_blob_rdesc_size
region size in bytes.
@ k_ra8_npu_blob_rdesc_flags
region flags (ra8_npu_blob_rflag_t).
@ k_ra8_npu_blob_region_words
Descriptor field / word count.
@ k_ra8_npu_blob_rdesc_role
region role (ra8_npu_blob_role_t).
@ k_ra8_npu_blob_rdesc_data_offset
baked-data byte offset (if baked).
ra8_npu_blob_size_t
Fixed byte sizes derived from the word counts.
@ k_ra8_npu_blob_arena_align
Runtime-region alignment (bytes).
@ k_ra8_npu_blob_word_bytes
Bytes in one little-endian word.
@ k_ra8_npu_blob_header_bytes
Header length (8 words * 4).
@ k_ra8_npu_blob_region_desc_bytes
One region descriptor (4 words * 4).