An Optimized Implementation of Activation Instruction Based on RISC-V
Open Access
- 24 April 2023
- journal article
- research article
- Published by MDPI AG in Electronics
- Vol. 12 (9) , 1986
Abstract
Activation is an important component of the neural network, and the standard instructions of RISC-V are difficult to use to effectively handle the activation of the array. In this paper, we propose an optimized implementation of activation instruction based on RISC-V. Based on the opensource RISC-V processor Hummingbird E203, we designed a special instruction for the implementation of activation functions. A single instruction is chosen to implement the entire activation operation, including data loading, data arithmetic and data write-back. At the hardware level, we designed a method of alternate reading and writing that only needs a small hardware storage unit to meet the requirements of the activation operation for long arrays without affecting the activation efficiency. In addition, we added the length of the array as a new parameter to instruct our designed hardware to adapt to any length of arrays. Finally, the scheduling method of some instructions in the activation process was optimized in accordance with the law of instructions, which improves the execution efficiency of instructions. Considering an activation process with an array length of 15, our design demonstrates a 4.89-fold increase in speed compared to RISC-V standard instructions while consuming only 7.78% of the energy.Keywords
This publication has 14 references indexed in Scilit:
- PLAC: Piecewise Linear Approximation Computation for All Nonlinear Unary FunctionsIEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2020
- Ara: A 1-GHz+ Scalable and Energy-Efficient RISC-V Vector Processor With Multiprecision Floating-Point Support in 22-nm FD-SOIIEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2020
- GH CORDIC-Based Architecture for Computing $N$ th Root of Single-Precision Floating-Point NumberIEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2020
- Evaluating Celerity: A 16-nm 695 Giga-RISC-V Instructions/s Manycore Processor With Synthesizable PLLIEEE Solid-State Circuits Letters, 2019
- An Application-Specific Microprocessor for Energy Metering Based on RISC-V2019
- EyerissACM SIGARCH Computer Architecture News, 2016
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal NetworksIEEE Transactions on Pattern Analysis and Machine Intelligence, 2016
- A convolutional neural network cascade for face detection2015
- Hardware implementation of the exponential function using Taylor series2014
- Fixed-Point Square Roots Using L-b Truncation [DSP Tips and Tricks]IEEE Signal Processing Magazine, 2011