Programmable Logic Devices: Architectures, Programming Technologies, and Design Methodologies
Fundamentals of Programmable Logic Devices
Programmable Logic Devices (PLDs) are pre-fabricated integrated circuits containing configurable arrays of AND and OR logic gates designed to implement custom Sum-of-Products (SOP) Boolean logic.
The general architecture follows a structured data path:
Primary input variables enter the device and pass through buffer/inverter stages to produce both true and complemented literal lines.
The AND array combines selected literals to produce Boolean product terms (such as ).
The OR array sums selected product terms together to synthesize Boolean sum-of-products functions.
An optional output stage provides programmable polarity inversion, registered storage, or direct output pin drivers.

Implementing a function such as involves configuring the AND array to form the two product terms and , and configuring the OR array to route both product terms into the OR gate dedicated to output .
A single PLD chip generates multiple independent or interdependent output functions simultaneously from a shared pool of common inputs.
Hardware Schematic Representations of Gate Arrays
Gate arrays can be depicted using expanded gate schematics or standardized compact array drawings.
Expanded Representation:
Shows individual gate symbols with full distinct wiring for every literal rail and product row.
Input lines () are split by inverting/non-inverting buffers into true and complemented vertical lines.
Fuses or programmable switches are indicated at grid intersections where connections can be made or broken.

Compact Representation:
Serves as the industry-standard visual shorthand for dense gate matrices.
A single input line drawn through an AND gate represents a multi-input bus containing all available literal rails.
An '' symbol at a grid intersection denotes an intact programmable connection (link made).
The absence of an '' denotes an open connection (blown fuse or disabled link).
In the OR plane, a single input line entering an OR gate crosses all vertical product term lines, with '' designating which product terms are summed.

Small-Scale Device Configuration Example:
Hardware specifications: 4 input variables (), 6 product lines (), and 3 output functions ().
Literal rails: 8 vertical rails corresponding to .
Product term programming in the AND array:
Output programming in the OR array:

Storage Technologies and Programming Mechanisms
PLD devices are manufactured blank and programmed by modifying physical or charge-storage links at each crosspoint:
Fuse PROM (Programmable Read-Only Memory):
Configuration changes via physical links opening permanently (blown fuses).
One-time programmable (OTP); once a fuse link is vaporized, it cannot be reconstructed.
EPROM (Erasable Programmable Read-Only Memory):
Configuration relies on trapped charge on floating-gate transistors.
Erased by exposure to ultraviolet (UV) light via a quartz package window, dissipating stored charge.
EEPROM (Electrically Erasable Programmable Read-Only Memory):
Configuration utilizes floating gates modified and restored via electrical voltage pulses.
Allows in-circuit reprogramming without physical removal or UV light exposure; primary technology utilized in laboratory environments.
Architectural Comparison of Core PLD Categories:
Programmable Logic Array (PLA): Fully programmable AND section and fully programmable OR section.
Programmable Array Logic (PAL): Programmable AND section and fixed-allocation OR section.
Read-Only Memory (ROM): Fixed decoder AND section (generates all canonical minterms) and programmable/stored word pattern OR section.
Physical Boundaries:
Integrated circuits are constrained by physical packaging, input/output pin counts, and silicon area.
Pin count sets the upper limit on independent inputs, outputs, and power/ground connections.
Programmable Logic Array Architecture and Implicant Sharing
A Programmable Logic Array (PLA) provides unconstrained routing between both gate levels because both the AND and OR arrays are independently configurable.
A PLA with 4 inputs produces 8 literal rails (true and complement for each variable).

Implicant Sharing Mechanism:
Because any product line can be connected to any OR gate, identical product terms common to multiple functions do not need to be duplicated.
Example functions:
Product synthesis:
Connection assignment: connects to both and ; connects exclusively to ; connects exclusively to .
This sharing reduces the total number of physical AND gates required compared to designs that duplicate product terms.
Programmable Array Logic Architecture and Feedback Networks
Programmable Array Logic (PAL) features a programmable AND array feeding into a fixed OR array structure.
Fixed Output Allocation:
Each output OR gate is permanently hardwired to a predetermined number of AND gates (e.g., groups of 2, 3, or 4 product rows per output).
A product term synthesized on a row dedicated to one OR gate cannot be directly connected to any other OR gate.

Handling Unused Product Rows:
If an output function requires fewer product terms than the number of inputs permanently wired to its OR gate, unused product rows must be disabled.
An unused AND gate is forced to logic 0 () by programming connections to both the true and complemented rails of an input variable (e.g., ), ensuring it contributes neutral identity to the OR gate.
Internal Output Feedback:
PAL devices route output signals back into the AND array via inverting and non-inverting buffers (e.g., output returns as and rails).
Feedback serves two functions:
Synthesizing complex combinational expressions requiring more product terms than a single fixed OR gate accommodates (using an intermediate output as an input term to a subsequent output gate).
Enabling sequential circuits and state machines where present states determine next states.
Read-Only Memory as a Combinational Logic Device
A ROM operates as a generalized combinational logic device by combining an -to- decoder with an array of programmable OR connections.
Operating Principles:
The input lines serve as memory address lines.
The fixed AND array functions as a complete decoder, generating all canonical minterms ().
The programmable OR array defines the output word stored at each address by selecting which minterms activate which output lines.
Stored Truth Table Equivalence:
Implementing logic in ROM requires no Boolean minimization or Karnaugh mapping; the truth table is directly loaded into memory.
For a device with 5 address inputs () and 8 outputs ():
The 5-to-32 decoder generates 32 minterms (addresses 0 to 31).
Each selected address line reads out an 8-bit word ().
Total memory capacity: bits.
Example words: Address 0 selects word
10110110; Address 31 selects word00110011.

