about HDL supported libraries

4 views (last 30 days)
Dear,
I have a problem in Simulink HDL Coder : Can i extend the supported HDL library of Simulink HDL Coder Tools? And if i can , how can i do it?
Thanks for helping!
Best regards,
Pham Van Dung

Accepted Answer

Tim McBrayer
Tim McBrayer on 8 Oct 2012
There is no customer-accessible way to add support for additional blocks to the HDL Coder supported blocks library. If you have a specific block in mind that you would like support for, please communicate that through standard channels so that the development team can take your needs into account.
Since HDL Coder does support the MATLAB Function block and Stateflow charts, you can implement any desired functionality that you can express with these fully customizable blocks.
  2 Comments
Pham Van Dung
Pham Van Dung on 8 Oct 2012
Dear Tim McBrayer,
Thanks for your helping about this problem. However, i still have some questions that i want to ask you: 1.In hdlsupported.mdl , i can add some blocks from another tools, after that, i save this library in my forder to support for my work. Can I?
2.If i can not extend the HDL supported library, how can i use this tool to implement to buit some projects that i want to convert to VHDL code
( ex: Pulse With Modulation (PWM), Space Vector Pulse With Modulation (SVPWM)) 3.Would you please give me some ideals to solve this problem?
Waiting for your reply! Thanks you so much!
Best Regards!
Pham Van Dung
Tim McBrayer
Tim McBrayer on 10 Oct 2012
hdlsupported.mdl is dynamically created by the hdllib command, based off the blocks that have existing HDL implementations in the product. Even if you manually added additional blocks to this library, they would not have a HDL implementation to generate.
I can't directly solve your modelling problem, but the overall idea would be to decompose the behavior of an unsupported block into a set of blocks that are supported for HDL code generation. And again, I encourage you to request (via customer support) that HDL Coder support the blocks that you wish to use.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!