Comparison 4 numbers without using if action in simulink
1 回表示 (過去 30 日間)
古いコメントを表示
I designed a model simulink to find an index of maximum number among 4 numbers, using if action can help me, but the problem is I need to transfer the model into the VHDL code using hdl coder which is not support if action. can someone help me to find a way without using if action, please?
0 件のコメント
回答 (2 件)
Kiran Kintali
2023 年 8 月 28 日
In case you are using Simulink and have access to DSP System Toolbox, max block from the library also provides an optional second output that computes the index where maximum is found.
参考
カテゴリ
Help Center および File Exchange で HDL Coder についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!