cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gnale
Visitor
Visitor
399 Views
Registered: ‎11-07-2018

Vivado Cordic ipcore compute question

CORDIC_IPcore choose the Vector Rotation mode, since from the pg105

I get the Rotate mode computition give the result like that:

X'=cos(R)*X-sin(R)*Y

Y'=cos(R)*Y+sin(R)*X

and X,Y should be 2QN, R should be 3QN, when I set input Data as 32bit X + 32bit Y

as example 

Y 2Q30 0x76980=0.007261634

X 2Q30 0x315480=0.003010869

R 3Q29 0xeccc680=0.462497

to output result with

X'  0x959cf7=0.009131662

Y' 0xfff597e6=-0.000635171

but by the computition formula

the result should be X' -0.000545475, Y' 0.007842137

 

what the mistake should be ? Is the DataSet wrong or the setting is wrong?

2020-07-07 14-42-11 的屏幕截图.png
0 Kudos
1 Reply
gnale
Visitor
Visitor
294 Views
Registered: ‎11-07-2018

The compensation Scale Compensation should be Embedded Multiply then It can be used as this mode .
0 Kudos