GATE Computer ScienceModerateGATE CS (PYQ pattern)
A rising-edge D flip-flop has D = 1 permanently and an active-low asynchronous clear. The flip-flop starts at Q = 0. Rising clock edges occur at 10, 20, 30, 40, 50 and 60 ns, and the clear input is asserted (low) from 25 to 35 ns and from 52 to 58 ns. How many times does Q change value between 0 and 70 ns?
- A. 5
- B. 3
- C. 4
- D. 6
Correct answer: A. 5
Q rises at 10 ns, falls when the clear starts at 25 ns, stays 0 at the 30 ns edge (clear active), rises at 40 ns, falls at 52 ns, and rises at 60 ns: 0→1, 1→0, 0→1, 1→0, 0→1 = 5 changes.
More Digital Logic questions
- A Mealy machine has states A (start), B, C and one input X; entries are next state / output. A: X=0 → A/0, X=1 → B/0. B: X=0 → C/0, X=1 →…
- A 3-bit register Q2Q1Q0 is clocked synchronously with D2 = Q1, D1 = Q0 and D0 = (Q2 + Q1)' (NOR). Starting at 000 it follows a repeating…
- A Moore machine has states A to H, start state A and one input X. Each row lists: state, next state for X=0, next state for X=1, output. A…
- A Moore machine outputs 1 exactly when the last four serial input bits are 0101 or 1010 (overlapping allowed) and 0 otherwise, including…
- A circuit receives a BCD digit ABCD (A is the MSB; inputs 1010 to 1111 never occur and may be treated as don't-cares) and outputs F = 1…
- F(A,B,C,D) = 1 when exactly two or exactly three of the four inputs are 1. How many literals does its minimal sum-of-products contain…