Output Polarity Inversion via Programmable XOR Gates
Many PLD devices feature an Exclusive-OR (XOR) gate at each output stage between the OR gate and the output pin to control output polarity.
Boolean Identity of XOR Gates:
When the control line is tied to logic 0: The signal retains its original active-high polarity.
When the control line is tied to logic 1: The signal is inverted to active-low polarity.

Hardware Optimization Benefit:
If the inverted form of a Boolean function () contains fewer product terms than the true form (), the device can synthesize in the AND/OR plane and invert it at the XOR stage using a logic 1 control link, conserving product lines.
Example Polarity Configuration:
Available product terms: , , , .
Output 1 OR gate implements: .
XOR control input is connected to 0 (non-inverted):
Output 2 OR gate implements: .
XOR control input is connected to 1 (inverted):
Code Conversion: Excess-3 to Natural BCD (PLA Implementation)
Excess-3 (XS3) code represents each decimal digit as the 4-bit binary value of .
Natural BCD (NBCD, 8421) represents each decimal digit as standard 4-bit binary.
Valid decimal digit conversions ():
Decimal 0: Excess-3
0011BCD0000Decimal 1: Excess-3
0100BCD0001Decimal 2: Excess-3
0101BCD0010Decimal 3: Excess-3
0110BCD0011Decimal 4: Excess-3
0111BCD0100Decimal 5: Excess-3
1000BCD0101Decimal 6: Excess-3
1001BCD0110Decimal 7: Excess-3
1010BCD0111Decimal 8: Excess-3
1011BCD1000Decimal 9: Excess-3
1100BCD1001
Unused Input Combinations:
Binary values 0, 1, 2 (
0000,0001,0010) and 13, 14, 15 (1101,1110,1111) never occur in Excess-3 and are assigned don't-care states () to maximize Karnaugh map grouping.

Simplified Minimal Sum-of-Products Expressions:
For output bit :
For output bit :
For output bit :
For output bit :
PLA Implementation Details:
Product terms are programmed into the AND matrix and routed to the corresponding OR gates.
The XOR output gates are connected directly to ground () to preserve active-high output polarity without inversion.
Code Conversion: BCD to 5421 Code (PAL Implementation with Feedback)
Code Definitions:
Inputs: Natural BCD bits ().
Outputs: 5421 code bits () satisfying the decimal evaluation:
Code assignments for decimal digits 0 to 9:
0:
00001:
00012:
00103:
00114:
01005:
10006:
10017:
10108:
10119:
1100Binary inputs 10 through 15 (
1010through1111) are unused and treated as don't-cares ().

Simplified Logic Equations:
Structural Resolution of Fixed-OR Constraints via Feedback:
In a PAL with an OR allocation of only 2 product terms per output gate, equations requiring 3 product terms (such as , , and ) cannot be directly synthesized in one stage.
An intermediate function is implemented using an unassigned output gate, e.g., .
The output signal is returned via internal feedback rails () to the input array.
The final output gate combines the remaining product term with the feedback term:
Comparative Synthesis of Multi-Output Functions: ROM, PAL, and PLA
Specifications for a 4-input (), 3-output () system:
ROM Implementation:
A 4-to-16 line decoder fully decodes inputs into all 16 minterms ( through ).
The programmable OR lines connect directly to the active minterms:
links to rows: 1, 3, 5, 7, 8, 9, 11.
links to rows: 0, 2, 4, 5, 7, 8, 10, 11, 12.
links to rows: 1, 2, 3, 5, 7, 10, 12, 13, 14, 15.
No algebraic minimization or implicant reduction is required.

PAL Implementation (Independent Minimization):
Because PAL product terms cannot be shared between OR gates, each output must be minimized individually using separate Karnaugh maps.
Optimized independent equations:
Gate requirements: distinct AND gates.
Any unneeded product rows in the fixed OR groups must be disabled by connecting complementary literals ().

PLA Implementation (Global Minimization with Shared Implicants):
Implicants are jointly chosen across all three K-maps to maximize the number of identical product terms.
Shared product terms:
(shared between and )
(used by )
(shared between and )
(used by )
(used by )
(shared between and )
(used by )
Resulting logic equations:
Total physical AND gates required: Reduced from 10 down to 7.

Design Problem: Eight-Segment Hexadecimal Display Decoder
System Requirements:
Inputs: 4 binary variables () representing hexadecimal numeric values 0 to 15.
Outputs: 8 segment drive lines ( through ).
Segment Topology:
: Top horizontal segment
: Upper right vertical segment
: Lower right vertical segment
: Bottom horizontal segment
: Lower left vertical segment
: Upper left vertical segment
: Middle horizontal segment
: Auxiliary leftmost vertical bar (serves as the tens-place digit '1' for values 10 through 15)

Numerical Glyph Display Profiles (Values 0–15):
0:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10: active with glyph 0 (
11: active with glyph 1 (
12: active with glyph 2 (
13: active with glyph 3 (
14: active with glyph 4 (
15: active with glyph 5 (

Architectural Implementation Trade-Offs:
ROM Design:
Directly stores the truth table as a bit array (128 total storage bits).
Requires no simplification, but uses more silicon area for the full decoder.
PAL Design:
Requires individual minimization of all 8 segment equations.
Segments with large numbers of product terms may exceed fixed OR gate widths, requiring output feedback chains to combine partial sums.
PLA Design:
Highly efficient due to extensive prime implicant overlap across segment functions (such as identical terms between digits 0 and 10, 1 and 11, etc.), drastically reducing the total required AND gate count.