6.programmable logic device -programmable array logic (pal) - generic array logic (gal)

16
Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics PAL & GAL 1 / page 1 6. Programmable Logic Device - Programmable Array Logic (PAL) - Generic Array Logic (GAL) Tocci Chapter 11 (Memory Devices) Read section 11-10 Review questions of section 11-10 Chapter 12 (Applications of a PLD) Read section 12-1 to 12-3

Upload: dinos

Post on 05-Jan-2016

91 views

Category:

Documents


0 download

DESCRIPTION

6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL). TocciChapter 11 (Memory Devices) Read section 11-10 Review questions of section 11-10 Chapter 12 (Applications of a PLD) Read section 12-1 to 12-3. Programmable Logic Device. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 1

6. Programmable Logic Device- Programmable Array Logic (PAL)- Generic Array Logic (GAL)

Tocci Chapter 11 (Memory Devices)

Read section 11-10

Review questions of section 11-10

Chapter 12 (Applications of a PLD)

Read section 12-1 to 12-3

Page 2: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 2

Programmable Logic Device

What is a Programmable Logic Device (PLD)?

an IC that contains large numbers of gates, flip-flops and registers that are interconnected on the chip

can be configured by the user to perform a logic function

many of the connections are fusible links that can be broken

Page 3: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 3

Programmable Logic Device

Problems of using standard ICs in logic design:

require hundreds or thousands of these ICs

require a considerable amount of circuit board space

require a great deal of time and cost in inserting, soldering, and testing

require to keep a significant inventory of ICs

Page 4: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 4

Advantages of using PLDs

Advantages of reducing the no. of ICs using PLD:

less board space fewer printed circuit boards smaller enclosures lower power requirements (i.e., smaller power supplies) faster and less costly assembly processes higher reliability (fewer ICs and circuit connections => easier

troubleshooting) availability of design software

Page 5: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 5

Programmable Logic Device Basic Ideas of PLD

A PLD consists of an array of AND gates and an array of OR gates

Each input feeds both a non-inverting buffer and an inverting buffer to produce the true and inverted forms of each variable. (i.e. the input lines to the AND-gate array)

The AND outputs are called the product lines

Each product line is connected to one of the inputs of each OR gate

Three fundamental types of standard PLDs: PROM, PAL, and PLA

Page 6: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 6

Internal Structures of PLDA B

Input lines

AND array

Fuse

Productlines

ORarray

Sum of product outputs

O O O O

AB

AB

AB

AB

A A B B AB

AB

AB

AB

1 2 3 4

Example of a programmable logic device

2-to-4 decoder

If blown, ORinput is logic 0.

Page 7: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 7

Programmable Array Logic (PAL)

O1 O2 O3 O4

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

D C B A

AND array(programmable)

OR array(hard-wired)

Page 8: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 8

PAL Programmable Array Logic (PAL)

The input lines to the AND array are programmable and the output lines to the OR array are hard-wired

Simplify the logic function (e.g. using K-map) before putting design into PLA.

K-maps

Page 9: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 9

PAL

O1 O2 O3 O4

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

D C B A

AND array(programmable)

OR array(hard-wired)

AB

CD

0

ABC

0

0

0

ABCD

ABCD

0

0

A

BD

CD

0

0

Page 10: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 10

Programmable Logic Devices

PROM PAL PLAInput lines hard-wired prog. prog.Output lines prog. hard-wired prog.Versatility low moderate highDifficulty in low moderate high manufacturing, programming and testing

Page 11: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 11

Generic Array Logic (GAL) Instead of using one-time programmable fuse links, GAL use an

EEPROM array. Block diagram of GAL 16V8A

See Fig. 12-1, P.775, Tocci

8 dedicated input pins 2 special function pins (CK, OE) 8 pins that can be used as inputs or outputs

Page 12: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 12

Output Structure in PLD

Output logic marcrocells of 16V8R

Page 13: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 13

Output Structure in PLD The macrocell can be individually configured to bypass the

flip-flop.

The output can either be programmed to be registered (with flip-flop) or combinational (flip-flop bypassed).

The PLD can be programmed as sequential or combinational logic.

Page 14: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 14

Practical Design of using PLD Simple combinational logic implementation

Example 12-1 and Fig. 12-6, P.780, Tocci

Simple sequential logic implementation Example 12-2 and Fig. 12-8, P.782-3, Tocci

Page 15: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 15

Programming PLD

Equipment to design and build circuits using PLDs (Fig. 12-11, P.787) personal computer PLD development software programming fixture software to drive the programming fixture PLD

JEDEC - a standard format for transferring programming data for PLDs (independent of PLD manufacturers or software)

Page 16: 6.Programmable Logic Device -Programmable Array Logic (PAL) - Generic Array Logic (GAL)

Hong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 ElectronicsHong Kong Institute of Vocational Education (Tsing Yi) Electrical and Telecommunications Course Board E&T1350 Electronics

PAL & GAL 1 / page 16

Development Software Allow users to enter their design in some convenient way Automatically create a JEDEC file Original software - PALASM (PAL assembler) Powerful development software tools are referred as compiler. They can

accept more abstract representation of same design and translate it into hardware details necessary to program the PLD.

e.g. CUPL, ABEL Some high-level compiler include schematic capture option allowing entry

operation by drawing a logic circuit diagram Logic compiler also allow to enter the design in the form of truth table or

state table. Some even accept timing diagram as input.