Home / Learn Chip Programming / PLA, PAL, CPLD and FPGA Overview

PLA, PAL, CPLD and FPGA Overview

From fixed gates to chips you can rewire in software: how programmable logic works.

In shortFrom fixed gates to chips you can rewire in software: how programmable logic works.

Theory in plain words

Programmable logic familySPLD: PLA, PAL, GAL - hundreds of gatesCPLD: instant on, tens of macrocells to thousandsFPGA: LUTs, flip-flops, RAM, DSP, hard coresASIC: fixed custom chip, lowest cost per unit at volume
Programmable logic family

What it is

Programmable logic chips contain many gates and switches whose connections you set by programming. A LUT (look-up table) can implement any logic function of its inputs.

Why we use it

You can design custom digital hardware without making a chip. FPGAs are used for prototypes, fast signal processing, protocols and as the first step before an ASIC.

How it works

A 4 input LUT stores 16 bits, one for each input combination. Programming sets those bits. Flip-flops next to LUTs add memory. A routing network connects blocks.

Where it is used

  • Prototyping chips and CPUs
  • High speed data processing
  • Glue logic, bridging old and new interfaces

A LUT can be any gate

Program a 2-input LUTTry it Yourself

The same LUT hardware becomes AND, OR or XOR just by changing its four stored bits. This is why FPGAs are reconfigurable.

DeviceCapacityConfig storagePower onUse
PAL / GALtens of gatesEEPROM / flashinstantglue logic, legacy
CPLD (MAX, XC9500)hundreds to thousands of macrocellsflashinstantglue logic, boot control
FPGA (Xilinx, Intel, Lattice, Gowin)thousands to millions of LUTsSRAM (loaded at boot) or flashloads in ms to sDSP, video, CPUs, prototypes
ASICbillions of transistorsfixed siliconinstantphones, CPUs, mass products
Tip:If your design is a few simple gates, use a small MCU or a 74HC chip. Use an FPGA when you need many things in parallel, very fast timing, or custom interfaces.

Quick quiz

1. What does a 4 input LUT store?

2. Which device keeps its configuration in SRAM and loads at power up?

Common questions

What does a 4 input LUT store?

16 bits. 2^4 = 16 outputs, one per input combination.

Which device keeps its configuration in SRAM and loads at power up?

Most FPGAs. SRAM based FPGAs are reloaded at every power on.