Logic Circuits: S L Battery Light
Logic Circuits: S L Battery Light
Implemented as electronic circuits where signal values are restricted to a few discrete values
X1 X2 X3 Switching Network Xm
Y1 Y2 Y3
In binary logic circuits there are only two values, 0 and 1 The general form of a logic circuit is a switching network
Electrical & Computer Engineering
Yn
discrete values
Dr. D. J. Jackson Lecture 2-2
Boolean algebra
Direct application to switching networks
Work with 2-state devices 2-valued Boolean algebra (switching algebra) Use a Boolean variable (X, Y, etc.) to represent an input or output of a switching network Variable may take on only two values (0, 1) X=0, X=1 These symbols are not binary numbers, they simply represent the 2 states of a Boolean variable They are not voltage levels, although they commonly refer to the low or high voltage input/output of some circuit element
Electrical & Computer Engineering Dr. D. J. Jackson Lecture 2-3
Power supply
S x L
S x
2
Light
S x
2
Light
Inversion
Before, actions occur when a switch is closed. What about the possibility of an action occurring when a switch is opened?
L(x)= x Where L=1 if x=0 and L=0 if x=1
S x1 Power supply S x3
S x2 S x4 L Light
x, x, NOT x
x S L
Inversion of a function
If a function is defined as
f(x1, x2)= x1+ x2
Truth tables
Tabular listing that fully describes a logic function
Output value for all input combinations (valuations) x1 x2 x1 x2 0 0 0 0 1 0 1 1 0 1
AND
Similarily, if
f(x1, x2)= x1 x2
x1 x2 x1 + x2 0 0 0 0 1 1 1 1 0 1
OR
x1 x1 0 1 1 0
NOT
0 1
1 1
Truth tables
Truth table for AND and OR functions of three variables
x1 x2
x NOT gate
a c
0 10 1 2
B f