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.
Theory in plain words
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
The same LUT hardware becomes AND, OR or XOR just by changing its four stored bits. This is why FPGAs are reconfigurable.
| Device | Capacity | Config storage | Power on | Use |
|---|---|---|---|---|
| PAL / GAL | tens of gates | EEPROM / flash | instant | glue logic, legacy |
| CPLD (MAX, XC9500) | hundreds to thousands of macrocells | flash | instant | glue logic, boot control |
| FPGA (Xilinx, Intel, Lattice, Gowin) | thousands to millions of LUTs | SRAM (loaded at boot) or flash | loads in ms to s | DSP, video, CPUs, prototypes |
| ASIC | billions of transistors | fixed silicon | instant | phones, CPUs, mass products |
Quick quiz
1. What does a 4 input LUT store?
2^4 = 16 outputs, one per input combination.
2. Which device keeps its configuration in SRAM and loads at power up?
SRAM based FPGAs are reloaded at every power on.
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.