Docsity

Understanding Programmable Logic Devices (PLDs) and Their Types, Summaries of Linear Programming

Toggle sidebar
bg1
Programmable Logic Devices
(PLD)
1
Introduction
•Logic devices are classified broadly into two categories:
fixed and programmable.
•The circuits in a fixed logic device are permanent, they
perform one function or set of functions.
•Once manufactured, they cannot be changed.
•Programmable devices are standard and offers a wide range
of logic features and voltage characteristics
•These devices can be changed at any time to perform
various logic functions.
•With programmable logic devices (PLD) designers use
inexpensive software tools to develop quickly, simulate,
and test their designs.
2
Introduction
•Then, a design can be quickly programmed into a device,
and immediately tested in a live circuit.
•However PLD contain a relatively limited number of logic
gates and the function. These function can be used to
implement smaller and simpler.
•This problem can be solved by Field programmable gate
arrays (FPGAs).
•Field programmable gate arrays (FPGAs) –are digital
integrated circuits that contain configurable blocks of logic
along with configurable interconnects between these
blocks.
3
Introduction
Need of programmable logic devices:
•Implementation of a significant amount of functionality
into one physical chip.
•Removes the need for multiple off-the-shelf devices.
•Lower power requirements, less board space, and simpler
testing procedures.
•Easy reprogramming, therefore Easier to change the design
in case of errors or change in the design specifications.
4
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Understanding Programmable Logic Devices (PLDs) and Their Types and more Summaries Linear Programming in PDF only on Docsity!

Programmable Logic Devices

(PLD)

1

Introduction

  • Logic devices are classified broadly into two categories: fixed and programmable.
  • The circuits in a fixed logic device are permanent, they perform one function or set of functions.
  • Once manufactured, they cannot be changed.
  • Programmable devices are standard and offers a wide range of logic features and voltage characteristics
  • These devices can be changed at any time to perform various logic functions.
  • With programmable logic devices (PLD) designers use inexpensive software tools to develop quickly, simulate, and test their designs.

2

Introduction

  • Then, a design can be quickly programmed into a device, and immediately tested in a live circuit.
  • However PLD contain a relatively limited number of logic gates and the function. These function can be used to implement smaller and simpler.
  • This problem can be solved by Field programmable gate arrays (FPGAs).
  • Field programmable gate arrays (FPGAs) – are digital integrated circuits that contain configurable blocks of logic along with configurable interconnects between these blocks.

Introduction

Need of programmable logic devices:

  • Implementation of a significant amount of functionality into one physical chip.
  • Removes the need for multiple off-the-shelf devices.
  • Lower power requirements, less board space, and simpler testing procedures.
  • Easy reprogramming, therefore Easier to change the design in case of errors or change in the design specifications.

Introduction

5

Programming Technologies

  • A PLD is able to produce different circuits because the routing among its cells is programmable.
  • The memory that holds such routing in place is called configuration memory, which is nonvolatile in CPLDs and typically volatile in FPGAs.
  • SPLDs and CPLDs employed mostly EEPROM in the beginning and then Flash memory, while FPGAs employ mostly SRAM, with nonvolatile memory (Flash or antifuse) used in just a few device families of some companies.
  • Brief comments on each technology are presented next.

6

Programming Technologies

Fusible link programming technology

  • The device is manufactured with all of the links in place, where each link is referred to as a fuse
  • The fuses in a silicon chip are formed using the same processes that are employed to create the transistors and wires on the chip
  • Design engineers can selectively remove undesired fuses by applying pulses of relatively high voltage and current to the device’s inputs.
  • Devices based on fusible-link technologies are said to be one-time programmable, or OTP, because once a fuse has been blown, it cannot be replaced and there’s no going back.

Programming Technologies

Antifuse programming technology

  • In its unprogrammed state, an antifuse has such a high resistance that it may be considered an open circuit
  • Contrary to fuse wires that blow open when high current passes through them, the antifuse programming element changes from high resistance (open) to low resistance (closed) when a high voltage is applied to it.
  • Antifuses are often built using dielectric layers between N+ diffusion and polysilicon layers or by amorphous silicon between metal layers.
  • Antifuses are normally OFF; permanently connected links are created when they are programmed. The process is irreversible, and hence antifuse devices are OTP

Programming Technologies

SRAM programming technology

  • The SRAM programming technology involves creating re- configurability by bits stored in static RAM (SRAM) cells.
  • The entire cell comprises a multi-transistor SRAM storage element whose output drives an additional control transistor.

13

Programming Technologies

Comparison of Programming Technologies

  • Only the SRAM and EEPROM programming technologies allow in-circuit programmability.
  • In-circuit programmability means that a device can be reprogrammed without removing it from the board in which it is used.

14

Programmable Logic

Factory Programmable Devices:

  • Generic devices that are programmed at the factory to meet the Customer’s requirements. Programming can be done only once. Examples: ROM, MPGA.
  • ROM: Primarily meant for memory, but can be used to implement combinational circuits.
  • MPGA: Also called as gate arrays, they have been a popular technology for creating ASIC.

