FPGA-Based Multi-Precision Floating-Point Solver for Real-Time Simulation under Binary Resistor Modeling
Gan Bo1, Wang Guangsen1, Zhang Zhenyu1, Zheng Huiji1, Sun Zonghui2
1. Naval University of Engineering Wuhan 430033 China; 2. School of Electrical and Electronic Engineering Huazhong University of Science and Technology Wuhan 430074 China
Abstract:FPGA-based real-time simulation of power electronics systems faces significant challenges due to limited on-chip resources, which restrict the implementation scale and model complexity. Conventional approaches typically rely on standard floating-point formats such as single- or double-precision. It may provide numerical accuracy beyond practical engineering requirements, leading to inefficient use of resources. Therefore, this paper proposes a multi-precision floating-point multiplication method for real-time simulation in binary resistor modeling. First, the concept of standardized error for real-time simulation is introduced through a systematic analysis of overall system error sources. This metric offers a consistent basis for assessing numerical accuracy in practical simulations. Subsequently, the floating-point multiplication error is analyzed within the framework of state-space equation solving based on the binary resistor model. By considering different mantissa processing methods (truncation and rounding) and numerical integration techniques (backward Euler and trapezoidal methods), a general expression for floating-point multiplication error is derived. This expression establishes the relationship between the mantissa bit-width and the resulting numerical error in matrix-vector multiplication (MVM). Based on the error constraints defined by the standard error, an optimization framework is developed to determine the optimal floating-point multiplication bit-width for both fully parallel and row-reuse configurations. The optimization problem is formulated as a nonlinear integer programming problem and solved using appropriate algorithms to minimize resource usage while meeting accuracy requirements. The proposed method is validated using a diode-clamped three-level NPC inverter circuit. Under a 1% standardized error constraint, the multi-precision solver achieves significant resource savings compared to double-precision implementations. In the fully parallel configuration, resource usage is reduced by up to 89.6% in LUTs, 79.8% in registers, 65.2% in BRAM, and 90.0% in DSP. Comparable savings are achieved in the row-reuse configuration, though reductions are slightly lower due to the inherent trade-off between parallelism and resource sharing. Experimental results show that the proposed multi-precision approach maintains simulation accuracy within the specified error bounds while substantially reducing FPGA resource consumption. Moreover, the method demonstrates robustness across various discretization schemes. In summary, this paper presents a systematic and effective framework for designing resource-efficient FPGA-based real-time solvers using multi-precision floating-point arithmetic. The concepts of standardized error and green precision, together with the general error expression and optimization methodology, lay a foundation for future research in multi-precision real-time simulation of power electronic systems.
[1] 杨凌云, 胡斌江, 伍文聪, 等. 基于人工智能优化插值的直流输电线路相域频变建模方法[J]. 电气工程学报, 2025, 20(5): 55-65. Yang Lingyun, Hu Binjiang, Wu Wencong, et al.High-precision phase-domain frequency-dependent transmission line modeling method based on AI-interpolation optimization[J]. Journal of Electrical Engineering, 2025, 20(5): 55-65. [2] 郑锦博, 张伟贤, 严向坤, 等. 继电保护装置动模并行测试系统研究及应用[J]. 电气技术, 2025, 26(10): 55-61. Zheng Jinbo, Zhang Weixian, Yan Xiangkun, et al.Research and application of dynamic simulation parallel test system for relay protection device[J]. Electrical Engineering, 2025, 26(10): 55-61. [3] 孟建辉, 袁新成, 吴鹏, 等. 结合无功自适应调节和改进LADRC策略抑制HPFC全过程过电压控制方法[J/OL]. 电工技术学报, 1-15[2025-12-29].https://doi.org/10.19595/j.cnki.1000-6753.tces.242279. Meng Jianhui, Yuan Xincheng, Wu Peng, et al. Integrated control method for suppressing whole-process overvoltage in HPFC systems combining reactive power adaptive regulation with improved LADRC strategy[J]. Transactions of China Electro-technical Society, 1-15[2025-12-29]. https://doi.org/10.19595/j.cnki.1000-6753.tces.242279. [4] Real-time simulation technology for modern power electronics[M/OL]. Amsterdam: Elsevier, 2023. https://linkinghub.elsevier.com/retrieve/pii/C20210021325. [5] 孙鹏琨, 葛琼璇, 王晓新, 等. 基于硬件在环实时仿真平台的高速磁悬浮列车牵引控制策略[J]. 电工技术学报, 2020, 35(16): 3426-3435. Sun Pengkun, Ge Qiongxuan, Wang Xiaoxin, et al.Traction control strategy of high-speed maglev train based on hardware-in-the-loop real-time simulation platform[J]. Transactions of China Electrotechnical Society, 2020, 35(16): 3426-3435. [6] Xu Jin, Wang Keyou, Wu Pan, et al.FPGA-based sub-microsecond-level real-time simulation for micro-grids with a network-decoupled algorithm[J]. IEEE Transactions on Power Delivery, 2020, 35(2): 987-998. [7] Xu Jin, Wang Keyou, Wu Pan, et al.FPGA-based submicrosecond-level real-time simulation of solid-state transformer with a switching frequency of 50 kHz[J]. IEEE Journal of Emerging and Selected Topics in Power Electronics, 2021, 9(4): 4212-4224. [8] 李子润, 徐晋, 汪可友, 等. 电力电子换流器离散小步合成实时仿真模型[J]. 电工技术学报, 2022, 37(20): 5267-5277. Li Zirun, Xu Jin, Wang Keyou, et al.A discrete small-step synthesis real-time simulation model for power converters[J]. Transactions of China Electro-technical Society, 2022, 37(20): 5267-5277. [9] 王守相, 张春雨, 赵倩宇. 基于FPGA的新能源低压直流配电系统暂态实时仿真研究[J]. 电工技术学报, 2024, 39(17): 5365-5378, 5393. Wang Shouxiang, Zhang Chunyu, Zhao Qianyu.Research on transient real-time simulation of new energy low-voltage DC distribution system based on field programmable gate array[J]. Transactions of China Electrotechnical Society, 2024, 39(17): 5365-5378, 5393. [10] 周斌, 汪光森, 李卫超, 等. 基于FPGA的电力电子系统电磁暂态实时仿真通用解算器[J]. 电工技术学报, 2023, 38(14): 3862-3874. Zhou Bin, Wang Guangsen, Li Weichao, et al.An FPGA-based general solver for electromagnetic transient real-time simulation of power electronic systems[J]. Transactions of China Electrotechnical Society, 2023, 38(14): 3862-3874. [11] 郭希铮, 袁佳琦, 游小杰, 等. 电力电子实时仿真建模的FPGA资源优化方法研究[J]. 电机与控制学报, 2020, 24(7): 12-19. Guo Xizheng, Yuan Jiaqi, You Xiaojie, et al.Research on FPGA optimization approach of power electronics real-time simulation modeling[J]. Electric Machines and Control, 2020, 24(7): 12-19. [12] Kuon I, Rose J.Measuring the gap between FPGAs and ASICs[C]//Proceedings of the 2006 ACM/SIGDA 14th International Symposium on Field Programmable Gate Arrays, Monterey California USA, 2006: 21-30. [13] Chong Y J, Parameswaran S.Configurable multimode embedded floating-point units for FPGAs[J]. IEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2011, 19(11): 2033-2044. [14] Kumar K, Tyagi V, Kukreja H, et al.A state-of-the-art study on multipliers: advancement and comparison[J]. IIOAB Journal, 2018, 9: 54-66. [15] Gan Bo, Wang Kang, Wang Guangsen, et al.A floating-point multiplier based on angle representation method[J]. International Journal of Circuit Theory and Applications, 2024, 52(12): 6479-6487. [16] Zhou Bin, Wang Guangsen, Jie Guisheng, et al.A high-speed floating-point multiply-accumulator based on FPGAs[J]. IEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2021, 29(10): 1782-1789. [17] Matar M, Iravani R.FPGA implementation of the power electronic converter model for real-time simu-lation of electromagnetic transients[J]. IEEE Transac-tions on Power Delivery, 2010, 25(2): 852-860. [18] Ould Bachir T, Dufour C, Bélanger J, et al.A fully automated reconfigurable calculation engine dedicated to the real-time simulation of high switching frequ-ency power electronic circuits[J]. Mathematics and Computers in Simulation, 2013, 91: 167-177. [19] Dufour C, Cense S, Ould-Bachir T, et al.General-purpose reconfigurable low-latency electric circuit and motor drive solver on FPGA[C]//IECON 2012-38th Annual Conference on IEEE Industrial Elec-tronics Society, Montreal, QC, Canada, 2012: 3073-3081. [20] Mathworks inc. Simscape electrical reference (spec-ialized power systems)[EB/OL]. (2025). https://ww2.mathworks.cn/help/pdf_doc/physmod/sps/powersys_ ref.pdf. [21] Manitoba Hydro International ltd. PSCAD x4 online help[EB/OL]. (2025). https://hvdc.ca/webhelp/ol-help.htm#Opening_Screen.htm. [22] Majstorovic D, Celanovic I, Teslic N D, et al.Ultralow-latency hardware-in-the-loop platform for rapid validation of power electronics designs[J]. IEEE Transactions on Industrial Electronics, 2011, 58(10): 4708-4716. [23] Hadizadeh A, Hashemi M, Labbaf M, et al.A matrix-inversion technique for FPGA-based real-time EMT simulation of power converters[J]. IEEE Transactions on Industrial Electronics, 2019, 66(2): 1224-1234. [24] Ould-Bachir T, Blanchette H F, Al-Haddad K.A network tearing technique for FPGA-based real-time simulation of power converters[J]. IEEE Transactions on Industrial Electronics, 2015, 62(6): 3409-3418. [25] Huang Zhen, Dinavahi V.A fast and stable method for modeling generalized nonlinearities in power electronic circuit simulation and its real-time imple-mentation[J]. IEEE Transactions on Power Elec-tronics, 2019, 34(4): 3124-3138. [26] Sudha S A, Chandrasekaran A, Rajagopalan V.New approach to switch modelling in the analysis of power electronic systems[J]. IEE Proceedings B Electric Power Applications, 1993, 140(2): 115. [27] Xilinx inc. 7 series FPGAs data sheet: overview[EB/OL]. (2025). https://www.xilinx.com/support/documentation/data_sheets/ds180_7Series_Overview.pdf. [28] Rabinovich S.Measurement Errors and Uncertainties: Theory and Practice[M]. 3rd ed. New York: Springer, 2005. [29] Joshy A J, Hwang J T. PySLSQP: A transparent Python package for the SLSQP optimization algo-rithm modernized with utilities for visualization and post-processing[A/OL]. arXiv, 2025. http://arxiv.org/abs/2408.13420. [30] Yuan Yaxiang.Recent advances in trust region algo-rithms[J]. Mathematical Programming, 2015, 151(1): 249-281.