




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















1
+1110.
c 1100
s 11001.
+6.
c 11.
s 16.
C36.A
+72B.
c 1010
s 1361.D
Base 2 Base 8 Base 16
2
4
Complement adder/subtractor
To perform subtraction using an
unsigned adder
hardware
5
Base b Adder
(b-1)’s complement
x
y
x-y
7
2’s complement Adder/Subtracter
c (^) o
s 1 s (^) o
a (^) m-1 b (^) m-1 a 1 b 1 a 0 b (^0)
C m-
s (^) m-
C m c^1 …
c (^2) FA FA FA
q m-1 q 1 q 0
Subtract control r
8
- multiplicand x3 x2 x1 x Digital Multiplication Schema - multiplier y3 y2 y1 y - (xy 0 ) 4 (xy 0 ) 3 (xy 0 ) 2 (xy 0 ) 1 (xy 0 ) 0 pp - (xy 1 ) 4 (xy 1 ) 3 (xy 1 ) 2 (xy 1 ) 1 (xy 1 ) 0 pp - (xy 2 ) 4 (xy 2 ) 3 (xy 2 ) 2 (xy 2 ) 1 (xy 2 ) 0 pp 11
13
Unsigned Series Parallel
Multiplier Hardware
Partial Product
m+1 digit adder
b (^) j Multiplier digit
0
a (^) m-1a (^) m-2 … a^1 a (^0)
Product register p 2m digits wide
14
16
m-bit multiplicand 0 m-bit multiplier
m=1-bit adder
2m-bit accumulator
m-1 bits
Sign extension
subtract
Carry in
17
1s
1s
19
Unsigned binary divide hardware
Dividend left shift register
Divisor register
subtractor
quotient register
Positive result
load 0
Left shift
2 m bit dividend m bit register divisor
m bit quotient
20