Module 4 Boolean Algebra and Digital Logic
Module 4 Boolean Algebra and Digital Logic
L.G. Arcega
UDM-CET
SIGNAL
energy applied to a circuit to cause it to perform an intended action, such as
transmission or reception of information
Analog Signal
any continuous signal for which the time varying feature (variable) of
the signal is a representation of some other time varying quantity
nominally continuous electrical signal that varies in amplitude or
frequency in response to changes in sound, light, heat, position, or
pressure
continuously varying representation of a condition, physical
phenomenon, or quantity such as flow, pressure, or temperature,
transmitted as electrical, mechanical, or pneumatic energy
Examples:
• thermometers
• classical mechanics
• pneumatics
L.G. Arcega
UDM-CET
Digital Signal
in computer architecture, and other digital systems, a DIGITAL
SIGNAL is a waveform that switches between two voltage levels that
represents two states (0 and 1)
Examples:
• laptop / LED monitor
• camcorder / digital cameras
• handheld PC / blackberry PDA
L.G. Arcega
UDM-CET
DIGITAL SYSTEMS AND SWITCHING CIRCUITS
SYSTEM DESIGN
involves breaking the overall system into subsystems and specifying the
characteristics of each subsystem
Example:
The design of a computer system may involve specification of the
following: o number & type of memory units
• arithmetic units
• input-output devices
• connection & control of subsystems
L.G. Arcega
UDM-CET
LOGIC DESIGN
involves determining on how to interconnect basic logic building blocks to
perform specific functions
Example:
Determining the interconnection of logic gates and flip-flops required to
perform binary addition
L.G. Arcega
UDM-CET
BASIC DIGITAL LOGIC
Digital signals have two (2) basic states
1 (Logic “high” H / “on” / TRUE / Positive)
0 (Logic “low” L / “off’ / FALSE / Negative)
L.G. Arcega 7
UDM-CET
CIRCUIT DESIGN
involves specifying the interconnection of certain components (resistors,
diodes, transistors, etc.) to form a gate, flip-flop, or other logic building
block using appropriate computer-aided design tools
Example:
• Laying out and interconnection of components on a silicon chip
L.G. Arcega
UDM-CET
SWITCHING FUNCTIONS
Electronic devices called transistors predominate in the
circuitry that implements these signals. The signals in
most present-day electronic digital systems use just two
discrete values and are therefore said to be binary.
L.G. Arcega
UDM-CET
Any set that is restricted to a finite number of elements contain discrete
information
L.G. Arcega
UDM-CET
Review of Boolean algebra
Complementation
known as NOT operation, denoted by an over bar
Example: Complement of A = A
0=1
1=0
Logical addition
known as OR operation, denoted by a plus sign
Example: A + B
0+0=0
0+1=1
1+0=1
1+1=1
Logical multiplication
known as AND operation, denoted by a dot sign
Example: A • B
0•0=0
0•1=0
1•0=0
1•1=1
L.G. Arcega 11
UDM-CET
Logic Gates
• A digital computer is composed of nothing more than digital circuit, buses, and
sequential logic elements.
• Digital circuit are composed of gates that are wired together either fixed circuit or
reconfigurable.
• The basic elements of circuits are gates. Each type of gate implements a Boolean
operation.
• Logic gates are electronic digital circuit perform logic functions. Commonly
expected logic functions are already having the corresponding logic circuits in
Integrated Circuit (I.C.) form.
• In circuitry theory, NOT, AND, and OR gates are the basic gates. Any circuit can
be designed using these gates. The circuits designed depend only on the inputs, not
on the output. In other words, these circuits have no memory. Also these circuits
are called combinational circuits.
• The symbols NOT gate, AND gate, and OR gate are also considered as basic
circuit symbols, which are used to build general circuits.
L.G. Arcega 12
UDM-CET
Binary Logic
deals with binary variables that take on 2 discrete value and with the
operations of mathematical logic applied to these variables
Truth Table
a table of combination of the binary variables showing the relationship
between the values that the variables take on and the values of the result of
the operation
Formula: 2 N = Y
L.G. Arcega
UDM-CET
NOT Gate / INVERTER
Logic Symbol X Z
Z = X
A NOT gate or also known as INVERTER is logic gate with one input
signal and one output signal. Output is just the complement of the input.
L.G. Arcega 14
UDM-CET
L.G. Arcega
UDM-CET
OR Gate
A
X
Logic Symbol Y
Z
Y B
Z= X + Y
Truth table
INPUT OUTPUT
X Y Z
0 0 0
0 1 1
1 0 1
1 1 1
L.G. Arcega 16
UDM-CET
SWITCH REPRESENTATION OF AN OR GATE
L.G. Arcega
UDM-CET
A A
B Y Input Output
Y
C A B C Y
B
0 0 0 0
Y=A+ B +C 0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
An OR gate is logic gate with two or more input signals and one output
signal. If any input signal is high, the output signal is high. Output is low if
and only if all input signals are low.
L.G. Arcega
UDM-CET 18
AND Gate
X
Logic Symbol Z
Y
Z = X * Y = X ●Y = XY
Truth table
INPUT OUTPUT
X Y Z
0 0 0
0 1 0
1 0 0
1 1 1
L.G. Arcega 19
UDM-CET
SWITCH REPRESENTATION OF AN AND GATE
L.G. Arcega
UDM-CET
A
B Input Output
Y
C A B C Y
0 0 0 0
Y=A•B•C 0 0 1 0
or 0 1 0 0
0 1 1 0
Y = ABC
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1
An AND gate is logic gate with two or more input signals and one output
signal. If any input signal is low, the output signal is low. Output is high if
and only if all input signals are high.
L.G. Arcega 21
UDM-CET
NOR Gate (NOT OR)
Logic Symbol
Y=A+B
INPUT OUTPUT
Truth table A B Y
0 0 1
0 1 0
1 0 0
1 1 0
L.G. Arcega 22
UDM-CET
A
Input Output
B
A B C Y
C
0 0 0 1
0 0 1 0
Y= A+B+C 0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 0
A NOR gate is logic gate with two or more input signals and one output
signal. If any input signal is high, the output is low. Output is high if and
only if all input signals are low.
L.G. Arcega 23
UDM-CET
NAND Gate (NOT AND)
A
Logic Symbol
B Y
Y = A • B or
Y = AB
Truth table
INPUT OUTPUT
A B Y
0 0 1
0 1 1
1 0 1
1 1 0
L.G. Arcega 24
UDM-CET
A
B Input Output
Y
C A B C Y
0 0 0 1
Y=A•B•C 0 0 1 1
or 0 1 0 1
0 1 1 1
Y = ABC
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 0
A NAND gate is logic gate with two or more input signals and one output
signal. If any input signal is low, the output signal is high. Output is low if
and only if all input signals are high.
L.G. Arcega 25
UDM-CET
Exclusive OR / XOR Gate
A
Logic Symbol
B Y
Y = A •+ B
Truth table
INPUT OUTPUT
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
L.G. Arcega 26
UDM-CET
A
B Input Output
Y
C A B C Y
0 0 0 0
Y=A + B + C 0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
An Exclusive OR (XOR) gate is logic gate with two or more input and one
output signal. If input signals have an odd parity, the output signal is high.
L.G. Arcega 27
UDM-CET
Exclusive NOR / XNOR Gate
A
Logic Symbol
B Y
Y = A •+ B =A • B
Truth table
INPUT OUTPUT
A B Y
0 0 1
0 1 0
1 0 0
1 1 1
L.G. Arcega 28
UDM-CET
A
B Input Output
Y
C A B C Y
0 0 0 1
Y=A + B + C 0 0 1 0
or 0 1 0 0
0 1 1 1
Y=A • B • C
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 0
An Exclusive NOR (XNOR) gate is logic gate with two or more input and
one output signal. If input signals have an even parity, the output signal is
high.
An OR gate is logic gate with two or more input signals and one output
signal. If any input signal is high, the output signal is high. Output is low if
and only if all input signals are low.
An AND gate is logic gate with two or more input signals and one output
signal. If any input signal is low, the output signal is low. Output is high if and
only if all input signals are high.
A NOT gate or also known as INVERTER is logic gate with one input signal
and one output signal. Output is just the complement of the input.
A NOR gate is logic gate with two or more input signals and one output
signal. If any input signal is high, the output is low. Output is high if and only
if all input signals are low.
A NAND gate is logic gate with two or more input signals and one output
signal. If any input signal is low, the output signal is high. Output is low if and
only if all input signals are high.
L.G. Arcega 30
UDM-CET
Summary
Odd parity – an odd number of 1’s in an input word
An Exclusive OR (XOR) gate is logic gate with two or more input and
one output signal. If input signals have an odd parity, the output
signal is high.
An Exclusive NOR (XNOR) gate is logic gate with two or more input and
one output signal. If input signals have an even parity, the output signal
is high.
L.G. Arcega 31
UDM-CET
BASIC LAW OF BOOLEAN ALGEBRA
X + 0= X X + 1 = 1
X + X = X X + X’ = 1
X 0= 0 X 1 = X
X X = X X X’ = 0
X’’ = X X’’’ = X’
X + Y= Y + X X Y=Y X
( X + Y ) + Z = X + ( Y + Z )( X Y ) Z= X (Y Z)
X ( Y + Z ) = XY + XZ (X + Y) (X + Z)= X + YZ
X + XY = X X ( X + Y ) = X
X ( X’ + Y ) = XY X + X’Y = X + Y
L.G. Arcega 32
UDM-CET
BOOLEAN ALGEBRA
L.G. Arcega
UDM-CET
Thanks for your time.
PM is the key
L.G. Arcega
UDM-CET