Altera_Forum
Honored Contributor
14 years agoproblem: to_ufixed(0.483,n1)
Hi all;
I want to convert 0.483 to ufixed type. Manually, I get 0000.0111 (3 downto -4) when I calculate by hand. But, this value is not same with the value in modelsim which is 0000.1000. I write like this; ip1<=to_ufixed(0.483,n1); What the correct value of 0.483 in ufixed? Do I calculate in wrong way?..needs help, thanks