Forum Discussion
Altera_Forum
Honored Contributor
15 years agoURJENT problem in fixed point output
sir i use fixed-pkg to represent fraction bits,but when the output is 0.05118,whose binary representation is something like 0.00001101,in waveform i get only 0.should i use float_pkg to get the corre...
Altera_Forum
Honored Contributor
15 years ago@ fvm sir,
ihave taken i (2 downto 0,data_in (14 bits),so in multiplication result is 16 bits. as i take i an ufixednumber,so i convert in in sfixed. now i take pi (ufixed(2 downto -7) ) so after multiplication it should be 6 downto -7,but i take b(b:ufixed(8 downto -8);) to match with the fixed point division 16 bit inputs. yep there is error,u r right,i will use correct range, other else.............. sir.