Docsity

Digital Systems Design: Multiplexers & MUX Design with Divide-and-Conquer, Slides of Digital Systems Design

Partial preview of the text

Download Digital Systems Design: Multiplexers & MUX Design with Divide-and-Conquer and more Slides Digital Systems Design in PDF only on Docsity!

1

Digital Systems Design

Lecture Notes #

The World of Integrated Circuits (LSI/VLSI)

2

Full-Custom ASICs

Semi-Custom ASICs

User Programmable

PLD FPGA

PLA/PAL CPLDs

Simple gates (nand/ nor/xor/xnor..)

Complex gates

Muxes

PLA/PAL

(layout aspect; not prog. aspect)

4

Reversing the connection of A: A (^) bubble CI

A (^) normal CI In Out

A

A

T-gate conducts when A=0.

Multiplexer (MUX) Design: A 2:1 MUX.

Out

Out

S

S

S S

Z

I 0

I 1

≡

I 0

I 1

MUX

Z

S

Z= I 0 when S= Z= I 1 when S=

Z = SI 0 + SI 1 Docsity.com

5

Generalization of the TT:

S Z 0 1 1 1

Z = S ⋅ 1 + S ⋅ 1 = 1

S Z

Z = S ⋅ 1 + S ⋅ 0 = S

S Z 1 1 0 0

Z = S ⋅ 1 + S ⋅ 0 = S

S Z 0 I (^0) 1 I (^1)

Z = SI 0 + SI 1 is the function implemented by the above 2:1 MUX. Such a TT in general provides a decomposition of the final function Z into constituent functions I 0 & I (^1) Thus, the 2:1 MUX can also be implemented by logic gates:

2:1 MUX : z

I (^0) S I (^1) Docsity.com

7

In general, # of data inputs (I (^) i s) is 2 n

of control I/Ps = n

