How can I convert from decimal to binary for HDL Coder?
显示 更早的评论
I am creating a Simulink model for HDL code generation. I would like to convert a signal into a vector of bits so that I can perform operations on each individual bit. There is no block that performs this operation, so I would like to create a custom implementation. What is the best way to do this that will not generate excessive code?
采纳的回答
更多回答(1 个)
Kiran Kintali
2020-12-30
0 个投票
Attaching the model in the example for convenience.
类别
在 帮助中心 和 File Exchange 中查找有关 Code Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!