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.984375×10-1+3.4375×10-1+1.711×103by 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 required result will be 1772.

Step by step solution

01

Define the concept.

The decimal number system uses base 10 and the binary number system uses base 2.

For example, “12” is also equivalent to the value of the binary number system “1100”.

The decimal number 3.984375×10-1is equal to 1.1001100000×2-2in the binary number system.

The decimal number 3.4375×10-1is equal to -1.0110000000×2-2in the binary number system.

The decimal number1.771×103is equal to-1.1011101011×210in the binary number system.

02

Determine the calculation

Given numbers are 3.984375×10-1, 3.4375×10-1and 1.771×103.

Let, x=3.984375×10-1,

y=3.4375×10-1

and z=1.771×103

role="math" localid="1654942319721" x=1.1001100000×2-2y=+1.0110000000×2-2--------------x+y=10.1111100000(normalized)10.1111100000=1.01111100000×2-1(x+y)=1.0111110000z=+1.1011101011[.000000000010111110000]---------------x+y+z=1.1011101011101[Roundedup]1.1011101100×210=0110101011101100=1772[Indecimal]

Hence, the result will be 1772.

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 the product of-8.0546875×100and-1.79931640625×10-1by hand, assuming A and B are stored in the 16-bit half precision format described in Exercise 3.27. Assume 1 guard, 1 round bit, and 1 sticky bit and round to the nearest even. Show all the steps; however, as is done in the example in the text, you can do the multiplication in human readable format instead of using the techniques described in Exercises 3.12 through 3.14. Indicate if there is overflow or underflow. Write your answer in both 16-bit floating point format described in Exercise 3.27 and also as a decimal number. How accurate is your result? How does it compare to the number you get if you do multiplication on a calculator?

Question: [10] Write down the binary representation of the decimal number 63.25 assuming the IEEE 754 double precision format.

As discussed in the text, one possible performance enhancement is to do a shift and add instead of actual multiplication. Since 9×6, for example, can be written 2×2×2+1×6 , we can calculate9×6 by shifting 6 to the left 3 times and then adding 6 to that result. Show the best way to calculate 0×33×0×55 using shifts and adds/subtracts. Assume both inputs are 8 bit unsigned integers.

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: Calculate the time necessary to perform a multiply using the approach given in Figure 3.3 and 3.4 if an integer is 8 bits wide and each step of the operation takes 4-time units. Assume that in step 1a an addition is always performed -either the multiplicand will be added, or a zero will be. Also assume that the registers have already been initialized (you are just counting how long it takes to do the multiplication loop itself). If this is being done in hardware, the shifts of the multiplicand and multiplier can be done simultaneously. If this is being done in software, they will have to be done one after the other. Solve for each case.

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