11.5 Programmable Logic Devices
COS2621 - Computer Organisation · 11. Digital Logic
Programmable Logic Devices
Programmable Logic Devices (PLDs) are electronic components used to build digital circuits. They can be programmed to perform specific logic functions, making them versatile and adaptable for various applications. PLDs include devices such as Programmable Array Logic (PAL), Generic Array Logic (GAL), and Complex Programmable Logic Devices (CPLD).
Types of Programmable Logic Devices
1. **Programmable Array Logic (PAL)**: This device consists of a programmable AND array and a fixed OR array. The user can configure the AND gates to create specific logic functions.
2. **Generic Array Logic (GAL)**: GALs are similar to PALs but offer a more flexible architecture. They feature a programmable AND array and a programmable OR array, allowing for more complex logic functions.
3. **Complex Programmable Logic Devices (CPLD)**: CPLDs contain multiple programmable logic blocks connected by a programmable interconnect. They can implement more complex logic functions than PALs and GALs.
Programming PLDs
Programming a PLD involves creating a configuration file that defines how the device should behave. This file is usually generated using a Hardware Description Language (HDL) like VHDL or Verilog. The programming process typically includes the following steps:
- **Design Entry**: Create the logic design using HDL.
- **Synthesis**: Convert the HDL design into a netlist, which specifies the logic gates and their connections.
- **Implementation**: Map the netlist to the specific architecture of the PLD.
- **Programming**: Load the configuration file into the PLD using a programmer device.
Example of Programming a PAL
Suppose you want to implement the logic function F(A, B, C) = A'BC + AB'. Here is how you would program a PAL:
- **Identify Inputs and Outputs**: Inputs are A, B, C, and the output is F.
- **Create the Truth Table**:
- **Configure the AND Gates**: Based on the truth table, configure the AND gates to represent the minterms (0 1 1 and 1 0 0).
- **Connect to OR Gate**: Connect the outputs of the AND gates to the OR gate to produce F.
A B C | F
0 0 0 | 0
0 0 1 | 0
0 1 0 | 0
0 1 1 | 1
1 0 0 | 1
1 0 1 | 0
1 1 0 | 0
1 1 1 | 0Remember: The configuration of a PAL is fixed after programming, meaning you cannot change it without reprogramming the device.
Applications of PLDs
PLDs are widely used in various applications, including:
- **Custom Logic Design**: They allow designers to create custom logic circuits without needing to manufacture specific chips.
- **Prototyping**: PLDs are excellent for testing and prototyping new designs before committing to a more permanent solution.
- **Embedded Systems**: Many embedded systems use PLDs to handle specific tasks efficiently.
Advantages and Disadvantages
Advantages:
- Flexibility to change designs.
- Reduced development time compared to custom ICs.
- Lower costs for small production runs.
Disadvantages:
- Limited performance compared to dedicated hardware.
- Higher costs for large-scale production compared to ASICs (Application-Specific Integrated Circuits).
Summary
- PLDs are versatile components used in digital circuit design.
- Types of PLDs include PALs, GALs, and CPLDs.
- Programming involves design entry, synthesis, implementation, and loading the configuration.
Check your understanding
- What are the main types of PLDs?
- Describe the programming process for a PAL.
- List two advantages and two disadvantages of using PLDs.
Test yourself
4 quick questions on this lesson. Pick an answer to see if you're right.
1. Which step in the PLD programming process involves converting HDL designs into a netlist?
2. What is a disadvantage of using PLDs compared to ASICs?
3. Which of the following is a type of Programmable Logic Device (PLD)?
4. What is the primary purpose of programming a PLD?