


















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
Digital Systems Design
Lecture Notes #
2
Full-Custom ASICs
Semi-Custom ASICs
User Programmable
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
≡
MUX
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
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
[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 ]
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
I 2 n − 1
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.
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
From level 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 =
MUX
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
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
MUX S 0
I (^0)
MUX S 0
I (^2)
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
I (^) x
I (^) x
I (^) x
I (^) x
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)
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(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