Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Calculate 3.4179687510-3×6.34765625×10-3×1.05625×102by hand, assuming each of the values are stored in the 16-bit half precision format described in Exercise 3.27 ( and also described in the text). Assume 1 guard, 1 round bit, and 1 sticky bit, and round to the nearest even. Show all the steps, and write your answer in both the 16-bit floating point format and in decimal.

Short Answer

Expert verified

The answer for the given calculation is 0.00230.

Step by step solution

01

Given Values

Consider the following values:

A=3.41796875×10-3

B=6.34765625×10-3

C=1.05625×102

02

Converting decimal to binary equivalent

3.41796875×10-3=0.00341796875=0.00000000111×20=1.11×2-9

6.34765625×10-3=0.00634765625=0.00000001101×20=1.101×2-8

1.05625×102=105.625=1101001.101×20=1.101001101×26

03

Multiplying the values

Consider the multiplication of the values:

3.41796875×10-3×6.34765625×10-3×1.05625×102=1.11×2-9×1.101×2-8×1.101001101×26=1.011011×217×1.101001101×26=1.0010110010×29

The value in decimal is 0.00230

04

Result in 16-bit floating point format.

Consider the following binary number:

1.0010110010×2-9

S value is 0 since number is positive.

Exponent can be computed as:

Exponent-15=-9Exponent=15-9Exponent=6

General representation of half precision number is

-1s×1+fraction×2Exponent-15-10×1+.0010110010×26

The floating point representation is as shown below:

01 2 3 4 5 6 7 8 9 10 11 12 13 14 15

00 0 1 1 0 0 0 1 0 1 1 0 0 1 0

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Calculate 3.984375×10-1+3.4375×10-1+1.771×103 by hand, assuming each of the values are stored in the 16-bit half precision format described in Exercise 3.27 (and also described in the text). Assume 1 guard, 1 round bit, and 1 sticky bit, and round to the nearest even. Show all the steps, and write your answer in both the 16-bit

floating point format and in decimal.

Using a table similar to that shown in Figure 3.10, Calculate 74 divided by21 using the hardware described in Figure 3.8. You should show the contents of each register on each step. Assume both inputs are unsigned 6-bit integers.

Question: Based on your answer to 3.38 and 3.39, is

Question: Calculate by hand, assuming each of the values is stored in the 16-bit half-precision format described in Exercise 3.27 (and also described in the text). Assume 1 guard, 1 round bit, and 1 sticky bit, and round to the nearest even. Show all the steps, and write your answer in both the 16-bit floating-point format and in decimal.

Question: [45] The following C code implements a four-tap FIR filter on input array sig_in. Assume that all arrays are 16-bit fixed-point values. for (i 3;i< 128;i ) sig_out[i] sig_in[i-3] * f[0] sig_in[i-2] * f[1] sig_in[i-1] * f[2] sig_in[i] * f[3]; Assume you are to write an optimized implementation this code in assembly language on a processor that has SIMD instructions and 128-bit registers. Without knowing the details of the instruction set, briefly describe how you would implement this code, maximizing the use of sub-word operations and minimizing the amount of data that is transferred between registers and memory. State all your assumptions about the instructions you us

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free