How to generate a HDL code for a buck converter using Mtalab simulink and xilinx system Generator

10 views (last 30 days)
Hello,
Im working on implementing a buck converter model with it PID Controller on FPGA (Spartan 3 and 3An Xc3s700a package :fg484 speed-4 ) using simulink of Matlab2012 a and xilinx system generator 14.2 i want to generate a HDL code for this model which is based on simpowersystems in Simulink. Can you please help me find a solution for this problem ? Do i have to eliminate the buck converter model and replace it with it transfert function or another simulink model?

Accepted Answer

Tim McBrayer
Tim McBrayer on 22 Jul 2014
HDL Coder does not support SimPowerSystems components. This is logical; you cannot synthesize power components onto a FPGA. You will need to consider what portion of your design (e.g., the PID controller) is part of the control design that can be placed on a FPGA, and separate it from the portion that uses blocks that cannot be implemented on a FPGA. Once you have your design partitioned you can generate HDL code for the controller portion of your design.
  2 Comments
Gerardo Medrano Arana
Gerardo Medrano Arana on 14 Sep 2017
Is the HDL coder going to support SimPowerSystems anytime in the future? Other vendors (Opal, dSpace) have already developed software that allows going from SimPowerSystems to FPGAs and I would love to see that feature integrated in a genuine Mathworks product.
Carlos Villegas
Carlos Villegas on 12 Jul 2019
Hello,
There has been progress on HDL code generation for power electronics and power systems using MathWorks products. There is HDL Coder support from Simscape Electrical to FPGAs from release 2018b.
Check out the recent webinar from Joel van Sickel (link below). He presents the HIL simulation of a solar inverter model.
You can also check out the link below for more details on the MATLAB documentation:
I hope this helps.

Sign in to comment.

More Answers (1)

amouna
amouna on 22 Jul 2014
thank you so much for your answer i will try to do so

Categories

Find more on Hardware-in-the-Loop Simulation with Simulink Real-Time in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!