Topic 2 - Subtopic 2.3
Topic 2 - Subtopic 2.3
1
2.3.1 DEFINE SEQUENTIAL LOGIC CIRCUIT
• Sequential logic circuit is a memory property circuit
and have output that depend on the previous
output(s) and current inputs
• In general, a sequential circuit is synchronised by the
clock signal (pulse) – synchronised circuit
• The basic block diagram for a sequential circuit is
memory device called flip-flop that consist of 2 stable
operational states (outputs) Q and .
2
COMBINATIONAL Versus
SEQUENTIAL LOGIC CIRCUIT
Combinational Logic Circuit Sequential Logic Circuit
Is a circuit which output is determined Composed of combinational circuit and
by the input have some form of inherent memory
Are made up from basic logic NAND, The current output of a sequential
NOR or NOT gates that are combined circuit depends not only on the
or connected together to produce current input, but also on the past
more complicated switching circuits. history of inputs.
These types of circuits have no memory These types of circuits have a memory
unit. unit to store the past output.
It is Faster. It is Slower.
D flip
flop
LOGIC GATES
TRUTH TABLE
S Q
R
SYMBOL
TIMING DIAGRAM NOR
GATES SR FLIP-FLOP
9
TIMING DIAGRAM NOR GATES SR FLIP-FLOP
9
ii) NAND GATES SR FLIP FLOP (active LOW)
Basic flip-flop circuit with NAND
gates
LOGIC GATES
TRUTH TABLE
S Q
R
SYMBOL
TIMING DIAGRAM NAND GATES SR FLIP-FLOP
9
b)Clocked SR Flip-Flop LOGIC GATES SYMBOL
TRUTH TABLE
The clocked SR flip-flop consists of a basic NOR flip- flop and two AND gates.
The outputs of the two AND gates remain at logic ‘0’ as long as the clock pulse
(or CP) isSYMBOL
logic ‘0’, regardless of the S and R input values. When the clock pulse
goes to logic ‘1’, information from the S and R inputs passes through to the
basic flip-flop. With both S= 1 and R= 1, the occurrence of a clock pulse causes
both outputs to momentarily go to logic ‘0’.
When the clock pulse is removed, the state of the flip-flop is indeterminate, i.e.,
either state may result, depending on whether the set or reset input of the flip-
flop remains logic ‘1’ longer than the transition to logic ‘0’ at the end of the
pulse.
11
TRUTH TABLE TIMING DIAGRAM
INPUT CLOCK OUTPUT
S R Q
0 0 0 Not Changing
0 0 1 Not Changing
0 1 0 Not Changing
0 1 1 0
1 0 0 Not Changing
1 0 1 1
1 1 0 Not Changing
1 1 1 Invalid
CLK 2, S = 0; R = 1 ; Q =
CLK 3, S = 1; R = 0 ; Q =
CLK 4, S = 0; R = 1 ; Q =
Once Q is determined, is easily found since it is simply the complement of Q.
If clock is in 0, the flip flop will not change even though S and R have changes.
CLK 5, S = 1; R = 0 ; Q = 11
TIMING DIAGRAM
TRUTH TABLE
CLK 2, S = 0; R = 1 ; Q =
CLK 3, S = 1; R = 0 ; Q =
CLK 4, S = 0; R = 1 ; Q =
Once Q is determined, is easily found since it is simply the complement of Q.
If clock is in 0, the flip flop will not change even though S and R have changes.
CLK 5, S = 1; R = 0 ; Q = 11
C) JK Flip-Flop
TRUTH TABLE
C) JK Flip-Flop Timing Diagram
d) T- FLIP-FLOP
CLOCK T
1 0 HOLD
1 1
TRUTH TABLE
TIMING DIAGRAM
18
e) D-Flip-Flop
CLOCK D
1 0 0
1 1
TRUTH TABLE
24
2.3.6 Describe Register
As an example of the use of flip-flops, let us first
examine one of the essential elements of the
CPU: the register. As we know, a register is a
digital circuit used within the CPU to store one
or more bit of data.
It has eight input lines and three output lines. Three inputs are data: I0 , I1, and I2 ;
two are for the address: A0 and A1 ; and three are for control: CS for Chip Select, RD
for distinguishing between read and write, and OE for Output Enable. The three
outputs are for data: O0, O1, and O2 . In principle this memory could be put into a
14-pin package, including power and ground versus 20 pins for the octal flip-flop.
To select this memory chip, external logic must set CS high and also set RD
high (logical 1) for read and low (logical 0) for write. The two address lines must
be set to indicate which of the four 3-bit words is to be read or written. For a read
operation, the data input lines are not used, but the word selected is placed on the
data output lines. For a write operation, the bits present on the data input lines are
loaded into the selected memory word; the data output lines are not used.