05.08.2014 Views

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Lecture</strong> 15 Per<strong>for</strong>mance Improvement at Register Level - Multiplier Design<br />

There are many different ways to solve a problem<br />

Example<br />

Multiplication<br />

American<br />

English<br />

A la russe<br />

Divide and conquer<br />

Arabic<br />

Page | 77<br />

American<br />

981<br />

1234<br />

--------------<br />

3924<br />

2943<br />

1962<br />

981<br />

------------<br />

1210554<br />

English<br />

981<br />

1234<br />

----------------<br />

981<br />

1962<br />

2943<br />

3924<br />

----------------<br />

1210554<br />

a la russe<br />

Rules<br />

Make two columns<br />

- one <strong>for</strong> multiplier<br />

- one <strong>for</strong> multiplicand<br />

Repeat the following until the number in left hand side is 1<br />

Divide the number in left hand side by 2<br />

Ignore fractions<br />

Double the number in RHS<br />

Cross out each row where the number in the LH column is even<br />

Add up the numbers that remain in the RH column

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!