Can't Get Rid of UseMatrixTypesInHDL Warning

1 visualización (últimos 30 días)
Jamie Jackson
Jamie Jackson el 20 de Jul. de 2020
Respondida: Kiran Kintali el 29 de Jul. de 2020
I keep getting a warning basically telling my that UseMatrixTypesInHDL should be turned on to handle matrix signals for a specific block. However, I still get the warning for as if I did not change the setting to "on". How can I get rid of this warning particular to this setting?

Respuestas (2)

Aman Vyas
Aman Vyas el 29 de Jul. de 2020
Editada: Aman Vyas el 29 de Jul. de 2020
Hi,
You can try disabling InstantiateFunction, because if its "on" UseMatrixTypesInHDL has no effect and in turn generates warning.
For enabling UseMatrixTypesInHDL you can use following command:
hdlset_param('myModel/dutSubsys/myMLFcn', 'UseMatrixTypesInHDL', 'on')
You can set the InstantiateFunctions parameter using the HDL Block Properties dialog box:
  1. Right-click the MATLAB Function block.
  2. Select HDL Code > HDL Block Properties.
  3. For InstantiateFunctions, select on.
Alternatively, you can try this command:
hdlset_param('my_DUT/my_MATLABFcnBlk', 'InstantiateFunctions', 'on')
For more info, refer to this documentation link (UseMatrixTypesInHDL Section)
Hope it helps!

Kiran Kintali
Kiran Kintali el 29 de Jul. de 2020
This is not exepcted behavior. Please reach out to support@mathworks.com for additional help.
In 20b pre-release this option is no longer visible in the property dialog. HDL Coder will always generate code for matrix types which consumes less indexing logic and more efficient.

Categorías

Más información sobre HDL Coder en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by