HDL Coder: how to divide (eg, 1/3) using simulink when the divisor is not 2^x
Mostrar comentarios más antiguos
hello guys/girls,
how to perform the division of 1/3 in simulink for HDL code generation. I keep having the synthesis problem saying that the divisor need to be a value of 2^x .
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 2 de Sept. de 2013
0 votos
1/3 = 1/4 + 1/16 + 1/64 + 1/256 (etc.)
So do all those divisions by 2^x and sum the result.
Categorías
Más información sobre Speed Optimization en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!