




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!





Inputs
Outputs
Given or Known:Truth Table
Given or Known: A description of its functioning.The labels inside are explicit enough to produce afunction table (summary of the device functioning)
M.-C. BRUNET
ECE 110
UIUC
G
Inputs
Output
M.-C. BRUNET
ECE 110
UIUC
Number of levels? It is the maximumnumber of gates encountered on all pathsfrom inputs to output.
n-
ai^
is a binary digit (or ‘BIT’) = 0 or 1 The
decimal
value for A is: (
Example 1:
M.-C. BRUNET
ECE 110
UIUC
Example 2:
M.-C. BRUNET
ECE 110
UIUC
an-
b n-^
...... a
1
b^1
a^0
b^0
S^ n-
Parallel Adder: adding two n-bit numbers Example 3: Add A=(1101) and B=(0111)
carry
Parallel Adder
n-
n-
n-
Using Gates Using Blocks
M.-C. BRUNET
ECE 110
UIUC
carry
Full Adder: Implementation
Half Adder: Adding 2 bits together Using Gates
carry
M.-C. BRUNET
ECE 110
UIUC
Example 6:
carry sum
a fixed number of bits.There is overflow if the result of the additioncannot be stored back in the destination register. Example 7: 4-bit registers.Numbers A and B are from example 3.
M.-C. BRUNET
ECE 110
UIUC
Parallel Adder
(DestinationRegister)
M.-C. BRUNET
ECE 110
UIUC
f e
d
b c
a
a b c d e f g
g
LEDs, LCDs. Displays letters, numbers, symbols.
One segment is ON when thecorresponding input is equal to:
M.-C. BRUNET
ECE 110
UIUC
Displays g f e d c b a
Blank
abc de fg
7 outputs
Inputshow many?
10
Decimal Number Display
M.-C. BRUNET
ECE 110
UIUC
Example 11: What is displayed for:1) A = (011)
2
2
2
2
2
2
Decimal Number Display
Displays: Displays: Displays:
b^0
a^2 b^2
a^1 b^1 a^0
WXYZ
How can we know what isdisplayed without lookingat the bits on all the wires?
M.-C. BRUNET
ECE 110
UIUC
F = sum (P, Q, 1)G = carry (P, Q, 1)
Give the truth table for F(P, Q) & G(P, Q)
FAcarry
sum
a = d = e = A + B
b = A + B
c = f = A + B
g = 1
A B
?
abcdef g
Design the combinational circuit such thatwhen AB = 00 (resp 01, 10, 11) it displays2 (resp.4, 6, 8)
M.-C. BRUNET
ECE 110
UIUC
Prove that the implementation below iscorrect (correctly producing the outputs fora Full Adder). Labels were added to help!
carry sum carrysum HA S1 HAS C C
Solution: let’s look at all the wires in the circuit; (C1, S1) = HA (a,b);(C2, S2) = HA (S1, c); check if indeed S2 is the sum of (a,b,c) andThe OR of (C1, C2) the corresponding carry. Complete solution belowHA(a,b)
HA(S1,c)
FA(a,b,c)
a b C1 S1 c C2 S2 OR(C1, C2) Carry Sum0 0
0
0
0
0
0
0
0
0
0 0
0
0
1
0
1
0
0
1
0 1
0
1
0
0
1
0
0
1
0 1
0
1
1
1
0
1
1
0
1 0
0
1
0
0
1
0
0
1
1 0
0
1
1
1
0
1
1
0
1 1
1
0
0
0
0
1
1
0
1 1
1
0
1
0
1
1
1
1
equal!