The model can successfully realize function after using fixed-point tool.Just can not generate HDL code.
When generate HDL codes, can not support fixed point division. My dividend has 40 bits of fraction, and the divisor has 20, the result have 20 fractional bits.
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Zora Aria Jade
el 16 de Mayo de 2023
Comentada: Zora Aria Jade
el 17 de Mayo de 2023
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1385409/image.png)
Maybe the question is "En_35"? But I can not find more information in help center.Please help me.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1385414/image.png)
Respuesta aceptada
Walter Roberson
el 16 de Mayo de 2023
ufix40 divided by ufix20 would give a result with (40-20)=20 bits, but you are requesting en35 which is 35 bits.
You can create a ufix20 result and potentially convert it to _en35 as a separate step, understanding that the bottom 15 bits will not contain useful information.
4 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!