RISC-V Toolchain and Agile Development based Open-source Neuromorphic Processor

Jiulong Wang, Ruopu Wu, Guokai Chen, Xuhao Chen, Zhijie Jia, Boran Liu, Jixiang Zong · DOI

Abstract

In recent decades, neuromorphic computing aiming to imitate brains' behaviors has been developed in various fields of computer science. The Artificial Neural Network (ANN) is an important concept in Artificial Intelligence (AI), utilized in recognition and classification. To explore a better way to simulate brain behaviors efficiently on hardware, Spiking Neural Networks (SNNs) have emerged as an optimal choice. However, most current accelerator solutions rely on a CPU-accelerator architecture that is energy-inefficient due to complex control flows. This paper proposes Wenquxing 22A, a low-power neuromorphic processor that integrates general-purpose CPU functions with SNN capabilities via RISC-V SNN extension instructions. By embedding the SNN calculation unit directly into the pipeline of a general-purpose CPU, Wenquxing 22A achieves low-power computing using the RV-SNN V1.0 instruction set, a streamlined Leaky Integrate-and-Fire (LIF) model, and binary stochastic Spike-timing-dependent-plasticity (STDP). Experimental results on the MNIST dataset demonstrate that Wenquxing 22A improves energy efficiency by 5.13 times over the ODIN accelerator solution while achieving a classification accuracy of 91.91%.

Introduction

Traditional Artificial Neural Networks (ANNs) have driven significant advances in AI but remain computationally intensive and power-hungry, posing challenges for deployment in edge computing and IoT environments. Spiking Neural Networks (SNNs) offer a bio-inspired, event-driven alternative that promises substantial energy savings. Despite this potential, a major bottleneck persists in hardware implementation: the prevalent "CPU-accelerator" architecture. In such systems, the separation between the general-purpose control unit and the specialized neural accelerator introduces significant overhead in data movement and control flow management.

Wenquxing 22A addresses this by eliminating the "middleman." Instead of offloading SNN tasks, it integrates neuromorphic hardware directly into the processor's execution pipeline, treating neural updates as native operations.

Architecture and Methods

Wenquxing 22A is built upon the open-source NutShell framework, a 9-stage in-order RISC-V processor. The core innovation lies in the integration of a dedicated SNN Unit (SNNU) into the processor's backend.

Figure 3: Hardware architecture of Wenquxing 22A, showing the integration of the SNNU into the NutShell pipeline.

The SNNU comprises three primary sub-components: the Spike Process Unit (SPU), the Neuron Unit (NU), and the Synapse Unit (SU). To facilitate this integration, the researchers developed the RV-SNN 1.0 instruction set extension. These custom instructions allow the CPU to manage neural updates with the same granularity as standard arithmetic operations, preventing pipeline stalls during complex updates. The design utilizes 1-bit (binary) weights and a Binary Stochastic Spike-Timing-Dependent Plasticity (STDP) rule to maintain a lean hardware footprint.

Experimental Setup and Results

The processor was evaluated using the MNIST dataset. Pre-processing involved deskewing and soft thresholding to improve feature clarity, followed by conversion into spike trains using a Poisson encoder. The entire system was implemented on an Alveo U250 FPGA for performance verification against the ODIN (Online-learning Digital Spiking Neuromorphic) processor.

Figure 4: Power consumption comparison between the ODIN-based system and Wenquxing 22A.

Energy Efficiency and Accuracy

As shown in Figure 4, Wenquxing 22A demonstrates a dramatic reduction in power consumption. The total power draw was measured at 5.055W, compared to 25.949W for the ODIN-based system—a 5.13x improvement. This efficiency stems from the reduced control overhead and minimized data movement inherent in the integrated pipeline design.

On the MNIST task, Wenquxing 22A achieved a maximum classification accuracy of 91.91% using 40 neurons and 1-bit weights. This outperformed the 3-bit ODIN system, which reached 85.00% accuracy. Interestingly, researchers observed a "dead neuron" phenomenon when scaling the network size, which was mitigated by tuning the $w_{exp}$ parameter to regulate the probability of Long-Term Depression (LTD).

Conclusion

Wenquxing 22A represents a significant step toward efficient, open-source neuromorphic hardware. By integrating SNN capabilities directly into a RISC-V pipeline, the design achieves superior energy efficiency without sacrificing accuracy. Future work will focus on scaling the architecture to support multi-layer networks and moving toward physical ASIC implementation to further validate these power savings.

The source code for Wenquxing 22A is available on GitHub and Gitee.

Summary updated

Abstract

In recent decades, neuromorphic computing aiming to imitate brains' behaviors has been developed in various fields of computer science. The Artificial Neural Network (ANN) is an important concept in Artificial Intelligence (AI). It is utilized in recognition and classification. To explore a better way to simulate obtained brain behaviors, which is fast and energy-efficient, on hardware, researchers need an advanced method such as neuromorphic computing. In this case, Spiking Neural Network (SNN) becomes an optimal choice in hardware implementation. Recent works are focusing on accelerating SNN computing. However, most accelerator solutions are based on CPU-accelerator architecture which is energy-inefficient due to the complex control flows in this structure. This paper proposes Wenquxing 22A, a low-power neuromorphic processor that combines general-purpose CPU functions and SNN to efficiently compute it with RISC-V SNN extension instructions. The main idea of Wenquxing 22A is to integrate the SNN calculation unit into the pipeline of a general-purpose CPU to achieve low-power computing with customized RISC-V SNN instructions version 1.0 (RV-SNN V1.0), Streamlined Leaky Integrate-and-Fire (LIF) model, and the binary stochastic Spike-timing-dependent-plasticity (STDP). The source code of Wenquxing 22A is released online on Gitee and GitHub. We apply Wenquxing 22A to the recognition of the MNIST dataset to make a comparison with other SNN systems. Our experiment results show that Wenquxing 22A improves the energy expenses by 5.13 times over the accelerator solution, ODIN, with approximately classification accuracy, 85.00% for 3-bit ODIN online learning, and 91.91% for 1-bit Wenquxing 22A.
BibTeX
@misc{wang2022risc,
  author = {Jiulong Wang and Ruopu Wu and Guokai Chen and Xuhao Chen and Zhijie Jia and Boran Liu and Jixiang Zong},
  title = {{RISC-V Toolchain and Agile Development based Open-source Neuromorphic Processor}},
  year = {2022},
  eprint = {2210.00562},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.00562},
}
Figure