I am using Altera DE0 nano SoC FPGA. I want to know how to send a floating point number to FPGA from HPS.
Let a float ex_hps = 6000.9282;
sent via Avalon memory mapping interface. If Avalon_write_data address
has 32 bits data length (which can be set from Qsys), in FPGA side this number is stored in a 32-bit std_logic_vector
right?
Does this std_logic_vector
contains the float number as fixed point type (13 downto -14
) with original value? or how to put this number back to a fixed point number ex_fpga(13 downto -14)
in FPGA side in VHDL?