Professional Documents
Culture Documents
ECE2021-3-Describing Logic Circuits - P1
ECE2021-3-Describing Logic Circuits - P1
2
Objectives
3
Introduction
4
3.1 Boolean Constants and Variables
• Boolean constants and variables:
• Have two possible values 0 or 1 (e.g. to represent the voltage level present
on a wire)
• Do not represent actual number
• Represent logic level (e.g. the state of a voltage variable)
5
3.1 Boolean Constants and Variables (cont.)
• Boolean algebra:
• To express the relationship between a logic circuit’s inputs and outputs
• No fractions, decimals, negative numbers, square roots, cube roots,
logarithms, imaginary numbers, and so on.
• Only three basic operations: OR, AND, and NOT (logic operations)
6
3.2 Truth Tables
• A truth table:
• How a logic circuit’s output depends on the logic levels present at the
circuit’s inputs.
7
3.2 Truth Tables (cont.)
• A truth table: A truth table
• Example:
The number of input combinations will equal to 2N for an N-input truth table
8
3.2 Truth Tables (cont.)
• Don’t Care Conditions
9
3.2 Truth Tables (cont.)
10
Definition of Switching Algebra
• Minterms
For example:
11
Minterms and Maxterms (1)
SOP: Sum of product/minterms
Minterms
12
Minterms and Maxterms (2)
Maxterm We only
A +B+ C consider the
A +B+ C’ value “1” of
A +B’+C the function
A +B’+C’ f or f’
A’+B+ C
A’+B+ C’
A’+B’+C
A’+B’+C’
13
3.3 “OR” Gate
• is true (1), WHEN is true (1) OR is true (1) OR is true (1).
• The Boolean expression for the OR operation is
• “ equals OR ”
14
3.3 “OR” Gate (cont.)
15
3.3 “OR” Gate (cont.)
16
3.3 “OR” Gate (cont.)
17
3.4 “AND” Operation and Gates
• The Boolean expression for the AND operation is .
• “ equals AND ,”
18
3.4 “AND” Operation and Gates (cont.)
• Examples
Signal variable
Control variable
19
3.4 “AND” Operation and Gates (cont.)
• Examples
20
3.5 “NOT” Operation and Gates
• A “NOT” gate can be performed on a single input variable.
• The Boolean expression for the “NOT” operation is =
(“x equals NOT A”; “x equals the inverse of A”; “x equals the complement of A.”)
• NOT operation = inversion = complementation
FIGURE (a) Truth table; (b) symbol for the INVERTER (NOT circuit); (c) sample waveforms
21
3.5 “NOT” Operation and Gates (cont.)
• NOT circuit = inverter
• This circuit always has only a single input, and its output logic level is
always opposite to the logic level of the input.
FIGURE (a) Truth table; (b) symbol for the INVERTER (NOT circuit); (c) sample waveforms
22
3.5 “NOT” Operation and Gates (cont.)
• Application
0V
23
Summary of Boolean Operations (OR, AND, and NOT)
• The rules for the OR, AND, and NOT operations may be
summarized as follows:
24
Summary of Boolean Operations (OR, AND, and NOT)
• Example
• Derive the truth table for the following circuit?
• Draw the timing diagram of D for given timing diagrams of A, B, C
̅
A
D ̅
B
C
25
3.6 Describing Logic Circuits Algebraically
• Any logic circuit can be described completely using three basic Boolean
operations (OR, AND, and NOT).
LEFT RIGHT
FIGURE (a) Logic circuit with its Boolean expression; (b) logic circuit whose expression
requires parentheses.
26
3.6 Describing Logic Circuits Algebraically (cont.)
• Circuits Containing INVERTERs
27
3.6 Describing Logic Circuits Algebraically (cont.)
• Circuits Containing INVERTERs
28
3.6 Describing Logic Circuits Algebraically (cont.)
• Circuits Containing INVERTERs
29
3.6 Describing Logic Circuits Algebraically (cont.)
• Examples
30
3.7 Evaluating Logic-Circuit Outputs
(3 input variables leading to have 8 different input cases (23=8) for the output )
32
3.7 Evaluating Logic-Circuit Outputs (cont.)
33
3.7 Evaluating Logic-Circuit Outputs (cont.)
34
3.8 Implementing Circuits from Boolean Expressions
• A circuit that was defined by . . , we would immediately know that all
that was needed was a three-input AND gate.
• A circuit that was defined by , we would use a two-input OR gate
with an INVERTER on one of the inputs.
35
3.8 Implementing Circuits from Boolean Expressions (cont.)
36
3.9 “NOR” Gates and “NAND” Gates
• NOR Gate
• It is the same as the OR gate symbol except that it has a small
circle on the output for the inversion operation.
An OR gate output goes HIGH when any
input is HIGH the NOR gate output
goes LOW when any input is HIGH.
(a)
(b) (c)
FIGURE - (a) NOR symbol; (b) equivalent circuit; (c) truth table
37
3.9 “NOR” Gates and “NAND” Gates (cont.)
• Example
Determine the waveform at the output of a NOR gate for the input
waveforms shown in Figure
38
3.9 “NOR” Gates and “NAND” Gates (cont.)
39
3.9 “NOR” Gates and “NAND” Gates (cont.)
Examples: Determine the output waveform of a NAND gate
40
3.10 Boolean Theorems
• Boolean algebra is used to help analyze a logic circuit and express its operation
mathematically.
• The various Boolean theorems (rules) are to simplify logic expressions and logic
circuits.
41
Single-variable theorems
3.10 Boolean Theorems (cont.)
• Multivariable theorems
(hoán đổi)
called the commutative laws
(kết hợp)
the associative laws
(phân phối)
the distributive law
42
3.10 Boolean Theorems (cont.)
• Multivariable theorems
43
3.10 Boolean Theorems (cont.)
• Multivariable theorems
44
3.10 Boolean Theorems (cont.)
• Multivariable theorems
45
3.10 Boolean Theorems (cont.)
• Proving a Boolean equation
• Deriving using theorems
• Using truth tables
• (Different from general algebra, only limited values/combination in
Boolean algebra (including OR, AND and NOR))
• Using your reasoning
46
3.11 DeMorgan’s Theorems
• DeMorgan’s theorems are extremely useful in simplifying expressions for a
product or sum of variables inverted.
47
3.11 DeMorgan’s Theorems (cont.)
• Examples
48
3.11 DeMorgan’s Theorems (cont.)
• DeMorgan’s theorems are easily extended to more than two variables.
50
3.11 DeMorgan’s Theorems (cont.)
̅ C
3. ̅
51
SUMMARY (1)
52
SUMMARY (2)
53
REVIEW QUESTIONS
Q1
Q2
b.
54
REVIEW QUESTIONS (cont.)
Q3
f’
1
0
1
0
0
1
0
0
55
REVIEW QUESTIONS (cont.)
Q4
56
REVIEW QUESTIONS (cont.)
Q5
Q6
57
REVIEW QUESTIONS (cont.)
58
REVIEW QUESTIONS (cont.)
59
REVIEW QUESTIONS (cont.)
60
REVIEW QUESTIONS (cont.)
61
REVIEW QUESTIONS (cont.)
62
REVIEW QUESTIONS (cont.)
63
REVIEW QUESTIONS (cont.)
64
REVIEW QUESTIONS (cont.)
65
HOME WORK!!!
66
HOME WORK!!! (cont.)
FIGURE 3-53 67
HOME WORK!!! (cont.)
68
HOME WORK!!! (cont.)
69
HOME WORK!!! (cont.)
70
HOME WORK!!! (cont.)
71
15-MINUTE QUICK TEST
72
73
VGU
VIETNAMESE-GERMAN UNIVERSITY