Digital Logic Design: Combinational Logic with PLDs
Implementing Constant Logic Values in PLAs
A Programmable Logic Array (PLA), such as a PLA device (4 inputs, 3 outputs), can be specifically programmed to produce constant logic or logic outputs across its OR gates.
Constant generation procedure:
All four inputs and their respective complements () are connected to the first AND gate.
Because an input and its complement are both ANDed together (e.g., ), the product term generated by this first AND gate is strictly : .
Product term is connected to the input of the first OR gate, resulting in a constant OR gate output of logic
Constant 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 :
Product term is connected to the input of the second OR gate, resulting in a constant OR gate output of logic
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 PLA), its output naturally defaults to logic
Odd-Prime Number Generator Implementation
An Odd-Prime Number generator can be implemented by programming a 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: , , , , , and
Two additional outputs are programmed to detect Odd-Prime multiples of and respectively.
Product term mapping:
Product terms and represent minterms and respectively.
OR gate summation configurations:
First OR gate: Sums all six minterms () to produce an output of logic whenever any of these first six Odd-Prime numbers are present at inputs and
Second OR gate: Sums minterms and , yielding an output of logic when any of these three specific minterms are applied at the PLA inputs.
Third OR gate: Sums minterms and , producing an output of logic 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.
Technology and Array Structure:
Reprogrammability is achieved using (Electrically Erasable CMOS) logic cells instead of permanent hardware fuses.
An 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 cells are programmed to the 'on' state to connect required literals () to specific AND gates, generating desired product terms to implement SOP functions (e.g., ).
Standard GAL Dimensions and I/O:
A typical GAL device includes or more inputs to the reprogrammable AND array.
Features 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:
GALdesignating Generic Array Logic.Input Count: A -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:
GAL16V8represents a Generic Array Logic device with inputs, variable output configuration, and outputs.
Complete PLD Programming Workflow:
Logic Entry: Enter the target logic design into computer programming software as a Boolean equation, truth table, or state diagram.
Error Correction: Detect and correct any syntax or entry errors identified during the input phase.
Compilation & Minimization: The software compiler processes the input file, translates it into a standard format, and minimizes the Boolean logic expressions.
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.
Debugging: If flaws or errors are detected during test vector simulation, the design must be debugged and submitted for recompilation.
File Generation: After final design verification, the compiler generates a documentation file and a fuse map file.
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 -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 dedicated input pins and dual-purpose input/output (I/O) pins.
Available in a low-voltage version as well as an In-System Programmable (ISP) version.
OLMC Array Breakdown and Product Term Distribution:
Contains OLMCs that receive varying numbers of product-term inputs directly from the programmable AND array:
OLMCs receive product-term inputs.
OLMCs receive product-term inputs.
OLMCs receive product-term inputs.
OLMCs receive product-term inputs.
OLMCs receive 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.
-to- Multiplexer (MUX): Receives four distinct input signals:
Direct output of the flip-flop.
Complemented output of the flip-flop.
Direct output of the OR gate.
Complemented output of the OR gate.
Tri-State Buffer: Connects the selected -to- MUX output to the external physical output pin.
-to- Multiplexer (MUX): Drives feedback lines back to the AND array and receives two inputs:
The physical output pin signal.
The complemented output of the flip-flop.
Feedback Routing: The output and complemented output of the -to- MUX feed directly into the AND array input lines.
Selection Control Logic:
Select bits and determine which -to- MUX input signal is routed to the output or feedback path.
Select bit controls input routing for the -to- MUX.
Select bits and are programmed in a dedicated group of cells separate from the main logic array cells.
Four OLMC Operating Modes:
Combinational Mode with active-low output: Setting and selects the direct OR gate output via the -to- MUX; inversion by the tri-state buffer produces an active-low output.
Combinational Mode with active-high output: Setting and selects the complemented OR gate output via the -to- MUX; double inversion produces an active-high output.
Registered Mode with active-low output.
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 (): Operates as a standard NOT gate, passing and inverting the input signal.
Control Line LOW (): Disconnects the output from the input, placing the output pin in a high-impedance state ().
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 inputs organized into internal input lines (representing each input and its logical complement).
Every AND gate in the array connects to all 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 input product term lines:
product terms connect directly to the OR gate in the first OLMC.
product term controls the tri-state buffer enable line.
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 total Sum-of-Products (SOP) functions across the device.
Programming Example for a Boolean Function:
Implemented Expression:
Variable Mapping:
The input variables () connect to the first six input pins.
Pin 1 (Variable ) connects to the first group of four vertical lines ( and lines utilized; remaining two lines unused for OLMC feedback).
Pin 2 (Variable ) connects to the second group of four vertical lines.
Pins 3, 4, 5, and 6 connect to variables respectively.
Product Term Allocation:
The expression requires product terms, which fits inside the available product terms of the first OLMC.
AND gates through generate product terms through respectively.
The -input OR gate inside the OLMC generates the final sum of products.
The product term controlling the tri-state buffer is set to HIGH (), enabling the tri-state buffer to route the OLMC output to the physical output pin.