NivaarExam PrepOfficial exam papers ↗

04-BS-8 · May 2016

Question 3 of 5: Short-Answer Set — Flip-Flop Conversion, Boolean Evaluation, Characteristic Tables, Memory Sizing, Gate Network

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

Notes on this paper

National Exams — May 2016 — 04-BS-8 Digital Logic Circuits. Three-hour, closed-book exam (Casio or Sharp approved calculator only; one hand-written 8.5"×11" aid sheet permitted). Format: five questions offered, each worth 25 marks (100 total); any four constitute a complete paper and only the first four appearing in the answer book are marked. All five are solved below for completeness.

Reference texts: Mano & Ciletti, Digital Design (6th ed., Pearson) — Boolean minimization, PAL/PLA/FPGA architectures, flip-flop conversion, sequential design, arithmetic circuits; Floyd, Digital Fundamentals (11th ed., Pearson) — decoders, number systems, flip-flop characteristic tables, counters.

Question 3: Short-Answer Set — Flip-Flop Conversion, Boolean Evaluation, Characteristic Tables, Memory Sizing, Gate Network (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.

Part (a) — Given/Find. A single-input D latch/flip-flop must be built from one SR flip-flop plus ordinary gates. Approach. Tie $S=D$ directly and drive $R=\overline{D}$ through one inverter, which guarantees $S$ and $R$ are always complementary — the SR flip-flop’s forbidden $S{=}R{=}1$ state can never occur, so its behaviour collapses exactly to $Q^{+}=D$.

SRflip-flopSRQQ′QCPD
D flip-flop built from one SR flip-flop: S=D, R=D′ via a single inverter.

With $S=D,\ R=\overline{D}$: on $D=1$, $(S,R)=(1,0)$ → SET, $Q^{+}=1$; on $D=0$, $(S,R)=(0,1)$ → RESET, $Q^{+}=0$. In both cases $Q^{+}=D$, confirming the conversion — only ONE inverter and the SR flip-flop itself are needed.

Part (b) — Given. $A=1,\ B=0,\ C=1$; $X = \overline{A\oplus B}\cdot C$ (the bar covers the XOR, i.e. $A$ XNOR $B$, ANDed with $C$). Find. $X$.

  1. Evaluate the XNOR. $A\oplus B = 1\oplus 0 = 1$, so $\overline{A\oplus B}=\overline{1}=0$.
  2. AND with C. $X = 0\cdot C = 0\cdot 1 = 0$.
QuantityResult
$X$$\boxed{X=0}$

Part (c) — Given. The characterization table: $(A,B)=(0,0)\to Q_n$; $(1,0)\to 0$; $(0,1)\to 1$; $(1,1)\to Q_n$. Find. Which clocked flip-flop this describes, with justification.

  1. Derive the characteristic equation. Reading the four rows as minterms of $(A,B,Q_n)$ gives $$Q^{+} = A'B + Q_n\cdot(A \odot B)$$ (hold when $A=B$; force to $B$’s value when $A\ne B$) — verified against all 8 $(A,B,Q_n)$ combinations by brute force.
  2. Rule out JK and D, confirm SR-type. A JK flip-flop TOGGLES at $(J,K)=(1,1)$; here $(A,B)=(1,1)$ instead HOLDS $Q_n$ — so it is not JK. A D flip-flop’s next state depends on only one input, not two independent ones — not D either. The table matches the classic SR flip-flop shape with $A=R$ (reset dominant on row 2) and $B=S$ (set on row 3), except that the normally-forbidden $S{=}R{=}1$ case is explicitly DEFINED here to hold $Q_n$ rather than left indeterminate — a common, race-free way an SR flip-flop is specified in practice (e.g. a gated/clocked SR built so simultaneous S,R cannot glitch the cross-coupled pair).
QuantityResult
Identification$\boxed{\text{SR flip-flop}}$ (A = Reset, B = Set; S=R=1 defined to hold)

Part (d) — Given. Memory size = 4 Kbyte, byte-wide (8-bit) read. Find. The correct (address lines, data lines) pairing among the four options.

  1. Data lines. "Byte-wide read" means each addressed location returns one byte $\Rightarrow$ 8 data lines — this eliminates option (i)’s 32.
  2. Address lines. 4 Kbyte $=4\times 1024=4096=2^{12}$ addressable byte locations, so exactly $\log_2 4096=12$ address lines are needed to uniquely select every byte — not 4000 (not a power of two, and conflates capacity with line count), not 14 ($2^{14}=16384$, a 16 Kbyte space), not 10 ($2^{10}=1024$, only 1 Kbyte).
QuantityResult
Correct option$\boxed{\text{(iii) 12 address lines and 8 data lines}}$

Part (e) — Given. The gate network below: a top gate with inputs A and (bubble-inverted) B feeding a NAND; a lower path where A is inverted then ORed with C, that result then ORed with B, and both stage outputs feeding a final NAND to produce Z. Find. The simplified Boolean expression for Z.

[Figure not reproduced: The given gate network for Q3(e), redrawn: two OR stages feed a final NAND with the top NAND(A,B′) branch. See the official exam paper.]

  1. Trace each gate. Top gate: NAND with an inverted-B input $\Rightarrow G_1=\overline{A\cdot\overline{B}}=A'+B$. Lower path: $G_2=\overline{A}+C$ (first OR), then $G_3=B+G_2=B+A'+C$ (second OR).
  2. Combine at the final NAND. $Z=\overline{G_1\cdot G_3}$. Since $G_1=A'+B$ and $G_3=A'+B+C=G_1+C$, the absorption law gives $G_1\cdot G_3=G_1\cdot(G_1+C)=G_1$. So $$Z=\overline{G_1}=\overline{A'+B}=A\cdot B'$$
QuantityResult
Simplified $Z$$\boxed{Z = A\cdot B'}$ (independent of C)