COMPUTER ORGANIZATION+DESIGN >I<
COMPUTER ORGANIZATION+DESIGN >I<
5th Edition
ISBN: 9781541868397
Author: Patterson
Publisher: ZYBOOKS (CC)
Question
Book Icon
Chapter 3, Problem 3.40E
Program Plan Intro

Given numbers: 1.666015625×100, 1.9760×104 and 1.9744×104.

Binary Multiplication:

Binary multiplication follows the following rules:

0 x 0 = 00 x 1 = 01 x 0 = 01 x 1 = 1

Given Information:

A, B and C are stored in 16-bit half precision format.

Expert Solution & Answer
Check Mark

Explanation of Solution

Compare: 1.666015625×100×(1.9760×1041.9744×104) and (1.666015625×100×1.9760×104)+(1.666015625×100×1.9744×104)

For part (1):

Here, 1.666015625×100 is represented as “A”, 1.9760×104 is represented as “B” and 1.9744×104  is represented as “C”.

Converting the above values to binary:

1.666015625×100=1.1010101010×20

1.9760×104=1.0011010011×214

1.9744×104=1.0011010010×214

The exponents match and hence shifting is not necessary.

Exponent=0+4=4

Here, the sign of the result is positive as all the numbers are positive and hence their product is positive. It is assumed that it has “1” guard, “1” round bit and “1” sticky bit and round to the nearest even.

The fraction of B+C is represented below:

(B)1.0011010011(C)1.0011010010(B+C)0.0000000001×214(B+C)1.0000000000×24

The value of B+C is 1.0000000000×24.

The fraction “A×(B+C)” is represented below:

(A)1.1010101010(B+C)×1.000000000011010101010A×(B+C)1.10101010100000000000Guard=0,Round=0,Sticky=0:Noround

After rounding up to even, the value of “A×(B+C)” is 1.1010101010×24.

For part (2):

Here, 1.666015625×100 is represented as “A”, 1.9760×104 is represented as “B” and 1.9744×104  is represented as “C”.

Converting the above values to binary:

1.666015625×100=1.1010101010×20

1.9760×104=1.0011010011×214

1.9744×104=1.0011010010×214

The exponents match and hence shifting is not necessary.

Exponent=0+14=14

Here, the sign of the result is positive as all the numbers are positive and hence their product is positive. It is assumed that it has “1” guard, “1” round bit and “1” sticky bit and round to the nearest even.

The fraction of A×B is represented below:

(A)1.1010101010(B)×1.0011010011110101010101101010101011010101010110101010101101010101010.0000001001100001111Normalize,add1toexponent

Here, the guard is “1”, Round is “1”, Sticky is “1: Round” and the value of A×B is 10.0000001001100001111.

Hence, the final value of A×B is 1.0000000101×215.

The fraction “A×B+A×C” is represented below:

(A)1.1010101010(C)×1.0011010010110101010101101010101011010101010110101010101101010101010.000000011111011010Normalizeandadd1toexponentA×C1.0000000100×215A×B1.0000000101×215A×C1.0000000100×215A×B+A×C.0000000001×215A×B+A×C1.0000000000×25

Hence, the value of A×B+A×C is 1.0000000000×25.

The value of both the subparts is not equal as A×(B+C) is A×(B+C)=1.1010101010×24=26.65625 whereas the value of

(A×B)+(A×C)=1.0000000000×25=32.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
Refer to page 140 for problems on PKI and encryption. Instructions: • Simulate a PKI system, including the generation of public-private key pairs and digital certificates. • Demonstrate secure communication between two parties using the certificates. • Explain certificate validation and revocation processes. Link: [https://drive.google.com/file/d/1wKSrun-GlxirS31Z9qo Hazb9tC440 AZF/view?usp=sharing]
Refer to page 155 for problems on search engine basics. Instructions: • Build an inverted index for a collection of text documents. • • Demonstrate how to use the index for efficient keyword search. Analyze space and time efficiency compared to a sequential search. Link: [https://drive.google.com/file/d/1wKSrun-GlxirS3IZ9qo Hazb9tC440 AZF/view?usp=sharing]
Refer to page 160 for problems on loT device management. Instructions: • Simulate an energy-efficient sensing algorithm for loT devices. Demonstrate how duty cycling reduces power consumption while maintaining data accuracy. • Compare energy usage before and after optimization. Link: [https://drive.google.com/file/d/1wKSrun-GlxirS31Z9qoHazb9tC440AZF/view?usp=sharing]
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Text book image
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Text book image
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Text book image
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Text book image
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Text book image
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY