Docsity

Multiplexer and Demultiplexer: Definition, Logic, Application, and Implementation, Slides of Digital Systems Design

Partial preview of the text

Download Multiplexer and Demultiplexer: Definition, Logic, Application, and Implementation and more Slides Digital Systems Design in PDF only on Docsity!

Part III. Standard Modules

Interconnect Modules:

1. Decoder, 2. Encoder

3. Multiplexer, 4. Demultiplexer

Multiplexer

• Definition

• Logic Diagram

• Application

Multiplexer (Mux): Definition

• Selects between one of N inputs to

connect to the output.

• log 2 N -bit select input – control input

• Example: 2:1 Mux

Y 0 0 0 1 1 0 1 1

0 1 0 1

0 0 0 0 0 0 0 1 1 0 1 1

1 1 1 1

0 0 1 1

0 1

S

D 0 Y D 1

S D 1 D 0 Y 0 (^1) D 1

D 0

S

Multiplexer Definition: Example

En

y

S 1 S 0

D 0

D 1

D 2

D 3

0

1

2

3

If D 0 = 0 and S 1 S 0 = 00 => y = 0

If D 0 = 1 and S 1 S 0 = 00 => y = 1

Multiplexer Application

A B Y
Y = AB

00

Y

01 10 11

A B

• Mux as a lookup table

Multiplexer: Application

A B Y

Y = AB

A Y

A

B

Y

B

a

0 0 1 1

b

0 1 0 1

c = 0

1

0 0

c = 1

1 0 0 1

D (c)

D 0 (c) =
D 1 (c) =
D 2 (c) =
D 3 (c) =c

En

y

c

a b

S 1 S 0

0

1

2

3

Multiplexer Application

Example 2: Given f (a,b,c) = Sm (0,1,7) + Sd(2), implement

with 4-input Muxes.

a

0 1

00 01 10 11

1 1 - 0 0 0 0 1

D (b,c)

D 0 (b,c) D 1 (b,c)

D 1 (b,c) b

0 1

c = 0

0 0

c = 1

0 1

l 1 (0) = 0 l 1 (c) = c

En

En b’^0

1

a

b

y

0

1

c

D 0 (b,c) = b’ D 1 (b,c) = bc

1 -

c 1 0

b

0 0

c 0 1

b

Multiplexer Application

Example 3: Given f (a,b,c) = Sm (0,1,7) + Sd(2), implement

with 2-input Muxes.

Shifter

Can be implemented with a mux

s

d

yi

En

1

0

3 2 1 0

xi+1 xi xi-

s

d

xn xn-1 x 0 x-

yn-1 y 0

s / n En

l / r

yi = xi-1 if En = 1, s = 1, and d = L

= xi+1 if En = 1, s = 1, and d = R

= xi if En = 1, s = 0

= 0 if En = 0

Barrel Shifter

O or 1 shift

O or 2 shift

O or 4 shift

x

s 0

s 1

s 2

y

(^0 1 0 1 0 )

0 1 0 1 0 1 0 1 0 1

0 1 0 1 0 1 0 1 0 1 0 1

shift