• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science ›› 2025, Vol. 47 ›› Issue (06): 968-975.

• High Performance Computing • Previous Articles     Next Articles

Designing and optimizing RISC-V instruction set functionality based on multi-operand acceleration

ZHANG Yu er,XI Yuhao,LIU Peng    

  1. (College of Information Science & Electronic Engineering, Zhejiang University, Hangzhou 310027, China)
  • Received:2024-10-16 Revised:2024-11-01 Online:2025-06-25 Published:2025-06-26

Abstract: The RISC-V architecture, with its open and modular instruction set architecture (ISA) design, facilitates the integration of customized instructions tailored to specific applications and their software ecosystems, enabling efficient processing of complex algorithms and repetitive operations. However, designing acceleration instructions for RISC-V processors presents significant challenges, primarily due to limitations in operand quantity. Traditional acceleration methods typically adopt a 2-input-1- output model, which restricts the flexibility and efficiency of complex operations. To address these limitations, this method proposes a multi-operand acceleration mechanism that breaks the conventional 2-input-1-output constraint by providing a flexible interface for multiple inputs and outputs. The mechanism is validated through benchmark tests on an FPGA platform, including SHA-256, SHA-1, and FIR/IIR filter algorithms, conducted on Western Digital’s open-source RISC-V VeeR EH1 core. Experimental results demonstrate a performance improvement of up to 14% while maintaining hardware overhead at or below 3%. Compared to traditional 2-input-1-output acceleration methods, the proposed enhanced instruction set design significantly enhances the processing efficiency of RISC-V cores, demonstrating its superior capability in embedded computing and domain-specific acceleration applications.

Key words: reduced instruction set computer-V(RISC-V), custom instructions, hardware-software co-design