Industrial electronics

CPLD

Initialism of complex programmable logic device.

CPLD: field-programmable logic with built-in routing

A CPLD is a semiconductor device that sits between fixed-function logic chips and full field-programmable gate arrays (FPGAs) in complexity and density. It contains dozens to a few hundred configurable logic blocks, each capable of performing Boolean operations, plus a programmable interconnect matrix that routes signals between them. The entire device is reconfigurable in the field without desoldering, making it useful for prototyping and for handling design revisions in production equipment where downtime is costly.

Unlike a microcontroller, a CPLD executes logic operations in parallel across its entire array, not sequentially through instructions. A typical CPLD might contain 32 to 256 macrocells, each holding a lookup table (LUT) and a flip-flop for registered output. Common families include the Xilinx CoolRunner and Altera MAX V series. Configuration is stored in non-volatile memory, so the device implements the same logic immediately upon power-up without needing an external boot sequence.

CPLDs differ from FPGAs in timing predictability and resource efficiency. Because a CPLD's routing fabric is pre-determined and simpler, propagation delays between logic blocks are fixed and short, typically in the 5 to 15 nanosecond range. This determinism matters in real-time control: a conveyor sorter or motor driver needs guaranteed response times, not statistical averages. An FPGA offers higher density but less predictable timing and higher quiescent current drain.

Programming is done using hardware description languages like VHDL or Verilog, compiled down to configuration bitstreams. These are loaded into the device via JTAG (joint test action group) connectors, a standard four-wire interface found on nearly all industrial electronics. Once programmed, the CPLD requires no external memory or processor to maintain its logic state.

Common failure modes include configuration corruption from electrical noise (mitigated by adding series resistors and decoupling capacitors on power pins) and configuration data loss if the non-volatile cells degrade, which is rare but more likely in harsh chemical or radiation environments. CPLDs are preferred in manufacturing equipment where logic changes must be fast and frequent but density demands are modest: sensor interface circuits, stepper motor controllers, protocol translators, and safety interlocks all use them extensively.

More from Industrial electronics

See all

Get the Word of the Day

One industrial term every weekday, with the trade it belongs to and why it is worth knowing. No advertising.