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.

Normalized Form keeps one digit left to the binary point<br />

For example<br />

1.000111<br />

This can be written as<br />

n<br />

(1 + F) 2<br />

Fraction - F<br />

Exponent - n<br />

Page | 107<br />

In the IEEE standard we have to add 127 to the exponent in single precision<br />

In the IEEE standard we have to add 1023 to the exponent in double precision<br />

– SP (127)<br />

DP (1023)<br />

Compromise<br />

Accuracy<br />

Fraction<br />

Range<br />

Exponent<br />

Example<br />

.75 10<br />

.11000 binary<br />

.75 X 2 = 1.50<br />

.5 X 2 = 1.0<br />

.75 10 = .11 2<br />

Normalized <strong>for</strong>m<br />

0.11 = 1.1 2 -1<br />

IEEE standard <strong>for</strong>mat single precision<br />

0 126 10000000000000<br />

-1 + 127 23 bit<br />

Another Example .9 10<br />

.9 * 2 = 1.8<br />

.8 * 2 = 1.6<br />

.6 * 2 = 1.2<br />

.2 *2 = 0.4<br />

.4 * 2 = 0.8<br />

.9 = .11100

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

Saved successfully!

Ooh no, something went wrong!