





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: Computer Arithmetic; Subject: Electrical & Computer Enginrg; University: George Mason University; Term: Unknown 1989;
Typology: Study notes
1 / 9
This page cannot be seen from the preview
Don't miss anything!






1
2
3
4
Unsigned Integer Division Overflow
5
Sequential Integer Division Basic Equations
6
Fig. 13.2 Examples of sequential division with integer and fractional operands.
10
Unsigned Fractional Division Overflow
zfrac < dfrac
11
Sequential Fractional Division Basic Equations
12
Sequential Fractional Division Justification
s(1)^ = 2 zfrac - q-1 dfrac s(2)^ = 2(2 zfrac - q-1 dfrac) - q-2 dfrac s(3)^ = 2(2(2 zfrac - q-1 dfrac) - q-2 dfrac) - q-3 dfrac
s(k)^ = 2(... 2(2(2 zfrac - q-1 dfrac) - q-2 dfrac) - q-3 dfrac...
13
Restoring Unsigned Integer Division
s(0)^ = z
for j = 1 to k
if 2 s(j-1)^ - 2k^ d > 0 qk-j = 1 s(j)^ = 2 s(j-1)^ - qk-j (2k^ d) else qk-j = 0 s(j)^ = 2 s(j-1)
14
Fig. 13.5 Shift/subtract sequential restoring divider.
15
Fig. 13.6 Example of restoring unsigned division.
19
Fig. 13.7 Example of nonrestoring unsigned division.
20
Fig. 13.8 Partial remainder variations for restoring and nonrestoring division.
21
Fig. 13.10 Shift-subtract sequential nonrestoring divider.
22
Non-Restoring Signed Integer Division
s(0)^ = z for j = 1 to k if sign(s(j-1)) == sign(d) qk-j = 1 s(j)^ = 2 s(j-1)^ - 2k^ d = 2 s(j-1)^ - qk-j (2k^ d) else qk-j = - s(j)^ = 2 s(j-1)^ + 2k^ d = 2 s(j-1)^ - qk-j (2k^ d) Correction_step q = BSD_2’s_comp_conversion(q);
23
Fig. 13.9 Example of nonrestoring signed division.
24
Non-Restoring Signed Integer Division
z = q d + s
z = (q-1) d + (s+d) z = q’ d + s’
z = (q+1) d + (s-d) z = q” d + s”