Implementation of Automatic DSP Code Generation Based on Closed-loop Algorithm for Three-level Inverters

  • Abstract
  • PDF
  • Literature Map
  • Similar Papers
Abstract
Translate article icon Translate Article Star icon

Wind energy has the advantages of wide distribution, renewable, and non-polluting, so it is receiving more and more attention from more and more countries. As more and more wind power systems are integrated into the grid, it has an impact on the stability of the grid. To keep the power system stable, there is an urgent need for a grid simulator that can simulate various behaviors of the grid and test the reliability of the wind turbine before grid integration. Inverters, especially multilevel inverters, as the core part of the grid simulator, have been widely studied by scholars in recent years. However, compared to conventional inverters, multilevel inverters are characterized by high code development effort, great difficulty, and a long development period. In this paper, we adopt an automatic DSP code generation method with MATLAB hardware support package and give a complete system design method and development flow based on MATLAB and TMSF28335 automatic code generation. Finally, we take the closed-loop three-level MMC inverter as an example, propose an equalization algorithm suitable for automatic code generation for the capacitor-voltage balancing part, and verify the feasibility of the DSP automatic code generation in a multilevel inverter development. The feasibility of DSP automatic code generation in the development of a multilevel inverter is verified. The experimental results show that the proposed equalization algorithm with variable reference coefficient and DSP automatic code generation method can be used in the development of a multilevel inverter, which can improve development efficiency and reduce development costs.

Similar Papers
  • Research Article
  • Cite Count Icon 16
  • 10.1007/s11704-017-6477-y
Template-based AADL automatic code generation
  • Jun 18, 2019
  • Frontiers of Computer Science
  • Kai Hu + 4 more

Embedded real-time systems employ a variety of operating system platforms. Consequently, for automatic code generation, considerable redevelopment is needed when the platform changes. This results in major challenges with respect to the automatic code generation process of the architecture analysis and design language (AADL). In this paper, we propose a method of template-based automatic code generation to address this issue. Templates are used as carriers of automatic code generation rules from AADL to the object platform. These templates can be easily modified for different platforms. Automatic code generation for different platforms can be accomplished by formulating the corresponding generation rules and transformation templates. We design a set of code generation templates from AADL to the object platform and develop an automatic code generation tool. Finally, we take a typical Data Processing Unit (DPU) system as a case study to test the tool. It is demonstrated that the auto-generated codes can be compiled and executed successfully on the object platform.

  • Research Article
  • 10.4018/ijsi.2017010101
OpenMP-Based Approach for High Level C Loops Synthesis
  • Jan 1, 2017
  • International Journal of Software Innovation
  • Emna Kallel + 2 more

The complexity of embedded systems design is continuously augmented, due to the increasing quantity of components and distinct functionalities incorporated into a single system. To deal with this situation, abstraction level of projects is incessantly raised. In addition, techniques to accelerate the code production process have appeared. In this context, the automatic code generation is an interesting technique for the embedded systems project. This work presents an automatic VHDL code generation method based on the OpenMP parallel programming specification. In order to synthesize C code for loops into hardware, the authors applied the directives of OpenMP, which specifies portable implementations of shared memory parallel programs. A case study focused on the use of embedded systems for the DCT algorithm is presented in this paper to demonstrate the feasibility of the proposed approach.

  • Conference Article
  • 10.1109/icirt.2013.6696272
A sequential heuristics procedure based automatic Data Code Generation method's application study
  • Aug 1, 2013
  • Youneng Huang + 1 more

Existing Data Code Generation for CBTC system is composed of a manual switching, a automatic code generation method is proposed in this paper. The method is based on the writing diagram produced for a CBTC system, and uses the hierarchical processing architecture for all data and the sequential heuristics procedure to realize the code generation, At last, we try to apply the approach to the code part from Beijing Yi Zhuang Metro Line from CI to ZC which complete the interface code automatic generation after seven steps. Finally, we design a program by C to prove its feasibility.

  • Research Article
  • 10.5121/ijcsit.2012.4201
MppSoCGEN: A Framework for automatic generation of MppSoC Architecture
  • Apr 30, 2012
  • International Journal of Computer Science and Information Technology
  • Emna Kallel

