Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

sine and cosine calculation cordic

Status
Not open for further replies.

Vanitha Vani

Newbie level 5
Newbie level 5
Joined
Jul 15, 2015
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
49
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.

forgot to ask

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top