PDF(4485 KB)
PDF(4485 KB)
PDF(4485 KB)
敏捷开发的SM4算法FPGA实现与优化
SM4 algorithm FPGA implementation and optimization with agile development
本文使用敏捷开发技术设计并改进了SM4算法,在Xilinx FPGA平台完成了实现和验证。针对SM4算法关键路径长、吞吐量较低的缺点,将32个寄存器构成的寄存器组插入轮函数计算过程作为缓存区,采用流水线的方式缩短关键路径和优化S盒模块结构,从而大幅提升了工作频率和吞吐量,分别达到340 MHz和1.2 Gbit/s。同时采用新型高级硬件描述语言BSV进行开发,大幅降低了设计复杂度。与采用Verilog的设计相比,在硬件开销差距不大的情况下性能提升了40%,复杂度降低了60%;与较早前方案相比,资源开销降低了70%,性能提升了1倍,具有较高的应用价值。
This article uses agile development technology to design and improve the SM4 algorithm,and completes the implementation and verification on the Xilinx FPGA platform.In view of the shortcomings of the SM4 algorithm featuring long critical path and low throughput,a register group consisting of 32 registers is inserted into the round function calculation process as a cache area,and the pipeline method is used to shorten the critical path and optimize the S-box module structure,thus greatly improving the work efficiency.Frequency and throughput reach 340 MHz and 1.2 Gbit/s,respectively.At the same time,the new high-level hardware description language BSV is used for development,which greatly reduces the design complexity.Compared with the design using Verilog,the performance is 40% higher and the complexity is 60% lower without notable difference in hardware overhead.Compared with the earlier solution,the resource overhead is reduced by 70%,the performance is doubled,and it has higher application value.
敏捷开发 / BSV / SM4 / 关键路径 / FPGA
agile development / BSV / SM4 / critical path / FPGA
| [1] |
|
| [2] |
|
| [3] |
|
| [4] |
何诗洋, 李晖, 李凤华. SM4算法的FPGA优化实现方法[J]. 西安电子科技大学学报, 2021, 48(3):155-162.
|
| [5] |
|
| [6] |
Bluespec Inc.Bluespec System Verilog and Bluespec Development Workstation User Guide[DB/OL].(2017-07-21)[2023-12-04]. http://csg.csail.mit.edu/6.375/6_375_2019_www/resources/bsv-user-guide.pdf.
|
| [7] |
|
| [8] |
|
| [9] |
申懿鑫, 韩跃平, 唐道光. 高层次综合的SM4算法硬件实现与优化[J]. 单片机与嵌入式系统应用, 2023, 13(8):11-14.
|
| [10] |
|
/
| 〈 |
|
〉 |