196k views
4 votes
Multiply the following two Tom's Tiny floating-point format numbers (8-bit: sign bit, 3-bit 2's complement exponent, 4-bit fraction). Make sure to correctly round the result before putting the answer back in the 8-bit format.

A = 10010011
B = 10101000
AxB = _______

User Hirro
by
4.9k points

2 Answers

7 votes

Final answer:

The multiplication of two Tom's Tiny floating-point numbers requires multiplying the fractions, adding the exponents, and adjusting the final product to fit the 8-bit format with proper sign, exponent, and fraction.

Step-by-step explanation:

The multiplication of two Tom's Tiny 8-bit floating-point numbers A and B involves the following steps:

  1. Determine if the result will be positive or negative by looking at the sign bits. In this case, A is negative and B is negative, so the product will be positive.
  2. Add the exponents. Since these are in 2's complement form, we'll need to convert them to decimal, add them, and then convert back to 2's complement if necessary.
  3. Multiply the fractions.
  4. Normalize the result if necessary, so the fraction part is within the range for Tom's Tiny format.
  5. Round the fraction to fit the 4-bit limit, if necessary.
  6. Reassemble the sign, exponent, and fraction into the 8-bit format.

Application to A and B: A has a sign bit of 1 (negative), an exponent of 001 (2's complement for -3), and a fraction of 0011. B has a sign bit of 1 (negative), an exponent of 010 (2's complement for -2), and a fraction of 1000.

The product of A and B in Tom's Tiny format is a positive number (since both A and B are negative), with an exponent of -3 + (-2) = -5 (after converting to decimal), and a fraction part that is the product of the fractions. After normalizing and rounding, we have to fit this result back into the 8-bit format.

User Lakhbir
by
4.9k points
6 votes

Answer:

A*B = 00111100

Step-by-step explanation:

Given data :

A = 10010011

B = 10101000

Find A * B

For A = 10010011 express in sign bit , exponent and number

repeat same process for B

attached below is a detailed solution

A*B = 00111100

Multiply the following two Tom's Tiny floating-point format numbers (8-bit: sign bit-example-1
User Mirka
by
5.8k points