skip to main content
10.1145/3649153.3649195acmconferencesArticle/Chapter ViewAbstractPublication PagescfConference Proceedingsconference-collections
research-article
Open access

FazyRV: Closing the Gap between 32-Bit and Bit-Serial RISC-V Cores with a Scalable Implementation

Published: 02 July 2024 Publication History

Abstract

RISC-V processor cores with a 32-bit internal data path reach a boundary on their minimal size, requiring novel concepts to decrease silicon area and the cost of Internet of Things (IoT) devices. We propose a minimal-area open-source RV32I RISC-V core targeting the IoT and low-workload applications. Unlike cores with a similarly small area, FazyRV is inherently scalable to a data path width of 1, 2, 4, or 8 bits. FazyRV has manifold variants to achieve the smallest footprint at given performance requirements. This paper provides insight into FazyRV, its verification, and the resource utilization for five Field-Programmable Gate Array (FPGA) architectures. We also compare its performance with similar cores using the Embench benchmark suite. Based on the findings, we analyze and discuss optimization potentials in depth. Although FazyRV is implemented at the register transfer level, we achieve comparable results to hand-optimized cores at the gate level. In an exemplary IoT application, the whole system on chip is implemented in 77 Slices, or 645 Logic Cells for a Xilinx/AMD 7-Series or an iCE40 FPGA, respectively.

References

