ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_npu_fake_cmd.h
Go to the documentation of this file.
1
40
41#pragma once
42
43#include <stdint.h>
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
65typedef enum : uint32_t {
66 k_ra8_npu_fake_magic = 0x5E550000U,
68 k_ra8_npu_fake_op_mask = 0x0000FFFFU,
70
87typedef enum : uint32_t {
91
116
137
138#ifdef __cplusplus
139}
140#endif
ra8_npu_fake_op_t
Opcodes of the fake command-stream convention.
@ k_ra8_npu_fake_op_copy
dst[i] = src[i].
@ k_ra8_npu_fake_op_addk
dst[i] = (src[i] + constant) & 0xFF.
ra8_npu_fake_word_idx_t
32-bit word indices of the fixed stand-in command-stream header.
@ k_ra8_npu_fake_word_dst
Destination region index (0 .
@ k_ra8_npu_fake_word_count
Byte count to process.
@ k_ra8_npu_fake_word_num
Header word count (populated words).
@ k_ra8_npu_fake_word_src
Source region index (0 .
@ k_ra8_npu_fake_word_op
magic | opcode.
@ k_ra8_npu_fake_word_const
Constant addend (add-constant op).
ra8_npu_fake_bound_t
Size bounds and the 8-bit element mask of the stand-in convention.
@ k_ra8_npu_fake_byte_mask
8-bit element wrap (add-constant op).
@ k_ra8_npu_fake_max_bytes
Max processed bytes (bounds the loop).
@ k_ra8_npu_fake_header_bytes
Fixed header length in bytes (5 words).
ra8_npu_fake_word0_t
Magic marker and field masks of the command stream's first word.
@ k_ra8_npu_fake_magic_mask
Bits [31:16] select the magic marker.
@ k_ra8_npu_fake_magic
Emu-Ethos-U55 marker in bits [31:16].
@ k_ra8_npu_fake_op_mask
Bits [15:0] select the opcode.