Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 Newton-Raphson Method (also known as the Babylonian method) that takes the following iterative form for the square root calculation:
The first value x0 is initialized to 1 and then each xk+1 is calculated from xk based on the equation above until the difference between xk+1 and xk is sufficiently small.
A program for this method might look like this:
x =1
repeat
prev_x = x
x =( prev_x + A/prev_x )/2
until (| x - prev_x |< e )
To begin, the value A is loaded into a register and the X register is initialized to 1. The Divider calculates A/X 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+1 are sufficiently close). If not then the X register is loaded with the new value. The division by 2(in the component labeled /2 is achieved by removing the least significant bit and padding the left end with a 0.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

What is that?

Answered: 1 week ago

Question

Why advertising is important in promotion of a product ?

Answered: 1 week ago

Question

What is community?

Answered: 1 week ago

Question

What are the features of the community?

Answered: 1 week ago

Question

1. What are Associations ?

Answered: 1 week ago

Question

1. What is socialization?

Answered: 1 week ago