Finite State Machine and Miscellaneous · Digital Circuits
9 questions · asked in 6 of 26 years (2001–2026)
MCQ 6 · NAT 31-mark 3 · 2-mark 6
2001Questions per year2026
Questions 1–5 of 9
The state transition diagram for the circuit shown is
Answer: (C)
The multiplexer selects when and when :
The flip-flop input is (a NAND), and .
When : , so and from either state.
When : , so and (the state toggles).
So the state transition diagram has: from , both and go to ; from , stays at 1 and goes to 0. This is diagram (C):
Answer: (C)
The flip-flop input is (a NAND), and .
When : , so and from either state.
When : , so and (the state toggles).
So the state transition diagram has: from , both and go to ; from , stays at 1 and goes to 0. This is diagram (C):
Answer: (C)
A traffic signal cycles from GREEN to YELLOW, YELLOW to RED and RED to GREEN. In each cycle, GREEN is turned on for 70 seconds, YELLOW is turned on for 5 seconds and the RED is turned on for 75 seconds. This traffic light has to be implemented using a finite state machine (FSM). The only input to this FSM is a clock of 5 second period. The minimum number of flip-flops required to implement this FSM is _______.
Answer: 5
Given data:
The number of unique states needed is:
The least number of flip-flops needed is:
The number of unique states needed is:
The least number of flip-flops needed is:
In the circuit shown below, a positive edge-triggered D Flip-Flop is used for sampling input data using clock CK. The XOR gate outputs 3.3 volts for logic HIGH and 0 volts for logic LOW levels. The data bit and clock periods are equal and the value of, where the parameters and are shown in the figure. Assume that the Flip-Flop and the XOR gate are ideal.
If the probability of input data bit transition in each clock period is 0.3, the average value (in volts, accurate to two decimal places) of the voltage at node X , is _______.
If the probability of input data bit transition in each clock period is 0.3, the average value (in volts, accurate to two decimal places) of the voltage at node X , is _______.
Answer: 0.82 to 0.86
The flip-flop output is sampled at each rising clock edge, so after an edge holds the bit that had just before that edge. The voltage at X is : 3.3 V when they differ, 0 V when they are equal.
When changes, it does so after a rising clock edge.
If changes in a period (probability 0.3): for the first after the edge, still equals , so . After the change, until the next edge, so V for the remaining . This is waveform (1) in the figure.
If does not change (probability 0.7): all the time, so V. This is waveform (2).
Average voltage at node X:
To two decimal places this is 0.84 V.
Answer: 0.84 V
A finite state machine (FSM) is implemented using the D flip-flops A and B, and logic gates, as shown in the figure below. The four possible states of the FSM are =00,01,10 and 11.
Assume that is held at a constant logic level throughout the operation of the FSM. When the FSM is initialized to the state =00 and clocked, after a few clock cycles, it starts cycling through
Assume that is held at a constant logic level throughout the operation of the FSM. When the FSM is initialized to the state =00 and clocked, after a few clock cycles, it starts cycling through
Answer: (D)
From the circuit:
and
Case : and .
Starting at 00, the next states are 01, then 11, then 01 again. So the machine cycles only between 01 and 11: two states.
Case : and .
Starting at 00, the next states are 01, 11, then 00 again. So the machine cycles through three states.
So only two states are visited when , which is option (D). Option (A) is wrong because four states never occur, (B) wrongly says three states for , and (C) wrongly says two states for .
Answer: (D)
and
Case : and .
Starting at 00, the next states are 01, then 11, then 01 again. So the machine cycles only between 01 and 11: two states.
Case : and .
Starting at 00, the next states are 01, 11, then 00 again. So the machine cycles through three states.
So only two states are visited when , which is option (D). Option (A) is wrong because four states never occur, (B) wrongly says three states for , and (C) wrongly says two states for .
Answer: (D)
The state diagram of a finite state machine (FSM) designed to detect an overlapping sequence of three bits is shown in the figure. The FSM has an input 'In' and an output 'Out'. The initial state of the FSM is .
If the input sequence is 10101101001101, starting with the left-most bit, then the number times 'Out' will be 1 is __________.
If the input sequence is 10101101001101, starting with the left-most bit, then the number times 'Out' will be 1 is __________.
Answer: 4
The state diagram detects the bit pattern 101 with overlap: Out = 1 only on the edge from S2 (last two bits 10) with In = 1. After a detection (S3), In = 1 goes to S1 and In = 0 goes to S2, so the last bits can be reused.
Trace for the input 1 0 1 0 1 1 0 1 0 0 1 1 0 1, starting in S0:
bit 1 (1): S0→S1, Out 0
bit 2 (0): S1→S2, Out 0
bit 3 (1): S2→S3, Out 1
bit 4 (0): S3→S2, Out 0
bit 5 (1): S2→S3, Out 1
bit 6 (1): S3→S1, Out 0
bit 7 (0): S1→S2, Out 0
bit 8 (1): S2→S3, Out 1
bit 9 (0): S3→S2, Out 0
bit 10 (0): S2→S0, Out 0
bit 11 (1): S0→S1, Out 0
bit 12 (1): S1→S1, Out 0
bit 13 (0): S1→S2, Out 0
bit 14 (1): S2→S3, Out 1
The 101 patterns are at bits 1-3, 3-5, 6-8 and 12-14. So Out is 1 four times.
Answer: 4
Trace for the input 1 0 1 0 1 1 0 1 0 0 1 1 0 1, starting in S0:
bit 1 (1): S0→S1, Out 0
bit 2 (0): S1→S2, Out 0
bit 3 (1): S2→S3, Out 1
bit 4 (0): S3→S2, Out 0
bit 5 (1): S2→S3, Out 1
bit 6 (1): S3→S1, Out 0
bit 7 (0): S1→S2, Out 0
bit 8 (1): S2→S3, Out 1
bit 9 (0): S3→S2, Out 0
bit 10 (0): S2→S0, Out 0
bit 11 (1): S0→S1, Out 0
bit 12 (1): S1→S1, Out 0
bit 13 (0): S1→S2, Out 0
bit 14 (1): S2→S3, Out 1
The 101 patterns are at bits 1-3, 3-5, 6-8 and 12-14. So Out is 1 four times.
Answer: 4
Keep practising
Topics in Digital Circuits
Number SystemsBoolean AlgebraLogic GatesLogic FamiliesCombinational CircuitsSequential Circuits
Finite State Machine and MiscellaneousYou are here
ADC and DACMemories