AN 669: Drive-On-Chip Design Example for Cyclone V Devices

ID 683466
Date 5/15/2022
Document Table of Contents

9.7.1. DC-DC Control Simulink Models

The Drive-On-Chip Design Example includes three MATLAB Simulink models, which lead step by step from offline simulation to HDL code generation while maintaining the numerical simulation results.

The models are:

  • lvdcdc_simpower.slx where the power electronics simulate in SimScape and the PI control loops in Simulink standard blocks
  • lvdcdc_2phase_hwsim.slx is similar to lvdcdc_simpower.slx but the power electronics simulate in standard Simulink blocks, not SimScape
  • lvdcdc_adsp_vhdl.slx is like lvdcdc_2phase_hwsim.slx but the algorithm is implemented using DSP Builder for Intel FPGAs so that you can generate HDL code.
Figure 35. DC-DC Converter Linear MATLAB ModelThe figure shows the linear MATLAB model (lvdcdc_simpower.slx). The linear model cannot generate VHDL, but you create it to provide a rapid simulation to develop control dynamics and determine controller gains.
Figure 36. DC-DC Converter: DC bus Voltage, Inductor Currents, Motor Load Current (stimulus)The figure shows the linear MATLAB model (lvdcdc_simpower.slx) and simulation.
Figure 37. DSP Builder for Intel FPGAs Top-level ModelThe DSP Builder for Intel FPGAs model (lvdcdc_adsp_vhdl.slx) performs the same simulation as above, but includes DSP Builder for Intel FPGAs blocks that allow simulation of VHDL and auto-generation of VHDL code.

Did you find the information on this page useful?

Characters remaining:

Feedback Message