I am using Altera de0 nano soc FPGA. I am having number with decimal points stored in fixed point type (5 downto -27) (the number is always positive). I put it to std logic vector (32bit) and sent to HPS of soc FPGA via Avalon interface. but i do not know how to decode this received number back to c floating point number in (c language). how to do this?
I used fixed_pkg
library ieee_proposed;
USE ieee.std_logic_1164.all;
use ieee.numeric_std.all;
use ieee_proposed.float_pkg.ALL;
use ieee_proposed.fixed_pkg.ALL;
use ieee_proposed.fixed_float_types.ALL;
double
in C? Then this is a C question, not a VHDL question. I.e. information is minimal and tags are incorrect. – JHBonarius