A CPLD — Complex Programmable Logic Device — is a non-volatile integrated circuit whose internal logic is defined by the user after manufacture, built from a structured fabric of macrocells and a global interconnect. The definition sounds dry until each clause is unpacked, because each clause is a deliberate engineering choice inherited from the programmable devices that came before it, and together the clauses explain why the part class has outlived several flashier successors.
The lineage clause first: CPLDs descend from the small programmable devices of the late 1970s — PAL and GAL — which fused simple AND-OR arrays into one-time-programmable chips. “Complex” is relative to those: where a PAL offered a handful of fixed-output arrays, a CPLD offers dozens to hundreds of macrocells, each a flexible unit combining a programmable AND / fixed OR product-term array with a register that can be clocked, set, reset and enabled under program control. Product terms are shareable between neighbours through expander structures, so wide logic expressions do not force a device upgrade. Our note on applications and characteristics shows how these units behave in real boards.
The register inside each macrocell is what separates a CPLD from its purely combinational ancestors. With a flip-flop under program control, the device implements state machines, counters and synchronisers — sequential behaviour, not just gate replacement — while keeping the deterministic timing of the product-term array in front of it. I/O blocks complete the picture: each pin can be an input, an output or bidirectional, tri-state buffers take global enables, and macrocell feedback paths let a pin serve the board while its register works hidden inside. The packaging of all this into blocks of sixteen macrocells is engineering convenience; the architecture itself would work with any grouping, and the datasheet grouping simply makes fitting and timing analysis predictable for the designer.
The fabric clause: macrocells are grouped into Logic Array Blocks, and every block connects to every other through a single global Programmable Interconnect Array. The PIA is the defining architectural contrast with FPGA-class fabrics — instead of channel routing whose delay accumulates with distance, every path through the PIA carries one fixed, published delay. Timing predictability is therefore not a tuning achievement but a structural guarantee, and it is written into every datasheet as a pin-to-pin number that holds for any design the device can fit.
The non-volatile clause: configuration lives in EEPROM cells on the die, programmed once and retained for decades, loaded in-system through a four-pin JTAG port. A CPLD wakes with its logic already in place — no configuration memory to boot from, no window in which the board runs unprogrammed. The same fabric, and the same in-system port, carry the security bit that disables readback; what that means when a design must be recovered is the subject of our security analysis.
A CPLD is not a small FPGA. Lookup-table fabrics, volatile configuration, channel routing and register-rich density belong to the other class, and the boundary between them decides real design and recovery questions; our side-by-side comparison sets the two architectures against each other in detail. The definition also explains the recovery economics: because the content is a fitted netlist rather than a program, recovering a locked device is a matter of logic characterisation or readback — as in our EPM7064 extraction case — and rebuilding a design walks the standard development process in reverse.
For a working definition, then: a CPLD is a user-configured digital IC whose logic consists of product-term macrocells on a fixed-delay global interconnect, whose configuration is non-volatile and in-system programmable, and whose behaviour is fully specified by pin-to-pin timing numbers that do not depend in any way on the design fitted. Every recovery question about these devices — can it be read, can it be locked, can it be rebuilt, can its timing be trusted — is answered inside that sentence.
Defined precisely, the CPLD is the deterministic, instant-on middle of the programmable-logic world — and the definition is the specification sheet for everything that follows from it.