What problem does it solve?
Writing high-performance neural network operators for the ESP32-P4 requires deep knowledge of its custom PIE SIMD instruction set, register architecture, and accumulator semantics, which is error-prone and slow to do from scratch.
Core Features & Use Cases
- Complete PIE Instruction Reference: Covers read/write, data exchange, arithmetic, comparison, bitwise, shift, and FFT-dedicated instructions operating on 128-bit QR vector registers with QACC/XACC accumulators.
- Scalar-to-SIMD Conversion Workflow: Provides a step-by-step optimization process covering alignment handling, SAR shift configuration, fused load-arithmetic instructions, and remainder processing.
- Production Code Patterns: Includes real esp-dl assembly examples for conv2d, depthwise convolution, elementwise add, GEMM dot products, pooling, and ReLU/PReLU activations.
- Use Case: When implementing a new int16 convolution kernel for esp-dl on ESP32-P4, use this Skill to generate the assembly loop using vsmulas.s16.qacc MAC instructions with proper bias loading, shift extraction, and label conventions.
Quick Start
Rewrite this scalar int16 elementwise add function as an ESP32-P4 PIE SIMD assembly implementation following the esp-dl patterns.