Encoders Many 1-bit inputs, 1 asserted at a time. Output - - PowerPoint PPT Presentation

encoders
SMART_READER_LITE
LIVE PREVIEW

Encoders Many 1-bit inputs, 1 asserted at a time. Output - - PowerPoint PPT Presentation

9/14/15 Encoders Many 1-bit inputs, 1 asserted at a time. Output number of active input. Basic building blocks D 0 D 1 D 2 B 0 D 3 B 1 D 4 Common combinational circuits:


slide-1
SLIDE 1

9/14/15 1

Basic ¡building ¡blocks

Common ¡combinational ¡circuits: ¡encoders, ¡decoders, ¡multiplexers, ¡PLAs

Encoders

Many ¡1-­‑bit ¡inputs, ¡1 ¡asserted ¡at ¡a ¡time. Output ¡number ¡of ¡active ¡ input. D0 D1 D2 D3 D4 D5 D6 D7 B0 B1 B2

Encoders ¡can ¡be ¡hardwired

000 001 010 011 100 101 110 111 D0 D1 D2 D3 D4 D5 D6 D7 B0 B1 B2

Decoders

Decodes ¡input ¡number, ¡asserts ¡corresponding ¡output.

n-­‑bit ¡input ¡ ¡(an ¡unsigned ¡number) 2n outputs Built ¡with ¡code ¡detectors.

D0 D1 D2 D3 D4 D5 D6 D7 B0 B1 B2 B0 B1 B2 D0 D1 D7

. ¡ . ¡ .

slide-2
SLIDE 2

9/14/15 2

Ta ¡da! Steering ¡circuits

Select ¡ one Select ¡ one

Multiplexer Demultiplexer

Many ¡possible ¡input ¡sources. Many ¡possible ¡output ¡destinatinons.

Multipexers

2n data ¡inputs 1 ¡data ¡output n control/selector ¡lines. D0 D1 D2 D3 D4 D5 D6 D7 F MUX A B C

World's ¡smallest ¡mux:

8-­‑to-­‑1 ¡MUX

Costume ¡idea: ¡MUX ¡OX

slide-3
SLIDE 3

9/14/15 3

MUX ¡+ ¡voltage ¡source ¡= ¡truth ¡table

D0 D1 D2 D3 D4 D5 D6 D7 F Mux A B C

A B C Majority 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Buses ¡and ¡Logic ¡Arrays

Bitwise ¡operations ¡apply ¡the ¡same ¡function ¡ to ¡each ¡bit ¡of ¡an ¡entire ¡word. A ¡bus is ¡a ¡collection ¡of ¡data ¡lines ¡that ¡is ¡ treated ¡as ¡a ¡single ¡logical ¡signal. Array ¡of ¡logic ¡elements ¡shows ¡same ¡

  • peration ¡applied ¡to ¡each ¡bit ¡in ¡a ¡bus.

PLAs

A ¡programmable ¡logic ¡array (PLA) ¡has ¡a ¡ set ¡of ¡inputs ¡and ¡corresponding ¡input ¡ complements ¡and ¡two ¡stages ¡of ¡logic. The ¡first ¡state ¡is ¡an ¡array ¡of ¡AND ¡gates ¡ which ¡form ¡the ¡product ¡terms ¡ (minterms). The ¡second ¡stage ¡is ¡an ¡array ¡of ¡OR ¡gates ¡ that ¡sums ¡the ¡minterms.

Remember ¡ sum ¡of ¡products?

PLA ¡example

slide-4
SLIDE 4

9/14/15 4

PLAs: ¡Another ¡drawing ¡convention

AND ¡plane: Each ¡vertical ¡ line ¡= ¡AND ¡gate. Dots ¡show ¡connected ¡inputs. OR ¡plane: Each ¡horizontal ¡line ¡= ¡OR ¡gate. Dots ¡show ¡connected ¡inputs.

As ¡a ¡ROM: input ¡= ¡address

  • utput ¡= ¡contents

Gray ¡Codes ¡= ¡reflected ¡binary ¡codes

Alternate ¡ encoding ¡for ¡unsigned ¡integers designed ¡for ¡electromechanical ¡ switches ¡and ¡counting. 00 ¡ ¡ ¡01 ¡ ¡ ¡11 ¡ ¡ ¡10 000 ¡ ¡ ¡001 ¡ ¡ ¡011 ¡ ¡ ¡010 ¡ ¡ ¡110 ¡ ¡ ¡111 ¡ ¡ ¡101 ¡ ¡ ¡100 How ¡many ¡ bits ¡change ¡when ¡incrementing?

Karnaugh Maps:

find ¡minimal ¡ sums ¡of ¡products ¡visually

A B C D F(A, ¡B, ¡C, ¡D) 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

00 01 11 10 00 01 1 11 1 1 1 10 1 1 1 1 AB CD

  • 1. Cover ¡exactly ¡the ¡1s ¡by ¡drawing ¡maximally ¡sized ¡rectangles ¡

whose ¡dimensions ¡(in ¡cells) ¡are ¡powers ¡of ¡2. ¡ ¡(May ¡wrap!)

  • 2. For ¡each ¡box, ¡make ¡a ¡product ¡of ¡the ¡inputs ¡(or ¡complements) ¡

that ¡are ¡ 1 ¡for ¡all ¡cells ¡in ¡the ¡box. ¡(minterms)

  • 3. T

ake ¡ the ¡sum ¡of ¡these ¡products.

gray ¡code

  • rder