Reducing Instruction-Fetch Energy in RISC-V for Embedded AI Processing via Dynamic and Static Loop Caching
Wiebren Wijnstra, Sameed Sohail, Berend-Jan van der Zwaag, Sabih Gerez, Amirreza Yousefzadeh
Abstract
Embedded RISC-V processors are increasingly deployed for on-device AI inference at the edge, where energy efficiency is a primary design constraint. Instruction fetching from SRAM-based memory is a dominant source of energy consumption in these cores, accounting for over 40\% of total energy in our baseline measurements. This paper presents two loop cache architectures integrated into the datapath of a RISC-V processor: a dynamic loop cache that automatically detects and caches short backward-branch loops at runtime, and a static loop cache that functions as a software-managed hot-code instruction buffer, allowing preloading of arbitrary instruction blocks during the boot sequence. Both designs are implemented in the open-source NEORV32 RISC-V processor and evaluated on a LeNet-5 convolutional neural network inference workload, synthesized on GlobalFoundries 22nm FDX+ technology at 0.5\,V and 250\,MHz. The dynamic cache reduces instruction fetches by 48.3\% and total energy by 21.5\%, while the static cache achieves an 83.3\% fetch reduction and 35.5\% total energy savings. The area overhead of both designs remains below 0.2\% of the full SoC area. The complete implementation is open source.
Create a lesson
Metadata
- Categories
- cs.AR, cs.SY, eess.SY
- Comments
- Accepted for publication in the IEEE MCSoC 2026 Conference
Related papers
LACE: Large Language Model Aided Multi-Agent Framework for Agile RISC-V Instruction Extension
Shared title terminologycs.ARPingqing Zheng, Jiayin Qin, Fuqi Zhang et al.
Native Block-Quantized Matrix Multiplication and Explicit K/V Residency with Dual-View Access for LLM Inference on RISC-V Vector Processors
Shared title terminologycs.ARWeiying Wang, Yuanyang Xiang, Zhiwei Zhang
Stratum: A Hardware-Software Co-Design Framework for SNN Inference on RISC-V
Shared title terminologycs.ARWajahat Riaz, Muhammad Adeel Pasha, Shahid Masud et al.
Retention-Aware RISC-V ISA Extension and Memory Controller on FPGA for MLC NVM
Shared title terminologycs.ARMina Ibrahim, Martel Shokry, Lokesh Siddhu et al.
SEAM-V: A Hybrid-Decoupled RISC-V Vector Processor with Backend-Visible Packet Semantics and Source-Lifetime-Aware Scheduling
Shared title terminologycs.ARWeiying Wang, Zhiwei Zhang
Beyond Static Policies: Dynamic Selection Among Modern Microarchitectural Policies
Shared title terminologycs.ARYanxin Zhang, Ian McDougall, Junnan Li et al.