Question: Below is the datapath for a sequential system which calculates the square root of a positive integer A . It uses the Newton - Raphson
Below is the datapath for a sequential system which calculates the square root of a positive integer A It uses the NewtonRaphson Method also known as the Babylonian method that takes the following iterative form for the square root calculation:
The first value x is initialized to and then each xk is calculated from xk based on the equation above until the difference between xk and xk is sufficiently small.
A program for this method might look like this:
x
repeat
prevx x
x prevx Aprevx
until x prevx e
To begin, the value A is loaded into a register and the X register is initialized to The Divider calculates AX and this result is added to X Note that the Divider is started by asserting the signal SD and that the result is available when RD is high. The component DONE compares the current value X with the new value to determine whether the computation can stop whether xk and xk are sufficiently close If not then the X register is loaded with the new value. The division by in the component labeled is achieved by removing the least significant bit and padding the left end with a
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
