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

Dynamic power consumption=CV2f\text{Dynamic power consumption} = CV^2 f
Here:
CC
Capacitance of the circuit
VV
Supply voltage
ff
Charging frequency of the capacitor

Static power consumption is:

Static power consumption=VIleakage\text{Static power consumption} = V I_{\text{leakage}}
Here:
VV
Supply voltage
IleakageI_{\text{leakage}}
Leakage current
Energy consumption=Power×Time\text{Energy consumption} = \text{Power} \times \text{Time}

Logic Circuits

Combinational LogicSequential Logic
MemoryNoYes
Feedback loopNoYes
OutputDepends only on inputDepends on input & memory
Written by November 3, 2026 2 min read
Was this helpful?