Skip to content
Sahithyan's S2
Sahithyan's S2 — Computer Organization and Digital Design

Logic Gates

There are AND, OR, XOR, and their inverted versions. Usually takes 2 inputs. Can be extended for n-inputs.

XOR

Returns true iff when the number of true inputs are odd.

Universal gate

A gate is a universal gate iff a collection of that gates can be arranged to implement AND, OR & NOT gates. Can be used to implement any circuit. Is functionally complete.

NAND and NOR gates are universal.

Universal NAND

Universal NOR

Logical circuit representation

Logical circuits are a abstraction of transistor circuits. The logical circuits can be built using TTL or CMOS.

TTL

Two or more (bipolar junction) transistors are used. 0V for LOW. 5V for HIGH. Power consumption is high (even when idle). Switching is fast. Slow compared to modern CMOS. Low noise margin compared to CMOS.

CMOS

Uses 2 metal oxide semiconductors. Power consumption is very low. High speed. High noise margin.

Power consumption

Here:

  • - Capacitance of the circuit
  • - Supply voltage
  • - Charging frequency of the capacitor

Here:

  • - Supply voltage
  • - Leakage current

Logic circuits

Combinational LogicSequential Logic
MemoryNoYes
Feedback loopNoYes
OutputDepends only on inputDepends on input & memory