


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















1 EECS 465: Digital Systems Design Lecture Notes # Logic Design Using Compound Components: Multiplexers SHANTANU DUTT Department of Electrical and Computer Science University of Illinois, Chicago Phone: (312) 355-1314; e-mail: [email protected] URL: http://www.eecs.uic.edu/~dutt
2
Full-Custom ASICs Semi-Custom ASICs User Programmable PLD FPGA PLA/PAL CPLDs Simple gates (nand/ nor/xor/xnor..) Complex gates Muxes
(layout aspect; not prog. aspect)
4 Reversing the connection of A: A (^) bubble CI A (^) normal CI In Out
T-gate conducts when A=0. Multiplexer (MUX) Design: A 2:1 MUX. Out Out
S S
0 I 1
0 I 1
MUX
0 when S= Z= I 1 when S= Z SI 0 SI 1
5 Generalization of the TT: S Z 0 1 1 1 Z S 1 S 1 1
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 S I 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
7 In general, # of data inputs (I i s) is 2 n
[If S 1
0
o S 1
0
1 S 1
0
2 S 1
0
3
1
0
0 0 1 I 1 1 0 I 2 1 1 I 3 1 0 0 1 0 1 1 0 2 1 0 3 Z S S I S S I S S I S S I
8
n : 1 S n-
1
0
2 1 I n
1
0 In general for a 2 n :1 MUX with control signals/inputs S n-
1
0 & “data” inputs I 0
i when S n-
1
0 combination represents #i in binary. 2 1
10 When S 0
0
2 get selected at the 1st level, i.e., Input w/ 0 in LSB. When S 0
1
3 (LSB=1) get selected at the 1st level. If S 0
0
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
0 I 2
1 At level 2 0 0 (# 0) 1 0 (# 2) strip away for the 2nd level inputs.
11
From level 1
0 I 1 Level 2
0 of level 2 (I 0 of level 1), S 1
1 of level 2 (I 2 of level1) if S 1
1 I 3 Level 1 0 1 strip 1 1 strip S 0
0 I 1
MUX
1
0 of Level 2 (I 1 of Level1) if S 1
1 of level 2 (I 3 of level 1) if S 1
Thus the design works as a 4:1 MUX.
13
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
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
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 Ix Ix Ix Ix
2: MUX 2: MUX 2: MUX Z S 0 S 0 S 1 I x Ix 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
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
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)
00 01 11 10 0 1 AB C AB AB C AB C
19 0 1 2 3
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(A n-
n-
0
Implementation possible using a 2 n : 1 MUX (w/o requiring any extra gates)? Yes. Implementation possible using a 2 n- : 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 A BC E.g.: A 4-var. function f(A,B,C,D) Choose A, B, C as the control inputs