how to set M function input argument to logical?

8 visualizaciones (últimos 30 días)
Alberto
Alberto el 29 de Abr. de 2014
Comentada: Alberto el 29 de Abr. de 2014
I am converting a .M function -> .HDL. I'd like to force the .M function input arguments to be boolean (logical) before operating the conversion. But .M function input argument type isn't explicitly set by the user.
Which is the cleanest way to proceed?
Thanks

Respuesta aceptada

Tim McBrayer
Tim McBrayer el 29 de Abr. de 2014
If you are using a testbench, make sure the testbench is feeding the DUT with inputs of type logical. HDL Coder should use these input types. You can fully customize the types in the GUI as well, should you not want to (or be able to) modify the test bench.
  1 comentario
Alberto
Alberto el 29 de Abr. de 2014
Thank again Tim!
I will go for the first option, I suspect trying the GUI would soon bring to another question :-)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by