UNIHIVE

Study Hub UNIPORT CSC 284

CSC 284 · Introduction to Logic Design

Logic gates and their physical properties

The gates and their symbols, universal gates, fan-in, fan-out, propagation delay, tri-state outputs and logic families.

Our notes

2 min read

The gates

  • AND, OR, NOT as in Boolean algebra.
  • NAND = NOT AND: 0 only when all inputs are 1.
  • NOR = NOT OR: 1 only when all inputs are 0.
  • XOR (A ⊕ B = A'B + AB'): 1 when the inputs differ. Used in adders, parity and comparators.
  • XNOR: 1 when the inputs are equal.

Learn the symbols and truth tables of all seven.

Universal gates

NAND alone (or NOR alone) can make every function.

  • NOT A = A NAND A.
  • A AND B = (A NAND B) NAND (A NAND B).
  • A OR B = (A NAND A) NAND (B NAND B).

Factories favour NAND because it is the cheapest gate in CMOS.

Worked example

Build F = AB + CD with NAND gates only. By De Morgan, F = ((AB)'(CD)')'. So: one NAND for A and B, one for C and D, and a third NAND of the two outputs: three 2-input NAND gates.

Physical properties

  • Fan-in: number of inputs a gate has.
  • Fan-out: how many gate inputs one output can drive without the voltage going out of range (standard TTL: 10).
  • Propagation delay: time from an input change to the output change, a few nanoseconds for common gates. Delays add up along a path, setting the top speed of a circuit.
  • Power dissipation and noise margin (how much noise a signal can take before it is misread).
  • Timing diagrams show inputs and outputs against time, including the delay.

Worked example: delay

A signal passes through 4 gates in series, each with 8 ns delay. Total delay = 32 ns, so the inputs cannot change faster than about once every 32 ns (about 31 MHz).

Tri-state and open-collector outputs

  • A tri-state output can be 0, 1 or high impedance (disconnected), controlled by an enable pin. Many devices share one bus, but only one drives it at a time.
  • Open-collector/open-drain outputs can be wired together (wired-AND), used on I²C.

Logic families

  • Diode logic and RTL (resistor-transistor): early, slow.
  • TTL (transistor-transistor logic, 74 series): 5 V, robust, more power.
  • ECL (emitter-coupled): very fast, high power.
  • CMOS (4000 and 74HC series, and all modern chips): very low static power, high density. MOS technology made VLSI possible.

Integration scale

SSI (up to about 10 gates), MSI (10 to 100), LSI (100 to 10,000), VLSI (beyond): today's processors hold billions of transistors.

Exams usually ask

  • Draw symbols and truth tables; build functions from NAND or NOR only.
  • Define fan-in, fan-out and propagation delay; compare TTL and CMOS.

Common mistake

Treating XOR as OR: XOR is 0 when both inputs are 1.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

Practise

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All CSC 284 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.