how to set M function input argument to logical?

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일

1 개 추천

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

Thank again Tim!
I will go for the first option, I suspect trying the GUI would soon bring to another question :-)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Animation에 대해 자세히 알아보기

질문:

2014년 4월 29일

댓글:

2014년 4월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by