You are on page 1of 47

|  

  |



BRIO E LABS

 
M
M
M
M
M

a OS Gate Design
Pass Transistors
a OS Latches & Flip-Flops
Standard aell Layouts
Stick Diagrams

a

  

a 






M

Activity:
Sketch a 4-input a OS NAND gate

a

  

a 






M

Activity:
Sketch a 4-input a OS NOR gate

A
B
a
D
Y

a

  

a 




 

M

aomplementary a OS logic gates


n OS  

p OS   

inputs
a.k.a. static a OS

Pull-up OFF

Pull-up ON

Pull-down OFF Z (float)

Pull-down ON

X (crowbar)

a

  

a 

p OS
pull-up
network

output
n OS
pull-down
network




 
M
M
M
M

n OS: 1 = ON
p OS: 0 = ON

 : both must be ON

: either can be ON

a
g1
g2

OFF

OFF

ON

b
(b)

a
g2

(c)

a
g1

g2
b

(d)

a 

ON

OFF

OFF

OFF

a

  

b
OFF

g1

(a)

g2

g1

OFF

ON

ON

ON

ON

ON

ON

OFF




    
M
M

aomplementary a OS gates always produce 0 or 1


Ex: NAND gate
Series n OS: Y=0 when both inputs are 1
Thus Y=1 when either input is 0
Y
Requires parallel p OS
A

Rule of a  a


Pull-up network is complement of pull-down
Parallel -> series, series -> parallel

a

  

a 




 
M
M

a   can do any inverting function


Ex: Y = ( . + C. )
C

(a)

( )
C

C
(c)

(d)

C
Y

(f)
(e)

a

  

a 




j  |
M

Y = ((A+B+a).D)

a

  

a 




j  |
M

Y = ((A+B+a).D)

A
B
a

D
Y
D

a

  

a 




   


M
M
M
M
M


  of signal
How close it approximates ideal voltage source
VDD and GND rails are strongest 1 and 0
n OS pass strong 0
But degraded or weak 1
p OS pass strong 1
But degraded or weak 0
Thus n OS are best for pull-down network

a

  

a 




 
Transistors can be used as switches

a

  

a 




 
Transistors can be used as switches

In ut
s

stron

de raded
In ut

ut ut

de raded

stron

a

  

ut ut

a 




  


M
M

Pass transistors produce degraded outputs

    pass both 0 and 1 well

a

  

a 




  


M
M

Pass transistors produce degraded outputs

    pass both 0 and 1 well


Input
g
a

b
gb

g = 0, gb = 1
a
b

g = 1, gb = 0
0
strong 0

g = 1, gb = 0
a
b

g = 1, gb = 0
strong 1
1

g
b
gb

a

  

g
b

gb

Output

b
gb

a 






 
produces Z when not enabled

EN

EN

EN
Y

A
EN

a

  

a 






 
produces Z when not enabled

EN

EN
Y

EN
Y

A
EN

a

  

a 




  
M

Transmission gate acts as tristate buffer


Only two transistors
But 
 

Noise on A is passed on to Y

N
A

Y
N

a

  

a 




|
M



Tristate inverter produces restored output


Violates conduction complement rule
Because we want a Z output
A
EN
Y
EN

a

  

a 




|
M



Tristate inverter produces restored output


Violates conduction complement rule
Because we want a Z output
A

A
EN
Y

EN = 0
Y = 'Z'

EN = 1
Y=A

EN

a

  

a 





 
M

2:1   
chooses between two inputs
S

D1

D0

a

  

D0

0
Y

D1

a 





 
M

2:1 multiplexer chooses between two inputs


S

D1

D0

a

  

a 

D0

0
Y

D1




! 
 
M
M

o 

  



How many transistors are needed?

a

  

a 




! 
 
M
M

  



o 

How many transistors are needed? 20

D1
S
D0

D1
S
D0
a

  

2
4

a 




  



M

Nonrestoring mux uses two transmission gates

a

  

a 




  



M

Nonrestoring mux uses two transmission gates


Only 4 transistors

S
D0
Y

S
D1
S
a

  

a 




|
M

 


Inverting multiplexer
Use compound AOI22
Or pair of tristate inverters
Essentially the same thing
Noninverting multiplexer adds an inverter

D0
S

S
D1

D0

D1

S
Y

Y
S

D0

S
D1

a

  

a 

0
1




"
 
M

4:1 mux chooses one of 4 inputs using two selects

a

  

a 




"
 
M

4:1 mux chooses one of 4 inputs using two selects


Two levels of 2:1 muxes
S1S0 S1S0 S1S0 S1S0
Or four tristates
D0
S0
D0

S1

0
D1

D1

0
Y

Y
D2

D3

1
D2

D3

a

  

a 





Ahen aLK = 1, latch is


D flows through to Q like a buffer
M Ahen aLK = 0, the latch is   
Q holds its old value independent of D
M a.k.a.

   or    
M

C
tc

a

  

a 





M

ultiplexer chooses D or old Q


aLK

aLK

Q
Q

0
aLK

aLK

aLK

a

  

a 




 
Q
D

aLK = 1

Q
D

aLK = 0

aLK

D
Q
a

  

a 




#!$
M
M
M

Ahen aLK rises, D is copied to Q


At all other times, Q holds its value
a.k.a.  

 ,  
  
 

a

  

a 




#!$
M

Built from master and slave D latches


C

C
C
C

atch

C
atch

a

  

a 




#!$ 
D

aLK = 0

aLK = 1

aLK

D
Q

a

  

a 




O  
M

Back-to-back flops can malfunction from clock skew


Second flip-flop fires late
Sees first flip-flop change and captures its result
aalled   
 or
 
aLK1
aLK2
Q1

Flop

Flop

aLK1

aLK2
Q2

Q1
Q2

a

  

a 




    %
M
M

Nonoverlapping clocks can prevent races


As long as nonoverlap exceeds clock skew
Ae will use them in this class for safe design
Industry manages skew more carefully instead

M

a

  

a 





M

Layout can be very time consuming


Design gates to fit together nicely
Build a library of standard cells
Standard cell design methodology
VDD and GND should abut (standard height)
Adjacent gates should satisfy design rules
n OS at bottom and p OS at top
All gates include well and substrate contacts

a

  

a 




j |

a

  

a 






j 
M
M
M
M
M

Horizontal N-diffusion and p-diffusion strips


Vertical polysilicon gates
etal1 VDD rail at top
etal1 GND rail at bottom
32 by 40

a

  

a 




%
M

   
 help plan layout quickly
Need not be to scale
Draw with color pencils or dry-erase markers

a

  

a 




A %
M
M

A 

 is the space required for a wire
4 width, 4 spacing from neighbor = 8 pitch
Transistors also consume one wiring track

a

  

a 




A 
M

Aells must surround transistors by 6


Implies 12 between opposite transistor flavors
Leaves room for one wire track

a

  

a 




j
M

Estimate area by counting wiring tracks


ultiply by 8 to express in

a

  

a 




j  |
M

Sketch a stick diagram for O3AI and estimate area


Y = ((A+B+a).D)

a

  

a 




j  |
M

Sketch a stick diagram for O3AI and estimate area


Y = ((A+B+a).D)

a

  

a 




j  |
M

Sketch a stick diagram for O3AI and estimate area


Y = ((A+B+a).D)

a

  

a 




You might also like