Digital Logic Design: Combinational Logic with PLDs

Implementing Constant Logic Values in PLAs

  • A Programmable Logic Array (PLA), such as a 4×34 \times 3 PLA device (4 inputs, 3 outputs), can be specifically programmed to produce constant logic 00 or logic 11 outputs across its OR gates.

  • Constant 00 generation procedure:

    • All four inputs and their respective complements (I1,Iˉ1,I2,Iˉ2,I3,Iˉ3,I4,Iˉ4I_1, \bar{I}_1, I_2, \bar{I}_2, I_3, \bar{I}_3, I_4, \bar{I}_4) are connected to the first AND gate.

    • Because an input and its complement are both ANDed together (e.g., I1⋅Iˉ1=0I_1 \cdot \bar{I}_1 = 0), the product term generated by this first AND gate is strictly 00: P1=0P_1 = 0.

    • Product term P1P_1 is connected to the input of the first OR gate, resulting in a constant OR gate output of logic 00

  • Constant 11 generation procedure:

    • All inputs to the second AND gate are completely disconnected.

    • Disconnecting all inputs causes the product term generated by this second AND gate to default to a constant logic 11: P2=1P_2 = 1

    • Product term P2P_2 is connected to the input of the second OR gate, resulting in a constant OR gate output of logic 11

  • Unconnected OR gate behavior:

    • When no product term line is connected to the input of an OR gate (such as the third OR gate in the 4×34 \times 3 PLA), its output naturally defaults to logic 00

Odd-Prime Number Generator Implementation

  • An Odd-Prime Number generator can be implemented by programming a 4×34 \times 3 PLA device.

  • Device limitations and scope:

    • The PLA contains only six product terms (six AND gates), which directly limits detection to the first six Odd-Prime numbers: 11, 33, 55, 77, 1111, and 1313

    • Two additional outputs are programmed to detect Odd-Prime multiples of 1515 and 3939 respectively.

  • Product term mapping:

    • Product terms P1,P2,P3,P4,P5,P_1, P_2, P_3, P_4, P_5, and P6P_6 represent minterms 1,3,5,7,11,1, 3, 5, 7, 11, and 1313 respectively.

  • OR gate summation configurations:

    • First OR gate: Sums all six minterms (1,3,5,7,11,131, 3, 5, 7, 11, 13) to produce an output of logic 11 whenever any of these first six Odd-Prime numbers are present at inputs I1,I2,I3,I_1, I_2, I_3, and I4I_4

    • Second OR gate: Sums minterms 1,3,1, 3, and 55, yielding an output of logic 11 when any of these three specific minterms are applied at the PLA inputs.

    • Third OR gate: Sums minterms 1,3,1, 3, and 1313, producing an output of logic 11 when any of these three specific inputs are detected.

Generic Array Logic (GAL) Architecture and Operation

  • The Generic Array Logic (GAL) architecture features a reprogrammable AND gate array coupled with a fixed OR gate array.

  • E2CMOSE^2CMOS Technology and Array Structure:

    • Reprogrammability is achieved using E2CMOSE^2CMOS (Electrically Erasable CMOS) logic cells instead of permanent hardware fuses.

    • An E2CMOSE^2CMOS cell is located at every column-row intersection within the array structure.

    • Cell operating states:

    • 'On' state: Connects the column line to the row line.

    • 'Off' state: Disconnects the column line from the row line.

  • Sum-of-Products (SOP) realization:

    • Appropriate E2CMOSE^2CMOS cells are programmed to the 'on' state to connect required literals (A,Aˉ,B,BˉA, \bar{A}, B, \bar{B}) to specific AND gates, generating desired product terms to implement SOP functions (e.g., AB+AˉB+ABˉAB + \bar{A}B + A\bar{B}).

  • Standard GAL Dimensions and I/O:

    • A typical GAL device includes 88 or more inputs to the reprogrammable AND array.

    • Features 88 or more input/output (I/O) pins connected to dedicated Output Logic Macro Cells (OLMCs).

  • OLMC Functionality:

    • OLMCs can be independently programmed for Combinational Logic (used for combinational circuits) or Registered Logic (based on sequential circuits containing storage elements).

PLD Identification, Programming Procedures, and In-System Programming

  • Standard GAL Part Numbering System:

    • Prefix: GAL designating Generic Array Logic.

    • Input Count: A 22-digit number specifying the number of dedicated inputs (e.g., 16).

    • Architecture Indicator: V, designating a variable output configuration.

    • Output Count: A number specifying the total output count (e.g., 8).

    • Example: GAL16V8 represents a Generic Array Logic device with 1616 inputs, variable output configuration, and 88 outputs.

  • Complete PLD Programming Workflow:

    1. Logic Entry: Enter the target logic design into computer programming software as a Boolean equation, truth table, or state diagram.

    2. Error Correction: Detect and correct any syntax or entry errors identified during the input phase.

    3. Compilation & Minimization: The software compiler processes the input file, translates it into a standard format, and minimizes the Boolean logic expressions.

    4. Verification via Test Vectors: Minimized logic is verified using test vectors (hypothetical input patterns) to simulate and test the circuit design prior to hardware programming.

    5. Debugging: If flaws or errors are detected during test vector simulation, the design must be debugged and submitted for recompilation.

    6. File Generation: After final design verification, the compiler generates a documentation file and a fuse map file.

    7. Device Programming: The fuse map file is downloaded to a physical programmer hardware unit, which programs the PLD device placed in the programmer socket.

  • In-System Programming (ISP):

    • Allows PLD devices to be programmed or re-programmed while mounted directly on a circuit board.

    • Utilizes a standardized 44-wire interface for programming signals.

    • Enables easy field upgrades and system modifications without removing hardware components from the board.