Automatic code generation is a standard method in software engineering since it improves the code consistency and reduces the overall development time. In this context, this paper presents a design flow for automatic VHDL code generation of mppSoC (massively parallel processing System-on-Chip) configuration. Indeed, depending on the application requirements, a framework of Netbeans Platform Software Tool named MppSoCGEN was developed in order to accelerate the design process of complex mppSoC. Starting from an architecture parameters design, VHDL code will be automatically generated using parsing method. Configuration rules are proposed to have a correct and valid VHDL syntax configuration. Finally, an automatic generation of Processor Elements and network topologies models of mppSoC architecture will be done for Stratix II device family. Our framework improves its flexibility on Netbeans 5.5 version and centrino duo Core 2GHz with 22 Kbytes and 3 seconds average runtime. Experimental results for reduction algorithm validate our MppSoCGEN design flow and demonstrate the efficiency of generated architectures.

  • Conference Article
  • Cite Count Icon 1
  • 10.1145/1850771.1850783
Preliminary feasibility analysis of component based modelling and automatic Java code generation for nanosatellite on-board software
  • Aug 19, 2010
  • O R Polo + 5 more

Nanosatellite on-board software is a real-time system that schedules and executes control actions over the platform and the payload subsystems during the mission stages. Its development is a complex task that can be better approached using advanced software engineering techniques as graphical component based modelling and automatic code generation.Nanosat1B is a scientific nanosatellite developed by the Spanish National Institute of Aerospace Technology (INTA) that was launched on July 09. This paper introduces the component base modelling and automatic code generation of Nanosat1B on-board software using a CASE tool named EDROOM. It shows the UML2 diagrams used for specifying the system components, their interfaces and behaviour, emphasizing on their reuse possibilities on the same domain.The paper describes also the main characteristics of the EDROOM tool and analyses the feasibility of its adaptation for automatic Java code generation. The benefits of using the EDROOM automatic Java code generation for nanosatellites on-board software development are also enumerated.

  • Research Article
  • Cite Count Icon 9
  • 10.17533/udea.redin.n77a10
An analysis of tools for automatic software development and automatic code generation
  • Dec 1, 2015
  • Revista Facultad de Ingeniería Universidad de Antioquia
  • Viviana Yarel Rosales-Morales + 4 more

"Software development is an important area in software engineering, which is why a wide range of techniques, methods, and approaches has emerged to facilitate software development automation. This paper presents an analysis and evaluation of tools for automated software development and automatic code generation in order to determine whether they meet a set of quality metrics. Diverse quality metrics were considered such as effectiveness, productivity, safety, and satisfaction in order to carry out a qualitative and quantitative evaluation. The tools evaluated are CASE tools, frameworks, and Integrated Development Environments (IDEs). The evaluation was conducted to measure not only the tools’ ability to be employed, but also their support for automated software development and automatic source code generation. The aim of this work is to provide a methodology and a brief review of the most important works to identify the main features of these works and present a comparative evaluation in qualitative and quantitative terms of quality metrics. This would provide software developers with the information they need to decide the tools that can be useful for them."

  • Conference Article
  • Cite Count Icon 18
  • 10.1145/1134650.1134670
Generating optimized code from SCR specifications
  • Jun 14, 2006
  • Tom Rothamel + 3 more

A promising trend in software development is the increasing adoption of model-driven design. In this approach, a developer first constructs an abstract model of the required program behavior in a language, such as Statecharts or Stateflow, and then uses a code generator to automatically transform the model into an executable program. This approach has many advantages---typically, a model is not only more concise than code and hence more understandable, it is also more amenable to mechanized analysis. Moreover, automatic generation of code from a model usually produces code with fewer errors than hand-crafted code.One serious problem, however, is that a code generator may produce inefficient code. To address this problem, this paper describes a method for generating efficient code from SCR (Software Cost Reduction) specifications. While the SCR tabular notation and tools have been used successfully to specify, simulate, and verify numerous embedded systems, until now SCR has lacked an automated method for generating optimized code. This paper describes an efficient method for automatic code generation from SCR specifications, together with an implementation and an experimental evaluation. The method first synthesizes an execution-flow graph from the specification, then applies three optimizations to the graph, namely, input slicing, simplification, and output slicing, and then automatically generates code from the optimized graph. Experiments on seven benchmarks demonstrate that the method produces significant performance improvements in code generated from large specifications. Moreover, code generation is relatively fast, and the code produced is relatively compact.

  • Research Article
  • Cite Count Icon 8
  • 10.1145/1159974.1134670
Generating optimized code from SCR specifications
  • Jun 14, 2006
  • ACM SIGPLAN Notices
  • Tom Rothamel + 3 more

