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

计算机工程与科学 ›› 2020, Vol. 42 ›› Issue (12): 2179-2185.

• 高性能计算 • 上一篇    下一篇

支持RISC-V向量指令的汇编器设计与实现

邓平,朱小龙,孙海燕,任怡   

  1. (国防科技大学计算机学院,湖南 长沙 410073)
  • 收稿日期:2020-06-10 修回日期:2020-07-15 接受日期:2020-12-25 出版日期:2020-12-25 发布日期:2021-01-05

Design and implementation of RISC-V assembler supporting vector instructions

DENG Ping,ZHU Xiao-long,SUN Hai-yan,Ren Yi   

  1. (School of Computer,National University of Defense Technology,Changsha 410073,China)
  • Received:2020-06-10 Revised:2020-07-15 Accepted:2020-12-25 Online:2020-12-25 Published:2021-01-05

摘要: 向量运算可以有效提高计算机的运算效率,减少不必要的硬件开销,随着CPU运算能力的提升和寄存器位数扩展等硬件的进一步发展,向量运算成为实际芯片架构设计中最常用的提高处理器性能的技术。受到业界广泛关注的RISC-V体系结构也借助向量技术提高性能,但目前开源版本的RISC-V汇编器只支持标量指令程序,不支持向量指令的汇编。基于GNU的Binutils汇编器,设计并实现了支持RISC-V向量指令的汇编器,该汇编器可完成向量指令的汇编和反汇编工作,同时其扩展实现也可以为其他指令模块的扩展支持提供参考。


关键词: RISC-V, 向量指令, 指令集, 汇编器

Abstract: Vector computing can effectively improve the computing efficiency of computers and reduce unnecessary hardware overhead. With the improvement of CPU computing capability, the expansion of register number, and other hardware development trends, vector computing has becoming one of the widely used technologies to improve the CPU performance. The RISC-V architecture, which is highly focused on, also needs vector technology to improve the architecture performance. The open source RISC-V assembler only support standard instructions, and does not support vector instructions until now. In order to support RISC-V vector instructions, this paper details the design and implementation of RISC-V assembler supporting vector instructions.

Key words: RISC-V, vector instructions, instruction set, assembler