Programmable Logic

Field Programmable Devices :

  • Devices that are programmed by the user, rather than in factory.
  • Programmable Logic Devices (PLDs) are ICs with a large number of gates and flip flops that can be configured with basic software to perform a specific logic function or perform the logic for a complex circuit.

Programmable Logic

Field Programmable Devices :

  • Major types of PLDs are:
  • SPLD: (Simple PLDs) are the earliest type of array logic used for fixed functions and smaller circuits with a limited number of gates.
  • CPLD: (Complex PLDs) are multiple SPLDs arrays and inter-connection arrays on a single chip.
  • FPGA: (Field Programmable Gate Array) are a more flexible arrangement than CPLDs, with much larger capacity.

17

Simple Programmable Logic Devices

PLDs are typically built with an array of AND gates (AND-array) and an array of OR gates (OR-array).The early generation programmable logic devices (PROM, PAL, and PLA) can be collectively called SPLDs.

18

PROM

A block diagram and internal logic of a ROM is shown.

Using a PROM for logic design

§ A ROM can implement any combinational circuit. § If the outputs for all combinations of inputs are stored in the ROM, the outputs can be “looked up” in the table stored in the ROM.

PALs and GALs

PALs have a one time programmable (OTP) array, in which fuses are permanently blown, creating the product terms in an AND array.

A PAL (programmable array logic) consists of a programmable array of AND gates that connects to a fixed array of OR gates.

The PAL structure allows any sum-of-products (SOP) logic expression with a defined number of variables to be implemented.

Simplified AND-OR array

X

A A B B

25

PALs and GALs

26

X

A A B B

What function is represented by the array?

The function represents an XOR gate.

X = AB + AB

PALs are programmed with a specialized programmer that blows selected internal fuse links. After blowing the fuses, the array represents the Boolean logic expression for the desired circuit.

PALs and GALs

The GAL (Generic Array Logic) is similar to a PAL but can be reprogrammed. A GAL uses a reprogrammable process technology, such as EEPROM, instead of fuses.

A A B B

X

GALs were developed by Lattice Semiconductor. They are high speed, extremely fast devices and can interface with both 3.3 V or 5 V logic signals.

PALs and GALs

PALs and GALs can be represented with a simplified diagram. A single line can represent multiple gate inputs. The logic shown is for the XOR gate, given previously.

X

X

X

X

2

2

Input buffer A^ A^ B^ B Single line with slash indicating multiple AND gate inputs Fuse blown

Fuse intact

AB

AB

AB + AB

PALs and GALs

29

PAL programmed for the logic function:

PALs and GALs

X  ABC  ABC  A B AC

30

GAL General Block Diagram

The programmable AND array outputs go to fixed OR gates that are connected to additional output logic.

An OR gate combined with its associated output logic is

typically called a macrocell.

A macrocell generally consists of one OR gate and some associated output logic. The macrocells vary in complexity, depending on the particular type of PAL or GAL.

A macrocell can be configured for combinational logic, registered logic, or a combination of both.

Registered logic means that there is a flip-flop in the macrocell to provide for sequential logic functions.

Macrocells

15 expanderproduct terms from othermacrocells

36 lines from PIA

expanderShared

Parallel expandersfrom other macrocells

Associatedlogic To I/Ocontrol block

Product-termselection matrix

Macrocells A simplified diagram of a typical macrocell is shown. It contains a small programmable AND array with five AND gates, an OR gate, a product-term selection matrix for connecting the AND gate outputs to the OR gate, and associated logic that can be programmed for input, combinational logic output, or registered output.

37

  • (^) Product term from another macrocell in same LAB

Expander example

Shared Expanders A complemented product term that can be used to increase the number of product terms in an SOP expression is available from each macrocell in a LAB. Shared expander term from another macrocell can be used to create additional product terms. Each of the five AND gates in a macrocell array is limited to four inputs. Expansion to two product terms is shown

38

Shared Expanders

Using a shared expander term from another macrocell to increase an SOP expression.

Another way to increase the number of product terms for a macrocell is by using parallel expanders in which additional product terms are ORed with the terms generated by a macrocell instead of being combined in the AND array, as in the shared expander. A given macrocell can borrow unused product terms from neighboring macrocells.

Parallel Expanders

Parallel Expanders

41

Macrocell Modes

In addition to combination logic, some macrocells have registered outputs available (using programmable flip- flops). This allows the CPLD to perform sequential logic.

15 expander productterms from other macrocells from PIA36 lines

Sharedexpander

Parallel expandersfrom other macrocells

To I/O Product-term selectionmatrix

MUX 1

MUX 2

CC MUX 3 MUX 4

MUX 5 FromI/O

GlobalclearGlobalclock

42

Macrocell Modes

The XOR gate provides for complementing the SOP function from the OR gate to produce a POS form.

MUX 1 provides for selection of either the XOR output or an input from the I/O.