The GAL22V10 Device Specifications

  • Device Configuration:

    • Features 1212 dedicated input pins and 1010 dual-purpose input/output (I/O) pins.

    • Available in a low-voltage 3.3 V3.3\,V version as well as an In-System Programmable (ISP) version.

  • OLMC Array Breakdown and Product Term Distribution:

    • Contains 1010 OLMCs that receive varying numbers of product-term inputs directly from the programmable AND array:

    • 22 OLMCs receive 88 product-term inputs.

    • 22 OLMCs receive 1010 product-term inputs.

    • 22 OLMCs receive 1212 product-term inputs.

    • 22 OLMCs receive 1414 product-term inputs.

    • 22 OLMCs receive 1616 product-term inputs.

  • Output Flexibility:

    • Each individual OLMC can be independently programmed for active-high output, active-low output, or configured to serve as an input pin.

Output Logic Macro Cell (OLMC) Structure and Operating Modes

  • Internal OLMC Architecture Components:

    • Flip-Flop: A sequential logic storage device that stores the output signal generated by the OR gate.

    • 44-to-11 Multiplexer (MUX): Receives four distinct input signals:

    1. Direct output of the flip-flop.

    2. Complemented output of the flip-flop.

    3. Direct output of the OR gate.

    4. Complemented output of the OR gate.

    • Tri-State Buffer: Connects the selected 44-to-11 MUX output to the external physical output pin.

    • 22-to-11 Multiplexer (MUX): Drives feedback lines back to the AND array and receives two inputs:

    1. The physical output pin signal.

    2. The complemented output of the flip-flop.

    • Feedback Routing: The output and complemented output of the 22-to-11 MUX feed directly into the AND array input lines.

    • Selection Control Logic:

    • Select bits S0S_0 and S1S_1 determine which 44-to-11 MUX input signal is routed to the output or feedback path.

    • Select bit S1S_1 controls input routing for the 22-to-11 MUX.

    • Select bits S0S_0 and S1S_1 are programmed in a dedicated group of cells separate from the main logic array cells.

  • Four OLMC Operating Modes:

    1. Combinational Mode with active-low output: Setting S0=0S_0 = 0 and S1=1S_1 = 1 selects the direct OR gate output via the 44-to-11 MUX; inversion by the tri-state buffer produces an active-low output.

    2. Combinational Mode with active-high output: Setting S0=1S_0 = 1 and S1=1S_1 = 1 selects the complemented OR gate output via the 44-to-11 MUX; double inversion produces an active-high output.

    3. Registered Mode with active-low output.

    4. Registered Mode with active-high output.

Tri-State Buffer Functionality and Control

  • Operational Definition:

    • A tri-state buffer functions as a NOT gate equipped with a dedicated control line that can disconnect the output from the input line.

  • Buffer Operating States:

    • Control Line HIGH (11): Operates as a standard NOT gate, passing and inverting the input signal.

    • Control Line LOW (00): Disconnects the output from the input, placing the output pin in a high-impedance state (ZZ).

  • Purpose in Logic Circuits:

    • Used to isolate device outputs that share a common output line or bus, preventing signal contention.

  • Input Pin Configuration Mode:

    • Setting the control input of an OLMC tri-state buffer to LOW places the buffer in a high-impedance state, disconnecting the internal OLMC logic from the physical pin and allowing that pin to function as an input pin.

GAL22V10 AND Array Architecture and SOP Expression Implementation

  • Matrix Line Structure:

    • The GAL22V10 contains 2222 inputs organized into 4444 internal input lines (representing each input and its logical complement).

    • Every AND gate in the array connects to all 4444 input lines.

    • Lines are arranged in groups of four vertical lines; the first group of four vertical lines represents inputs from the GAL input pin and the feedback signals from the OLMC.

  • First OLMC Line Distribution:

    • Horizontal lines represent product terms generated by the AND gates.

    • The first OLMC receives 1010 input product term lines:

    • 88 product terms connect directly to the OR gate in the first OLMC.

    • 11 product term controls the tri-state buffer enable line.

    • 11 product term acts as an asynchronous reset for all OLMCs in Registered mode.

  • Sum-of-Products Capacity:

    • Each OLMC ORs its dedicated product terms into a single sum-of-products term, enabling up to 1010 total Sum-of-Products (SOP) functions across the device.

  • Programming Example for a Boolean Function:

    • Implemented Expression: X=ABCDEF+ABCDEF+ABCDEF+ABCDEF+ABCDEF+ABCDEF+ABCDEFX = ABCDEF + ABCDEF + ABCDEF + ABCDEF + ABCDEF + ABCDEF + ABCDEF

    • Variable Mapping:

    • The 66 input variables (A,B,C,D,E,FA, B, C, D, E, F) connect to the first six input pins.

    • Pin 1 (Variable AA) connects to the first group of four vertical lines (AA and Aˉ\bar{A} lines utilized; remaining two lines unused for OLMC feedback).

    • Pin 2 (Variable BB) connects to the second group of four vertical lines.

    • Pins 3, 4, 5, and 6 connect to variables C,D,E,FC, D, E, F respectively.

    • Product Term Allocation:

    • The expression requires 77 product terms, which fits inside the 88 available product terms of the first OLMC.

    • AND gates 11 through 77 generate product terms 11 through 77 respectively.

    • The 88-input OR gate inside the OLMC generates the final sum of products.

    • The product term controlling the tri-state buffer is set to HIGH (11), enabling the tri-state buffer to route the OLMC output to the physical output pin.