NivaarExam PrepOfficial exam papers ↗

04-BS-8 · Undated paper

Question 3 of 5: Synchronous Even-Number Counter

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

04-BS-8 Digital Logic Circuits — May 2019
National Exams, closed book (approved calculator only; one hand-written 8.5"×11" aid sheet permitted). Format: five questions offered, each worth 25 marks; all five are solved below for completeness.

Reference texts: Mano & Ciletti, Digital Design (6th ed., Pearson) — Boolean minimization, K-maps, PAL/PLA architectures, flip-flop conversion, sequential-circuit design, code conversion; Floyd, Digital Fundamentals (11th ed., Pearson) — logic gates, shift registers, flip-flop characteristic tables, parity generation.

Question 3: Synchronous Even-Number Counter (25 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. Displayed sequence 0,2,4,6,8,10,12,14, then repeat — 8 distinct even values, each one greater than the last by 2. Negative-edge-triggered flip-flops, "of your choice."

Find. Part (a) a state table for the 8-state cycle. Part (b) minimized next-state (excitation) equations. Part (c) the wired counter circuit.

Approach. Since every displayed value is even, its binary representation always has bit 0 equal to 0 — so the counter only needs to generate the internal value $N=\text{count}/2 = 0,1,\dots,7$ in ordinary 3-bit binary and report $2N$ (i.e. hard-wire a 0 as the least-significant display digit). That collapses the problem to a standard mod-8 binary up-counter, letting JK flip-flops be used in their simplest toggle mode.

  1. Part (a) — state table. Let $Q_2Q_1Q_0$ be the internal 3-bit state (displayed value $=2\times Q_2Q_1Q_0$). The required state sequence is the ordinary binary count: $000\to001\to010\to011\to100\to101\to110\to111\to000\ (\text{repeat})$ — i.e. every state's next state is (present value $+1)\bmod 8$.
  2. Part (b) — JK excitation. Choosing JK flip-flops, the JK excitation table ($Q\to Q^+$: $0\to0\Rightarrow J{=}0,K{=}d$; $0\to1\Rightarrow J{=}1,K{=}d$; $1\to0\Rightarrow J{=}d,K{=}1$; $1\to1\Rightarrow J{=}d,K{=}0$) applied to a plain binary up-count gives the textbook toggle pattern directly, with every don't-care resolved to reproduce a pure toggle-on-carry: $$J_0=K_0=1,\qquad J_1=K_1=Q_0,\qquad J_2=K_2=Q_1Q_0$$ Bit 0 always toggles; bit 1 toggles only when $Q_0{=}1$ (i.e. on a carry out of bit 0); bit 2 toggles only when both lower bits are 1 (carry out of bit 1) — exactly ripple-carry logic implemented synchronously.
  3. Part (c) — circuit. Tie $J_0=K_0=1$; feed $Q_0$ into $J_1=K_1$; AND $Q_1\cdot Q_0$ into $J_2=K_2$; drive all three flip-flops from the same negative-edge clock so every bit updates simultaneously (synchronous, not ripple).
FF0 (Q0)DQQ̄ J K FF1 (Q1)DQQ̄ J K FF2 (Q2)DQQ̄ J K 1 1 Q0 Q1 Q0 J1=K1=Q0 J2=K2=Q1·Q0 CLK Negative-edge-triggered JK flip-flops toggle on the falling clock edge; T-type behaviour (J=K) gives the mod-8 binary sequence 000→111→000 Displayed count = 2 × (Q2Q1Q0) → 0, 2, 4, 6, 8, 10, 12, 14, repeat
Part (c). All three JK flip-flops share one negative-edge clock; only the toggle-enable ANDing distinguishes bit 2 from a plain ripple pattern, keeping the design fully synchronous.
Final results — Question 3
ItemResult
Internal state3-bit binary up-counter $Q_2Q_1Q_0=000\ldots111$
J0, K01, 1 (always toggle)
J1, K1$Q_0$, $Q_0$
J2, K2$Q_1Q_0$, $Q_1Q_0$
Displayed sequence$2\times(Q_2Q_1Q_0)_{10} = 0,2,4,6,8,10,12,14$, repeat