arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2401.00772cs.ARcs.CR
收藏

可扩展处理器自动合成指令集的改进算法

Algorithms for Improving the Automatically Synthesized Instruction Set of an Extensible Processor

Peter Sovietov

AI总结:

本文提出公共操作聚类与包含函数两种算法,改进可扩展处理器自动合成指令集,在密码学和三维图形测试中显著减少编译代码大小和指令扩展数量。

摘要:

具有可扩展指令集的处理器如今常被用作各种领域的可编程硬件加速器。在扩展RISC-V和其他类似的可扩展处理器架构时,需要设计专用指令。这一任务可以通过使用指令合成算法自动解决。本文考虑了可以补充到已知方法中使用的算法,通过在聚类后的合成指令内重新计算程序的公共操作(其结果被多个操作使用)(公共操作聚类算法),以及识别冗余(在其他指令中存在等价物)的合成指令(包含函数算法),来改进合成指令集。\n\n针对密码学和三维图形领域的测试,对所开发算法进行了实验评估。对于Magma密码测试,公共操作聚类算法使编译代码大小减少9%,包含函数算法使合成指令集扩展大小减少2倍。对于AES密码测试,公共操作聚类算法使编译代码大小减少10%,包含函数算法使合成指令集扩展大小减少2.5倍。最后,对于来自Volume Ray-Casting测试的指令集扩展,额外使用包含函数算法可以将特定问题的指令扩展集大小从5条减少到仅2条,而不损失其功能。

英文摘要:

Processors with extensible instruction sets are often used today as programmable hardware accelerators for various domains. When extending RISC-V and other similar extensible processor architectures, the task of designing specialized instructions arises. This task can be solved automatically by using instruction synthesis algorithms. In this paper, we consider algorithms that can be used in addition to the known approaches and improve the synthesized instruction sets by recomputing common operations (the result of which is consumed by multiple operations) of a program inside clustered synthesized instructions (common operations clustering algorithm), and by identifying redundant (which have equivalents among the other instructions) synthesized instructions (subsuming functions algorithm). Experimental evaluations of the developed algorithms are presented for the tests from the domains of cryptography and three-dimensional graphics. For Magma cipher test, the common operations clustering algorithm allows reducing the size of the compiled code by 9%, and the subsuming functions algorithm allows reducing the synthesized instruction set extension size by 2 times. For AES cipher test, the common operations clustering algorithm allows reducing the size of the compiled code by 10%, and the subsuming functions algorithm allows reducing the synthesized instruction set extension size by 2.5 times. Finally, for the instruction set extension from Volume Ray-Casting test, the additional use of subsuming functions algorithm allows reducing problem-specific instruction extension set size from 5 to only 2 instructions without losing its functionality.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