一种密集且高效的指令集架构编码
A Dense and Efficient Instruction Set Architecture Encoding
AI总结:
本研究提出新型实验性指令集Scry,通过前向时间引用与内部标记机制,仅用2字节指令就达到RV64IMC的功能完备度,编码空间占用更低,静态指令密度随函数规模增大更具优势。
摘要:
指令密度与编码效率是少数直接受指令集架构设计影响的特性。与之相对,处理器的实现往往会显著影响性能、能效与面积占用。因此,指令集设计的核心目标之一应是最大化指令密度与编码效率。本文介绍了Scry指令集架构中对指令密度与编码效率影响最显著的设计要素。Scry是一种新型实验性指令集,它回归基础原理,旨在设计适配现代处理器实现的指令集。Scry采用前向时间引用作为数据流实现方式,即指令会指明其输出将被哪些未来的指令消费。它还采用内部标记机制,由处理器在内部跟踪数据类型,以此减少所需指令数量并提升灵活性。结合这两种方法,Scry仅用2字节指令就实现了与RISC-V的RV64IMC相当的指令功能完备度,而RV64IMC需要4字节指令。Scry的指令仅占用2字节编码空间的28%,相比之下RV64IMC指令占用了4字节编码空间的68%。我们的研究表明,手工编译的Scry静态指令密度在小型函数上与RV64IMC相当,且随着函数规模增大,其密度优势会逐步提升。
英文摘要:
Instruction density and encoding efficiency are some of the few things directly affected by an instruction set architecture's design. In contrast, a processor's implementation often significantly influences performance, power efficiency, and area usage. Therefore, a major goal of instruction set design should be maximizing instruction density and encoding efficiency. This paper introduces the design elements of the Scry instruction set architecture that most significantly affect instruction density and encoding efficiency. Scry is a novel and experimental instruction set that revisits first principles to design an instruction set fit for modern processor implementations. Scry uses forward-temporal referencing as a means of data flow, where instructions refer to which future instructions consume their outputs. It also uses internal tagging, where the processors track data types internally, to reduce the number of instructions needed and increase flexibility. Combining these two methods, Scry achieves instruction-feature parity with RISC-V's RV64IMC using only 2-byte instructions compared to RISC-V's 4 bytes. Scry's instructions occupy only 28% of the 2-byte encoding space, where RV64IMC instructions occupy 68% of the 4-byte encoding space. We show that hand-compiled Scry's static instruction density is comparable to RV64IMC for small functions and improves as functions grow in size.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。