Searcharxiv⌕ Search

arXiv · 2611.27277

Stratum: A Hardware-Software Co-Design Framework for SNN Inference on RISC-V

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 \texttt{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\times$ (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\times$ to $1.88\times$ 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).

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Wajahat Riaz, Muhammad Adeel Pasha, Shahid Masud, Muhammad Ali Siddiqi. 2026-11-20. Stratum: A Hardware-Software Co-Design Framework for SNN Inference on RISC-V. https://searcharxiv.com/abs/2611.27277

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Searcharxiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

GSPIM: A Temporal-Locality-Aware 4D Gaussian Splatting Accelerator with Polymorphic PIM and Multi-Frame Rendering Dataflow

4D Gaussian Splatting (4DGS) enables high-quality real-time novel-view synthesis for dynamic scenes, supporting free-viewpoint video, mobile XR, and autonomous systems at the edge. Methods using explicit 4D distributions, keyframe interpolation, or anchor binding share two GPU data-movement bottlenecks. Temporal filtering follows model record loading, wasting LPDDR5 bandwidth on inactive data. Frame-isolated execution also overlooks highly overlapping active sets and depth relationships across adjacent frames, reloading shared attributes when working sets exceed on-chip cache capacity. To address these bottlenecks, we present GSPIM, a temporal-locality-aware 4DGS accelerator for PIM-enabled edge devices. Polymorphic PIM adapts a shared near-memory datapath to representation-specific field layouts and selection procedures. It filters and compacts valid data into contiguous inputs before the GPU accesses complete attributes, reducing ineffective transfers. Multi-Frame Rendering Dataflow reuses active attributes and stable depth relationships within a temporal window, reducing repeated work across frames. Hybrid Dataflow Scheduling overlaps near-memory data preparation with GPU rendering to reduce waiting. Evaluation combines a GPU-PIM model calibrated to Jetson AGX Orin 64 GB with a 1z DRAM physical implementation of the added circuits. Across three 4DGS methods and six dynamic scenes, GSPIM achieves a 5.36x geometric-mean speedup and a 4.99x geometric-mean energy-efficiency improvement over a fully optimized frame-by-frame GPU baseline. The maximum scene-level PSNR difference is 0.006 dB, and the added physical footprint is 18.7172 square millimeters across 32 LPDDR5 dies.

cs.AR↗

CleanRoute: Reconciling DRC Compliance, Post-Layout Performance, and Routing Efficiency in Analog Routing

Automated analog routing remains a long-standing challenge because design-rule checking (DRC) compliance, post-layout performance preservation, and runtime reduction are difficult to achieve together. Existing analog routers struggle to meet all three objectives due to limited design-rule coverage, insufficient control over topology-induced mismatch, or trade-offs between DRC violations and runtime on uniform routing grids. In this paper, we introduce CleanRoute, an analog router that reconciles these three targets. Hierarchical rule enforcement assigns DRC checks and repairs to stages where the required geometry is complete, covering rules both between separate metal and where metal joins. IR-drop isolation constructs supply trees from current-mirror relationships and device currents to reduce topology-induced mismatch that geometric matching cannot eliminate and voltage drops along high-current paths. A flush-line grid adds net-specific lines aligned with device-metal edges to a coarse routing grid, providing DRC-compliant connections without uniform refinement. Experiments on ten operational transconductance amplifiers (OTAs) in a commercial 40nm process show that CleanRoute produces DRC-clean and functional layouts that pass layout versus schematic (LVS) checking on all benchmarks, with the strongest overall performance preservation and a median routing runtime of 8.82s, whereas the baselines produce no DRC-clean layouts.

cs.AR↗

Rethinking ANNS on Commodity PIM: PIM-Native Vector Search with Cooperative Filtering

Approximate nearest neighbor search (ANNS) is a key primitive in modern data-intensive systems, and its memory-bound vector-scanning stage makes processing-in-memory (PIM) a promising acceleration platform. Existing PIM-based ANNS systems largely transplant CPU-oriented distance evaluation and top-$k$ selection onto PIM, introducing arithmetic- and state-heavy operations that poorly match lightweight, isolated PIM cores. To address these mismatches, we present PIVOT, a PIM-native vector search system with cooperative filtering, which thoroughly rethinks how ANNS should be executed on commodity PIM. First, PIVOT recasts PIM-side distance evaluation around binary quantization to exploit PIM-native bitwise operations, enabling LUT-free evaluation with low arithmetic cost and a small local-memory footprint. Second, PIVOT redesigns PIM-side candidate selection around threshold-guided cooperative filtering, using a survivor-mass model to derive a conservative threshold for CPU-side cluster filtering and PIM-side lower-bound filtering, thereby reducing output traffic and eliminating per-core top-$k$ state. PIVOT organizes these stages into a cooperative workflow that keeps query-global coordination and reranking on the CPU while assigning memory-intensive, data-parallel filtering to PIM. To efficiently realize this workflow and sustain high utilization across devices, PIVOT further generates configuration-specialized PIM kernels and pipelines CPU-side preparation and reranking with PIM-side filtering across query batches. Evaluations on real UPMEM hardware show that PIVOT filters out 99.3-99.7% of probed vectors and achieves up to $18.8\times$ and $10.2\times$ the QPS of CPU and prior PIM baselines, respectively. PIVOT also achieves higher recall than existing PIM systems and remains effective on high-dimensional embeddings.

cs.AR↗