04-BS-8 · December 2016
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
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 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.
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.
| Quantity | Result |
|---|---|
| Required stage count | $N = 12\,\mu\text{s}/1\,\mu\text{s} = 12$ D flip-flop stages |
| Hardware | 2× 74LS164 8-bit SISO shift register (12 of 16 stages used) |
| Wiring | Data-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.