Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Combinational Gates
afandia@uthm.edu.my
Outlines
2
afandia@uthm.edu.my
Truth Tables
5
afandia@uthm.edu.my
Truth Tables
6
afandia@uthm.edu.my
afandia@uthm.edu.my
Cont
8
afandia@uthm.edu.my
Example
Example
10
afandia@uthm.edu.my
Solution
11
afandia@uthm.edu.my
Example
12
afandia@uthm.edu.my
Solution
13
afandia@uthm.edu.my
x=AB
This is read as x equals A and B.
x will equal 1 when A and B equal 1.
Truth table and circuit symbol for a two input AND gate. Notice the difference
between OR and AND gates.
afandia@uthm.edu.my
afandia@uthm.edu.my
afandia@uthm.edu.my
Example
17
afandia@uthm.edu.my
Solution
18
afandia@uthm.edu.my
NOT Operation
19
xA
This is read as:
x equals NOT A, or
x equals the inverse of A, or
x equals the complement of A
afandia@uthm.edu.my
Cont
20
afandia@uthm.edu.my
The three basic Boolean operations (OR, AND, NOT) can describe
any logic circuit.
If an expression contains both AND and OR gates the AND
operation will be performed first, unless there is a parenthesis in the
expression.
afandia@uthm.edu.my
Cont
23
afandia@uthm.edu.my
Cont
24
afandia@uthm.edu.my
afandia@uthm.edu.my
Other Options
26
afandia@uthm.edu.my
Implementing Circuits
from Boolean
Expressions
afandia@uthm.edu.my
Example
Example
30
?
afandia@uthm.edu.my
Solution
31
afandia@uthm.edu.my
Example
32
?
afandia@uthm.edu.my
Solution
33
afandia@uthm.edu.my
afandia@uthm.edu.my
afandia@uthm.edu.my
afandia@uthm.edu.my
afandia@uthm.edu.my
afandia@uthm.edu.my
Example
Example
40
?
afandia@uthm.edu.my
Solution
41
afandia@uthm.edu.my
Example
42
?
afandia@uthm.edu.my
Solution
43
afandia@uthm.edu.my
Boolean Theorems
Boolean Theorems
45
x0 0
x 1 1
The theorems or laws at right may
represent an expression containing
more than one variable.
xx x
xx 0
x 1 x
xx x
x x 1
afandia@uthm.edu.my
Single-variable Theorems
46
afandia@uthm.edu.my
Boolean Theorems
47
Multivariable theorems:
Understanding all of the
Boolean theorems will be useful
in reducing expressions to their
simplest form.
x y yx
x y yx
x ( y z) ( x y) z x y z
x( yz ) ( xy ) z xyz
x( y z ) xy xz
( w x)( y z ) wy xy wz xz
x xy x
x xy x y
x xy x y
afandia@uthm.edu.my
Example
Example
49
y ABD AB D
afandia@uthm.edu.my
Solution
50
Given y ABD AB D
y AB ( D D ); ( D D ) 1
y AB (1)
y AB
afandia@uthm.edu.my
Example
51
z ( A B )( A B )
afandia@uthm.edu.my
Solution
52
Given z ( A B)( A B)
z A A A B B A B B
Notice that,
A A 0 and B B B
z AB AB B
z B( A A 1); A A 1
z B(1 1)
z B(1)
zB
afandia@uthm.edu.my
DeMorgans Theorems
DeMorgans Theorems
54
afandia@uthm.edu.my
DeMorgans Theorems
55
( x y) x y
( x y) x y
afandia@uthm.edu.my
Example
Example
57
z ( A C ) ( B D)
afandia@uthm.edu.my
Solution
58
Given z = (A + C) (B + D)
Let' s put,
x = (A + C) and y = (B + D)
We have,
z= x y= x+y
z = A+C+B+D
z = ( A C) + B D
z = AC + BD
afandia@uthm.edu.my
Example
59
?
afandia@uthm.edu.my
Solution
60
afandia@uthm.edu.my
Universality of NAND
and NOR Gates
NAND or NOR gates can be used to create the three basic logic
expressions (OR, AND, and INVERT)
Following slides illustrate how combinations of NANDs or NORs are
used to create the three logic functions.
This characteristic provides flexibility and is very useful in logic
circuit design.
afandia@uthm.edu.my
afandia@uthm.edu.my
afandia@uthm.edu.my
Alternate Logic-Gate
Representations
afandia@uthm.edu.my
Cont
67
afandia@uthm.edu.my
afandia@uthm.edu.my
69
afandia@uthm.edu.my
70
afandia@uthm.edu.my
afandia@uthm.edu.my
The End