Forum Discussion
Altera_Forum
Honored Contributor
14 years agoVHDL Math Real & Quartus
I've been using the VHDL package ieee.math_real to declare parameters, the idea being to condense as much information in a design file as possible. in particular, for fixed point operations in feedba...
Altera_Forum
Honored Contributor
14 years agoI remember having that divide problem once also, but I forgot when ... I don't divide many 'real's though, but recently I did this:
ARCZ => integer( ( real(PI_TIMES_TWO) * ARCTAN( 2.0 ** (-(i))) / MATH_2_PI)) , This is in Quartus II 11.1sp1. I tried your code variable RecipFactor : real := ROUND((2.0**15)*(1.0/(SQRT(3.0))));
and got no other warning than: --- Quote Start --- Warning (10542): VHDL Variable Declaration warning at math_real.vhd(2373): used initial value expression for variable "RECIPROCAL" because variable was never assigned a value --- Quote End --- but that is a long time annoyance ...