Академический Документы
Профессиональный Документы
Культура Документы
Module 3
Combinational and Sequential Logic Circuits
PREPARED BY
Giridhari muduli
January 2013
Module Contents:
#
Topic
Page No.
1.
03
2.
04
3.
05
4.
Lab Activity#3
07
5.
Lab Activity#4
10
6.
Sequential Logic
12
7.
12
8.
13
9.
16
10.
18
11.
20
12.
22
13.
23
14.
25
15.
29
1. INTRODUCTION
Combinational logic: When logic gates (such as AND, OR and NOT) are
connected together to produce a specified output for certain specified
combinations of input variables, with no
These two gates are actually formed by a combination of other gates already
discussed. Because of their fundamental importance in many applications,
these gates are treated as basic gates with their own unique symbols.
INPUTS
OUTPUT
A and B ;
then
Y1 A B .
A and B ;
then
Y2 A B .
Y1 and Y2 ;
AND
Y1
NOT
OR
NOT
AND
NOT
Y2
symbol
for
the
Exclusive-NOR
INPUTS
OUTPUT
HIGH
The truth table illustrates this operation is Table 2.
3.4 XNOR Logical Function
The expression
X A B
X Z.
X A B
and it means:
If A and B both are High or both Low, then X is High. Otherwise X is Low.
Applications: Google to find at least 2-applications for each gate.
XOR
XNOR
a)
a)
b)
b)
c)
c)
Sequential Logic
A digital logic function made of basic logic gates (AND, OR, NOT, etc.) in
which the output values depend not only on the values currently being
presented to its inputs, but also on previous input values.
Definition
Briefly the sequential logic can be defined as is that logic in which the
output depends on a sequence of its input values.
2) Flip-Flops
Latch: It is active when clock either at logic high level or at low level.
Example of Latches
Example of Flip-Flops
1) SR Latch
1) JK flip-flops
2) Clocked SR Latch
2) T-type flip-flops
3) D Latch
Q.
It has
and Q are the inputs and the output of gate G1. S, Q, and
are the
inputs and the output of gate G2. These arrangements must preserve,
otherwise the Set and Reset will have the opposite meaning. The symbol of
the NOR-Gate S-R latch is shown in Figure 10.
R
NOR
G1
NOR
G2
= 1.
= 0.
Solve Exercise 1 to find out the other inputs combinations and their
corresponding outputs states.
Important Note
Note that the inputs condition (S = R = 1) is not allowed, because it
generates unpredictable output state and it is called invalid condition.
Exercise #1
Change S back to LOW and follow the same process given above to
determine the states of the outputs Q an
Q.
Change R to HIGH and follow the same process to determine the states
of the outputs Q and
Q.
If the input S is ON and the R is OFF, the output (Q) will be set to ON.
If the input S is OFF and the R is ON, the output (Q) will be set to OFF.
If both the inputs S and R are OFF, the output (Q) will remain the same
as its previous value.
If both the inputs S and R are ON, the output state is unpredictable.
The truth table of S-R latch which illustrates this operation is Table 6.
Inputs
Outputs
Operation
Invalid condition
Meanings
No change
Latch Set
Latch Reset
Invalid
Condition
Solution to Exercise #1
10
Now G1 inputs is
= 0.
Set state Q = 1.
Remember G2 output is
Q
Reset state.
Notes:
....
....
....
....
....
....
....
....
....
....
....
....
....
11
input (CK).
AND
NOR
NOR
CK
AND
12
When the level of the clock signal is HIGH (logic-1), the two-AND gates
passes the (S and R) inputs through to the latch and the device is
enabled.
When the level of the clock signal is LOW (logic-0), the two-AND gates
blocks the (S and R) inputs from reaching the latch and the device is
disabled.
Outputs
Comments
CK
Inputs
NO Change
AND Inputs
Invalid
13
in Figure 13.
10.2 Level Triggered D-Type latch Logic Circuit
14
As long as the clock level is Low, the AND gates outputs S and R are also
Low. With low level S and R, the output Q remains unchanged.
When the CK is High, the input S follows D and the input R follows
Therefore with CK = High, when D is High the latch will Set and when D
D.
This can be stated another way, the output Q follows the input D when
CK is High (D = 1 the latch Set, D = 0 the latch Reset).
AND Inputs
Latch
Inputs
Outputs
Comments
CK
NO
Change
15
output is connected
16
If both J and K are LOW, no matter CK is the output remains the same.
On the positive edge if J is HIGH and K is LOW, the flip-flop will SET.
On the positive edge if J is LOW and K is HIGH, the flip-flop will RESET.
If both J and K are HIGH, the flip-flop will Toggle on each clock pulse.
Outputs
Comments
CK
17
Meanings
The action of a flip-flop when it changes state on each clock pulse.
(The output switches back and forth between OFF and ON)
18