A Hardware Implementation of the PID Algorithm Using Floating-Point Arithmetic

被引:3
作者
Kulisz, Jozef [1 ]
Jokiel, Filip [2 ]
机构
[1] Silesian Tech Univ, Fac Automat Control Elect & Comp Sci, PL-44100 Gliwice, Poland
[2] Cadence Design Syst, Katowice, Poland
关键词
PID regulator; control systems; FPGA; hardware implementation; floating-point arithmetic;
D O I
10.3390/electronics13081598
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The purpose of the paper is to propose a new implementation of the PID (proportional-integral-derivative) algorithm in digital hardware. The proposed structure is optimized for cost. It follows a serialized, rather than parallel, scheme. It uses only one arithmetic block, performing the multiply-and-add operation. The calculations are carried out in a sequentially cyclic manner. The proposed circuit operates on standard single-precision (32-bit) floating-point numbers. It implements an extended PID formula, containing a non-ideal derivative component, and weighting coefficients, which enable reducing the influence of setpoint changes in the proportional and derivative components. The circuit was implemented in a Cyclone V FPGA (Field-Programmable Gate Array) device from Intel, Santa Clara, CA, USA. The proper operation of the circuit was verified in a simulation. For the specific implementation, which is reported in the paper, the sampling period of 516 ns was obtained, which means that the proposed solution is comparable in terms of speed with other hardware implementations of the PID algorithm operating on single-precision floating-point numbers. However, the presented solution is much more efficient in terms of cost. It uses 1173 LUT (Look-up Table) blocks, 1026 registers, and 1 DSP (Digital Signal Processing) block, i.e., about 30% of logic resources required by comparable solutions.
引用
收藏
页数:19
相关论文
共 52 条
[1]  
Alinezhad P., 2014, P 8 S ADV SCI TECHNO
[2]  
AMD Corporation, 2020, Documentation No. PG060
[3]  
Bagni D., 2013, XILINX XAPP APPL NOT, V1163
[4]   Sampling Rate and Performance of DC/AC Inverters with Digital PID Control-A Case Study [J].
Blachuta, Marian ;
Bieda, Robert ;
Grygiel, Rafal .
ENERGIES, 2021, 14 (16)
[5]   Design and implementation of modular FPGA-based PID controllers [J].
Chan, Yuen Fong ;
Moallem, M. ;
Wang, Wei .
IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS, 2007, 54 (04) :1898-1906
[6]   Studying an Adaptive Fuzzy PID Controller for PMSM with FOC based on MATLAB Embedded Coder [J].
Chen, Seng-Chi ;
Hoai, Hung-Khong .
2019 IEEE INTERNATIONAL CONFERENCE ON CONSUMER ELECTRONICS - TAIWAN (ICCE-TW), 2019,
[7]   Design and Implementation of a Fault-Tolerant Magnetic Bearing Control System Combined With a Novel Fault-Diagnosis of Actuators [J].
Cheng, Xin ;
Deng, Shuai ;
Cheng, Bai-Xin ;
Hu, Ye-Fa ;
Wu, Hua-Chun ;
Zhou, Rou-Gang .
IEEE ACCESS, 2021, 9 :2454-2465
[8]  
Chu CT, 2016, 5 INT S NEXT GENERAT
[9]  
Cui L., 2023, P INT C MECHATRONICS
[10]  
Das P, 2017, PROC C INF COMMUN TE, DOI DOI 10.1109/INFOCOMTECH.2017.8340615