1 Dr. Wissam Hasan Mahdi Alagele e-mail:[email protected]http://edu-clg.kufauniv.com/staff/Mr.Wesam ي م ل ع ل ا ث ح ب ل وا ي ل عا ل م ا ي ل ع ت ل ا ارة ور ة وف ك ل ا عة م ا ج وب س حا ل وم ا ل ع م س ق– ة ي1 ب ر لت ا ة ي ل ك- Chapter 3 Combinational Design Digital Logic Design III
وزارة التعليم العالي والبحث العلمي جامعة الكوفة - كلية التربية – قسم علوم الحاسوب. Digital Logic Design I I I. Chapter 3 Combinational Design. Dr. Wissam Hasan Mahdi Alagele. e-mail:[email protected]. http :// edu-clg.kufauniv.com/staff/Mr.Wesam. Combinational Circuits. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
◦Determine the number of inputs and outputs◦Derive the truth table◦Simplify the Boolean expression for each
output◦Produce the required circuit
Example: Design a circuit to convert a “BCD” code to “Excess 3”
code 4-bits 0-9 values
4-bits Value+3
?
14
Design ProcedureBCD-to-Excess 3 Converter
A B C D w x y z0 0 0 0 0 0 1 10 0 0 1 0 1 0 00 0 1 0 0 1 0 10 0 1 1 0 1 1 00 1 0 0 0 1 1 10 1 0 1 1 0 0 00 1 1 0 1 0 0 10 1 1 1 1 0 1 01 0 0 0 1 0 1 11 0 0 1 1 1 0 01 0 1 0 x x x x1 0 1 1 x x x x1 1 0 0 x x x x1 1 0 1 x x x x1 1 1 0 x x x x1 1 1 1 x x x x
C
1 1 1 BA
x x x x1 1 x x
D
C
1 1 11 B
Ax x x x
1 x xD
C
1 11 1 B
Ax x x x1 x x
D
C
1 11 1 B
Ax x x x1 x x
D
w = A+BC+BD x = B’C+B’D+BC’D’
y = C’D’+CD z = D’
15
Design ProcedureBCD-to-Excess 3 Converter
A B C D w x y z0 0 0 0 0 0 1 10 0 0 1 0 1 0 00 0 1 0 0 1 0 10 0 1 1 0 1 1 00 1 0 0 0 1 1 10 1 0 1 1 0 0 00 1 1 0 1 0 0 10 1 1 1 1 0 1 01 0 0 0 1 0 1 11 0 0 1 1 1 0 01 0 1 0 x x x x1 0 1 1 x x x x1 1 0 0 x x x x1 1 0 1 x x x x1 1 1 0 x x x x1 1 1 1 x x x x
w
x
D
C
z
y
B
A
w = A + B(C+D)x = B’(C+D) + B(C+D)’
y = (C+D)’ + CDz = D’
16
Seven-Segment Decoderw x y z a b c d e f g
0 0 0 0 1 1 1 1 1 1 00 0 0 1 0 1 1 0 0 0 00 0 1 0 1 1 0 1 1 0 10 0 1 1 1 1 1 1 0 0 10 1 0 0 0 1 1 0 0 1 10 1 0 1 1 0 1 1 0 1 10 1 1 0 1 0 1 1 1 1 10 1 1 1 1 1 1 0 0 0 01 0 0 0 1 1 1 1 1 1 11 0 0 1 1 1 1 1 0 1 11 0 1 0 x x x x x x x1 0 1 1 x x x x x x x1 1 0 0 x x x x x x x1 1 0 1 x x x x x x x1 1 1 0 x x x x x x x1 1 1 1 x x x x x x x
1 1 11 1 1
x x x x1 1 x x
?
wxyz
abcdefg
BCD code
a = w + y + xz + x’z’
b = x’+yz+y’z’c = x+y’+zd = x’z’+yz’+x’y+xy’z
e = x’z’+yz’
f = w+x+y’z’g = w+x’y+xy’+x’y+xz’
f
e
g
d
a
b
c
17
18
19
20
Problem Design a circuit which displays the letters A through J on a seven-segment indicator. The circuit has four inputs W, X, Y, Z which represent the last 4 bits of the ASCII code for the letter to be displayed. For example, if WXYZ = 0001, “A” will be displayed. The letters should be displayed in the following form:
Design your circuit using only two-, three-, and four-input NOR gates and inverters. Any solution with 22 or fewer gates and inverters (not counting the four inverters for the inputs) is acceptable.
21
Binary AdderHalf Adder
◦Adds 1-bit plus 1-bit◦Produces Sum and Carry
HAxy
SC
x y C S0 0 0 00 1 0 11 0 0 11 1 1 0
x+ y───C S
x
y
S
C
22
Binary AdderFull Adder
◦Adds 1-bit plus 1-bit plus 1-bit◦Produces Sum and Carry
x y z C S0 0 0 0 00 0 1 0 10 1 0 0 10 1 1 1 01 0 0 0 11 0 1 1 01 1 0 1 01 1 1 1 1
x+ y+ z───C S
FAxyz
SC
y
0 1 0 1x 1 0 1 0
z
y
0 0 1 0x 0 1 1 1
z
S = xy'z'+x'yz'+x'y'z+xyz = z’(xy’+x’y)+z(x’y’+xy) =z’(x y) + z(x y)’ = x y z
C = xy + xz + yz
23
Binary AdderFull Adder
xyzxyzxyzxyz
x
y
z
S
C
xy
xzyz
xyzx
y
z
xy
xzyz
S
C
S = xy'z'+x'yz'+x'y'z+xyz=x y z
C = xy + xz + yz
24
Binary AdderFull Adder
x
y
z
S
C
HAxy
z
HA S
C
QUIZ
?
?
Q#1- This combinational logic circuit is described as a(n) ___.
ANS: full-adder
Q#2- What are the sum and carry out outputs of thisfull-adder circuit?
Cin = 0
A = 0
B = 0
ANS: Sum=0, Carry out=0
Q#3- What are the sum and carry out outputs of thisfull-adder circuit?
Cin = 0
A = 0
B = 1
ANS: Sum=1, Carry out=0
Q#4- What are the sum and carry out outputs of thisfull-adder circuit?
Cin = 1
A = 0
B = 1
ANS: Sum=0, Carry out=1
Q#5- What are the sum and carry out outputs of thisfull-adder circuit?
Cin = 1
A = 1
B = 1
ANS: Sum=1, Carry out=1
Q#6- What are the sum and carry out outputs of thisfull-adder circuit?