BEC302 · DIGITAL SYSTEM DESIGN · Unit 4
Logic families and semiconductor memories
Unit Scope & Exam Weightage: This unit examines how logic gates are actually built and specified: TTL NAND/NOR and totem-pole outputs, noise margin, propagation delay, fan-in/fan-out, tristate TTL, ECL, CMOS families and interfacing, memory elements, programmable logic devices (PROM/PLA/PAL/FPGA), and Verilog RTL implementation. Expect 14–21 marks, with repeated 7-markers on TTL/CMOS inverter characteristics and PLD logic implementation, plus 2-markers on noise margin, fan-out and figure of merit.
Front Page: Importance-Wise Topic Roadmap (2023–26 PYQs)
| Priority | Topic (Exact Syllabus) | PYQs Asked | Marks Weightage | Tag |
|---|---|---|---|---|
| 1 | TTL NAND gate (and inverter, totem-pole NOR, specifications) | 5 (2023-24 ×2, 2024-25, 2025-26 ×2) |
7m × 5 | Survival Mode Circuit |
| 2 | CMOS families and their interfacing (inverter, VTC, NAND) | 4 (2023-24, 2024-25 ×3) |
7m × 3 + 2m | Survival Mode VTC |
| 3 | concept of programmable logic devices such as FPGA (PROM/PLA/PAL, PLD) | 4 (2023-24, 2024-25 ×3) |
7m × 2 + 2m × 2 | High-Yield |
| 4 | noise margin (figure of merit, noise immunity) | 3 (2024-25 ×2, 2025-26) |
7m + 2m × 2 | Quick Numerical |
| 5 | and logic implementation using programmable devices (PLA Gray converter) | 1 (2025-26) |
7m | Design |
| 6 | ECL | 1 (2025-26) |
7m | Comparison |
| 7 | fan-in / fan-out / propagation delay / tristate TTL | 2 (2023-24, 2024-25) |
7m + 2m | Specifications |
| 8 | memory elements | 0 direct | — | Supporting Topic |
2-Hour Last-Night Survival Checklist:
- Noise margin: , . For standard TTL: 2.4−2.0=0.4 V and 0.8−0.4=0.4 V; for 5 V CMOS: about 1.5 V each.
- Fan-out: ; LS-TTL gives 20 with mA and mA.
- Delay & figure of merit: ; figure of merit (pJ). Smaller is better.
- CMOS inverter: nMOS pull-down in series logic, pMOS pull-up in parallel logic; switching point when ; noise immunity is much better than TTL.
- PLDs: PROM = fixed AND array + programmable OR; PLA = programmable AND + programmable OR; PAL = programmable AND + fixed OR. Gray code: , , .
1. Logic Family Specifications
Logic family (2 Marks): a group of IC gates built with the same circuit technology and compatible voltage/current levels, so their outputs can directly drive their inputs. Common families: TTL, ECL, CMOS, and their sub-families (LS, HC, HCT, ALVC).
1.1 Voltage and Current Levels
| Symbol | Meaning | Standard TTL (5 V) | CMOS (5 V) |
|---|---|---|---|
| Minimum input recognised as high | 2.0 V | V | |
| Maximum input recognised as low | 0.8 V | V | |
| Minimum high-level output | 2.4 V | V | |
| Maximum low-level output | 0.4 V | V |
| Term | Definition | Why it matters |
|---|---|---|
| Fan-in | Number of inputs a gate can accept | Limits logic complexity per gate |
| Fan-out | Number of standard loads an output can drive | Insufficient current causes level degradation |
| Propagation delay | Time from 50% input transition to 50% output transition | Sets maximum clock speed |
| Noise margin | Voltage a gate tolerates before misinterpreting a level | Determines immunity to interference |
| Power dissipation | DC + dynamic power consumed | Heat and battery life |
| Figure of merit | , in picojoules | Speed–power trade-off; lower is better |
TTL worked fan-out: LS-TTL mA, mA → 20 low-level loads; mA, A → 20 high-level loads. Hence fan-out = 20.
1.2 Comparison of TTL, CMOS and ECL
| Parameter | TTL (LS) | CMOS (HC) | ECL |
|---|---|---|---|
| Technology | BJT | MOSFET | BJT in current-steering mode |
| Power per gate | ~2 mW | ~1 µW static, dynamic with | High (~25–50 mW) |
| Propagation delay | ~10 ns | ~8–15 ns | ~1 ns or less |
| Noise margin | 0.4 V | ~1.5 V at 5 V | Small (~0.2 V) |
| Fan-out | 20 | very high (>50) | high (50+) |
| Supply | +5 V | 3–15 V (HC: 2–6 V) | −5.2 V / −3.3 V |
| Strength | Robust, historical standard | Low power, high density | Fastest, used in high-speed clocks |
Examiner Tip (figure of merit / noise immunity): For the 2-marker "figure of merit and noise immunity of TTL and CMOS", write one formula and one comparison sentence each: figure of merit (TTL LS ≈20 ns×2 mW=40 pJ; HC CMOS ≈10 ns×1 µW≈0.01 pJ static), and CMOS noise immunity is superior because its logic thresholds scale with .
2. TTL Gates and Tristate TTL
2.1 TTL NAND Gate
A standard TTL NAND uses a multi-emitter input transistor, a phase-splitter transistor, and a totem-pole output pair (one pull-up transistor and one pull-down transistor).
%%{init: {'theme': 'base', 'look': 'handDrawn', 'themeVariables': {'fontFamily': "'Nunito', sans-serif", 'fontSize': '17px', 'primaryColor': '#EFEAD6', 'primaryBorderColor': '#0F766E', 'lineColor': '#23211C'}}}%%
flowchart LR
IN["Inputs A, B<br/>multi-emitter Q1"] --> PS["Phase splitter Q2"]
PS --> PU["Pull-up transistor<br/>(sources current)"]
PS --> PD["Pull-down transistor<br/>(sinks current)"]
PU --> Y["Output Y = (AB)’"]
PD --> Y
| A | B | Y |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
- If any input is low, the corresponding emitter-base junction conducts, the phase splitter is off, the pull-up transistor sources current and .
- If all inputs are high, the phase splitter conducts, turns the pull-down on and pull-up off, so .
- The totem-pole output gives low output impedance in both states and avoids the large power drain of a resistive pull-up.
2.2 TTL Inverter
The inverter is the one-input case of the NAND: tying all inputs together gives . Internally, input high → phase splitter on → output low; input low → output high. It draws a large current spike during switching because both totem-pole transistors may conduct briefly — the reason for decoupling capacitors on TTL boards.
2.3 Totem-Pole TTL NOR Gate
A TTL NOR gate uses parallel input transistors feeding the phase splitter; when any input is high, the pull-down transistor is turned on and the output goes low. Only when all inputs are low does the totem-pole pull-up drive the output high.
| A | B | |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
The totem-pole stage is identical in purpose to the NAND's: fast transitions, good fan-out and low static power compared with open-collector versions. Open-collector outputs are used when wired-AND buses or level shifting are required.
2.4 Tristate TTL
A tristate gate has a third output condition: high impedance (Z), in addition to logic 0 and 1. It is controlled by an output-enable (OE) pin:
| OE | A | Y |
|---|---|---|
| 0 | X | Z (disconnected) |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Many tristate outputs may share one bus provided only one is enabled at a time; otherwise bus contention occurs. Used in memory/peripheral data buses and multiplexed I/O.
3. Emitter-Coupled Logic (ECL)
ECL (2 Marks): a high-speed logic family based on a differential amplifier whose transistors never saturate. Signals are represented by small voltage swings around a negative reference (typically −1.3 V with a −5.2 V supply), so switching is extremely fast.
Basic circuit: two transistors share a tail current source; one base receives the input , the other a reference . If , steals the current and its collector falls; if , conducts. Emitter followers shift the collector levels to standard ECL outputs.
| Feature | ECL consequence |
|---|---|
| No saturation | Propagation delay ~0.5–2 ns, fastest BJT family |
| Current steering | Constant supply current → low switching noise |
| Small swing (~0.8 V) | Fast but poor noise margin (~0.2 V) |
| Negative supply | Requires −5.2 V; interfacing to TTL/CMOS needs level shifters |
| High power | Used in high-speed clocks, processors, telemetry |
4. CMOS Families and Interfacing
4.1 CMOS Inverter and Voltage Transfer Characteristic (VTC)
| Region of VTC | Condition | Conducting device | Output behaviour |
|---|---|---|---|
| I | pMOS linear, nMOS off | , flat | |
| II | nMOS saturated, pMOS linear | falls gradually | |
| III | Both saturated | Sharp transition; high gain | |
| IV | $V_{in}>V_{DD}- | V_{Tp} | $ |
%%{init: {'theme': 'base', 'look': 'handDrawn', 'themeVariables': {'fontFamily': "'Nunito', sans-serif", 'fontSize': '17px', 'primaryColor': '#EFEAD6', 'primaryBorderColor': '#0F766E', 'lineColor': '#23211C'}}}%%
flowchart LR
VIN["Vin = 0"] --> OFF["nMOS OFF, pMOS ON"]
OFF --> HIGH["Vout = VDD"]
VIN2["Vin = VDD"] --> ON["pMOS OFF, nMOS ON"]
ON --> LOW["Vout = 0"]
Interfacing note: HC CMOS inputs cannot be driven directly from TTL outputs at 5 V because of TTL (2.4 V) is below CMOS (3.5 V). Use HCT (TTL-compatible thresholds) or a pull-up resistor/level shifter.
4.2 Two-Input CMOS NAND from the Inverter Concept
Replace the single nMOS of the inverter by two nMOS in series (both must conduct to pull down) and the single pMOS by two pMOS in parallel (either can pull up):
| A | B | nMOS network | pMOS network | Y |
|---|---|---|---|---|
| 0 | 0 | off | on (both) | 1 |
| 0 | 1 | off | on (one) | 1 |
| 1 | 0 | off | on (one) | 1 |
| 1 | 1 | on (series) | off | 0 |
5. Memory Elements, PLDs and Verilog RTL
5.1 Memory Elements
| Type | Volatile? | Write method | Typical use |
|---|---|---|---|
| SRAM | Yes | Electrical read/write | Cache, registers |
| DRAM | Yes | Capacitor charge, needs refresh | Main memory |
| ROM / PROM | No | Mask / one-time fuse | Boot code, constants |
| EPROM | No | UV erase, electrical program | Firmware development |
| EEPROM / Flash | No | Electrical erase/program | BIOS, microcontrollers |
5.2 Programmable Logic Devices
PLD (2 Marks): a general-purpose IC containing an array of logic gates whose interconnections can be programmed by the user to realise a desired Boolean function. It replaces many small gates and reduces board area.
| Device | AND array | OR array | Best for |
|---|---|---|---|
| PROM | Fixed (decoder, all minterms) | Programmable | Lookup tables, code conversion |
| PLA | Programmable | Programmable | Complex SOP with shared product terms |
| PAL | Programmable | Fixed | Fast, simple SOP |
| FPGA | Configurable logic blocks + programmable interconnect | Same | Large systems, prototyping, DSP |
FPGA concept: an array of configurable logic blocks (CLBs), each containing look-up tables (LUTs) and flip-flops, surrounded by configurable I/O blocks and programmable routing. A hardware description language (Verilog/VHDL) is synthesised into a bit-stream that configures the LUTs and routes.
5.3 PLA Design Example — 3-bit Binary to Gray
| Product term | Fuse connection | Feeds output |
|---|---|---|
| true | ||
| , | ||
| , | ||
| , | ||
| , |
5.4 Verilog RTL for Combinational and Sequential Elements
// Combinational: 3-bit binary to Gray (unit 4 PLA function)
module gray3 (input wire [2:0] b, output wire [2:0] g);
assign g = {b[2], b[2] ^ b[1], b[1] ^ b[0]};
endmodule
// Sequential: D flip-flop with asynchronous reset
module dff (input wire clk, reset, d, output reg q);
always @(posedge clk or posedge reset)
if (reset) q <= 1'b0;
else q <= d;
endmodule
Synthesis tools (Precision RTL, Genus, Design Compiler) translate this RTL into gates/PLD LUTs; the exam questions are generic and do not assume a particular tool.
After-Topic PYQs:
- 2023-24 (7 Marks): "Explain the characteristics and specifications of TTL NAND gates, including noise margin, propagation delay, fan-in, and fan-out."
- 2025-26 (7 Marks): "Describe the construction of totem pole TTL NOR gate."
- 2024-25 (7 Marks): "Explain the working of TTL inverter using suitable diagram."
- 2024-25 (7 Marks): "Write a short notes on: (i) Fan-in (ii) Propagation delay (iii) Noise margin"
- 2024-25 (2 Marks): "Describe figure of merit and noise Immunity of TTL and CMOS."
- 2025-26 (2 Marks): "What do you mean by noise margin?"
- 2023-24 (2 Marks): "What is fan-out in logic families?"
- 2023-24 (7 Marks): "Draw a circuit diagram of a CMOS inverter. Draw its transfer characteristics and explain its operation."
- 2024-25 (7 Marks): "What do you mean by CMOS Inverter? Draw and explain the working of CMOS inverter using VTS."
- 2024-25 (2 Marks): "Implement 2- input NAND gate by using CMOS inverter."
- 2025-26 (7 Marks): "Explain the basic circuit and operation of emitter coupled logic (ECL)."
- 2023-24 (7 Marks): "Describe the concept of programmable logic devices (PLDs) and explain how they are used for logic implementation in digital systems."
- 2024-25 (7 Marks): "Differentiate between PROM, PLA and PAL."
- 2024-25 (2 Marks): "What is PLD?"
- 2025-26 (7 Marks): "Design a 3-bit binary to Gray code converter using PLA."
Solved Exam-Ready Questions
Solved Q1 (2023-24 — 7 Marks | TTL NAND Specifications)
Q: Explain the characteristics and specifications of TTL NAND gates, including noise margin, propagation delay, fan-in, and fan-out.
Solution:
- Circuit: multi-emitter input transistor → phase splitter → totem-pole output; with truth table in Section 2.1.
- Noise margin: V, V; a 0.4 V disturbance can be tolerated.
- Propagation delay: LS-TTL ns; determined by charge storage in the BJTs, hence faster than early TTL but slower than ECL.
- Fan-in: number of emitter inputs on the input transistor; typically 2–8. More inputs increase input capacitance and delay.
- Fan-out: for LS-TTL.
- Power/delay product: ~2 mW × 10 ns = 20 pJ per gate (figure of merit).
- Conclusion: TTL is robust and fast for its era but has lower noise margin and higher power than CMOS.
Solved Q2 (2024-25 — 7 Marks | TTL Inverter)
Q: Explain the working of TTL inverter using suitable diagram.
Solution:
- Tie the two inputs of a TTL NAND together: .
- A = 0: the input emitter junction conducts; the phase splitter is cut off; the upper totem-pole transistor sources current → .
- A = 1: the emitter junction reverses; current flows through the phase splitter, turning the lower transistor on and the upper off → .
- Diagram: multi-emitter input transistor with tied input, phase splitter, pull-up and pull-down pair, output Y.
- Specifications: V, V, ns, fan-out 20.
- Switching spike: both output transistors may conduct briefly, so a 0.1 µF decoupling capacitor is placed across the supply.
Solved Q3 (2025-26 — 7 Marks | Totem-Pole TTL NOR)
Q: Describe the construction of totem pole TTL NOR gate.
Solution:
- Input stage: separate transistors for A and B connected in parallel at the phase-splitter node, rather than the multi-emitter NAND transistor.
- Logic: any high input turns the phase splitter on → pull-down transistor on, pull-up off → . Only A=B=0 leaves the pull-up on → . Hence (truth table in Section 2.3).
- Totem-pole output: complementary pull-up/pull-down pair gives low output impedance in both logic states and fast transitions; it replaces a resistive load and reduces power.
- Advantages: higher fan-out, shorter rise/fall time, better noise immunity at the output than open-collector.
- Limitation: outputs cannot be wired together (unlike open-collector), unless tristate buffers are used.
- Sketch: input transistors → phase splitter → totem-pole pair → Y, labelled with the truth table.
Solved Q4 (2024-25 — 7 Marks | Fan-in, Delay, Noise Margin)
Q: Write a short notes on: (i) Fan-in (ii) Propagation delay (iii) Noise margin
Solution:
- Fan-in: number of input terminals of a gate. A TTL NAND typically has 2–8 emitters; increasing fan-in raises input capacitance and propagation delay.
- Propagation delay: , measured between 50% points. It limits the maximum clock rate for an -gate path.
- Noise margin: the tolerable unwanted voltage: , ; TTL gives 0.4 V, CMOS gives roughly –.
- Why together: these three specifications plus fan-out and power define the figure of merit of a logic family and decide which family suits a design.
Solved Q5 (2024-25 — 2 Marks | Figure of Merit and Noise Immunity)
Q: Describe figure of merit and noise Immunity of TTL and CMOS.
Solution: Figure of merit is the delay–power product (pJ): LS-TTL ≈20 pJ, HC CMOS ≈0.01 pJ static — CMOS is far better. Noise immunity is the ability to ignore unwanted voltage, measured by noise margin: TTL ≈0.4 V, CMOS ≈1.5 V at 5 V. CMOS therefore dominates portable and dense logic; TTL remains useful where drive current and historical compatibility matter.
Solved Q6 (2023-24 / 2024-25 — 7 Marks | CMOS Inverter and VTC)
Q: Draw a circuit diagram of a CMOS inverter. Draw its transfer characteristics and explain its operation. / What do you mean by CMOS Inverter? Draw and explain the working of CMOS inverter using VTS.
Solution:
- Circuit: pMOS from to output, nMOS from output to ground, gates tied to .
- : nMOS off, pMOS on → (logic 1).
- : pMOS off, nMOS on → (logic 0).
- VTC: plot versus ; flat at for low input, steep transition near , flat at 0 for high input (four regions in Section 4.1).
- Switching threshold: equating currents gives , which reduces to for matched devices and small thresholds.
- Noise margins: , ; both large because the VTC transition is sharp.
- Dynamic power: ; static power is almost zero — the key advantage over TTL.
Solved Q7 (2024-25 — 2 Marks | CMOS NAND)
Q: Implement 2- input NAND gate by using CMOS inverter.
Solution: Extend the CMOS inverter's complementary pull-up/pull-down network to two inputs: use two nMOS transistors in series from output to ground and two pMOS transistors in parallel from to output, with each input driving one pair. Only A=B=1 turns both nMOS on and pulls the output low; all other combinations leave at least one pMOS on, giving . This is the CMOS realisation of the inverter logic with two inputs.
Solved Q8 (2025-26 — 7 Marks | ECL)
Q: Explain the basic circuit and operation of emitter coupled logic (ECL).
Solution:
- Core: a differential pair with common emitter node fed by a constant-current source; 's base held at V, 's base takes .
- : steals the current; its collector voltage falls, 's rises.
- : current switches to ; collector polarities reverse. Outputs are taken through emitter followers at standard ECL levels.
- No saturation: transistors remain in the active region, so there is no stored charge to remove → ns.
- Trade-offs: constant current gives low noise but high power; the small output swing gives a small noise margin; a negative supply is needed.
- Applications: high-speed clock distribution, high-frequency counters, ECL-to-TTL level translators.
Solved Q9 (2023-24 — 7 Marks | PLDs)
Q: Describe the concept of programmable logic devices (PLDs) and explain how they are used for logic implementation in digital systems.
Solution:
- Concept: a PLD is an IC with programmable AND/OR arrays (or LUTs) that can implement arbitrary combinational and sequential functions after design.
- Types: PROM (fixed AND, programmable OR), PLA (both programmable), PAL (programmable AND, fixed OR), FPGA (configurable logic blocks + routing).
- Implementation flow: write the Boolean function in SOP form → assign product-term fuses/LUT entries → program the device → Verify with a truth table or simulation.
- Example: a 3-bit binary-to-Gray converter uses five product terms (Section 5.3) and three OR sums in a PLA.
- Advantages: fewer ICs, shorter design cycle, reprogrammability, easy design updates.
- FPGA extension: synthesised Verilog RTL configures LUTs and flip-flops, allowing complete systems on one chip.
Solved Q10 (2024-25 — 7 Marks | PROM, PLA, PAL)
Q: Differentiate between PROM, PLA and PAL.
Solution:
- PROM: AND array is a fixed full decoder (all minterms); OR array is programmable. Best for lookup tables and code converters; wasteful if few minterms are needed.
- PLA: both AND and OR arrays are programmable; product terms can be shared by several outputs. Best for complex SOP with common terms.
- PAL: AND array programmable, OR array fixed per output. Faster and cheaper than PLA but less flexible.
- Table: the three-row comparison in Section 5.2.
- Example: Gray converter with five shared product terms fits a small PLA efficiently; a PROM would decode all eight 3-bit combinations.
Solved Q11 (2025-26 — 7 Marks | PLA Gray Converter)
Q: Design a 3-bit binary to Gray code converter using PLA.
Solution:
- Equations: , , .
- Product terms: , , , , (five fuses rows).
- OR connections: ; ; .
- PLA table: mark crosses in the AND array at the true/complement rails listed in Section 5.3 and in the OR array at the corresponding output rows.
- Verification: binary
101→ Gray , , →111; consecutive binary values differ by one Gray bit ✓. - Advantage over PROM: only five product terms are programmed instead of all eight minterms.
Practice Questions (Self-Test)
- (2 Marks) What is PLD? Give one example.
- (2 Marks) What do you mean by noise margin? Write both expressions.
- (2 Marks) What is fan-out in logic families? Compute it for mA, mA.
- (7 Marks) Compare TTL, CMOS and ECL on speed, power, noise margin and supply.
- (7 Marks) Draw the VTC of a CMOS inverter and label the four regions and .
- (7 Marks) Implement in a PAL and state the programmed AND/OR links.