topic Re: Fraction Output in Simulator in Simulation and Verification
https://forums.xilinx.com/t5/Simulation-and-Verification/Fraction-Output-in-Simulator/m-p/958595#M25523
<BR />What your looking at is the Q format question.<BR /><BR /><A href="http://www.ee.ic.ac.uk/pcheung/teaching/ee3_Study_Project/lecture%205(4).pdf" target="_blank">http://www.ee.ic.ac.uk/pcheung/teaching/ee3_Study_Project/lecture%205(4).pdf</A><BR /><BR />In base 10, where we put the decimal point is up to us, We tend to write a number as say 56.78 , in binary we do the same, say 110101.1010, but in the hardware we dont have a rela point,its up to us where we put it. <BR /><BR />If I remember, check the cordic docs, the input is radians,Sat, 06 Apr 2019 20:07:14 GMTdrjohnsmith2019-04-06T20:07:14ZFraction Output in Simulator
https://forums.xilinx.com/t5/Simulation-and-Verification/Fraction-Output-in-Simulator/m-p/958570#M25522
<P>I am currently working on CORDIC algorithm to compute sine and cosine of angles.</P><P>I used 16-bits for calculating the sine and cosine.</P><P>i.e. if the sin(x) value is 0.5, the output is 0100000000000000 (16 bit).</P><P>The output is sin(x) * 2^15. </P><P>How do I display the output as 0.5 instead of 010000...0.</P>Sat, 06 Apr 2019 12:57:12 GMThttps://forums.xilinx.com/t5/Simulation-and-Verification/Fraction-Output-in-Simulator/m-p/958570#M25522rajesh2019-04-06T12:57:12ZRe: Fraction Output in Simulator
https://forums.xilinx.com/t5/Simulation-and-Verification/Fraction-Output-in-Simulator/m-p/958595#M25523
<BR />What your looking at is the Q format question.<BR /><BR /><A href="http://www.ee.ic.ac.uk/pcheung/teaching/ee3_Study_Project/lecture%205(4).pdf" target="_blank">http://www.ee.ic.ac.uk/pcheung/teaching/ee3_Study_Project/lecture%205(4).pdf</A><BR /><BR />In base 10, where we put the decimal point is up to us, We tend to write a number as say 56.78 , in binary we do the same, say 110101.1010, but in the hardware we dont have a rela point,its up to us where we put it. <BR /><BR />If I remember, check the cordic docs, the input is radians,Sat, 06 Apr 2019 20:07:14 GMThttps://forums.xilinx.com/t5/Simulation-and-Verification/Fraction-Output-in-Simulator/m-p/958595#M25523drjohnsmith2019-04-06T20:07:14Z