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.
关键词
Keywords
references
邢培栋. 基于模型的控制系统开发验证平台设计[D]. 上海: 上海交通大学, 2014.
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.
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.
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.
ZHANG T J. A Precision management strategy based on FPGA design [J]. Microcomputer Applications, 2002(4): 208-210.
ZHANG Y B, SHEN Y. The OSEK embedded software development method based on Simulink [J]. Microcontrollers Embedded Systems, 2009(5): 21-24.
张林生. 数字信号处理系统的定点化技术研究[D]. 哈尔滨: 哈尔滨工业大学, 2010.
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.
ZHANG H J. HDL Coder and HDL verifier support H-DL code generation and verification [J]. Electronic Design Technology, 2012, 19(5): 20-21.
ZHUGE J G. Automatic generation of HDL code based on matlab fuzzy controller [J]. Electronic Science and Technology, 2012, 25(1): 42-44+47.
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.
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.
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.
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 .
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.