系统工程与电子技术 ›› 2025, Vol. 47 ›› Issue (2): 341-351.doi: 10.12305/j.issn.1001-506X.2025.02.01

• 电子技术 •    

基于HLS的高精度位移测量算法的硬件加速设计

陈昊然1,2, 王天昊1,2, 路美娜2,*, 宋茂新2, 罗环2, 吴晓宇2, 骆冬根2, 裘桢炜2   

  1. 1. 中国科学技术大学研究生院科学岛分院, 安徽 合肥 230026
    2. 中国科学院合肥物质科学研究院, 安徽 合肥 230031
  • 收稿日期:2024-03-11 出版日期:2025-02-25 发布日期:2025-03-18
  • 通讯作者: 路美娜
  • 作者简介:陈昊然 (2000—), 女, 硕士研究生, 主要研究方向为图像采集及数据处理
    王天昊 (1999—), 男, 硕士研究生, 主要研究方向为视、听觉信息处理、模式识别
    路美娜 (1986—), 女, 副研究员, 硕士, 主要研究方向为光电遥感
    宋茂新 (1983—), 男, 研究员, 博士, 主要研究方向为光机设计
    罗环 (1994—), 女, 工程师, 硕士, 主要研究方向为嵌入式软件开发
    吴晓宇 (1998—), 女, 硕士研究生, 主要研究方向为光机设计
    骆冬根 (1979—), 男, 副研究员, 博士, 主要研究方向为光电检测、偏振光学遥感
    裘桢炜 (1982—), 男, 研究员, 博士, 主要研究方向为空间光学偏振遥感、大气气溶胶探测

High-precision displacement measurement algorithm based on HLS for hardware acceleration design

Haoran CHEN1,2, Tianhao WANG1,2, Meina LU2,*, Maoxin SONG2, Huan LUO2, Xiaoyu WU2, Donggen LUO2, Zhenwei QIU2   

  1. 1. Science Island Branch, Graduate School of University of Science and Technology of China, Hefei 230026, China
    2. Hefei Institutes of Physical Science, Chinese Academy of Sciences, Hefei 230031, China
  • Received:2024-03-11 Online:2025-02-25 Published:2025-03-18
  • Contact: Meina LU

摘要:

针对高精度位移传感器对高速位移测量算法的运行速度、可移植性及降低研发成本的需求, 提出一种基于高层次综合(high-level synthesis, HLS)技术的高精度测量算法的硬件加速设计方法。使用HLS技术实现C++语言到Verilog语言的综合, 针对高精度位移测量算法设计策略, 利用HLS技术中的流水化和数组重构等优化技术进行硬件加速, 并将其封装为知识产权(intellectual property, IP)核, 提高算法的可移植性。以Xilinx公司的Kintex-7系列现场可编程门阵列(field-programmable gate array, FPGA)芯片XC7K325TFFG676为载体的测量系统实验结果表明, 整个算法耗时91.8 μs, 相比数字信号处理(digital signal processor, DSP)单元将运行时间缩短了308.2 μs, 测量精度达到44.44 nm, 稳定性为49.20 nm, 线性度为0.503‰。

关键词: 高层次综合技术, 位移检测, 现场可编程门阵列, 硬件加速

Abstract:

To address the requirements of high-precision displacement sensors for high-speed displacement measurement algorithms for operating speed, protability and lower researching and developing cost, a hardware acceleration design method for high-precision measurement algorithms based on high-level synthesis (HLS) technology is proposed. By using HLS, the C++code is synthesized into Verilog. The design strategy for high-precision displacement measurement algorithms employs optimization techniques such as pipelining and array partitioning in HLS to achieve hardware acceleration and the design is packaged as an intellectual property (IP) core to enhance portability of the proposed algorithm. The measurement system is implemented on a Xilinx Kintex-7 field-programmable gate array (FPGA) XC7K325TFFG676 chip as a carrier, and experimental results demonstrate that the entire operating time of the proposed algorithm is 91.8 μs, which is 308.2 μs shorter than the implementation time of a digital signal processor (DSP), with the measurement accuracy of 44.44 nm, stability of 49.20 nm, and linearity of 0.503‰.

Key words: high-level synthesis (HLS) technology, displacement measurement, field-programmable gate array (FPGA), hardware acceleration

中图分类号: