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 AB′AB').

    • 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.

Block diagram of a Programmable Logic Device (PLD)
  • Implementing a function such as F=AB′+CDF = AB' + CD involves configuring the AND array to form the two product terms AB′AB' and CDCD, and configuring the OR array to route both product terms into the OR gate dedicated to output FF.

  • 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 (I1,I2,I3,I4I_1, I_2, I_3, I_4) 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.

Expanded gate array representation of a 4-input, 6-product, 3-output PLD
  • 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 '×\times' symbol at a grid intersection denotes an intact programmable connection (link made).

    • The absence of an '×\times' 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 '×\times' designating which product terms are summed.

Compact array drawing for a 4-input, 6-product, 3-output device
  • Small-Scale Device Configuration Example:

    • Hardware specifications: 4 input variables (I1,I2,I3,I4I_1, I_2, I_3, I_4), 6 product lines (P1,P2,P3,P4,P5,P6P_1, P_2, P_3, P_4, P_5, P_6), and 3 output functions (O1,O2,O3O_1, O_2, O_3).

    • Literal rails: 8 vertical rails corresponding to I1,I1′,I2,I2′,I3,I3′,I4,I4′I_1, I_1', I_2, I_2', I_3, I_3', I_4, I_4'.

    • Product term programming in the AND array:

    • P1=I1⋅I2P_1 = I_1 \cdot I_2

    • P2=I1′⋅I2′⋅I3′⋅I4′P_2 = I_1' \cdot I_2' \cdot I_3' \cdot I_4'

    • P3=I1⋅I3′P_3 = I_1 \cdot I_3'

    • P4=I1′⋅I3⋅I4P_4 = I_1' \cdot I_3 \cdot I_4

    • P5=I2P_5 = I_2

    • P6=I1′⋅I2′⋅I4′P_6 = I_1' \cdot I_2' \cdot I_4'

    • Output programming in the OR array:

    • O1=P1+P2=I1⋅I2+I1′⋅I2′⋅I3′⋅I4′O_1 = P_1 + P_2 = I_1 \cdot I_2 + I_1' \cdot I_2' \cdot I_3' \cdot I_4'

    • O2=P3+P4+P5=I1⋅I3′+I1′⋅I3⋅I4+I2O_2 = P_3 + P_4 + P_5 = I_1 \cdot I_3' + I_1' \cdot I_3 \cdot I_4 + I_2

    • O3=P1+P3+P6=I1⋅I2+I1⋅I3′+I1′⋅I2′⋅I4′O_3 = P_1 + P_3 + P_6 = I_1 \cdot I_2 + I_1 \cdot I_3' + I_1' \cdot I_2' \cdot I_4'

Configured PLA mapping for three output functions

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).

PLA product term sharing architecture
  • 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:

    • F=AB+C′DF = AB + C'D

    • G=AB+AD′G = AB + AD'

    • Product synthesis:

    • P1=ABP_1 = AB

    • P2=C′DP_2 = C'D

    • P3=AD′P_3 = AD'

    • Connection assignment: P1P_1 connects to both FF and GG; P2P_2 connects exclusively to FF; P3P_3 connects exclusively to GG.

    • 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.

