about HDL supported libraries

1 次查看(过去 30 天)
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

采纳的回答

Tim McBrayer
Tim McBrayer 2012-10-8
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 个评论
Pham Van Dung
Pham Van Dung 2012-10-8
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 2012-10-10
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Code Generation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by