NivaarExam PrepOfficial exam papers ↗

04-BS-8 · December 2016

Question 1 of 5: Serial-Delay Circuit Design — Shift Register Implementation

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

Notes on this paper

National Exams — December 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 architectures, flip-flop conversion, sequential design, arithmetic circuits, serial 2's-complement conversion; Floyd, Digital Fundamentals (11th ed., Pearson) — decoders, number systems, flip-flop characteristic tables, counters and shift registers.

Question 1: Serial-Delay Circuit Design — Shift Register Implementation (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. Required delay = 12µs; available clock = 1MHz TTL (period = 1µs); the block diagram (Figure 1) shows a single serial-in/serial-out path with no parallel load or read-out requirement — only a fixed, constant delay between Data-in and Data-out.

Find. A minimum-hardware digital circuit that delays a serial bit-stream by exactly 12µs, using the 1MHz clock.

SerialData-in74LS164 #18-bit SISO (Q0..Q7)74LS164 #2 (4 of 8 used)tap at Q3 -> Data-outSerialData-outClock1 MHzclk12 clock periods x 1 us/period = 12 us total delay (Q0..Q7 of #1, Q0..Q3 of #2)
Fig. 1 — 12-stage SISO shift register realized with a 74LS164 8-bit IC cascaded into 4 stages of a second 74LS164 (only Q0–Q3 of IC #2 are used; Q4–Q7 are left unconnected).

Approach. Since the clock period (1µs) exactly matches the delay-per-stage of a single serial-in/serial-out (SISO) D-flip-flop shift register, convert the required time delay into a required stage count and realize that stage count with the fewest standard ICs.

  1. Part (a) — convert the time delay into clock periods. Clock period $T = 1/f = 1/1\text{MHz} = 1\,\mu\text{s}$. Each stage of a SISO shift register holds its bit for exactly one clock period before passing it to the next stage, so the number of stages needed is $$\boxed{N = \dfrac{12\,\mu\text{s}}{1\,\mu\text{s}} = 12 \text{ stages}}$$
  2. Choose the hardware realizing 12 D-flip-flop stages with the fewest ICs. A discrete build needs 12 separate D flip-flops (12 packages, or 3 quad-D-FF ICs, plus manual interconnect). A far more economical route is to use ready-made 8-bit SISO shift-register ICs (74LS164): one 74LS164 supplies 8 of the 12 stages; a second 74LS164 supplies the remaining 4, tapping its output at internal stage Q3 (the 4th flip-flop) rather than at Q7 — the unused Q4–Q7 outputs of IC #2 are simply left open. This uses 2 ICs (16 flip-flops physically present, 12 actually used in the signal path) instead of 12 discrete flip-flop packages plus their interconnecting wiring.
  3. Wire the clock and serial path. Serial Data-in → Serial-In of IC #1; Q7 of IC #1 → Serial-In of IC #2; Q3 of IC #2 → Serial Data-out. The 1MHz clock is bussed in parallel to the CP (clock) input of both ICs so every stage shifts on the same edge, and both MR (master reset) pins are tied to a power-on-reset line so the register starts in a known (cleared) state.
QuantityResult
Required stage count$N = 12\,\mu\text{s}/1\,\mu\text{s} = 12$ D flip-flop stages
Hardware2× 74LS164 8-bit SISO shift register (12 of 16 stages used)
WiringData-in→IC1 SI; IC1 Q7→IC2 SI; IC2 Q3→Data-out; common 1MHz clock and reset

Part (b) — minimum hardware & applications. The 12-stage SISO shift register is the minimum possible hardware for this specification for two reasons: (1) a fixed serial delay of exactly $N$ clock periods is, by definition, the function a shift register performs natively — no address decoding, counters, or read/write control logic (as a RAM-based delay line would require) are needed, so every flip-flop in the path is doing useful work and none can be removed without shortening the delay; (2) realizing the 12 stages from two standard 8-bit SISO ICs (rather than 12 discrete flip-flops) minimizes package count, board area, and interconnect — the theoretical minimum of exactly 12 flip-flop stages is achieved with the fewest possible IC insertions for that stage count. No gates are needed at all in the signal path (only the clock and reset busses), so gate count is also already at its practical minimum.

Two useful applications of a fixed serial delay line: (1) bit-timing alignment (deskewing) in serial communication links — compensating for a known propagation-time offset between two data channels (e.g., aligning a recovered clock or a parallel reference signal with a serial data stream arriving after cable/PCB trace delay) so that downstream logic samples the correct bit; (2) a tapped delay line for digital signal processing — e.g., generating a delayed copy of a signal for FIR filtering, correlation, or a simple digital echo/reverberation effect, where the shift register's stage-by-stage progression provides exactly-spaced delayed samples of the input.

← Paper overview