+ All Categories
Home > Documents > 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

1 EE365 Documentation Standards Programmable Logic Devices Decoders.

Date post: 19-Dec-2015
Category:
View: 222 times
Download: 0 times
Share this document with a friend
Popular Tags:
33
1 EE365 Documentation Standards Programmable Logic Devices Decoders
Transcript
Page 1: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

1

EE365

Documentation StandardsProgrammable Logic Devices

Decoders

Page 2: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

2

Documentation Standards

• Block diagrams– first step in hierarchical design

• Schematic diagrams• HDL programs (ABEL, Verilog, VHDL)• Timing diagrams• Circuit descriptions

Page 3: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

3

Block Diagram

Page 4: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

4

Schematic diagrams

• Details of component inputs, outputs, and interconnections

• Reference designators• Pin numbers• Title blocks• Names for all signals• Page-to-page connectors

Page 5: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

5

Example schematic

Page 6: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

6

Flat schematic structure

Page 7: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

7

Hierarchichal schematic structure

Page 8: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

8

Other Documentation

• Timing diagrams– Output from simulator– Specialized timing-diagram drawing tools

• Circuit descriptions– Text (word processing)– Can be as big as a book (e.g., typical Cisco ASIC

descriptions)– Typically incorporate other elements (block

diagrams, timing diagrams, etc.)

Page 9: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

9

Gate symbols

Page 10: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

10

DeMorgan equivalent symbols

Which symbol to use?

Answer depends on signal names and active levels.

Page 11: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

11

Signal names and active levels

• Signal names are chosen to be descriptive.• Active levels -- HIGH or LOW

– named condition or action occurs in either the HIGH or the LOW state, according to the active-level designation in the name.

Page 12: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

12

Example

LogicCircuit

HIGH when error occurs

ERROR

LogicCircuit

LOW when error occurs

ERROR_L ERROR

ERROR1_L

Page 13: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

13

Programmable Logic Arrays (PLAs)

• Any combinational logic function can be realized as a sum of products.

• Idea: Build a large AND-OR array with lots of inputs and product terms, and programmable connections.– n inputs

• AND gates have 2n inputs -- true and complement of each variable.

–m outputs, driven by large OR gates• Each AND gate is programmably connected to each

output’s OR gate.

– p AND gates (p<<2n)

Page 14: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

14

Example: 4x3 PLA, 6 product terms

Page 15: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

15

Compact representation

• Actually, closer to physical layout (“wired logic”).

Page 16: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

16

Some product terms

Page 17: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

17

PLA Electrical Design

• See Section 5.3.5 -- wired-AND logic

Page 18: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

18

Programmable Array Logic (PALs)

• How beneficial is product sharing?– Not enough to justify the extra AND array

• PALs ==> fixed OR array– Each AND gate is permanently connected to a

certain OR gate.

• Example: PAL16L8

Page 19: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

19

• 10 primary inputs• 8 outputs, with 7 ANDs per

output• 1 AND for 3-state enable• 6 outputs available as

inputs– more inputs, at expense of

outputs– two-pass logic, helper terms

• Note inversion on outputs– output is complement of

sum-of-products– newer PALs have selectable

inversion

Page 20: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

20

Designing with PALs

• Compare number of inputs and outputs of the problem with available resources in the PAL.

• Write equations for each output using ABEL.• Compile the ABEL program, determine

whether minimimized equations fit in the available AND terms.

• If no fit, try modifying equations or providing “helper” terms.

Page 21: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

21

Decoders

• General decoder structure

• Typically n inputs, 2n outputs– 2-to-4, 3-to-8, 4-to-16, etc.

Page 22: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

22

Binary 2-to-4 decoder

Note “x” (don’t care) notation.

Page 23: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

23

2-to-4-decoder logic diagram

Page 24: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

24

MSI 2-to-4 decoder

• Input buffering (less load)• NAND gates (faster)

Page 25: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

25

Decoder Symbol

Page 26: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

26

Complete 74x139 Decoder

Page 27: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

27

More decoder symbols

Page 28: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

28

3-to-8 decoder

Page 29: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

29

74x138 3-to-8-decoder symbol

Page 30: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

30

Decoder cascading

4-to-16 decoder

Page 31: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

31

More cascading

5-to-32 decoder

Page 32: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

32

Decoder applications

• Microprocessor memory systems– selecting different banks of memory

• Microprocessor input/output systems– selecting different devices

• Microprocessor instruction decoding– enabling different functional units

• Memory chips– enabling different rows of memory depending on

address

• Lots of other applications

Page 33: 1 EE365 Documentation Standards Programmable Logic Devices Decoders.

33

Next time

• Encoders• Three-state devices• Multiplexers• XOR gates• Comparators• Adders


Recommended