3 Logic Circuits
3 Logic Circuits
Logic circuits
Boolean expression
Truth table
Logic diagram
Timing diagram
Logic circuits 2
1
10/12/2023
Logic circuits 3
Logic circuits 4
2
10/12/2023
Logic circuits 5
Logic circuits 6
3
10/12/2023
Truth Table
◦ x is a logic 1 for every combination of input levels where
one or more inputs are 1
◦ Boolean expression x = A + B
x equals A OR B
To describe this circuit in the English language we could say
that x is true (1) WHEN A is true (1) OR B is true (1)
OR Gate
◦ is a circuit that has two or more inputs and whose output is
equal to the OR combination of the inputs
◦ its output is HIGH (logic 1) if either input A or B or both are
at a logic 1 level; for all other cases the output will be 0
Logic circuits 8
4
10/12/2023
Logic circuits 9
Logic circuits 10
5
10/12/2023
Logic circuits 11
Logic circuits 12
6
10/12/2023
Truth Table
◦ x is a logic 1 only when both A and B are at the logic 1
level. For any case where one of the inputs is 0, the
output is 0.
◦ Boolean expression x = A.B
x equals A AND B
AND gate
◦ is a digital circuit performing the AND operation
◦ An AND gate output will be 1 only for the case when
all inputs are 1; for all other cases the output will be 0
Logic circuits 13
7
10/12/2023
Logic circuits 15
Logic circuits 16
8
10/12/2023
Logic circuits 17
NOT operation
◦ One variable function.
◦ Boolean expression: x = 𝐴ҧ (inverse of A, complement
of A, or NOT A)
◦ Truth table
NOT gate
◦ is a digital circuit, Inverter, performing the
NOT operation
◦ It inverts (complements) the input signal so that
whenever the input=0, output=1, and vice versa
Logic circuits 18
9
10/12/2023
Logic circuits 19
NOT (invert)
◦ 1=0 0=1
Logic circuits 20
10
10/12/2023
Logic circuits 21
Logic circuits 22
11
10/12/2023
Logic circuits 23
A
A ABC
B 1
C X = ABC(A+D)
2
A+D A+D
D
(A+B)C (A+B)C
(A+B)C + D
A A+B
B 1
1
2
C 2
D
E X = [(A+B)C + D]E
Logic circuits 24
12
10/12/2023
Rule
◦ First, perform all inversions of single terms
◦ Perform all operations with parentheses
◦ Perform an AND operation before an OR operation
unless parentheses indicate otherwise
◦ If an expression has a bar over it, perform the
operations inside the expression first and then
invert the result
Example, 𝑥 = 𝐴𝐵𝐶(𝐴
ҧ + 𝐷)
◦ A=0, B=1, C=1, D=1
Logic circuits 25
1
A=0 1
B=1 1
C=1 X=0
2
1 0
D=1
Determine the output for the condition where all inputs are LOW?
Logic circuits 26
13
10/12/2023
Logic circuits 27
BC X = AC+BC+ABC
2
B
ABC
3
Logic circuits 28
14
10/12/2023
A A+B
B 1
X = (A+B)(B+C)
B+C
C 2
Logic circuits 29
Logic circuits 30
15
10/12/2023
Logic circuits 31
Logic circuits 32
16
10/12/2023
NAND operation
◦ Boolean expression x = 𝐴. 𝐵
◦ Symbol: 𝐴. 𝐵 (A NAND B)
◦ Truth table
NAND gate
◦ is a digital circuit performing the NAND operation
◦ the output goes LOW only when all inputs are HIGH
Logic circuits 33
Logic circuits 34
17
10/12/2023
C
D
C+D
𝑥 = 𝐴𝐵 ⋅ 𝐶 + 𝐷
A
B
Logic circuits 35
C
1
0 C+D 𝑥 = 𝐴𝐵 ⋅ 𝐶 + 𝐷
D
0 1 1
A
B
1
Logic circuits 36
18
10/12/2023
Exclusive-OR
◦ Boolean expression: x = 𝐴. 𝐵ത + 𝐴.ҧ 𝐵
◦ Symbol: 𝐴 ⊕ 𝐵 (A XOR B)
XOR gate
◦ is a digital circuit performing the XOR operation
◦ The circuit produces a HIGH output whenever the
two inputs are at opposite levels.
Logic circuits 37
Logic circuits 38
19
10/12/2023
Exclusive-NOR
◦ Boolean expression: x = 𝐴. 𝐵ത + 𝐴.ҧ 𝐵
◦ Symbol: 𝐴 ⊕ 𝐵 (A XNOR B)
XNOR gate
◦ is a digital circuit performing the exclusive-NOR
operation
◦ The XNOR produces a HIGH output whenever the two
inputs are at the same level
Logic circuits 39
Logic circuits 40
20
10/12/2023
Logic circuits 41
x x
x x
0 1
𝑥+0 = 𝑥 𝑥. 1 = 𝑥
x x
1 0
1 0
𝑥+1 = 1 𝑥. 0 = 0
x x
x x
𝑥+𝑥 =𝑥 𝑥. 𝑥 = 𝑥
x x
1 0
𝑥+𝑥 =1 𝑥. 𝑥 = 0
Logic circuits 42
21
10/12/2023
Commutativity
1. 𝑥+𝑦 =𝑦+𝑥
2. 𝑥𝑦 = 𝑦𝑥
Associativity
1. 𝑥+ 𝑦+𝑧 = 𝑥+𝑦 +𝑧
2. 𝑥𝑦 𝑧 = 𝑥(𝑦𝑧)
Distributivity
1. 𝑥 𝑦 + 𝑧 = 𝑥𝑦 + 𝑥𝑧
2. 𝑥 + 𝑦𝑧 = (𝑥 + 𝑦)(𝑥 + 𝑧)
Absorption (covering)
1. 𝑥 + 𝑥𝑦 = 𝑥
2. 𝑥 + 𝑥𝑦ҧ =𝑥+𝑦
3. 𝑥ҧ + 𝑥𝑦 = 𝑥ҧ + 𝑦
Logic circuits 43
Logic circuits 44
22
10/12/2023
Logic circuits 45
In general,
◦ 𝑥+𝑦+𝑧 =𝑥⋅𝑦⋅𝑧
◦ 𝑥⋅𝑦⋅𝑧 =𝑥+𝑦+𝑧
Logic circuits 46
23
10/12/2023
𝑥+𝑦 = 𝑥⋅𝑦
x x
𝑥+𝑦 𝑥. 𝑦
y y
x
𝑥. 𝑦 = 𝑥 + 𝑦
y
Logic circuits 47
𝑥⋅𝑦 =𝑥+𝑦
x x
𝑥+𝑦
y y
x
𝑥 + 𝑦 = 𝑥𝑦
y
Logic circuits 48
24
10/12/2023
𝑧 = 𝐴𝐵𝐶
=𝐴+𝐵+𝐶
=𝐴+𝐵+𝐶
Logic circuits 49
Logic circuits 50
25
10/12/2023
Logic circuits 51
26
10/12/2023
14 13 12 11 10 9 8 14 13 12 11 10 9 8
VCC VCC
GND GND
1 2 3 4 5 6 7 1 2 3 4 5 6 7
74LS00 74LS08
14 13 12 11 10 9 8 14 13 12 11 10 9 8
VCC VCC
GND GND
1 2 3 4 5 6 7 1 2 3 4 5 6 7
74LS02 74LS32
Logic circuits 53
74LS08 74LS00
(1) (1)
(3) (3)
(2) 1
74LS32 74LS00
(1) (2) (9)
(3) (8)
3
74LS08 74LS00
(4) (2) (4) (10)
(6) (6)
(5) 2
(5)
1 3 5
AND 7
2 4 6
AND OR
Logic circuits 54
27
10/12/2023
55
Logic circuits 56
28
10/12/2023
Logic circuits 57
Active high/low
◦ When an input or output line on a logic circuit
symbol has no bubble on it, that line is said to be
active-high, otherwise it is active-low
◦ The presence or absence of a bubble, then,
determines the active-HIGH/active-LOW status of
a circuit’s inputs and output, and is used to
interpret the circuit operation
Logic circuits 58
29
10/12/2023
Output goes LOW only when all Output is HIGH when any
inputs are HIGH input is LOW
Logic circuits 59
Logic circuits 60
30
10/12/2023
Logic circuits 61
31
10/12/2023
Logic circuits 63
Logic circuits 64
32
10/12/2023
Logic circuits 65
33
10/12/2023
Logic circuits 67
Many ways
◦ Logical statements in our own language
◦ Truth tables
◦ Traditional graphic logic symbols
◦ Boolean algebra expressions
◦ Timing diagrams
Logic circuits 68
34
10/12/2023
Logic circuits 69
Logic circuits 70
35
10/12/2023
Logic circuits 71
36