A promising trend in software development is the increasing adoption of model-driven design. In this approach, a developer first constructs an abstract model of the required program behavior in a language, such as Statecharts or Stateflow, and then uses a code generator to automatically transform the model into an executable program. This approach has many advantages---typically, a model is not only more concise than code and hence more understandable, it is also more amenable to mechanized analysis. Moreover, automatic generation of code from a model usually produces code with fewer errors than hand-crafted code.One serious problem, however, is that a code generator may produce inefficient code. To address this problem, this paper describes a method for generating efficient code from SCR (Software Cost Reduction) specifications. While the SCR tabular notation and tools have been used successfully to specify, simulate, and verify numerous embedded systems, until now SCR has lacked an automated method for generating optimized code. This paper describes an efficient method for automatic code generation from SCR specifications, together with an implementation and an experimental evaluation. The method first synthesizes an execution-flow graph from the specification, then applies three optimizations to the graph, namely, input slicing, simplification, and output slicing, and then automatically generates code from the optimized graph. Experiments on seven benchmarks demonstrate that the method produces significant performance improvements in code generated from large specifications. Moreover, code generation is relatively fast, and the code produced is relatively compact.

  • Book Chapter
  • Cite Count Icon 19
  • 10.1007/978-3-642-15898-8_14
Automatic Structure-Based Code Generation from Coloured Petri Nets: A Proof of Concept
  • Jan 1, 2010
  • Lars Michael Kristensen + 1 more

Automatic code generation based on Coloured Petri Net (CPN) models is challenging because CPNs allow for the construction of abstract models that intermix control flow and data processing, making translation into conventional programming constructs difficult.We introduce Process-Partitioned CPNs (PP-CPNs) which is a subclass of CPNs equipped with an explicit separation of process control flow, message passing, and access to shared and local data. We show how PP-CPNs caters for a four phase structure-based automatic code generation process directed by the control flow of processes. The viability of our approach is demonstrated by applying it to automatically generate an Erlang implementation of the Dynamic MANET On-demand (DYMO) routing protocol specified by the Internet Engineering Task Force (IETF).

  • Research Article
  • Cite Count Icon 1
  • 10.1038/s41598-025-34350-3
A generative AI cybersecurity risks mitigation model for code generation: using ANN-ISM hybrid approach.
  • Jan 14, 2026
  • Scientific reports
  • Hussein A Al-Hashimi

The increasing reliance on automatic code generation integrated with Generative AI technology has raised new challenges for cybersecurity defense against code injection, insecure code templates, and adversarial manipulation of an AI model. These risks make developing advanced frameworks imperative to ensure secure, reliable, and privacy-preserving code generation processes. The paper presents a novel Hybrid Artificial Neural Network (ANN)-Interpretive Structural Modeling (ISM) Framework to alleviate the cybersecurity risks associated with the automatic code generation using Generative AI. The proposed framework integrates the predictive capability of ANN and structured analysis of ISM for the identification, evaluation, and treatment of common vulnerabilities and risks in automatic code generation. We first conduct a multivocal literature review (MLR) to identify cybersecurity risks and generative AI practices for addressing these risks in automatic code generation. Then we conduct a questionnaire survey to identify and validate the identified risks and practices. An expert panel review was then assigned for the process of ANN-ISM. The ANN model can predict potential security risks by learning from historical data and code generation patterns. ISM is used to (1) structure and visualize (2) relations between identified risks and mitigation approaches and (3) offer a combined, multi-layered risk management methodology. We then perform an in-depth examination of the framework with a case study of an AI-based code generation company. We further determine its practicality and usefulness in real-world settings. The case study results show that the framework efficiently handles the primary cybersecurity challenges, such as injection attacks, code quality, backdoors, and lack of input validation. The analysis characterizes the maturity of several mitigation practices and areas for improvement for security integration with automatic code generation functionality. Advanced risk mitigation is enabled in the framework across multiple process areas, where techniques such as static code analysis, automated penetration testing, and adversarial training hold much promise. The Hybrid ANN-ISM Mechanism is a stable and flexible solution for cybersecurity risk reduction in automatic code generation environments. The coupling of ANN and ISM, in terms of predictive analysis and structured risk management, respectively, contributes effectively towards the security of AI-based code generation tools. More research is required to improve the scalability, privacy preserving, and dynamic integration of the framework with cybersecurity threat intelligence.

  • Conference Article
  • Cite Count Icon 4
  • 10.1145/3297156.3297172
