Question
Consider a combination of T and D flip-flops connected as shown below. The output of the D flip-flop is connected to the input of the T flip-flop and the output of the T flip-flop is connected to the input of the D flip-flop.
Initially, both and are set to 1 (before the 1st clock cycle). The outputs
Official answer and solution
- Official answer
- B
- From
- Official GATE 2017 answer key
Solution
Derive the next-state excitation equations for the interconnected T and D flip-flops and trace the states over 4 clock cycles.
From the circuit diagram:
- The input of the T flip-flop is fed by : .
- The next state of the T flip-flop is: .
- The input of the D flip-flop is fed by : .
- The next state of the D flip-flop is: .
The initial state before the 1st clock cycle is .
Trace the circuit state clock by clock:
- Cycle 1: , and .
- Cycle 2: , and .
- Cycle 3: , and .
- Cycle 4: , and .
Thus, after the 3rd cycle , and after the 4th cycle . This corresponds to Option B.
B
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2017 Computer Science and Information Technology (CS) Session 1
- Question
- 33 of 65, printed as CS Q.33
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.