Journal of Computer Applications ›› 2015, Vol. 35 ›› Issue (5): 1412-1416.DOI: 10.11772/j.issn.1001-9081.2015.05.1412

Previous Articles     Next Articles

Hardware/Software co-design of SM2 encryption algorithm based on the embedded SoC

ZHONG Li1, LIU Yan2, YU Siyang2, XIE Zhong1   

  1. 1. College of Physics and Microelectronics, Hunan University, Changsha Hunan 410082, China;
    2. College of Information Science and Engineering, Hunan University, Changsha Hunan 410082, China
  • Received:2014-12-10 Revised:2015-01-20 Online:2015-05-10 Published:2015-05-14

嵌入式系统芯片中SM2算法软硬件协同设计与实现

钟丽1, 刘彦2, 余思洋2, 谢中1   

  1. 1. 湖南大学 物理与微电子科学学院, 长沙 410082;
    2. 湖南大学 信息科学与工程学院, 长沙 410082
  • 通讯作者: 谢中
  • 作者简介:钟丽(1990-),女,安徽合肥人,硕士研究生,主要研究方向:数字芯片设计与验证; 刘彦(1979-),男,湖南长沙人,讲师,博士,主要研究方向:计算机体系结构、可重构计算、多处理器任务调度; 余思洋(1986-),男,湖南岳阳人,博士研究生,主要研究方向:加密芯片; 谢中(1957-),男,湖南攸县人,教授,博士,主要研究方向:无线电物理.
  • 基金资助:

    国家自然科学基金资助项目(61300037).

Abstract:

Concerning the problem that the development cycle of existing elliptic curve algorithm system level design is long and the performance-overhead indicators are not clear, a method of Hardware/Software (HW/SW) co-design based on Electronic System Level (ESL) was proposed. This method presented several HW/SW partitions by analyzing the theories and implementations of SM2 algorithm, and generated cycle-accurate models for HW modules with SystemC. Module and system verification were proposed to compare the executing cycle counts of HW/SW modules to obtain the best partition. Finally, the ESL models were converted to Rigister Transfer Level (RTL) models according to the CFG (Control Flow Graph) and DFG (Data Flow Graph) to perform logic synthesis and comparison. In the condition of 50 MHz,180 nm CMOS technology, when getting best performance,the execute time of point-multiply was 20 ms, with 83 000 gates and the power consuption was 2.23 mW. The experimental result shows that the system analysis is conducive to performance and resources evaluation, and has high applicability in encryption chip based on elliptic curve algorithm. The embedded SoC (System on Chip) based on this algorithm can choose appropriate architecture based on performance and resource constraints.

Key words: SM2 algorithm, SystemC, hardware/software partition, Electronic System Level (ESL), cycle-accurate

摘要:

针对现有的椭圆曲线算法系统级设计中开发周期长,以及不同模块的性能开销指标不明确等问题,提出一种基于电子系统级(ESL)设计的软硬件(HW/SW)协同设计方法.该方法通过分析SM2(ShangMi2)算法原理与实现方式,研究了不同的软硬件划分方案,并采用统一建模语言SystemC对硬件模块进行周期精确级建模.通过模块级与系统级两层验证比较软硬件模块执行周期数,得出最佳性能划分方式.最后结合算法控制流程图(CFG)与数据流程图(DFG)将ESL模型转化为寄存器传输级(RTL)模型进行逻辑综合与比较,得出在180 nm CMOS工艺,50 MHz频率下,当算法性能最佳时,点乘模块执行时间为20 ms,门数83 000,功耗约2.23 mW.实验结果表明所提系统级架构分析对基于椭圆曲线类加密芯片在性能、面积与功耗的评估优势明显且适用性强,基于此算法的嵌入式系统芯片(SoC)可根据性能与资源限制选择合适的结构并加以应用.

关键词: SM2算法, SystemC, 软硬件划分, 电子系统级, 周期精确

CLC Number: