Unit 5: Introduction to Sequential Logic Circuits
I. Foundations of Sequential Logic
Sequential logic circuits are digital circuits whose outputs depend on both the present inputs and the previously stored state. Unlike combinational circuits, they contain memory elements and commonly use clock signals to coordinate state changes.
- Governing principle: The next state is a function of the present state and current inputs:
TEXTQ(t + 1) = F[Q(t), X(t)] Y(t) = G[Q(t), X(t)]
Here,Q(t)is the present state,Q(t + 1)is the next state,X(t)represents inputs, andY(t)represents outputs. - Memory: A latch or flip-flop stores one binary digit, called a bit, represented by
Q = 0orQ = 1. - Complementary output: Many memory elements provide
QandQ̅, ideally satisfyingQ̅ = NOT Q. - Clock convention: A clock is a periodic digital signal used to determine when a circuit may change state.
- A latch is generally level-sensitive.
- A flip-flop is generally edge-triggered.
- Active levels: An input may be active-high, asserted by logic
1, or active-low, asserted by logic0. - Timing requirements:
- Setup time (
tSU): Minimum time for which data must remain stable before the active clock edge. - Hold time (
tH): Minimum time for which data must remain stable after that edge. - Propagation delay (
tpd): Time between an input or clock transition and the resulting output transition.
- Setup time (
- Main classifications: Sequential circuits include storage elements, shift registers, synchronous counters, and asynchronous counters.
II. Latches — Level-Sensitive Storage Elements
A. Latch (SR and D)
A latch stores one bit and can respond throughout the active level of its control signal.
-
SR latch
-
Construction: An active-high SR latch can be formed from two cross-coupled NOR gates;
Smeans set andRmeans reset. -
Operation:
S R Next output Q(t+1)Function 0 0 Q(t)Hold 0 1 0 Reset 1 0 1 Set 1 1 Invalid Forbidden -
Characteristic relation: For valid input combinations:
TEXTQ(t + 1) = S + R̅Q(t)
Here,+means OR, adjacency means AND, andR̅means NOTR. -
Forbidden condition: In a NOR latch,
S = R = 1forces both outputs low and may produce an unpredictable final state when both inputs return to0. -
NAND form: A cross-coupled NAND latch uses active-low inputs
S̅andR̅; its forbidden condition isS̅ = R̅ = 0.
-
-
D latch
- Purpose: The D latch removes the SR latch’s forbidden input combination by generating set and reset signals from one data input.
- Inputs:
Dis data andEis enable. - Operation:
- When
E = 1, the latch is transparent andQfollowsD. - When
E = 0, it holds the previous value.
- When
- Characteristic relation:
TEXTQ(t + 1) = ED + E̅Q(t)
Here,Eis enable andDis the data input. - Use: D latches appear in temporary storage, gated data paths, and register implementations.
B. Applications and Limitations
Latches provide simple storage but require careful control of input timing.
- Applications: Switch debouncing, asynchronous control, temporary data storage, and gated memory.
- Advantage: A latch usually requires fewer gates than an equivalent edge-triggered flip-flop.
- Limitation: Because a D latch is transparent during its active level, unwanted input changes can pass to the output.
- Timing risk: Violating setup or hold time can cause metastability, during which
Qtemporarily remains between valid logic levels.
III. Flip-Flops — Edge-Triggered Binary Memory
A. Flip-flop (SR, JK, D and T)
A flip-flop stores one bit but changes state only at a specified rising or falling clock edge.
-
SR flip-flop
- Operation: At the active clock edge,
S = 1, R = 0sets the output, whileS = 0, R = 1resets it. - Hold state:
S = R = 0preservesQ(t). - Restriction:
S = R = 1is forbidden in the basic SR flip-flop. - Characteristic equation:
TEXTQ(t + 1) = S + R̅Q(t), provided SR ≠ 1
- Operation: At the active clock edge,
-
JK flip-flop
-
Purpose: The JK design removes the forbidden state of the SR flip-flop.
-
Operation:
J K Q(t+1)Function 0 0 Q(t)Hold 0 1 0 Reset 1 0 1 Set 1 1 Q̅(t)Toggle -
Characteristic equation:
TEXTQ(t + 1) = JQ̅(t) + K̅Q(t) -
Feedback: Present outputs are fed back internally so that
J = K = 1complements the stored state.
-
-
D flip-flop
- Operation: The value at
Dimmediately before the active clock edge becomes the next output. - Characteristic equation:
TEXTQ(t + 1) = D - Advantage: A single data input gives unambiguous operation and makes the device suitable for registers.
- Example: If
D = 1at a rising clock edge,Qbecomes1after the propagation delay, even ifDlater changes between edges.
- Operation: The value at
-
T flip-flop
- Operation:
T = 0holds the state, whereasT = 1toggles it at each active clock edge. - Characteristic equation:
TEXTQ(t + 1) = T ⊕ Q(t)
Here,⊕denotes XOR. - Frequency division: With
T = 1, the output frequency is half the clock frequency,fQ = fCLK/2. - Use: T flip-flops are fundamental building blocks of binary counters.
- Operation:
B. Control Inputs and Timing
Flip-flops may include additional inputs that operate independently of the clock.
- Preset: An asynchronous preset forces
Q = 1. - Clear: An asynchronous clear forces
Q = 0. - Priority: Preset and clear normally override clocked inputs, but asserting both may be prohibited.
- Edge symbols: A triangle at the clock input denotes edge triggering; an added bubble denotes falling-edge triggering.
- Limitation: Excessive clock skew or setup-and-hold violations can produce incorrect or metastable states.
IV. Master-Slave Storage
A. Master-slave flip-flop
A master-slave flip-flop uses two latches in cascade, enabled on opposite clock levels, so the external output changes only once per clock cycle.
- Master stage: For one clock level, the master accepts and stores the input while the slave remains disabled.
- Slave stage: At the opposite clock level, the master closes and the slave copies the master’s stored state.
- Two-phase action:
- With
CLK = 1in a common arrangement, the master is active and the slave holds its output. - When
CLKbecomes0, the master holds and the slave updatesQ.
- With
- Race-around prevention: In a level-triggered JK circuit with
J = K = 1, repeated toggling can occur if the clock pulse is wider than the propagation delay. Master-slave isolation permits only one externally visible toggle per cycle. - Effective triggering: Depending on latch polarity, the complete device behaves like a rising-edge or falling-edge flip-flop.
- Trade-off: Two stages increase circuit complexity and propagation delay compared with a single latch.
V. Flip-Flop Transformation
A. Conversion of basic flip-flop
Flip-flop conversion determines the input logic required to make one available flip-flop imitate another type.
- Conversion procedure:
- Write the desired flip-flop’s present-state and next-state table.
- Use the available flip-flop’s excitation table to find the required inputs.
- Minimize each input expression using Boolean algebra or Karnaugh maps.
- Connect combinational logic to generate those inputs.
-
Excitation requirements:
Transition SR inputs JK inputs D input T input 0 → 0S=0, R=XJ=0, K=X0 0 0 → 1S=1, R=0J=1, K=X1 1 1 → 0S=0, R=1J=X, K=10 1 1 → 1S=X, R=0J=X, K=01 0 Here,
Xmeans “don’t care.” - JK-to-D conversion: Requiring
Q(t+1) = Dgives:
TEXTJ = D K = D̅ - D-to-T conversion: Since a T flip-flop must hold for
T = 0and toggle forT = 1:
TEXTD = T ⊕ Q(t) - JK-to-T conversion:
TEXTJ = T K = T - Significance: Conversion allows a design to use available integrated circuits while preserving the required state behavior.
VI. Shift Registers — Clocked Data Movement
A. Operation of basic shift registers (SISO, SIPO, PISO, PIPO)
A shift register is a chain of flip-flops that stores a binary word and transfers data serially, in parallel, or both.
-
SISO: Serial-In Serial-Out
- Operation: One bit enters the first stage per clock pulse, and stored bits move one position toward the serial output.
- Delay: In an
n-stage SISO register, a bit requiresnactive clock edges to travel from input through all stages. - Use: Digital delay lines and serial data transfer.
-
SIPO: Serial-In Parallel-Out
- Operation: Bits enter serially but are read simultaneously from all flip-flop outputs.
- Example: Loading a four-bit word requires four clock pulses; the four outputs then represent the complete word.
- Use: Serial-to-parallel conversion, such as expanding a serial communication line into multiple outputs.
-
PISO: Parallel-In Serial-Out
- Operation: A load control places all input bits into the register simultaneously; later clock pulses shift them out one at a time.
- Control modes:
LOADselects parallel loading, whileSHIFTselects serial movement. - Use: Parallel-to-serial conversion and data transmission.
-
PIPO: Parallel-In Parallel-Out
- Operation: All bits are loaded together on an active clock edge and are available together at the outputs.
- Movement: It functions primarily as a storage or transfer register rather than a serial shifter.
- Use: Buffering binary words between digital subsystems.
B. Register Characteristics
Shift-register performance is determined by its capacity, clock rate, and data organization.
- Capacity: A register containing
nflip-flops stores ann-bit word. - Direction: Shift registers may shift right, shift left, or operate bidirectionally.
- Timing: All stages commonly share one clock, making ordinary shift registers synchronous.
- Applications: Data conversion, temporary storage, sequence generation, arithmetic shifting, and communication interfaces.
VII. Ripple Counting
A. Asynchronous counter (UP/DOWN/Mod-N)
An asynchronous or ripple counter clocks only its first flip-flop directly; each later stage is triggered by the output of the preceding stage.
- Ripple operation: State changes propagate stage by stage rather than occurring simultaneously.
- Binary capacity: A counter with
nflip-flops has up to:
TEXTNumber of states = 2^n - Frequency division: Each toggling stage divides its input frequency by two:
TEXTfn = fCLK / 2^n
Here,fnis the frequency at stagen, andfCLKis the external clock frequency.
-
UP counter
- Sequence: A three-bit binary UP counter follows
000, 001, 010, 011, 100, 101, 110, 111, then repeats. - Interpretation: The least significant bit toggles every clock pulse; each higher bit toggles at half the preceding bit’s frequency.
- Hardware: T flip-flops with
T = 1, or JK flip-flops withJ = K = 1, provide toggle action.
- Sequence: A three-bit binary UP counter follows
-
DOWN counter
- Sequence: A three-bit DOWN counter follows
111, 110, 101, 100, 011, 010, 001, 000. - Direction control: The clock connection may use either
QorQ̅, depending on flip-flop triggering polarity. - UP/DOWN selection: Logic gates or multiplexers select the appropriate output path to determine counting direction.
- Sequence: A three-bit DOWN counter follows
-
Mod-N counter
- Definition: A modulus-
Ncounter passes through exactlyNstates before returning to its initial state. - Required stages:
TEXTn = ceil(log2 N)
Here,nis the number of flip-flops andceilmeans rounding upward. - Example: A Mod-10 counter requires four flip-flops because
2^3 < 10 ≤ 2^4; decoding binary1010can asynchronously clear the counter to0000. - Truncated sequence: When
N < 2^n, reset logic prevents unused states from forming part of the normal count.
- Definition: A modulus-
B. Advantages and Limitations
Asynchronous counters are economical but become less reliable at high speed.
- Advantage: Their hardware is simple because only the first stage receives the external clock.
- Propagation delay: For
nstages, the worst-case settling time is approximately:
TEXTttotal ≈ n × tpd - Transient states: Outputs do not change simultaneously, so decoding logic may briefly observe false intermediate counts.
- Applications: Low-speed event counting, clock division, timers, and simple frequency counters.
- Limitation: High-speed or precisely decoded systems generally require synchronous counters, whose flip-flops share a common clock.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill. The rest comes out of a student's own pocket: the domain, the storage, and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason. to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it. What it pays for →