Using a table similar to that shown in Figure 3.11, calculate A divided by B using the

Question:

Using a table similar to that shown in Figure 3.11, calculate A divided by B using the hardware described in Figure 3.12. You should show the contents of each register on each step. Assume A and B are unsigned 6-bit integers. This algorithm requires a slightly different approach than that shown in Figure 3.10. You will want to think hard about this, do an experiment or two, or else go to the web to figure out how to make this work correctly.

Figure 3.102a Start 1. Subtract the Divisor register from the Remainder register and place the result in the Remainder

Figure 3.11Iteration 0 1 2 3 4 5 Step Initial values 1: Rem = Rem - Div 2b: Rem <0 +Div, sll Q, QO = 0 3: Shift Div

Figure 3.12

Divisor 32-bit ALU 32 bits Remainder 64 bits Shift right Shift left Write Control test


Let’s look in more detail at division. We will use the octal numbers in the following table.a. b. A 74 76 B 21 52

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Organization And Design The Hardware Software Interface

ISBN: 9780123747501

4th Revised Edition

Authors: David A. Patterson, John L. Hennessy

Question Posted: