18th LSI Design ContestsEin Okinawa  Design Specification - 3

3-1. CORDIC method([1])

The CORDIC, it is one way to compute the value of the elementary functions, the calculation is performed while rotating the (or coordinates) vector plane.

Figure 1

Figure1FSchematic diagram of the CORDIC method

\(\) as the angle to be obtained finally, shows a schematic diagram of a method of determining the \(sin\) and \(cos\) in the CORDIC method in Figure 1. As shown in Figure 1, CORDIC method by repeating the process angle \(z\) is to approach the angle \(\), \(cos\) as the coordinates \(x\), is calculated as \(sin\) the coordinates \(y\). Also from Figure 1, there is a relationship, such as the following angle the \(z \).

Equation 1

To approaches the angle \(\), (1.1) shows that it will add to the angle \(Z\) angle \(A\). At this time, the angle between each of the relationship, such as the following.

Equation 2

As shown in (1.10), the angle \(z\) is closer to \(\) eventually. To determine \(sin, cos\) in this way. The following will describe the main principle of the CORDIC method.

Figure 2

Figure2FCORDIC method

Shows the how the angle \(z\) whether the angle \(\) closer to the CORDIC method in Figure 2. I to R the length of the line segment connecting the origin (\(x_i\), \(y_i\)) coordinates first. I and z the angle at that time. Coordinates (\(x_i\), \(y_i\)) and angle z_i+1 is expressed by the following equation.

Equation 3
Equation 4
Equation 5

Consider the update value \(\) to approximate to the angle \(\) the angle \(z\) here.

Equation 6

When defined by the equation (1.6), \(sin_i\) and \(cos_i\) can be expressed as follows.

Equation 7
Equation 8

By using (1.7), (1.8) equation, it can be expressed as follows: coordinate transformation \((x_(i+1),y_(i+1))\) to the point from \((x_i,y_i)\) point.

Equation 9
Equation 9
Equation 9
Equation 9

Similarly,

Equation 10

Then, how \(sin\) and \(cos\) or go is calculated as an example, or try to follow the process.

Figure 3

}3FCalculation of \(sin\) and \(cos\) by CORDIC method

As shown in Figure 3CIt is assumed that the x-axis on the initial position of the vector will rotateCInitial coordinates point is \((x_0 ,y_0 (=0))\)DAssuming that \(z_n\),

Equation 11
Equation 11
Equation 12
Equation 12
Equation 13

In determining the initial value of \(x_0\) from (1.13) and (1.11), by obtaining the \(x_n\) and \(y_n\) coordinates after the rotation of \(n\) timesC \(sin\) and \(cos\) of the angle \(\) given can be determined as follows.

Equation 14
Equation 15

Attention must be paid to, It is assumed that the angle \(z_n\) approaches the angle \(\) by repeating n times the rotation, Assuming that the error \(\)C

Equation 16

As (1.16), there is an error occurs even after repeated \(n\) times.

Reference

[1] –ؗRCwBASICvZ@xCRiЁC1984

<<Back                 Next>>