cell design and layout

31
Cell Design and Layout Kenneth Yun UC San Diego Adapted from EE271 notes, Stanford University

Upload: vuquynh

Post on 02-Jan-2017

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cell Design and Layout

Cell Design and Layout

Kenneth YunUC San Diego

Adapted from EE271 notes,Stanford University

Page 2: Cell Design and Layout

Overviewn Wiresn FPGAn Gate Arrayn Standard Celln Datapath Cellsn Cell Layoutn Reading

n W&E 6.3-6.3.6, 5.3

Page 3: Cell Design and Layout

Wiresn Part of capacitive load

n Need to know the length to size (driver) gates

n Need to plan for it

n Resistancen Long wires have RC time constants

n Special wiresn Power, ground, and clockn Need to have low resistance

Page 4: Cell Design and Layout

Wire Properties

S/D,M1HighMediumpdiff

S/D,M1HighMediumndiff

gate,M1LowMediumpoly

diff,poly,M2LowLowM1

M1LowLowM2

Connects toCapacitanceResistanceLayer

Page 5: Cell Design and Layout

Wire Characteristics

1/30005Ωpdiff115KΩnMOS230KΩpMOS

1/30005Ωndiff1/30005Ωpoly1/1.5x1050.1ΩmetalR•/RtransR•Layer

Wt

L

W

LR

W

L

tR sq==

ρ

Page 6: Cell Design and Layout

Wire Usagen Diffusion

n Bad wire (high capacitance)n Only used to connect to transistors

n Polyn Resistance high: good for short, local

interconnectsn Do not use to route outside cells or as jumpers in

long wires

n Metaln M1: only conductor that can connect to poly and

diffn M1,…,Mn−1 for general wiringn Mn for Vdd, Ground, and clock routing

Page 7: Cell Design and Layout

Cell Implementation Technologiesn Field programmable gate arrays (FPGA)

n Chips prefabricated; program fuses/anti-fuses

n Gate arrays (mask programmable)n Transistors prefabricated; customize metal to

generate cells

n Standard cellsn All cells have fixed heightn Wiring may be restricted to channels

n Macro cellsn Similar to standard cells butn Wiring done over cells

n Memory (2D array)

Page 8: Cell Design and Layout

FPGAn Logic is programmed into chip after

fabricationn Programming done using

n Memory cells and CMOS switchesn Fuse/anti-fusen EPROM cells hold values for 10 years

n Customizing wiresn To program connections, need switchesn Switches have R and C; slows down signals on

wires

n Completely prefabricated in large volumen Cost effective for certain applications

Page 9: Cell Design and Layout

FPGA Wiringn Standard cell like wiring (with channels)

n Each channel has wires of different lengthn How many of each length determined by design

statisticsn Use logic blocks as repeaters when necessaryn Problem: switches in wires (high resistance)

Page 10: Cell Design and Layout

Gate Arrayn Transistors predefined

n W/L all the same (or choice limited)n Transistors prefabricatedn Chip covered with transistors (sea of gates)

n Designer provides metal patterns that form logic gates by connecting transistorsn Transistors under wiring channels not used. Why?

n Cheaper and faster to manufacture than standard cells. Why?

Page 11: Cell Design and Layout

Gate Array Layout

2-input NAND

out

Vdd Vdd

Gnd

A B

Gnd

Page 12: Cell Design and Layout

Standard Celln Appropriate for all or part of a custom chipn All cells have the same height (with abutting

power and ground)n Cells tiled into rowsn Rows separated by routing channels

n Channel height variable

CellHeight

(includesVdd, Gnd) Channel

height

Page 13: Cell Design and Layout

Standard Cell Layout Example

Page 14: Cell Design and Layout

Macro Celln Standard cell with wiring done

inside celln 1D – datapathn 2D – memory

n Wires kept short and regularn Less wiring arean Less wire load (drivers can be

smaller)n Order cells to minimize wire

lengths

bitslice

control (word line)

bit line

regmux adder

Page 15: Cell Design and Layout

Datapathn Fixed height cells with bit pitch set to

