An Optimized Implementation of Activation Instruction Based on RISC-V

Author:

Yu Hongjiang12ORCID,Yuan Guoshun1,Kong Dewei12,Chen Chuhuai12

Affiliation:

1. Institute of Microelectronics of the Chinese Academy of Sciences, Beijing 100029, China

2. University of Chinese Academy of Sciences, Beijing 100049, China

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.

Publisher

MDPI AG

Subject

Electrical and Electronic Engineering,Computer Networks and Communications,Hardware and Architecture,Signal Processing,Control and Systems Engineering

Reference24 articles.

1. (2023, January 15). Artificial Intelligence of Things (AIoT) Market. Available online: https://brandessenceresearch.com/technology-and-media/artificial-intelligence-of-things-aiot-market-size.

2. Du, G., Wang, X., Wang, G., Zhang, Y., and Li, D. (2016, January 13–15). Speech recognition based on convolutional neural networks. Proceedings of the 2016 IEEE International Conference on Signal and Image Processing, Washington, DC, USA.

3. Li, H., Lin, Z., Shen, X., Brandt, J., and Hua, G. (2015, January 7–12). A convolutional neural network cascade for face detection. Proceedings of the 2015 IEEE Conference on Computer Vision and Pattern Recognition, Washington, DC, USA.

4. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks;Ren;IEEE Trans. Pattern Anal. Mach. Intell.,2017

5. Huang, J. (2023, February 11). AI drives the Rise of Accelerated Computing in Data Centers. Available online: https://blogs.nvidia.com/blog/2017/04/10/ai-drives-rise-accelerated-computing-datacenter/.

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3