Error occurred when converting simulink block to HDL code

2 ビュー (過去 30 日間)
Sushanth
Sushanth 2014 年 3 月 18 日
回答済み: Tim McBrayer 2014 年 3 月 18 日
In my Simulink block i used a constant to multiply. When i convert the block to HDL code i get an error as "Attempt to reference field of non-structure array" but when i removed the constant i am able to create HDL code. How can i over come this error?

回答 (1 件)

Tim McBrayer
Tim McBrayer 2014 年 3 月 18 日
Try swapping out the multiply block for a gain block, since you are multiplying by a constant. Other than that, you might want to examine the Constant block: what is its data type? Is the value compatible with the data type? Are any of the other mask fields inconsistent or inappropriate for HDL code generation?

製品

Community Treasure Hunt

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

Start Hunting!

Translated by