how to set M function input argument to logical?

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

采纳的回答

Tim McBrayer
Tim McBrayer 2014-4-29
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 个评论
Alberto
Alberto 2014-4-29
Thank again Tim!
I will go for the first option, I suspect trying the GUI would soon bring to another question :-)

请先登录,再进行评论。

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by