HDL code generation for rem and mod function in matlab simulink model

3 views (last 30 days)
while working with hdl workflow advisor error is coming that math function is not supported?...is there any shortcut trics to currect and make simulink model suitable for hdl code generation because workflow advisor taking so much time......i want to generate pwm pulse by fpga for that i have designed svpwm simulink model and wavelet controller and i need to convert this model in to hdl code form to run fpga by fil wizard.....
thank you so much if you give me your valuable time ...
best regards!
sameer

Answers (1)

Tim McBrayer
Tim McBrayer on 25 Aug 2014
The blocks and modes of the blocks that are supported are documented in the HDL Coder documentation. If you are having difficulty getting a large design into HDL-compliance, consider checking smaller portions, subsystems, of the design at a time. Then, once the lower levels are conformant you can work up the hierarchy, adding more of your full design one step at a time.
You can also partition the design into multiple models, using Model Reference blocks. Once a sub-model is conformant, you can temporarily stop its conformance analysis by setting its HDL architecture to 'Black Box'. Then, once the full design is fully conformant you can re-enable code generation for the sub-models by changing their HDL Architecture back.
Finally, some people find the command-line interface to the HDL conformance checker preferable to the GUI. Check out 'checkhdl' for conformance checking, and 'makehdl' for code generation.

Products

Community Treasure Hunt

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

Start Hunting!