[1]
ANAND JOSHI. 2019. CHALLENGES AND OPPORTUNITIES FOR RISC V. https://riscv.org/wp-content/uploads/2019/12/12.11-14.20a9-Joshi-Tractica-Processor-IP-Showcase- with- Andes-Technology-CHIPS-Alliance-Codasip-Shakti-Project-SiFive-Syntacore-OpenHW-Group-1.pdf (accessed 2023-11-27).
[2]
Robert K. Brayton, Gary D. Hachtel, C. McMullen, and Alberto L. Sangiovanni-Vincentelli. 1984. Logic Minimization Algorithms for VLSI Synthesis. Vol. 2. Springer Science & Business Media.
[3]
Andrew Burgess et al. 2023. Embench™: Open Benchmarks for Embedded Platforms. GitHub. https://github.com/embench/embench-iot (accessed 2023-12-13).
[4]
Pasquale Davide Schiavone, Francesco Conti, Davide Rossi, Michael Gautschi, Antonio Pullini, Eric Flamand, and Luca Benini. 2017. Slow and Steady Wins the Race? A Comparison of Ultra-Low-Power RISC-V Cores for Internet-of-Things Applications. In Proc. of the 27th Int. Symp. on Power and Timing Modeling, Optimization and Simulation (PATMOS). IEEE, 1--8.
[5]
efabless. 2023. caravel_mgmt_soc_litex. GitHub. https://github.com/efabless/caravel_mgmt_soc_litex (accessed 2023-11-27).
[6]
Islam Elsadek and Eslam Yahya Tawfik. 2021. RISC-V Resource-Constrained Cores: A Survey and Energy Comparison. In Proc. of the 19th IEEE Int. New Circuits and Systems Conf. (NEWCAS). IEEE, 1--5.
[7]
Wael M. Elsharkasy, Hasan Erdem Yantir, Amin Khajeh, Ahmed M. Eltawil, and Fadi J. Kurdahi. 2017. Efficient Pulsed-Latch Implementation for Multiport Register Files: Work-in-Progress. In Proc. of the Int. Conf. on Compilers, Architectures and Synthesis for Embedded Systems Companion (CASES). ACM, 1--2.
[8]
ganoam. 2020. Ibex: FPGA Optimizations #522. GitHub. https://github.com/lowRISC/ibex/issues/522#issuecomment-582826764 (accessed 2023-11-18).
[9]
Hyeonguk Jang, Kyuseung Han, Sukho Lee, Jae-Jin Lee, Seung-Yeong Lee, Jae-Hyoung Lee, and Woojoo Lee. 2021. Developing a Multicore Platform Utilizing Open RISC-V Cores. IEEE Access 9 (2021), 120010--120023.
[10]
Stavros Kalapothas, Manolis Galetakis, Georgios Flamis, Fotis Plessas, and Paris Kitsos. 2023. A Survey on RISC-V-Based Machine Learning Ecosystem. Information 14 (Jan. 2023).
[11]
Olof Kindgren. 2023. QERV. GitHub. https://github.com/olofk/qerv (accessed 2023-11-30).
[12]
Olof Kindgren. 2023. SERV. GitHub. https://github.com/olofk/serv (accessed 2023-11-17).
[13]
Sakari Lahti, Panu Sjovall, Jarno Vanne, and Timo D. Hamalainen. 2019. Are We There Yet? A Study on the State of High-Level Synthesis. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 38, 5 (May 2019), 898--911.
[14]
LATTICE Semiconductor. 2013. iCE40™ LP/HX/LM Family Handbook.
[15]
litex-hub. 2023. pythondata-cpu-vexriscv. GitHub. https://github.com/litex-hub/pythondata-cpu-vexriscv (accessed 2023-12-14).
[16]
lowRISC. 2023. Ibex. GitHub. https://github.com/lowRISC/ibex (accessed 2023-11-17).
[17]
Jason Luu, Jason Helge Anderson, and Jonathan Scott Rose. 2011. Architecture Description and Packing for Logic Blocks with Hierarchy, Modes and Complex Interconnect. In Proc. of the 19th ACM/SIGDA Int. Symp. on Field Programmable Gate Arrays (FPGA). ACM, 227--236.
[18]
Market Insights by statista. 2023. Internet of Things: Market Data & Analysis. https://de.statista.com/statistik/studie/id/109209/dokument/internet-der-dinge-market-outlook-report/ (accessed 2023-12-13).
[19]
RISC-V. Community News. 2023. Semico Research's New Report Predicts There Will Be 25 Billion RISC-V-Based AI SoCs By 2027 | Rich Wawrzyniak, Semico Research Corporation - RISC-V International. https://riscv.org/blog/2022/02/semico-researchs-new-report-predicts-there-will-be-25-billion-risc-v-based-ai-socs-by-2027/ (accessed 2023-11-22).
[20]
Aina Niemetz, Mathias Preiner, and Armin Biere. 2015. Boolector 2.0 System Description. Journal on Satisfiability, Boolean Modeling and Computation (JSAT) 9 (2015), 53--58.
[21]
Olof Kindgren. 2023. Qamcom Boosts RISC-V beyond the Edge with QERV. Qamcom boosts RISC-V beyond the edge with QERV - The world's smallest RISC-V CPU, now three times faster. https://www.qamcom.com/qamcom-boosts-risc-v (accessed 2023-11-17).
[22]
Alessandro Palumbo, Luca Cassano, Bruno Luzzi, José Alberto Hernández, Pedro Reviriego, Giuseppe Bianchi, and Marco Ottavi. 2022. Is Your FPGA Bitstream Hardware Trojan-free? Machine Learning Can Provide an Answer. Journal of Systems Architecture 128 (July 2022), 102543.
[23]
Philipp Wagner. 2019. An Update on Ibex, Our Microcontroller-Class CPU Core. https://www.cl.cam.ac.uk/~jrrk2/blog/2019/06/an-update-on-ibex-our-microcontroller-class-cpu-core/ (accessed 2023-11-18).
[24]
riscv-software-src. 2023. RISCOF. GitHub. https://github.com/riscv-software-src/riscof (accessed 2023-11-28).
[25]
riscv-software-src. 2023. Spike ISA Sim. GitHub. https://github.com/riscv-software-src/riscv-isa-sim (accessed 2023-12-15).
[26]
riscvarchive. 2023. Riscv-Cores-List. GitHub. https://github.com/riscvarchive/riscv-cores-list (accessed 2023-11-22).
[27]
David Shah, Eddie Hung, Clifford Wolf, Serge Bazanski, Dan Gisselquist, and Miodrag Milanovic. 2019. Yosys+nextpnr: An Open Source Framework from Verilog to Bitstream for Commercial FPGAs. In Proc. of the 27th IEEE Int. Symp. on Field-Programmable Custom Computing Machines (FCCM). IEEE, 1--4.
[28]
Shenzhen MilkV Technology Co., Ltd. 2023. Milk-V Pioneer. https://milkv.io/pioneer (accessed 2023-11-22).
[29]
SpinalHDL. 2023. SpinalHDL. GitHub. https://github.com/SpinalHDL/SpinalHDL (accessed 2023-11-18).
[30]
SpinalHDL. 2023. VexRiscv. GitHub. https://github.com/SpinalHDL/VexRiscv (accessed 2023-11-30).
[31]
Vaibhav Verma and Mircea R. Stan. 2022. AI-PiM---Extending the RISC-V Processor with Processing-in-Memory Functional Units for AI Inference at the Edge of IoT. Frontiers in Electronics 3 (2022), 898273.
[32]
Waterman, Andrew. 2019. The RISC-V Instruction Set Manual, Volume I: User-Level ISA, Document Version 20191213. Technical Report. RISC-V Foundation.
[33]
Wilson Snyder. 2023. Verilator/Verilator. GitHub. https://github.com/verilator/verilator (accessed 2023-11-28).
[34]
Xilinx. 2019. 7 Series FPGAs Memory Resources User Guide. Technical Report.
[35]
YosysHQ. 2023. nextpnr. GitHub. https://github.com/YosysHQ/nextpnr (accessed 2023-11-27).
[36]
YosysHQ. 2023. PicoRV32. GitHub. https://github.com/YosysHQ/picorv32 (accessed 2023-11-18).
[37]
YosysHQ. 2023. Riscv-Formal. GitHub. https://github.com/YosysHQ/riscv-formal (accessed 2023-11-28).
[38]
YosysHQ. 2023. Sby. GitHub. https://github.com/YosysHQ/sby (accessed 2023-11-28).
[39]
YosysHQ. 2023. Yosys. GitHub. https://github.com/YosysHQ/yosys (accessed 2023-11-27).
[40]
Florian Zaruba and Luca Benini. 2019. The Cost of Application-Class Processing: Energy and Performance Analysis of a Linux-Ready 1.7-GHz 64-Bit RISC-V Core in 22-Nm FDSOI Technology. IEEE Transactions on Very Large Scale Integration (VLSI) Systems 27, 11 (2019), 2629--2640.

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
CF '24: Proceedings of the 21st ACM International Conference on Computing Frontiers
May 2024
345 pages
ISBN:9798400705977
DOI:10.1145/3649153
This work is licensed under a Creative Commons Attribution International 4.0 License.

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 02 July 2024

Check for updates

Author Tags

  1. Digital System Design
  2. Embedded Systems
  3. Internet of Things
  4. Processor Architecture
  5. RISC-V

Qualifiers

  • Research-article
  • Research
  • Refereed limited

Conference

CF '24
Sponsor:

Acceptance Rates

CF '24 Paper Acceptance Rate 33 of 105 submissions, 31%;
Overall Acceptance Rate 273 of 785 submissions, 35%

Upcoming Conference

CF '25

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 418
    Total Downloads
  • Downloads (Last 12 months)418
  • Downloads (Last 6 weeks)90
Reflects downloads up to 17 Jan 2025

Other Metrics

Citations

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media