HDL supported block for integer to binary

10 ビュー (過去 30 日間)
Hong Zhao
Hong Zhao 2022 年 3 月 2 日
回答済み: Kiran Kintali 2022 年 3 月 2 日
Dear Sir/Madam,
The simulink block "Integer to Bit Converter" is not supported by HDL Coder. So I used Matlab user defined function block to put "de2bi",there, but an error message said "Call to function 'de2bi' is not supported". Then, I tried another function "dec2bin", it gave me error message of data type issues even though I put Data Type Converter on both input and output. Could you please help me on this? My input is already made as positive integer. Thank you for the help.
Regards,
Hong

回答 (1 件)

Kiran Kintali
Kiran Kintali 2022 年 3 月 2 日
can you try this example?
>>hdlcoder_int2bits_bits2int

カテゴリ

Help Center および File ExchangeHDL Coder についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by