Question: A flip-flop has a p ns delay from the clock transition until its output changes. Assume a gate delay of g ns for each gate used in the circuit. Determine the maximum frequency at which an n-bit counter can operate if the counter is
(a) synchronous and
(b) ripple.