Given numbers:
Binary Multiplication:
Binary multiplication follows the following rules:
Given Information:
A, B and C are stored in 16-bit half precision format.
Explanation of Solution
Compare:
For:
Here,
Converting the above values to binary:
The exponent for
Exponent=
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
The value of
The fraction “
Hence after rounding up to even, the value of “
For:
Here,
Converting the above values to binary:
The exponent can be represented as:
Exponent=
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 the multiplication is represented as:
Hence, the result of the product “
There is underflow as A and B are both small and their product does not fit into the 16-bit floating point format being used and hence cannot be represented.
As in 2nd case the value of
Want to see more full solutions like this?
Chapter 3 Solutions
Computer Organization and Design MIPS Edition, Fifth Edition: The Hardware/Software Interface (The Morgan Kaufmann Series in Computer Architecture and Design)
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY