HDL coder Black box replacement for MAtlab code

I am using HDL coder to generate Verilog from a function (.m). I have a line of code wich assigns a result to an array. I would like HDL coder to automatically replace this line with an instantiation of a black box during its synthesis of the Verilog. Is this possible and How
Thanks

回答 (1 件)

Tim McBrayer
Tim McBrayer 2016 年 10 月 18 日

0 投票

You will need to replace your assignment with a System object inherited from hdl.BlackBox, and place the correct assignment behavior inside the System object. Search the documentation for "hdl.BlackBox" for more details.

カテゴリ

ヘルプ センター および File ExchangeCode Generation についてさらに検索

製品

タグ

質問済み:

2016 年 10 月 14 日

回答済み:

2016 年 10 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by