Continue to Site

# sine and cosine calculation cordic

Status
Not open for further replies.

#### Vanitha Vani

##### Newbie level 5
can any one explain how to in cordic

Calculate sine and cosine of 30degrees.
First the angle has to be calculated:
360 deg =2^16;
hence 30 deg =5461(dec)=1555(hex)

hi,
can any one explain how to in cordic

Calculate sine and cosine of 30degrees.
First the angle has to be calculated:
360 deg =2^16;
hence 30 deg =5461(dec)=1555(hex)

CORDIC algorithm is calculated through small micro-rotation.first you need to compare the input angle with 45 degree and need to decide on which way next rotation is to be perfomed(either clockwise or anticlockwise.) then next comparing angle is 26.52.

actually the angle come from tan'(2^-i)
where i= 0,1,2,3,4.....

you need to repeate this operation untill the required accuracy.i think you should download some cordic papers . from that you will get all the mathematic expressions and equations. understand the basic equations , then link that equations to what i told above.

which tool and language you are using????

First the angle has to be calculated:
360 deg =2^16;
hence 30 deg =5461(dec)=1555(hex)

in CORDIC it dont make any sense. according to my knowlege input should be in radians. just check the data sheet of xilinx CORDIC ip. you will get some idea of inputs and outputs

regards

Last edited:

yes i have few cordic papers
but i did not understand why they choose 360 deg =2^16 and calculated other angles into hexa
why not 2^6?

i am using verilog and tool is xilinx.14.2

hi,
yes i have few cordic papers
but i did not understand why they choose 360 deg =2^16 and calculated other angles into hexa
why not 2^6?

i am using verilog and tool is xilinx.14.2

cordic input in given in radians, not in degree. so 360 degree it will be pi.

so i think 2^16 means it will be the input width.
it can be decided by yourself. only thing is if input width incereases accuracy increases.
so it will be your choice.
regards

Status
Not open for further replies.