PAL architecture showing fixed OR allocation and internal feedback
  • 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 (00) by programming connections to both the true and complemented rails of an input variable (e.g., A⋅A′=0A \cdot A' = 0), 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 WW returns as WW and W′W' 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 nn-to-2n2^n decoder with an array of programmable OR connections.

  • Operating Principles:

    • The nn input lines serve as memory address lines.

    • The fixed AND array functions as a complete decoder, generating all 2n2^n canonical minterms (m0,m1,…,m2n−1m_0, m_1, \dots, m_{2^n-1}).

    • 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 (A,B,C,D,EA, B, C, D, E) and 8 outputs (A7…A0A_7 \dots A_0):

    • The 5-to-32 decoder generates 32 minterms (addresses 0 to 31).

    • Each selected address line reads out an 8-bit word (A7…A0A_7 \dots A_0).

    • Total memory capacity: 32×8=25632 \times 8 = 256 bits.

    • Example words: Address 0 selects word 10110110; Address 31 selects word 00110011.

ROM architecture with 5-to-32 decoder and stored word pattern

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:     Output=Signal⊕0=Signal\text{Output} = \text{Signal} \oplus 0 = \text{Signal}     The signal retains its original active-high polarity.

    • When the control line is tied to logic 1:     Output=Signal⊕1=Signal′\text{Output} = \text{Signal} \oplus 1 = \text{Signal}'     The signal is inverted to active-low polarity.

PLA with programmable XOR output polarity stage
  • Hardware Optimization Benefit:

    • If the inverted form of a Boolean function (F′F') contains fewer product terms than the true form (FF), the device can synthesize F′F' 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: AB′AB', ACAC, BCBC, A′BC′A'BC'.

    • Output 1 OR gate implements: AB′+AC+A′BC′AB' + AC + A'BC'.

    • XOR control input is connected to 0 (non-inverted):       F1=AB′+AC+A′BC′F_1 = AB' + AC + A'BC'

    • Output 2 OR gate implements: AC+BCAC + BC.

    • XOR control input is connected to 1 (inverted):       F2=(AC+BC)′=(A′+C′)(B′+C′)F_2 = (AC + BC)' = (A' + C')(B' + C')

Code Conversion: Excess-3 to Natural BCD (PLA Implementation)

  • Excess-3 (XS3) code represents each decimal digit dd as the 4-bit binary value of d+3d + 3.

  • Natural BCD (NBCD, 8421) represents each decimal digit dd as standard 4-bit binary.

  • Valid decimal digit conversions (d∈[0,9]d \in [0, 9]):

    • Decimal 0: Excess-3 0011 →\rightarrow BCD 0000

    • Decimal 1: Excess-3 0100 →\rightarrow BCD 0001

    • Decimal 2: Excess-3 0101 →\rightarrow BCD 0010

    • Decimal 3: Excess-3 0110 →\rightarrow BCD 0011

    • Decimal 4: Excess-3 0111 →\rightarrow BCD 0100

    • Decimal 5: Excess-3 1000 →\rightarrow BCD 0101

    • Decimal 6: Excess-3 1001 →\rightarrow BCD 0110

    • Decimal 7: Excess-3 1010 →\rightarrow BCD 0111

    • Decimal 8: Excess-3 1011 →\rightarrow BCD 1000

    • Decimal 9: Excess-3 1100 →\rightarrow BCD 1001

  • 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 (XX) to maximize Karnaugh map grouping.

K-maps, truth table, and PLA layout for Excess-3 to BCD converter
  • Simplified Minimal Sum-of-Products Expressions:

    • For output bit PP:     P=AB+ACDP = AB + ACD

    • For output bit QQ:     Q=B′C′+B′D′+BCDQ = B'C' + B'D' + BCD

    • For output bit RR:     R=C′D+CD′R = C'D + CD'

    • For output bit SS:     S=D′S = D'

  • 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 (00) to preserve active-high output polarity without inversion.

Code Conversion: BCD to 5421 Code (PAL Implementation with Feedback)

  • Code Definitions:

    • Inputs: Natural BCD bits (A,B,C,DA, B, C, D).

    • Outputs: 5421 code bits (P,Q,R,SP, Q, R, S) satisfying the decimal evaluation:     Value=5P+4Q+2R+S\text{Value} = 5P + 4Q + 2R + S

    • Code assignments for decimal digits 0 to 9:

    • 0: 0000

    • 1: 0001

    • 2: 0010

    • 3: 0011

    • 4: 0100

    • 5: 1000

    • 6: 1001

    • 7: 1010

    • 8: 1011

    • 9: 1100

    • Binary inputs 10 through 15 (1010 through 1111) are unused and treated as don't-cares (XX).

BCD to 5421 converter implemented on PAL with feedback
  • Simplified Logic Equations:

    • P=A+BD+BCP = A + BD + BC

    • Q=AD+BC′D′Q = AD + BC'D'

    • R=CD+B′C+AD′R = CD + B'C + AD'

    • S=A′B′D+AD′+BCD′S = A'B'D + AD' + BCD'

  • 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 PP, RR, and SS) cannot be directly synthesized in one stage.

    • An intermediate function is implemented using an unassigned output gate, e.g., X=BD+BCX = BD + BC.

    • The output signal XX is returned via internal feedback rails (X,X′X, X') to the input array.

    • The final output gate combines the remaining product term with the feedback term:     P=A+X=A+BD+BCP = A + X = A + BD + BC

Comparative Synthesis of Multi-Output Functions: ROM, PAL, and PLA

  • Specifications for a 4-input (A,B,C,DA, B, C, D), 3-output (X,Y,ZX, Y, Z) system:

    • X(A,B,C,D)=∑m(1,3,5,7,8,9,11)X(A, B, C, D) = \sum m(1, 3, 5, 7, 8, 9, 11)

    • Y(A,B,C,D)=∑m(0,2,4,5,7,8,10,11,12)Y(A, B, C, D) = \sum m(0, 2, 4, 5, 7, 8, 10, 11, 12)

    • Z(A,B,C,D)=∑m(1,2,3,5,7,10,12,13,14,15)Z(A, B, C, D) = \sum m(1, 2, 3, 5, 7, 10, 12, 13, 14, 15)

  • ROM Implementation:

    • A 4-to-16 line decoder fully decodes inputs A,B,C,DA, B, C, D into all 16 minterms (m0m_0 through m15m_{15}).

    • The programmable OR lines connect directly to the active minterms:

    • XX links to rows: 1, 3, 5, 7, 8, 9, 11.

    • YY links to rows: 0, 2, 4, 5, 7, 8, 10, 11, 12.

    • ZZ links to rows: 1, 2, 3, 5, 7, 10, 12, 13, 14, 15.

    • No algebraic minimization or implicant reduction is required.

ROM implementation with complete minterm decoder
  • 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:

    • X=B′D+A′D+AB′C′X = B'D + A'D + AB'C'

    • Y=C′D′+B′D′+A′BD+AB′CY = C'D' + B'D' + A'BD + AB'C

    • Z=AB+A′D+B′CD′Z = AB + A'D + B'CD'

    • Gate requirements: 3+4+3=103 + 4 + 3 = 10 distinct AND gates.

    • Any unneeded product rows in the fixed OR groups must be disabled by connecting complementary literals (A⋅A′A \cdot A').

PAL implementation with independent product groups
  • 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:

    • P1=A′DP_1 = A'D (shared between XX and ZZ)

    • P2=AB′C′P_2 = AB'C' (used by XX)

    • P3=AB′CDP_3 = AB'CD (shared between XX and YY)

    • P4=C′D′P_4 = C'D' (used by YY)

    • P5=A′BDP_5 = A'BD (used by YY)

    • P6=B′CD′P_6 = B'CD' (shared between YY and ZZ)

    • P7=ABP_7 = AB (used by ZZ)

    • Resulting logic equations:

    • X=A′D+AB′C′+AB′CD=P1+P2+P3X = A'D + AB'C' + AB'CD = P_1 + P_2 + P_3

    • Y=C′D′+A′BD+B′CD′+AB′CD=P4+P5+P6+P3Y = C'D' + A'BD + B'CD' + AB'CD = P_4 + P_5 + P_6 + P_3

    • Z=A′D+AB+B′CD′=P1+P7+P6Z = A'D + AB + B'CD' = P_1 + P_7 + P_6

    • Total physical AND gates required: Reduced from 10 down to 7.

PLA implementation optimizing resource count via product sharing

Design Problem: Eight-Segment Hexadecimal Display Decoder

  • System Requirements:

    • Inputs: 4 binary variables (A,B,C,DA, B, C, D) representing hexadecimal numeric values 0 to 15.

    • Outputs: 8 segment drive lines (X1X_1 through X8X_8).

    • Segment Topology:

    • X1X_1: Top horizontal segment

    • X2X_2: Upper right vertical segment

    • X3X_3: Lower right vertical segment

    • X4X_4: Bottom horizontal segment

    • X5X_5: Lower left vertical segment

    • X6X_6: Upper left vertical segment

    • X7X_7: Middle horizontal segment

    • X8X_8: Auxiliary leftmost vertical bar (serves as the tens-place digit '1' for values 10 through 15)

8-segment display segment designations X1 through X8
  • Numerical Glyph Display Profiles (Values 0–15):

    • 0: X1,X2,X3,X4,X5,X6X_1, X_2, X_3, X_4, X_5, X_6

    • 1: X2,X3X_2, X_3

    • 2: X1,X2,X4,X5,X7X_1, X_2, X_4, X_5, X_7

    • 3: X1,X2,X3,X4,X7X_1, X_2, X_3, X_4, X_7

    • 4: X2,X3,X6,X7X_2, X_3, X_6, X_7

    • 5: X1,X3,X4,X6,X7X_1, X_3, X_4, X_6, X_7

    • 6: X1,X3,X4,X5,X6,X7X_1, X_3, X_4, X_5, X_6, X_7

    • 7: X1,X2,X3X_1, X_2, X_3

    • 8: X1,X2,X3,X4,X5,X6,X7X_1, X_2, X_3, X_4, X_5, X_6, X_7

    • 9: X1,X2,X3,X4,X6,X7X_1, X_2, X_3, X_4, X_6, X_7

    • 10: X8X_8 active with glyph 0 (X1,X2,X3,X4,X5,X6X_1, X_2, X_3, X_4, X_5, X_6

    • 11: X8X_8 active with glyph 1 (X2,X3X_2, X_3

    • 12: X8X_8 active with glyph 2 (X1,X2,X4,X5,X7X_1, X_2, X_4, X_5, X_7

    • 13: X8X_8 active with glyph 3 (X1,X2,X3,X4,X7X_1, X_2, X_3, X_4, X_7

    • 14: X8X_8 active with glyph 4 (X2,X3,X6,X7X_2, X_3, X_6, X_7

    • 15: X8X_8 active with glyph 5 (X1,X3,X4,X6,X7X_1, X_3, X_4, X_6, X_7

Display font glyph representations for 0 through 15
  • Architectural Implementation Trade-Offs:

    • ROM Design:

    • Directly stores the truth table as a 16×816 \times 8 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.