GATE Computer ScienceHardGATE CS
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 toggle. How many more toggles does the binary counter make than the Gray-code counter?
- A. 194
- B. 197
- C. 200
- D. 203
Correct answer: B. 197
A Gray code changes exactly one bit per increment, so the Gray counter makes 200 toggles. Binary counting from 0 to N toggles 2N − (number of 1 bits of N) bits; for N = 200 = 11001000₂ that is 400 − 3 = 397. The difference is 397 − 200 = 197.
More Digital Logic questions
- A synchronous circuit is a ring of 7 combinational blocks with delays 5, 3, 6, 2, 4, 7 and 1 ns around the ring, with 3 registers (ignore…
- A two-flip-flop synchroniser resolves metastability so that the MTBF grows as e^(tr/τ), where tr is the time allowed for resolution…
- How many Boolean functions f(a, b, c, d) have an algebraic normal form (XOR of AND-monomials with coefficients 0 or 1) of degree exactly 3?
- The function f = x1·x2 + x3·x4 + x5·x6 + x7·x8 is represented as a reduced ordered BDD with the variable order x1, x3, x5, x7, x2, x4, x6…
- The majority function of five variables (f = 1 when at least three inputs are 1) is represented as a reduced ordered BDD with the natural…
- A PLA implements three functions of A, B, C, D (A is the MSB) with a shared AND plane: f1 = Σm(0, 1, 2, 3, 8, 9, 10, 11, 12); f2 = Σm(0…