Here an example (no problem for Modelsim)
constant rl : real := 2.0**15;
(remember the right operand of the power function should be an integer; so
do not write 15.0. When you use the IEEE package math_real you have more
functions)
Egbert Molenkamp
"hari" <> wrote in message
news: om...
> hi
> i would like to know how to declare the numbers in vhdl.the numbers
> are
> (2^15-1) and (-2^15).
>
> when i declare it using the REAL modelsim returns a error saying it is
> out of range.how to overcome it
> thanks
> hari
|