Stratum: A Hardware-Software Co-Design Framework for SNN Inference on RISC-V
Wajahat Riaz, Muhammad Adeel Pasha, Shahid Masud, Muhammad Ali Siddiqi
Abstract
Efficient spiking neural network (SNN) inference on RISC-V processors requires tracing implementation costs back to the compiler and hardware decisions that produce them. Training environments, compilers, and cycle-level simulators, however, typically operate as distinct tools, making this attribution difficult. This paper presents Stratum, a framework that integrates an snnTorch-trained SNN, an MLIR-based compiler stack, and a cycle-level gem5-based RISC-V model into a unified workflow. Stratum exposes two optimization levers, software decisions in the generated code and hardware configuration choices in the simulated core, and uses stage-level cycle measurements to identify performance bottlenecks. We demonstrate Stratum on a two-layer N-MNIST network with three controlled comparisons: (i)~dense vs.\ spike-gated lowering of snn.linear, (ii)~output-outer vs.\ spike-major weight layout with spike-gating enabled in both binaries, and (iii)~L2 cache capacity with both layouts. Our spike-gated lowering reduces simulated inference time by 64× (453.2\,ms to 7.04\,ms), and our spike-major layout cuts it by a further 37.2\% (to 4.42\,ms) at 4\,MiB L2, with the predicted class unchanged. The layout speedup grows from 1.59× to 1.88× when L2 shrinks to 1\,MiB. These results show that Stratum enables rapid early evaluation of design choices at both the software level (compiler stack) and the hardware level (cycle-level gem5 simulation).
Create a lesson
Related papers
Sub-100KB On-Device CNN Training via Dynamic Sparse Updates and Hardware--Software Co-Design
Shared title terminology · I-Hsuan Li, Tian-Sheuan Chang
Manufacturing Differential Sparsity: Planner-Hardware Co-Design for Efficient World Model Planning
Shared title terminology · Wenbo Zhu, Paul Yi-Chia Chen, Yuanhan Li et al.
The World Model Planning Accelerator (WMPA): Hardware-Algorithm Co-Design for Embedded AI in Robotics
Shared title terminology · Prerana Ramkumar, Suhas Suresh Bharadwaj, Fazal Hameed
Inference-Time Scaling in Agentic Hardware Verification Workflows: A Multi-Strategy Characterization Across Protocol Complexity
Shared title terminology · Vikash Kumar
KD-DSE: A Knowledge-Driven LLM Framework for Fast Microarchitecture Design Space Exploration
Shared title terminology · Siqing Fu, Xin Liu, Yuhan Tang et al.
Chimera: A Configurable LLM Decode Accelerator Architecture with Compute-Memory-Floorplan Co-Design for HBM-Equipped Multi-Die FPGAs
Shared title terminology · Zhiheng Chen, Yifan Zhang, Yu-An Chou et al.