{"title":"MTOF: A Novel FPGA-Based EMT Toolbox in MATLAB","authors":"Xin Ma;Xiao-Ping Zhang","doi":"10.1109/TPWRS.2025.3535841","DOIUrl":null,"url":null,"abstract":"Field programmable gate array (FPGA) is becoming an attractive solution for real-time electromagnetic transient (EMT) simulations. FPGA-based EMT simulation uses thousands of lines of code and sophisticated architecture to satisfy executable requirements ranging from the low-level analog signal to the advanced EMT mathematics. The coding would place a tremendous burden on beginners to take at least 6 months. To provide more straightforward solutions, this paper develops the MATLAB-to-FPGA EMT toolbox (MTOF) in the computational engine frame of MATLAB. Based on Input Data, MTOF under a user-friendly MATLAB environment can generate transparent FPGA-based code while complex programming under FPGA can be avoided. This brings a dramatic coding simplification and results in significant savings of programming time. MTOF includes automatic calculation sequence, resource utilization, and initialization. For high accuracy, MTOF performs the Floating-Point arithmetic of EMT models with more readable data formats (e.g., memory unit) on FPGA. To improve computational efficiency, ready-to-run architecture is presented to automate code generation quickly. MTOF can generate FPGA code files within 50 s and 300 s for the 4-machine 11-bus and 10-machine 39-bus systems, respectively. To verify the effectiveness of the generated FPGA code generated by MTOF, simulations are demonstrated on the two systems using a single FPGA board with high accuracy.","PeriodicalId":13373,"journal":{"name":"IEEE Transactions on Power Systems","volume":"40 5","pages":"3736-3749"},"PeriodicalIF":7.2000,"publicationDate":"2025-01-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE Transactions on Power Systems","FirstCategoryId":"5","ListUrlMain":"https://ieeexplore.ieee.org/document/10857407/","RegionNum":1,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ENGINEERING, ELECTRICAL & ELECTRONIC","Score":null,"Total":0}
引用次数: 0
Abstract
Field programmable gate array (FPGA) is becoming an attractive solution for real-time electromagnetic transient (EMT) simulations. FPGA-based EMT simulation uses thousands of lines of code and sophisticated architecture to satisfy executable requirements ranging from the low-level analog signal to the advanced EMT mathematics. The coding would place a tremendous burden on beginners to take at least 6 months. To provide more straightforward solutions, this paper develops the MATLAB-to-FPGA EMT toolbox (MTOF) in the computational engine frame of MATLAB. Based on Input Data, MTOF under a user-friendly MATLAB environment can generate transparent FPGA-based code while complex programming under FPGA can be avoided. This brings a dramatic coding simplification and results in significant savings of programming time. MTOF includes automatic calculation sequence, resource utilization, and initialization. For high accuracy, MTOF performs the Floating-Point arithmetic of EMT models with more readable data formats (e.g., memory unit) on FPGA. To improve computational efficiency, ready-to-run architecture is presented to automate code generation quickly. MTOF can generate FPGA code files within 50 s and 300 s for the 4-machine 11-bus and 10-machine 39-bus systems, respectively. To verify the effectiveness of the generated FPGA code generated by MTOF, simulations are demonstrated on the two systems using a single FPGA board with high accuracy.
现场可编程门阵列(FPGA)正在成为实时电磁瞬变(EMT)仿真的一种有吸引力的解决方案。基于fpga的EMT仿真使用数千行代码和复杂的体系结构来满足从低级模拟信号到高级EMT数学的可执行要求。编码会给初学者带来至少6个月的巨大负担。为了提供更直观的解决方案,本文在MATLAB计算引擎框架中开发了MATLAB- To - fpga EMT工具箱(MTOF)。基于输入数据的MTOF在友好的MATLAB环境下生成透明的基于FPGA的代码,避免了在FPGA下的复杂编程。这极大地简化了编码,大大节省了编程时间。MTOF包括自动计算顺序、资源利用和初始化。为了提高精度,MTOF在FPGA上使用更具可读性的数据格式(例如存储器单元)执行EMT模型的浮点运算。为了提高计算效率,提出了ready-to-run架构,实现了代码快速生成的自动化。MTOF可以在50秒和300秒内分别为4机11总线和10机39总线系统生成FPGA代码文件。为了验证MTOF生成的FPGA代码的有效性,利用单个FPGA板在两个系统上进行了高精度的仿真。
期刊介绍:
The scope of IEEE Transactions on Power Systems covers the education, analysis, operation, planning, and economics of electric generation, transmission, and distribution systems for general industrial, commercial, public, and domestic consumption, including the interaction with multi-energy carriers. The focus of this transactions is the power system from a systems viewpoint instead of components of the system. It has five (5) key areas within its scope with several technical topics within each area. These areas are: (1) Power Engineering Education, (2) Power System Analysis, Computing, and Economics, (3) Power System Dynamic Performance, (4) Power System Operations, and (5) Power System Planning and Implementation.