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 agoThe code has several length matching errors and doesn't compile. Also, what's the fpdiv component?
Assignments with length msimatch: p<= to_sfixed(i)*data_in; b<= (i*Pi); cv_q<=to_slv(b);