RISC-V Hardware-Software Co-design for Edge AI Acceleration
Abstract
Because of the development of edge intelligence, general-purpose processors have had difficulty meeting the computing power requirements under the constraints of power consumption and storage. Meanwhile, RISC-V, with its open-source, modular architecture, offers a clear path to break through the traditional barriers between software and hardware. Therefore, this article gives a systematic review of RISC-V hardware-software co-design technology for edge AI acceleration. The paper gives a clear and systematic presentation of the three main collaborations: hardware-led (standard extensions, custom instructions, heterogeneous NPU), software-led (model compression, compilation optimization), and a full-stack automated generation framework, and then uses Ara and Gemmini as typical examples to analyze the trade - off mechanisms between different approaches regarding generalization and energy efficiency. The paper also looks ahead to future development directions: sparse computing, Chiplet interconnection, and endogenous security, and gives a very clear, well-organized review of the optimization path from hardware-led to software-led, and finally to full-stack automated design, comparing the classic cases of each path. Based on this analysis, it naturally and convincingly concludes that hardware-led is highly specialized, with strong optimization capabilities but high design cost; software-led is good for rapid iteration but has limited room for improvement; and full-stack automated design strikes the best balance between the two.
References
- Garofalo, A., Rusci, M., Conti, F., Rossi, D., & Benini, L. (2020). PULP-NN: Accelerating quantized neural networks on parallel ultra-low-power RISC-V processors. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 378(2164), 20190155.
- Rossi, D., Conti, F., Marongiu, A., Pullini, A., Loi, I., Gautschi, M., ... & Benini, L. (2015, August). PULP: A parallel ultra low power platform for next generation IoT applications. 2015 IEEE Hot Chips 27 Symposium (HCS), Cupertino, CA, United States.
- Cavalcante, M., Schuiki, F., Zaruba, F., Schaffner, M., & Benini, L. (2019). Ara: A 1-GHz+ scalable and energy-efficient RISC-V vector processor with multiprecision floating-point support in 22-nm FD-SOI. IEEE Transactions on Very Large Scale Integration (VLSI) Systems, 28(2), 530–543.
- Sen, S., Jain, S., Venkataramani, S., & Raghunathan, A. (2018). SparCE: Sparsity aware general-purpose core extensions to accelerate deep neural networks. IEEE Transactions on Computers, 68(6), 912–925.
- Beijing Institute of Open Source Chip (BOSC). (2024). XiangShan. GitHub. https: //github.com/OpenXiangShan
- Chen, T., Moreau, T., Jiang, Z., Zheng, L., Yan, E., Shen, H., ... & Krishnamurthy, A. (2018). TVM: An automated end-to-end optimizing compiler for deep learning. 13th USENIX Symposium on Operating Systems Design and Implementation (OSDI 18), Carlsbad, CA, United States.
- Genc, H., Kim, S., Amid, A., Haj-Ali, A., Iyer, V., Prakash, P., ... & Shao, Y. S. (2021, December). Gemmini: Enabling systematic deep-learning architecture evaluation via full-stack integration [Paper presentation]. 2021 58th ACM/IEEE Design Automation Conference (DAC), San Francisco, CA, United States.
- Amid, A., Biancolin, D., Gonzalez, A., Grubb, D., Karandikar, S., Liew, H., ... & Nikolić, B. (2020). Chipyard: Integrated design, simulation, and implementation framework for custom SoCs. IEEE Micro, 40(4), 10–21.
- Armeniakos, G., Maras, A., Xydis, S., & Soudris, D. (2024, October). Mixed-precision neural networks on RISC-V cores: ISA extensions for multi-pumped soft SIMD operations. Proceedings of the 43rd IEEE/ACM International Conference on Computer-Aided Design (ICCAD), New Jersey, NJ, United States.
- Evans, A., Fuguet, C., & Million, D. (2024, October). OpenSource heterogeneous chiplet-based computing architectures. Proceedings of the 43rd IEEE/ACM International Conference on Computer-Aided Design (ICCAD), New Jersey, NJ, United States.
- Prakash, S., Callahan, T., Bushagour, J., Banbury, C., Green, A. V., Warden, P., ... & Reddi, V. J. (2023, April). CFU Playground: Full-stack open-source framework for tiny machine learning (tinyML) acceleration on FPGAs. 2023 IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS), Raleigh, NC, United States.
- Prasad, A. S., Scherer, M., Conti, F., Rossi, D., Di Mauro, A., Eggimann, M., ... & Benini, L. (2024). Siracusa: A 16 nm heterogenous RISC-V SoC for extended reality with at-MRAM neural engine. IEEE Journal of Solid-State Circuits, 59(7), 2055–2069.
- Ueyoshi, K., Papistas, I. A., Houshmand, P., Sarda, G. M., Jain, V., Shi, M., ... & Verhelst, M. (2022, February). DIANA: An end-to-end energy-efficient digital and ANAlog hybrid neural network SoC. 2022 IEEE International Solid-State Circuits Conference (ISSCC), San Francisco, CA, United States.
- Garofalo, A., Tagliavini, G., Conti, F., Rossi, D., & Benini, L. (2020, March). XpulpNN: Accelerating quantized neural networks on RISC-V processors through ISA extensions. 2020 Design, Automation & Test in Europe Conference & Exhibition (DATE), Grenoble, France.