MATLAB model to verilog HDL code conversion using Matlab's HDL workflow advisor
8 views (last 30 days)
Show older comments
Greetings,
Im currently working on a project called Three phase induction motor using Space Vector Pulse Width modulation(SVPWM). The implementation part is through FPGA. I have a working MAtlab model of the project and my aim is to convert it into Verilog HDL code using "Matlab's HDL workflow advisor". The problem is that only HDL compatible blocks can be included in the model to convert it into FPGA. Using the command hdllib in MATLAB's command window, it is possible to view the blocks which can be included(ie blocks which are compatible with HDL). But as such blocks are limited certain blocks like filters, relays, mosfet power modules cannot be replaced as hdl compatible elements in my model. Im using R2012a version of MATLAB. Please give some suggestions on how to include all blocks as hdl compatible ones. Thanx in advance..
Rd..
0 Comments
Answers (1)
Tim McBrayer
on 27 Aug 2013
The contents of hdllib are the only blocks supported for HDL code generation. You mention a MOSFET power module. That block describes functionality that simply cannot be implemented on a FPGA.
I am guessing that you wish to use a FPGA to implement some controller logic for your design. Consider what part of your design is for control, and what part models the actual power components that are being controlled. Segregate these into separate subsystems. The control logic that you have now partitioned, distinct from the power devices, is now your candidate design for conversion to Verilog.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!