elhady
Newbie level 1
i want to calculate the exponential of signed fixed number, but i know that the fixed point library doesn't support this function. so i tried to convert the fixed number to real number first to use the exponential function in math_real package, and i used the command
to_real(),
but i got the message
"non-constant real valued expression isn't supported".
also i used the following packages :
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
USE IEEE.Numeric_STD.ALL;
use ieee.math_real.all;
--library ieee_2008;
--use ieee_2008.math_real.all;
library ieee_proposed;
use ieee_proposed.fixed_pkg.all;
use ieee_proposed.fixed_float_types.all;
--use ieee_proposed.float_pkg.all;
and try many combination but every time i got different error.
so can i get a solution to get the exponential of fixed point number
to_real(),
but i got the message
"non-constant real valued expression isn't supported".
also i used the following packages :
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
USE IEEE.Numeric_STD.ALL;
use ieee.math_real.all;
--library ieee_2008;
--use ieee_2008.math_real.all;
library ieee_proposed;
use ieee_proposed.fixed_pkg.all;
use ieee_proposed.fixed_float_types.all;
--use ieee_proposed.float_pkg.all;
and try many combination but every time i got different error.
so can i get a solution to get the exponential of fixed point number
Last edited by a moderator: