HDL implementation for bit to integer conversion block
이전 댓글 표시
I had to use a design where an fsm treats a vector of bits and as an output of the fsm i had to convert it into an integer to be used in the DUT. I had found the bit to integer conversion block under the communication block set, but this block is not supported by the hdl coder. Is there any equivalent block or a trick getting the vector of bits reinterpreted as an other datatype (ufix).
Thanks.
채택된 답변
추가 답변 (1개)
Dr. ghada farouk
2023년 7월 4일
0 개 추천
My advice to you while using hdl coder, first, keep using the type fi. This type is fixed point signed/unsigned numbers integer/fraction numbers. Second, use the bitsliceget function in which you can select one bit or range of bits.
카테고리
도움말 센터 및 File Exchange에서 Get Started with HDL Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!