Forum Discussion
Altera_Forum
Honored Contributor
14 years agoIf you're using VHDL - check out the fixed point package. then its as easy as:
my_value <= to_ufixed(1.5, 3, -4); --8 bits - 4 bits integer 4 bits fraction.If you're using VHDL - check out the fixed point package. then its as easy as:
my_value <= to_ufixed(1.5, 3, -4); --8 bits - 4 bits integer 4 bits fraction.