3.19 [30] <§3.4> Using a table similar to that shown in Figure 3.10, calculate 7
ID: 2084573 • Letter: 3
Question
3.19 [30] <§3.4> Using a table similar to that shown in Figure 3.10, calculate
74 divided by 21 using the hardware described in Figure 3.11. 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.9. 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. (Hint: one possible
solution involves using the fact that Figure 3.11 implies the remainder register can
be shifted either direction.)(Note: algorithmic and table example in text is not for the figured hardware the problem wants.)
Explanation / Answer
Consider Dividend==> A = (74)10 =(1001010)2
Divisor ==> B = (21)10 =(0010101)2
-B = 110 1111
Steps:
Start: Remainder = zeros with dividend
Remainder = remainder << 1
Left half remainder = Left half remainder – divisor
If remainder > 0
i. <<1 and Ro=1
If remainder < 0
i. Remainder left half = remainder left half + divisor;
ii. remainder <<1; Ro=0
After done this process from step 4 to 5 ( Seven repetitions)
If yes, Remainder left half = remainder left half >> 1
If not, go back to step 4 and do it again to step 6
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.