Trading BRAM for LUTs: Hybrid Bit-Level Weight Storage for FPGA-Based Spiking Neural Networks

Dimitrios Sekertzis, Giorgos Dimitrakopoulos

TL;DR

Deploying Spiking Neural Networks (SNNs) on FPGAs is usually bottlenecked by scarce on-chip memory, forcing engineers to compress weights and sacrifice accuracy. This paper introduces a clever hardware-level trick: instead of storing every bit of a synaptic weight in memory, it generates the "easiest" bits on the fly using spare programmable logic. The result is a lossless way to shrink memory footprints by over 26% and cut power consumption nearly in half, without changing a single weight value.

What Problem Does This Paper Address?

Spiking Neural Networks (SNNs) mimic the brain by communicating through sparse, asynchronous binary pulses ("spikes") rather than continuous numbers, making them remarkably energy-efficient. Field-Programmable Gate Arrays (FPGAs)—chips made of reconfigurable hardware blocks—are ideal hosts for SNNs because you can wire a circuit to match the exact shape of a neural network.

However, there is a catch: memory. To keep power and latency low, all synaptic weights must live on the chip in dedicated memory blocks called BRAMs (Block RAMs). Fetching weights from external memory ruins the energy savings. Unfortunately, FPGAs run out of BRAM long before they run out of LUTs (Look-Up Tables, the basic building blocks used for combinational logic). Normally, engineers cope by pruning or aggressively quantizing weights, trading away model accuracy to fit the chip. How do you break the BRAM bottleneck without altering the weights?

Methods

The authors build upon a standard synchronous spatial-dataflow SNN architecture using Leaky Integrate-and-Fire (LIF) neurons. By design, each layer processes active input spikes sequentially—one spike per clock cycle. Because only one input is active at a time, fetching a row of weights from memory is mathematically equivalent to a simple boolean function: a specific weight bit is 1 if Input A or Input B or Input C is active.

Conventional BRAM fetching vs. combinational logic weight generation

Generating all weight bits out of logic gates would cause massive routing tangles on large layers. Instead, the authors propose a novel hybrid bit-level storage architecture:

  • Split Storage & Online Reconstruction: For any given layer, some weight bits are stored normally in BRAM, while the remaining bits are synthesized directly into LUT-based combinational logic. During inference, an active spike triggers both paths in parallel, and the bits are concatenated right at the neuron's doorstep.
  • Cost-Driven Heuristic: Which bits go to logic? Because one spike arrives per cycle, the hardware cost of generating a bit equals the number of OR terms (i.e., how many inputs require that bit to be 1). A design-time heuristic ranks all weight bits by this count and assigns the sparsest, cheapest bits to LUTs until hitting a target memory budget, then applies Paar’s algorithm to share common logic subexpressions.
  • Sign Decoupling: To handle recurrent inhibitory connections (negative weights) without wasting bits on signs, both BRAM and LUTs store unsigned magnitudes; the neuron simply subtracts instead of adds when processing an inhibitory spike.
Fig. 4. Hybrid weight storage (BRAM) and online generation (LUTs) of the weights of an SNN layer.

Datasets

The authors evaluate their approach using existing public benchmarks (no new datasets are introduced):

  • MNIST: Static handwritten digit images (tested on both small and large network topologies).
  • AudioMNIST: Spoken digits for evaluating time-varying audio workloads.
  • Spiking Heidelberg Digits (SHD): A dedicated temporal spiking benchmark of spoken digits.

Key Insights and Ideas

  • Zero-loss "compression" via resource trading: Rather than throwing away mathematical information (pruning/quantization), you can exploit the heterogeneous nature of FPGAs, trading abundant LUTs for scarce BRAMs while reconstructing the exact original weights.
  • Sequential spike handling unlocks trivial logic: Because the underlying SNN processes one spike per cycle, weight lookup reduces to pure OR-gate trees—turning sparse bit-planes into featherweight combinational circuits.
  • Swapping memory for logic saves power: Accessing large BRAM blocks is power-hungry. Replacing a chunk of BRAM reads with lightweight, sparse combinational logic doesn't just save memory capacity—it substantially lowers overall chip power.
  • Pushing too far hits a wall: When the authors pushed LUT allocation to the extreme, routing congestion threatened timing closure, and massive logic trees began eating back the power savings—proving that a hybrid balance beats an all-memory or all-logic extreme.

Key Results

Synthesized on an AMD Zynq-7020 FPGA at 100 MHz and compared against state-of-the-art SNN accelerators (such as Spiker+, ModNEF, and TripleBrain):

  • BRAM Savings: Achieved >26% BRAM reduction across all balanced setups—specifically cutting BRAMs by 38% vs. Spiker+ (small MNIST), 26% vs. ModNEF (large MNIST), 43% on AudioMNIST, and 39% on SHD.
  • Logic Overhead: Required a modest 17% to 20% increase in LUT/Flip-Flop utilization on average.
  • Power Efficiency: Reduced overall power across every test case, averaging a 45% power reduction when compared directly against accelerators running on the exact same FPGA device (e.g., 151 mW vs. 430 mW for Spiker+ on SHD).
  • Maximum Limits: Pushing the heuristic to the limit of routability at 100 MHz slashed BRAM usage roughly in half again (down to just 2 BRAM36 blocks on AudioMNIST) with less than a 2.5% power uptick over balanced configs.

Limitations and Future Work

  • Timing and Routing Limits: The current weight-generation logic is strictly single-cycle and unpipelined. Allocating too many high-dependency bits to LUTs causes routing congestion and breaks timing closure.
  • Algorithm-Hardware Co-Design: Currently, the scheme takes pre-trained weights as-is. Future work will explore training constraints that snap weights to bit-sparse patterns (like powers of two) to deliberately shrink OR-gate counts, as well as feeding physical FPGA routing metrics directly into the bit-allocation loop.

Summary updated

Abstract

Spiking Neural Networks (SNNs) offer an attractive paradigm for energy-efficient AI inference, while their deployment on reconfigurable hardware enables application-specific acceleration without sacrificing model reprogrammability. However, realizing this potential on FPGAs is often severely constrained by the immense on-chip memory needed to store synaptic weights. Existing compression techniques reduce this storage requirement at the cost of weight precision or accuracy. This work presents a hybrid bit-level weight-storage scheme that trades BRAM capacity for FPGA logic resources while preserving the original weights unmodified. Selected weight bits are implemented using Look-Up Tables (LUTs), while the remaining bits are stored in BRAM and jointly reconstructed during inference. We integrate this approach into a spatial dataflow SNN architecture and introduce a practical bit-mapping heuristic that efficiently partitions weight bits between BRAM and LUT-based logic without modifying the weights. Experimental evaluation demonstrates more than 26% reduction in BRAM utilization with a modest increase in LUT and register usage, resulting in significant overall power savings.
BibTeX
@misc{sekertzis2026trading,
  author = {Dimitrios Sekertzis and Giorgos Dimitrakopoulos},
  title = {{Trading BRAM for LUTs: Hybrid Bit-Level Weight Storage for FPGA-Based Spiking Neural Networks}},
  year = {2026},
  eprint = {2611.32288},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32288},
}
Figure