[If S 1 S 0 = 00 (#0), Z = I (^) o S 1 S 0 = 01 (#1), Z = I (^1) S 1 S 0 = 10 (#2), Z = I (^2) S 1 S 0 = 11 (#3), Z = I 3 ]

S 1 S 0 Z

0 0 I 0

0 1 I 1

1 0 I 2

1 1 I 3

Z = S 1 S 0 I 0 + S 1 S 0 I 1 + S 1 S 0 I 2 + S 1 S 0 I 3

8

2 n^ : 1

Sn-1 S 1 S 0

Z

I 2 n − 1

I 1

I 0

In general for a 2n^ :1 MUX with control signals/inputs Sn-1 ··· S 1 S 0 & “data” inputs I 0 , ···, , Z = I (^) i when Sn-1 ··· S 1 S 0 combination represents #i in binary.

I 2 n − 1

10

When S 0 =0, I 0 , I 2 get selected at the 1st level, i.e., Input w/ 0 in LSB. When S 0 =1, I 1 , I 3 (LSB=1) get selected at the 1st level.

If S 0 = 0, I 0 , I 2 , become the 0th & 1st inputs to the next level.

At the next level, the I/P order # is determined by the rest of the bits of their index after stripping off the LSB. Thus I 0 I (^0) I 2 I 1 At level 2

strip away for the 2nd level inputs.

11

I 0

I 2

S 0 =

From level 1

I 0

I 1

Level 2

Z= I 0 of level 2 (I 0 of level 1), S 1 =0. = I 1 of level 2 (I 2 of level1) if S 1 =1.

I (^1) I 3 Level 1

0 1 strip

1 1 S strip 0 =

I 0

I 1

MUX

Z

S 1

Z= I 0 of Level 2 (I 1 of Level1) if S 1 =

= I 1 of level 2 (I 3 of level 1) if S 1 =

Thus the design works as a 4:1 MUX.

13

MUX

I (^0) I (^1) I (^2) I (^3) I (^4) I (^5) I (^6) I (^7)

S 2 S 1 S 0

Opening up the 8:1 MUX’s hierarchical design

I 1

MUX S 0

I (^0)

I 3

MUX S 0

I (^2)

I 5

S 0

I (^4)

I (^7)

MUX

S 0

I (^6)

2: MUX

I (^0)

I (^2)

I (^4)

I (^6)

Z

2: MUX

2: MUX

2: MUX Z

S 1

S 1

S 2

I (^2)

I (^6)

I (^6)

Selected when S 0 = 0

Selected when S 0 = 0, S 1 = 1. These i/ps should differ in S 2

Selected when S 0 = 0, S 1 = 1, S 2 =

These inputs should have different lsb or S 0 values, since their sel. is based on S 0 (all other remaining, i.e., unselected bit values should be the same). Similarly for other i/p pairs at 2:1 Muxes at this level.

These inputs should have different S 1 values, since their sel. is based on S 1 (all other remaining, i.e., unselected bit values should be the same). Similarly for other i/p pairs at 2:1 Muxes at this level.

14

MUX

I (^0) I (^1) I (^2) I (^3) I (^4) I (^5) I (^6) I (^7)

S 2 S 1 S 0

8:1 MUX’s: Input groupings for a different control variable order

I (^4)

MUX S 2

I (^0)

I (^5)

MUX S 2

I (^1)

I (^6) S 2

I (^2)

I (^7)

MUX

S 2

I (^3)

2: MUX

I (^) x

I (^) x

I (^) x

I (^) x

Z

2: MUX

2: MUX

2: MUX Z

S 0

S 0

S 1

I (^) x

I (^) x

I (^6)

Selected when S 2 = 1

Selected when S 2 = 1, S 0 = 0. These i/ps should differ in S 1

Selected when S 0 = 0, S 1 = 1, S 2 =

These inputs should have different lsb or S 2 values, since their sel. is based on S 2 (all other remaining, i.e., unselected bit values should be the same). Similarly for other i/p pairs at 2:1 Muxes at this level.

These inputs should have different S 0 values, since their sel. is based on S 0 (all other remaining, i.e., unselected bit values should be the same). Similarly for other i/p pairs at 2:1 Muxes at this level.

16

Using MUXes to Realize Logic Circuits

Example: (^) f ( A , B , C )= (^) ∑ m ( 0 , 2 , 6 , 7 )

-- Use A,B,C as control inputs to an 8:1 MUX.

-- Treat the data inputs I 0 , ···, I 7 as possible minterms of f:

Input I (^) i is a minterm if #i appears in the Σ m notation of f.

If I (^) i is a minterm of f, it should be connected to a ‘1’, otherwise it should be connected to a ‘0’.

I (^0) I (^1) I (^2) I (^3) I (^4) I (^5) I (^6) I (^7)

MUX

S 2 S 1 S 0 A (^) B (^) C

f

1 0 1 0 0 0 1 1

17

A 3-variable function can always be implemented by only an 8: MUX.

Interestingly, a 3-var. function can also always be implemented by only a 4:1 MUX (assuming vars & their complements are avail.)

Example f(A,B,C) = Σ m(0,2,6,7)

  • Select any 2 variables, say, A,B, for the 2 control inputs
  • In a 3-var. K-map, group together squares into 2-squares in which the other variable C varies, but A,B remains constant. •Form implicants 2-square only within 2-squares and write out the function

00 01 11 10 0

1

AB C

AB AB C AB C

  • (^) f = ( AB ) C +( AB ) C +( AB )⋅ 0 +( AB )⋅ 1

19

0 1 2 3

MUX

S 1 S (^0)

f

A B

C

C

A B f

0 0 0 1 1 0 0 1 1 1

C C

-- A general n-variable function f(An-1 , An-2 , ···, A 0 )

Implementation possible using a 2n^ : 1 MUX (w/o requiring any extra gates)? Yes.

Implementation possible using a 2n-1^ : 1 MUX (w/o requiring any extra gates)? Yes.

20

AB CD 00 01 11 10 00 01

11 10

A BC D ABC

A BC

ABC D

0 1 2 3 4 5 6 7 D D 0 1 1 0 0 0

A B C

f

( ) 1 ( ) 0 ( ) 0 ( ) 0

( ) ( ) ( ) 0 ( ) 1

  • ⋅ + ⋅ + ⋅ + ⋅

= + + ⋅ + ⋅ ABC ABC ABC ABC

f ABC D ABC D ABC ABC

E.g.: A 4-var. function f(A,B,C,D) Choose A, B, C as the control inputs