Journal of Guangdong University of Technology ›› 2020, Vol. 37 ›› Issue (03): 55-58.doi: 10.12052/gdutxb.190089

Previous Articles     Next Articles

A Fixed-point Design of Control Algorithm Based on FPGA

Heng Yuan, Wu Jian-cheng, Yang Zhi-jun   

  1. Guangdong Provincial Key Laboratory of Micro-nano Manufacturing Technology and Equipment, Guangdong University of Technology, Guangzhou 510006, China
  • Received:2019-07-04 Online:2020-05-12 Published:2020-05-12

Abstract: When the motion control algorithm is implemented on the FPGA(Field Programmable Gate Array), and the data type changed from floating point to fixed point, there is a problem that high precision cannot be guaranteed. To solve this problem, the range of each signal data in the algorithm is analyzed using the Fixed-Point Tool in simulink, and then the suggested bit width given by the Fixed-Point Tool is artificially modified. Therefore, the algorithm can solve the problem of resource waste caused by using a unified longer bit width on the FPGA while ensuring higher precision. Compared with the traditional artificially defined data bit width, the Fixed-Point Tool is used to set the data bit width, and the internal data bit width of the algorithm can be more flexibly and dynamically adjusted when the input data range changes.

Key words: control algorithm, FPGA(field programmable gate array), floating point to fixed point, high precision, fixed-point tool

CLC Number: 

  • TN492
[1] 邢培栋. 基于模型的控制系统开发验证平台设计[D]. 上海: 上海交通大学, 2014.
[2] 唐清贵, 夏宇闻. 浮点算法转换成硬件定点算法中的问题[J]. 单片机与嵌入式系统应用, 2005(12): 77-78 TANG Q G, XIA Y W. The problem of converting floating point algorithm into hardware fixed point algorithm [J]. Microcontrollers & Embedded Systems, 2005(12): 77-78
[3] 杜广超, 孙慧慧, 杨云升. 基于Simulink HDL Coder的跳频通信系统设计与实现[J]. 无线电通信技术, 2016, 42(5): 96-98 DU G C, SUN H H, YANG Y S. Design and implementation of frequency hopping communication system based on simulink HDL coder [J]. Radio Communications Technology, 2016, 42(5): 96-98
[4] 唐文明, 刘桂雄. 指数函数CORDIC算法的FPGA定点化技术[J]. 华南理工大学学报(自然科学版), 2016, 44(7): 9-14 TANG W M, LIU G X. FPGA fixed point technology of index function CORDIC algorithm [J]. Journal of South China University of Technology (Natural Science Edition), 2016, 44(7): 9-14
[5] 张铁军. 基于FPGA设计的精度管理策略[J]. 微计算机应用, 2002(4): 208-210 ZHANG T J. A Precision management strategy based on FPGA design [J]. Microcomputer Applications, 2002(4): 208-210
[6] 张永博, 沈勇. 基于Simulink的OSEK嵌入式软件开发方法[J]. 单片机与嵌入式系统应用, 2009(5): 21-24 ZHANG Y B, SHEN Y. The OSEK embedded software development method based on Simulink [J]. Microcontrollers & Embedded Systems, 2009(5): 21-24
[7] 张林生. 数字信号处理系统的定点化技术研究[D]. 哈尔滨: 哈尔滨工业大学, 2010.
[8] 罗琴, 赵忠华. 基于定点DSP的航姿数据采集与处理系统[J]. 仪表技术与传感器, 2012(11): 172-173, 180 LUO Q, ZHAO Z H. Aeronautical attitude data acquisition and processing system based on fixed point DSP [J]. Instrument Technique and Sensor, 2012(11): 172-173, 180
[9] 张慧娟. HDL Coder和HDL Verifier支持HDL代码生成和验证[J]. 电子设计技术, 2012, 19(5): 20-21 ZHANG H J. HDL Coder and HDL verifier support H-DL code generation and verification [J]. Electronic Design Technology, 2012, 19(5): 20-21
[10] 诸葛俊贵. 基于Matlab模糊控制器HDL代码的自动生成[J]. 电子科技, 2012, 25(1): 42-44+47 ZHUGE J G. Automatic generation of HDL code based on matlab fuzzy controller [J]. Electronic Science and Technology, 2012, 25(1): 42-44+47
[11] 李炳沂, 谢宜壮, 杜青, 等. SAR实时成像系统的快速定点仿真验证技术[J]. 北京理工大学学报, 2017, 37(1): 67-70, 76 LI B Y, XIE Y Z, DU Q, et al. Fast fixed-point simulation verification technology for SAR real-time imaging system [J]. Journal of Beijing Institute of Technology, 2017, 37(1): 67-70, 76
[12] 崔云娟.基于FPGA浮点运算器的设计及其在雷达中的应用[D].西安: 西安电子科技大学, 2007.
[13] 井永成, 尹军舰, 李仲茂. AGC环路设计的Matlab-Simulink模型建模及验证[J]. 现代电子技术, 2019, 42(6): 83-87 JING Y C, YIN J J, LI Z M. Modeling and verification of Matlab-Simulink model for AGC loop design [J]. Modern Electronic Technology, 2019, 42(6): 83-87
[14] 蔡铁根, 黄明辉, 李成祥, 等. 基于FPGA的精密光栅尺图像采集与预处理设计[J]. 广东工业大学学报, 2016, 33(3): 60-64 CAI T G, HUANG M H, LI C X, et al. Design of image acquisition and preprocessing of precise linear encoder based on FPGA [J]. Journal of Guangdong University of Technology, 2016, 33(3): 60-64
[15] BERAM, DANESE G, LOTTO I D, et al. A development and simulation environment for a floating point operations FPGA based accelerator[C]// Euromicro Symposium on Digital Systems Design. Washington, DC, USA: IEEE Computer Society, 2003. DOI: 10.1109/DSD.20031231922.
[16] 陈文艺, 周林, 雷武亮. 基于Simulink的绝对位置传感器的FPGA实现[J]. 电子科技, 2015, 28(8): 21-2328 CHEN W Y, ZHOU L, LEI W L. FPGA implementation of absolute position sensor based on Simulink [J]. Electronic Science and Technology, 2015, 28(8): 21-2328
[1] Chen Ping, Chen Bao-ju. Design and Realization of Chaos-Based File Encryption System [J]. Journal of Guangdong University of Technology, 2019, 36(01): 16-22.
[2] ZHENG Jun-bo, SU Cheng-yue, LIN Jian-bing, HE Rong-li. The Realization of the Real-time Gesture Segment Algorithm and Corresponding Hardware on Complicated Background [J]. Journal of Guangdong University of Technology, 2016, 33(05): 54-58.
[3] LAI Wen-Jing, ZHOU Yan-Zhou, ZHU Wen-Zhuo, BAO Hong. Monocular Camera High Precision Calibration Method Based on Checkerboard [J]. Journal of Guangdong University of Technology, 2015, 32(3): 79-84.
[4] XIE Hai, En Yun-Fei , WANG Li-Wei. Design and Detection of Hardware Trojan Based on Electromagnetic Leakage [J]. Journal of Guangdong University of Technology, 2013, 30(4): 70-73.
[5] WANG Ting-Ting, SU Cheng-Yue, WANG Xian, ZHOU Zhen. High Precision M easurement Based on e-PSF of Multi-Image [J]. Journal of Guangdong University of Technology, 2010, 27(3): 51-55.
[6] Tan Yuan-Qiang,Wang Fu-Long,Li Ling-Li. [J]. Journal of Guangdong University of Technology, 2008, 25(2): 51-53.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!