n height of tallest celln accommodate the total number of over-the-cell

wires per bitn 128λ a good choicen Often, cells are mirrored (every other cell is

flipped vertically) to share Vdd and Gnd rails. Why?n Some cells take up multiple bit pitches

n E.g., 4-bit Manchester carry chain

n Variable widthn Depends on functionality of cells

Page 16: Cell Design and Layout

Datapath (continued)n Wires over cells

n Bit lines for datan Word lines for control, clock

n Place cells to minimize number of horizontal tracks and wire lengths

Registers

ΦA ΦB

Adder

ΦAΦB

LAR R R R LB MX LB AddLA

Slice Plan

Requires3 Tracks

Page 17: Cell Design and Layout

Basic Layout Guidelinesn Do wire planning before cell layout

n Assign preferred direction to each layern Group p’s and n’sn Determine input/output port locationsn Power, ground, and clock wires must be wide

n Determine cell pitchn Height of tallest celln Number of over-the-cell tracks and wire lengths

n Use metal for wiringn Use poly for intra-cell wiring onlyn Use diffusion for connection to transistors only

n Do stick diagram first!

Page 18: Cell Design and Layout

Basic Cell Layout Guidelinesn P-N spacing is large, so keep pMOS

together and nMOS togethern Mirror cells, if necessary. How does it help?

n Vdd and ground distribution must be in wide metaln Vdd runs near pMOS groupsn Ground runs near nMOS groups

n Layers in alternate directionsn M1 and M2 should run in (predominantly)

orthogonal directions. Why?

Page 19: Cell Design and Layout

Transistor Layout

n Transistors should be at least as wide as contacts (4λ)

n Use as many contacts as possible for wider transistors

n Don’t use 3λ device except for weak devices

Good bad bad bad

Page 20: Cell Design and Layout

Transistor Foldingn Better aspect ratio for large transistorsn Reduces diffusion area

32/2

16/2 16/2

32/2 16/2 16/2 8/2 8/2 8/2 8/2

8/2 8/2 8/2 8/2

Page 21: Cell Design and Layout

Folding Series Gatesn Fold the whole stack, not individual

transistors

Page 22: Cell Design and Layout

Example: Standard Cell Latchn Static designn Φ’ generated internallyn Feedback isolated from output

Φ

outin

Page 23: Cell Design and Layout

Standard Cell Stick Diagram

clk in out

Transistors share diffusionLocal poly routing

Vdd

Gnd

Room for M2 track over cell

Page 24: Cell Design and Layout

Standard Cell Layout

Page 25: Cell Design and Layout

Datapath Cell Layout Optionsn Data/control

n Data bus in M1 and control in M2n Data bus in M2 and control in M1

n Power/Groundn in control direction (vertical)n in data direction (horizontal)

Page 26: Cell Design and Layout

Stick Diagram (1)n Start with just wires

Vdd

Gnd

DIN

DOUT

ST ST’ RD RD’

Page 27: Cell Design and Layout

Stick Diagram (2)n Draw transistors connected to inputs

and outputs

Vdd

Gnd

DIN

DOUT

ST ST’ RD RD’

Page 28: Cell Design and Layout

Stick Diagram (3)n Draw remaining transistors

Vdd

Gnd

DIN

DOUT

ST ST’ RD RD’

Page 29: Cell Design and Layout

Power and Groundn Resistance of power supply line must be

very smalln If too large, then the voltage supplied to

gates will drop (why?), which may cause malfunction of gates

n So, power supply lines must be wide metaln Rtrans >> Rmetal

n Not so easy since wires are long and transistors are large

Page 30: Cell Design and Layout

Power IR Dropn Example: for 100K gate chip

n Each gate drives 1mm wire (200fF) in 500psn I = C dV/dt = 200fF x 2.5V / 500ps = 1mAn If all switch at once, 100A!n Even if only 10% switch at once, still 10A peak

current!

n Considerable IR drop!n Need many supply pins, wide power supply

wiresn Grids are good for low R

Page 31: Cell Design and Layout

Power Distributionn Distribute power on thickest metal

Gnd

Vdd

local buses