Re: verilog codes using sin or cos.....pleeeeeeeeeeezzzzz ur
sorry for that.....can you give me some solution for sin and cos implementation in verilog.....actually i need to use this equation
r=xcos(theta)+ysin(theta) in verilog
If you're not using design compiler.
You can use a look up table. This is the easiest implementation. It is simply a ROM with the sine wave stored in it, for a given phase. So your theta would be the address for the ROM. You'll only need to store 1/4 of the sine wave to take advantage of the symmetry of the sine wave. For cos you simply take advantage of the trig formula: cos(theta) = sin(pi/2 - theta). Excellent paper on this by Lionel Cordesses called "Direct Digital Synthesis: A tool for Periodic Wave Generation."
Or you can use a DSO, which is an unstable IIR filter. There is an excellent paper by Clay Turner on the subject: "Recursive Discrete-Time Sinusoidal Oscillators"
haii,i am afinal yr student..i saw ur thread tat u posted last yr...appy tat u handled cordic in verilog..me too hav started my prjt related to cordic....soo plzz help me wth it. my e-mail address is birth2graveenjoy@gmail.com
haii,i am afinal yr student..i saw ur thread tat u posted last yr...appy tat u handled cordic in verilog..me too hav started my prjt related to cordic....soo plzz help me wth it. my e-mail address is birth2graveenjoy@gmail.com
sry hope i dint clearly say wat i need.i need the verilog codings regarding the cordic algorithm.plzz kindly help me..its urgent.bcoz my prjt is based on cordic algorithm..but me not able to get its logic properly.