MUX 2 can be programmed to select either the global clock or a clock signal based on a product term.

MUX 3 can be programmed to select either a HIGH (V CC )

or a product-term enable for the flip-flop.

MUX 4 can select the global clear or a product-term clear.

MUX 5 is used to bypass the flip-flop and connect the combinational logic output to the I/O or to connect the registered output to the I/O.

Combinational Mode

A macrocell configured for generation of an SOP logic function is shown. Only one mux is used and the register (flip-flop) is bypassed

FPGAs

Classic CPLD architecture consists of PAL/GAL or PLA- type logic blocks with programmable interconnections.

A field programmable gate array ( FPGA ) uses a different architecture than a CPLD. The configurable logic block ( CLB ) is the basic element which is replicated many times.

A typical FPGA has many times more equivalent gates than a typical CPLD.

The logic-producing elements in FPGAs are generally much smaller than in CPLDs, and there are many more of them.

Also, the programmable interconnections are generally organized in a row and column arrangement in FPGAs.

49

FPGAs

§ The basic FPGA architecture consists of an array of configurable logic blocks (CLBs). § The logic blocks are surrounded by configurable input/output blocks. § There are rows and columns of programmable interconnection paths. § The I/O blocks can be individually configured as input, output, or bidirectional. § All the resources of the device are uncommitted and that these must be selected, configured and interconnected by a user to form a logic circuit for his application. § The basic architecture of an FPGA is shown

50

FPGAs FPGAs

§ CLBs in an FPGA are not as complex as the LABs in a CPLD, but generally there are many more of them. § When the CLBs are relatively simple, the FPGA

architecture is called fine grained.

§ When the CLBs are larger and more complex, it is called

coarse grained.

§ The distributed matrix of programmable interconnections provide for interconnection of the CLBs and connection to inputs and outputs. § Large FPGAs can have tens of thousands of CLBs in addition to memory and other resources.

Configurable Logic Blocks

§ An FPGA logic block consists of several smaller logic modules that are the basic building units, analogous to macrocells in a CPLD.

§ The fundamental configurable logic blocks (CLBs) within the global row/column programmable interconnects that are used to connect logic blocks is shown.

§ CLBs are arranged in a row and column structure.

§ Each CLB (also known as LAB) is made up of multiple smaller logic modules and a local programmable interconnect that is used to connect logic modules within the CLB.

53

Configurable Logic Blocks

54

Logic Modules

§ The logic modules are the basic logic elements in an FPGA. § The logic modules within a CLB are connected through local programmable interconnects. § A logic module in an FPGA logic block can be configured for combinational logic, registered logic, or a combination of both. § Generally, the logic modules are composed of a look-up table (LUT), a flip-flop, and a MUX that can be used to bypass the flip-flop for strictly combinational logic. § The LUT essentially does the same job as the PAL or PLA does

Look-Up Table (LUT)

§ A LUT is the primary circuit used to implement combinational logic in FPGAs. A LUT is nothing but a small one-bit wide memory array with its address lines representing the inputs to the logic block and a one-bit output acting as the LUT output. § A LUT with n inputs can realize any logic function of n inputs by programming the truth table of the desired logic function directly into the memory.

61

Look-Up Table (LUT)

62

Look-Up Table (LUT)

§ Implementation of a function F of the truth table shown based on a 3-input LUT is illustrated

Look-Up Table (LUT) Logic Modules

§ A block diagram of a logic module with 3-input LUT is shown. § Output of the LUT becomes the output of the logic module either directly or through D-type FF. § Thus, the output can be configured for combinational or registered

Logic Modules

§ A section of a programmed FPGA is shown

65

FPGA Cores

§ A commercially available FPGA may have all the CLBS available for a user to program them according to his requirements. § However, some FPGAs are available in which a portion of CLBs is used by the manufacturer to provide a specific built-in function that can not be changed by a user. § This is referred to as hard-core logic. § For example, if a customer needs a small microprocessor as part of a system design, it can be programmed into the FPGA by the customer or it can be provided as hard core by the manufacturer.

66

FPGA Cores

§ The hardcore logic approach has the following advantages: § The hard-core logic may normally be implemented using lesser number of CLBs than the same logic being programmed by a user. This saves the available chip resources, i.e., programmable area to the user. § There is saving in the development time of user in developing a digital system. § The built-in hard-core function can be thoroughly tested by the manufacturer, thereby increasing its reliability. § The disadvantage is that the specifications are fixed during manufacturing and the customer must be able to use the hard-core logic “as is.” It cannot be changed later.

FPGA Cores

§ Some of the commonly used functions, such as microprocessors, standard I/O interfaces, embedded memory functions and digital signal processors (DSPs) are available in hard-core FPGAs. § In case, the manufacturer's programmed function has some programmable features also, it is known as a soft- core function. § Some intellectual properties may be combination of both hard-core and soft-core functions. § The FPGAs containing either or both hard-core and soft- core embedded processors and other functions are known as the platform FPGA because they can be used to implement an entire system without the need for any external devices