GATE Computer ScienceHardGATE CS
A 4-bit shift-right register Q3 Q2 Q1 Q0 has Q2 ← Q3, Q1 ← Q2, Q0 ← Q1 and Q3 ← NOR(Q3, Q2, Q1). Its state diagram has the single 4-state cycle 1000 → 0100 → 0010 → 0001. Starting from the worst possible power-up state, how many clock pulses are needed before the counter first enters this cycle?
- A. 2
- B. 3
- C. 5
- D. 4
Correct answer: B. 3
Feeding a 1 into Q3 only when Q3, Q2 and Q1 are all 0 makes every state drain into the cycle. The slowest states are 1100, 1101, 1110 and 1111: for 1111 the sequence is 1111 → 0111 → 0011 → 0001, which is on the cycle after 3 clocks.
More Digital Logic questions
- A 5-bit Johnson (twisted-ring) counter shifts right with Q4 ← NOT Q0 (and Q3 ← Q4, Q2 ← Q3, Q1 ← Q2, Q0 ← Q1) and has no self-correction…
- F(A,B,C,D) = Σm(0, 1, 5, 7, 8, 10, 14, 15). Let P be the number of prime implicants of F and M the number of different minimal…
- Two Boolean functions of three variables are NPN-equivalent if one becomes the other by permuting inputs, complementing some inputs and…
- A Moore machine has states 0 to 7 (start state 0), input alphabet {0, 1} and next-state function δ(s, 0), δ(s, 1): 0:(5,7); 1:(3,2)…
- A cyclic redundancy check uses the generator polynomial x⁴ + x + 1 (bit pattern 10011). The message 110100111011 is followed by four zero…
- An 8-bit binary counter and an 8-bit Gray-code counter each count up from 0 to 200 (200 increments). Every change of a stored bit is one…