Unit 5: Sequential Logic Circuits Applications - Subjective Questions
ECE213 — Digital Electronics • Practice Questions with Detailed Answers
20 questions
Define a shift register. Explain its basic operation and list the four types of shift registers based on data movement.
A shift register is a group of flip-flops connected in a chain such that the output of one flip-flop becomes the input of the next. It is used to store and shift binary data.
Basic Operation:
- Each clock pulse shifts the stored bits by one position (left or right).
- Data is entered serially or in parallel and retrieved serially or in parallel.
Four Types Based on Data Movement:
- Serial-In Serial-Out (SISO): Data enters and exits one bit at a time.
- Serial-In Parallel-Out (SIPO): Data enters serially, all bits available simultaneously at outputs.
- Parallel-In Serial-Out (PISO): All bits loaded at once, output taken serially.
- Parallel-In Parallel-Out (PIPO): Data loaded and read in parallel simultaneously.
Shift registers are commonly built using D flip-flops and are used for data storage, data transfer, and serial-parallel conversion.
Explain the working of a Serial-In Serial-Out (SISO) shift register with a neat diagram and timing consideration.
A SISO shift register accepts data serially (one bit per clock pulse) and outputs data serially.
Construction:
- Uses D flip-flops connected in cascade.
- Output of one flip-flop feeds the input of the next.
Structure:
Data_in -> [D FF0] -> [D FF1] -> [D FF2] -> [D FF3] -> Data_out
^ ^ ^ ^
CLK--------CLK--------CLK--------CLK
Working:
- On each clock edge, the bit at the input is shifted into FF0, and each stored bit moves one position toward the output.
- For a 4-bit register, it takes 4 clock pulses to shift one bit from input to output.
Example: To load 1011, four clock pulses are needed. To read out the data, four more clock pulses are required.
Application: Used for time delay and serial data transfer between systems.
Distinguish between Synchronous and Asynchronous counters with respect to clocking, speed, and design complexity.
| Parameter | Asynchronous (Ripple) Counter | Synchronous Counter |
|---|---|---|
| Clocking | Only first FF gets external clock; others triggered by previous FF output | All FFs receive the same common clock simultaneously |
| Speed | Slower due to cumulative propagation delay (ripple effect) | Faster; all FFs change state together |
| Propagation Delay | Delays add up () | Only one FF delay () |
| Design Complexity | Simple; fewer gates | Complex; requires combinational logic for FF inputs |
| Glitches | May produce decoding spikes | Free from ripple glitches |
| Frequency | Limited by total delay | Higher operating frequency |
Summary: Asynchronous counters are simpler but slower, while synchronous counters are faster and more reliable at the cost of extra logic.
Design a 3-bit synchronous up counter using JK flip-flops. Show the excitation table and derive the flip-flop input equations.
A 3-bit synchronous up counter counts from to (0 to 7) with all flip-flops clocked simultaneously.
Count Sequence:
JK Flip-Flop Excitation:
- (LSB) toggles every clock:
- toggles when :
- toggles when :
Input Equations:
Circuit:
- FF0: tied to logic 1.
- FF1: connected to .
- FF2: connected through an AND gate of and .
All flip-flops share the same clock, ensuring synchronous operation.
Explain the working of a Ring Counter. How many valid states does an -bit ring counter have?
A Ring Counter is a circular shift register in which the output of the last flip-flop is fed back to the input of the first flip-flop.
Working:
- It is initialized (preset) with a single 1 (e.g., ).
- On each clock pulse, the 1 circulates through the flip-flops.
State Sequence (4-bit):
Number of Valid States:
- An -bit ring counter has exactly valid states.
Characteristics:
- No decoding gates required (each state directly indicates the count).
- Inefficient use of flip-flops: flip-flops give only states (compared to in binary counters).
Application: Used in sequencing operations, timing signal generation, and controlling stepper motors.
Describe the Johnson Ring Counter (Twisted Ring / Switch-tail counter). How many states does an -bit Johnson counter produce?
A Johnson Counter is a modified ring counter where the complemented output () of the last flip-flop is fed back to the input of the first flip-flop.
Working:
- Starting from , the inverted feedback fills the register with 1s, then clears them.
State Sequence (4-bit):
Number of States:
- An -bit Johnson counter produces states.
Comparison with Ring Counter:
- Ring counter: states
- Johnson counter: states (twice as efficient)
Characteristics:
- Requires simple 2-input decoding gates.
- Self-starting versions require correction logic to avoid invalid states.
Application: Frequency division, generating timing sequences, and creating multi-phase clocks.
Design an Asynchronous (Ripple) MOD-8 up counter using T flip-flops. Explain its operation with a state diagram.
A MOD-8 asynchronous counter counts from to (8 states) and requires 3 flip-flops since .
Construction:
- Three T flip-flops with (toggle mode).
- Clock applied only to FF0; output of each FF clocks the next.
Structure:
CLK -> [T FF0] Q0 -> CLK of [T FF1] Q1 -> CLK of [T FF2] Q2
Operation:
- FF0 toggles on every clock pulse.
- FF1 toggles when makes a transition.
- FF2 toggles when makes a transition.
Count Sequence:
Limitation: Propagation delays ripple through, so the total delay is , limiting maximum frequency.
What is a Bidirectional Shift Register? Explain how the direction of shift is controlled.
A Bidirectional Shift Register can shift data in both directions — left-to-right and right-to-left — depending on a control signal.
Direction Control:
- A mode control input (e.g., or ) selects the shift direction.
- : Shift Right (data moves from FF0 towards FFn)
- : Shift Left (data moves from FFn towards FF0)
Implementation:
- Each flip-flop's input is fed through multiplexers (2:1 MUX) or AND-OR logic gates.
- The MUX selects either the left-neighbor output or the right-neighbor output based on the mode control.
Logic for each stage:
Application:
- Arithmetic shift operations (multiplication/division by 2).
- Data manipulation in CPUs and reversible data transfer.
Explain the Universal Shift Register. Describe its four operating modes and mode-select logic.
A Universal Shift Register is capable of performing all shift and load operations — serial and parallel, in both directions.
Four Operating Modes (selected by two mode-select lines ):
| Operation | ||
|---|---|---|
| 0 | 0 | Hold / No change (retain data) |
| 0 | 1 | Shift Right |
| 1 | 0 | Shift Left |
| 1 | 1 | Parallel Load |
Construction:
- Uses D flip-flops with a 4-to-1 multiplexer at each stage's input.
- The MUX select lines are the mode-control bits .
MUX Inputs at each stage:
- Own output (hold)
- Right-neighbor output (shift right)
- Left-neighbor output (shift left)
- Parallel data input (load)
Example IC: The 74194 is a 4-bit universal shift register.
Application: General-purpose data storage, serial-parallel conversion, and register operations in microprocessors.
Compare Ring Counter and Johnson Counter in terms of number of states, feedback, decoding, and applications.
| Parameter | Ring Counter | Johnson Counter |
|---|---|---|
| Feedback | of last FF fed to first FF | of last FF fed to first FF |
| Number of States | states | states |
| Efficiency | Low (n states from n FFs) | Moderate (2n states from n FFs) |
| Initialization | Must preset a single 1 | Starts from all 0s |
| Decoding | No decoding gates needed | Requires simple 2-input AND gates |
| State Waveform | Single 1 circulating | Fills and empties with 1s |
| Applications | Sequencers, stepper motor control | Frequency division, multiphase clocks |
Key Point: A Johnson counter provides twice as many states as a ring counter using the same number of flip-flops, making it more efficient, but decoding is slightly more complex.
Design a synchronous MOD-6 counter using JK flip-flops. Show the state table and derive input expressions using K-maps.
A MOD-6 counter counts from to (0 to 5) and resets. It requires 3 flip-flops.
State Table:
| Present | Next |
|---|---|
| 000 | 001 |
| 001 | 010 |
| 010 | 011 |
| 011 | 100 |
| 100 | 101 |
| 101 | 000 |
States and are don't-cares (unused).
Using JK excitation and K-map simplification:
Explanation:
- toggles every clock.
- toggles on but is prevented at count 5 to force reset.
- sets at count 4 (when ) and resets when after count 5.
All flip-flops share a common clock for synchronous operation.
Explain the operation of a Parallel-In Serial-Out (PISO) shift register with the help of a diagram.
A PISO shift register loads all data bits simultaneously (in parallel) and outputs them one bit at a time (serially).
Construction:
- Uses D flip-flops with a control line (SHIFT/LOAD).
- Combinational logic (AND-OR gates) selects between parallel load and shift operation.
Structure:
P0 P1 P2 P3 (parallel inputs)
| | | |
[FF0]-[FF1]-[FF2]-[FF3] -> Serial Out
Working:
- LOAD mode (SHIFT/LOAD = 0): All four bits are loaded into the flip-flops in one clock pulse.
- SHIFT mode (SHIFT/LOAD = 1): On each subsequent clock pulse, bits shift right and appear serially at the output.
Timing: For a 4-bit register, 1 clock for loading + 3-4 clocks for shifting out.
Application: Parallel-to-serial data conversion, used in serial communication (e.g., transmitting parallel data over a single line).
Derive the maximum operating frequency of an asynchronous (ripple) counter and explain why it is lower than a synchronous counter.
In a ripple counter, each flip-flop is triggered by the previous flip-flop's output, so propagation delays accumulate.
Total Propagation Delay:
For an -bit ripple counter with each flip-flop delay :
Maximum Operating Frequency:
The clock period must be greater than the total delay:
For Synchronous Counter:
All flip-flops are clocked together, so only one flip-flop delay plus gate delay matters:
Why Ripple is Slower:
- The output is not valid until the last flip-flop has toggled.
- As increases, cumulative delay increases, reducing .
- Synchronous counters avoid this by parallel clocking.
Conclusion: Synchronous counters operate at much higher frequencies since their delay is independent of the number of stages.
Explain the operation of a Serial-In Parallel-Out (SIPO) shift register and mention one practical application.
A SIPO shift register accepts data serially (one bit per clock) and provides parallel outputs (all bits available simultaneously).
Construction:
- Cascaded D flip-flops.
- Each flip-flop output is available as a parallel output tap.
Structure:
Data_in -> [FF0] -> [FF1] -> [FF2] -> [FF3]
|Q0 |Q1 |Q2 |Q3
(parallel outputs)
Working:
- Serial data is shifted in bit by bit on each clock pulse.
- After clock pulses, the -bit word is fully loaded and available at all outputs simultaneously.
Example: To output 1011 in parallel, four clock pulses are applied to shift the bits in.
Application:
- Serial-to-parallel conversion, used in receiving serial data (e.g., from UART) and presenting it in parallel form to a processor.
Design a decade (MOD-10) asynchronous counter and explain how the reset logic works.
A decade counter counts from to (0 to 9) and then resets to . It requires 4 flip-flops ().
Basic Design:
- Start with a 4-bit ripple counter using T flip-flops (each ).
- Normally it would count 0–15; we must force a reset after count 9.
Reset Logic:
- Count 10 = (i.e., ).
- As soon as the count reaches , a NAND gate detects and produces a CLEAR signal.
- This clear signal resets all flip-flops to .
Reset Equation:
Operation:
Note: The state appears momentarily (a glitch) before reset. This is a limitation of asynchronous clearing.
Application: Used in digital clocks, frequency counters, and BCD counting.
What is a self-starting counter? Explain why Johnson and ring counters may need correction logic.
A self-starting counter is one that, regardless of its initial (possibly invalid) state, will eventually enter and follow the correct counting sequence.
Problem with Ring and Johnson Counters:
- These counters use only a subset of all possible states.
- Ring counter: valid states out of .
- Johnson counter: valid states out of .
- If the counter powers up in an invalid state, it may get stuck in an unused loop and never reach the correct sequence.
Correction Logic:
- Additional gates are added to steer invalid states back into the valid sequence.
- Johnson Counter Correction Example: The feedback into the first flip-flop is modified as:
- This ensures that if an illegal state occurs, the next transitions bring it into the valid cycle.
Conclusion: Self-starting/self-correcting logic guarantees reliable operation even after power-up glitches or noise.
Explain how a shift register can be used as a ring counter and a Johnson counter by modifying the feedback connection.
A basic shift register can be converted into two types of counters simply by changing the feedback connection from the last flip-flop to the first.
1. Ring Counter (Direct Feedback):
- Connect of the last flip-flop back to the input of the first flip-flop.
- Preset one flip-flop to 1: e.g., .
- The single 1 circulates: .
- States = .
2. Johnson Counter (Inverted Feedback):
- Connect of the last flip-flop back to the input of the first flip-flop.
- Starting from :
- States = .
Summary:
- Non-inverted feedback → Ring counter.
- Inverted (twisted) feedback → Johnson counter.
This demonstrates the versatility of shift registers in building sequential counting circuits.
Distinguish between a counter and a shift register. Give two applications of each.
| Parameter | Counter | Shift Register |
|---|---|---|
| Function | Counts number of clock pulses; goes through a fixed sequence of states | Stores and shifts binary data |
| State Change | Follows arithmetic sequence (up/down) | Data moves one position per clock |
| Feedback | Uses combinational logic to determine next count | Typically direct cascade of flip-flops |
| Output | Represents a count value | Represents shifted/stored data |
| Flip-flops used | JK, T flip-flops commonly | D flip-flops commonly |
Applications of Counter:
- Digital clocks and timers.
- Frequency division and event counting.
Applications of Shift Register:
- Serial-to-parallel and parallel-to-serial data conversion.
- Temporary data storage and delay lines.
Key Point: A counter emphasizes sequencing/counting, while a shift register emphasizes data movement/storage.
Design a 3-bit synchronous down counter using T flip-flops. Show the count sequence and derive the input equations.
A 3-bit synchronous down counter counts from down to and repeats, with all flip-flops sharing a common clock.
Count Sequence:
Analysis of Toggle Conditions:
- toggles on every clock pulse.
- toggles when (i.e., ).
- toggles when AND (i.e., ).
Input Equations (T flip-flops):
Circuit:
- FF0: tied to logic 1.
- FF1: connected to .
- FF2: fed from an AND gate of and .
Comparison with Up Counter: For an up counter, toggle conditions use outputs; for a down counter, they use complemented outputs.
Explain the concept of frequency division using counters. If a MOD-16 counter is driven by a 16 kHz clock, what are the output frequencies at each flip-flop?
Frequency Division is a key property of counters: each flip-flop in a ripple counter divides the input frequency by 2.
Principle:
- A single flip-flop in toggle mode changes state once per two input pulses, producing an output at half the input frequency.
- Cascading flip-flops divides the frequency by .
General Relation:
where is the flip-flop position (stage number).
For a MOD-16 counter (4 flip-flops) with kHz:
| Flip-Flop | Division Factor | Output Frequency |
|---|---|---|
| kHz | ||
| kHz | ||
| kHz | ||
| kHz |
Conclusion: The final flip-flop () output is 1 kHz, giving an overall division by 16. This principle is used in clock generation and timing circuits.
Define a shift register. Explain its basic operation and list the four types of shift registers based on data movement.
A shift register is a group of flip-flops connected in a chain such that the output of one flip-flop becomes the input of the next. It is used to store and shift binary data.
Basic Operation:
- Each clock pulse shifts the stored bits by one position (left or right).
- Data is entered serially or in parallel and retrieved serially or in parallel.
Four Types Based on Data Movement:
- Serial-In Serial-Out (SISO): Data enters and exits one bit at a time.
- Serial-In Parallel-Out (SIPO): Data enters serially, all bits available simultaneously at outputs.
- Parallel-In Serial-Out (PISO): All bits loaded at once, output taken serially.
- Parallel-In Parallel-Out (PIPO): Data loaded and read in parallel simultaneously.
Shift registers are commonly built using D flip-flops and are used for data storage, data transfer, and serial-parallel conversion.
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 →