A Method of Automatic Code Generation Based on AADL Model
  • Dec 8, 2018
  • Chen Zhang + 2 more

Embedded real-time systems are widely used in avionics, spacecraft, automotive automation, robotics, mobile communications and other fields. In order to detect errors in the development of embedded real-time systems, the development method of model-driven is widely applied. Model-driven finds the potential problems as early as possible by modeling and validating the system at the early stage of design. In the implementation phase of the coding, the code is automatically generated from the validated model to improve the automation of the system development, reduce R & D costs and the possibility of errors in coding process. The research of code generation technology based on architecture analysis and design language (AADL) is an important research content of embedded software development. AADL is a language that models the graphical representation of modeling elements and models in textual form. The C language can compile and process low-level memory in a simple way, generate a small number of machine codes, and run without any support from running environment. Aiming at the characteristics of the above two languages, so we design an automatic code generation tool that automatically converts AADL model into C codes.

  • Conference Article
  • Cite Count Icon 15
  • 10.1145/1050330.1050387
Metadata driven code generation using .NET framework
  • Jan 1, 2004
  • Ivo Damyanov + 1 more

In this paper incorporating manual and automatic code generation is discussed. A solution for automatic metadata-driven code generation is presented illustrated with multi tier Enterprise Resource Planning System. We intend to make our solution available to public in order to encourage investigation of code generation and schema-driven tools for .NET Framework.

  • Conference Article
  • Cite Count Icon 4
  • 10.1109/icbaie52039.2021.9390015
Simulation of underwater vehicle control based on code generation technology
  • Mar 26, 2021
  • Lixin Chang + 1 more

Model-based design is an effective means for rapid development of embedded software, and automatic code generation is an important technology for model-based development. Combining the automatic code generation method of Matlab and STM32 with the operation and control of the autonomous underwater robot makes the design of the system more convenient. Use tools such as the Simulink library STM32 MAT/Target and STM32 CubeMX of the STM32 microcontroller to realize the automatic generation of readable and portable C code project files. At the same time, based on the design of the model, the control code of the autonomous underwater robot(AUV) is automatically generated, and the control code is added to the automatically generated C code project file. With Matlab/Simulink as the basic software platform, the motion controller of AUV is mounted on the STM32F407, and a real-time simulation system for the closed-loop control of AUV manipulation motion is constructed. The results of the semiphysical real-time simulation test show that the AUV motion controller has good heading depth control performance, realizes the manipulation and control of AUV, and verifies the practicability of the automatically generated code.

  • Research Article
  • Cite Count Icon 5
  • 10.4271/2009-01-0747
Applying Model-Based Design and Automatic Production Code Generation to Safety-Critical System Development
  • Apr 20, 2009
  • SAE International Journal of Passenger Cars - Electronic and Electrical Systems
  • Dirk Fleischer + 2 more

<div class="htmlview paragraph">Model-based software development and automatic code generation have become increasingly established in recent years. The automotive industry has widely adopted and successfully deployed these methods in many different series production programs worldwide. This brought various benefits, such as a reduction in development times, improved quality due to more precise specifications, and early verification and validation by means of simulation.</div> <div class="htmlview paragraph">At the same time, more and more safety-related and safety-critical systems have been - and will be -introduced into modern vehicles. Common examples are active front steering, adaptive cruise-control, and integrated chassis control.</div> <div class="htmlview paragraph">This leads to the question, if and how model-based design and automatic production code generation can be applied to the development of safety-critical systems.</div>

  • Book Chapter
  • Cite Count Icon 1
  • 10.1007/978-3-030-19153-5_28
A Method of Automatic Code Generation for Spacecraft OBDH Software
  • Jan 1, 2019
  • Lecture notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering
  • Hongjun Zhang + 2 more

The numerous interfaces of spacecraft OBDH software and frequent changes in requirements, resulting in the low efficiency and reliability of the manual coding of OBDH software. An automatic code generation method based on electronic data sheet (EDS) is proposed. The EDS system is introduced, and the output of the EDS system can be used to generate OBDH software code automatically, which improves the efficiency of software development. An structure of OBDH software is designed, which separates the logical code from the parameter code. Due to the EDS system data source is unique, and software code is automatically generated by tools, which avoids the mistakes of coding manually and promotes the reliability of OBDH software and even the reliability of spacecraft is improved.

Save Icon
Up Arrow
Open/Close
Setting-up Chat
Loading Interface