Forum Discussion
Altera_Forum
Honored Contributor
16 years agofancy conversion from real to unsigned
Hi Experts, could someone give me a hint to make conversion: having a float number: CALIBRATION_CURRENT_LOGAIN : real:= 0.89552238805970152; i wanted to convert it to unsigned(15 downto...
Altera_Forum
Honored Contributor
16 years agoOr you can do handy things like this:
constant CALIBRATION_CONSTANT_LOGAIN : ufixed(-1 downto -16) := to_ufixed(CALIBRATION_CURRENT_LOGAIN, 0, 16)