










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











1
2
Need of programmable logic devices:
5
6
Fusible link programming technology
Antifuse programming technology
SRAM programming technology
13
Comparison of Programming Technologies
14
Factory Programmable Devices:
Field Programmable Devices :
Field Programmable Devices :
17
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
A block diagram and internal logic of a ROM is shown.
§ 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 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
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.
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 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
29
PAL programmed for the logic function:
30
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
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.
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
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.
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
§ When the CLBs are larger and more complex, it is called
§ 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