Title: Verilog HDL in Low Level Design
1Verilog HDL in Low Level Design
- From Logic gate level
- To Transistor level design
By Theerayod Wiangtong Electronic Department,
Mahanakorn University of Technology
2Outline
- MOS revisit
- Static CMOS combinational circuit
- ASIC (Layout) design tools
3MOS Structure
4MOS Review
- Transistor gate, source, drain all have
capacitance - I C (DV/Dt) -gt Dt (C/I) DV
- Capacitance and current determine speed
- MOS symbol
5MOS Capacitor
- Gate and body form MOS capacitor
- Operating modes
- Accumulation
- Depletion
- Inversion
6Terminal Voltages
- Mode of operation depends on Vg, Vd, Vs
- Vgs Vg Vs
- Vgd Vg Vd
- Vds Vd Vs Vgs - Vgd
- Source and drain are symmetric diffusion
terminals - By convention, source is terminal at lower
voltage - Hence Vds ? 0
- nMOS body is grounded. First assume source is 0
too. - Three regions of operation
- Cutoff
- Linear
- Saturation
7nMOS Cutoff
8nMOS Linear
- Channel forms
- Current flows from d to s
- e- from s to d
- Ids increases with Vds
- Similar to linear resistor
9nMOS Saturation
- Channel pinches off
- Ids independent of Vds
- We say current saturates
- Similar to current source
10nMOS I-V Summary
- Shockley 1st order transistor models
11Example
- We will be using a 0.6 mm process for your
project - From AMI Semiconductor
- tox 100 Ã…
- m 350 cm2/Vs
- Vt 0.7 V
- Plot Ids vs. Vds
- Vgs 0, 1, 2, 3, 4, 5
- Use W/L 4/2 l
12pMOS I-V
- All dopings and voltages are inverted for pMOS
- Mobility mp is determined by holes
- Typically 2-3x lower than that of electrons mn
- 120 cm2/Vs in AMI 0.6 mm process
- Thus pMOS must be wider to provide same current
- In this class, assume mn / mp 2
13Current-Voltage RelationsLong-Channel Device
Second Order Effect
14ID versus VDS
Long Channel
Short Channel
15CMOS Inverter
N Well
PMOS
2l
Contacts
Out
In
Metal 1
Polysilicon
NMOS
GND
16Two Inverters
Share power and ground Abut cells
Connect in Metal
17CMOS Inverter as Switch
V
V
DD
DD
R
p
V
V
out
out
C
C
L
L
R
n
V
V
V
0
5
5
in
DD
in
(a) Low-to-high
(b) High-to-low
18DC Response
- DC Response Vout vs. Vin for a gate
- Ex Inverter
- When Vin 0 -gt Vout VDD
- When Vin VDD -gt Vout 0
- In between, Vout depends on
- transistor size and current
- By KCL, must settle such that
- Idsn Idsp
- We could solve equations
- But graphical solution gives more insight
19Transistor Operation
- Current depends on region of transistor behavior
- For what Vin and Vout are nMOS and pMOS in
- Cutoff?
- Linear?
- Saturation?
20DC Transfer Curve
- Transcribe points onto Vin vs. Vout plot
21Operating Regions
- Revisit transistor operating regions
22Beta Ratio
- If bp / bn ? 1, switching point will move from
VDD/2 - Called skewed gate
- Other gates collapse into equivalent inverter
23Noise Margins
- How much noise can a gate input see before it
does not recognize the input?
24Logic Levels
- To maximize noise margins, select logic levels at
25Logic Levels
- To maximize noise margins, select logic levels at
- unity gain point of DC transfer characteristic
26Delay Definitions
- tpdr rising propagation delay
- From input to rising output crossing VDD/2
- tpdf falling propagation delay
- From input to falling output crossing VDD/2
- tpd average propagation delay
- tpd (tpdr tpdf)/2
- tr rise time
- From output crossing 0.2 VDD to 0.8 VDD
- tf fall time
- From output crossing 0.8 VDD to 0.2 VDD
- tcdr rising contamination delay
- From input to rising output crossing VDD/2
- tcdf falling contamination delay
- From input to falling output crossing VDD/2
- tcd average contamination delay
- tpd (tcdr tcdf)/2
27Delay Definitions
28Delay Definitions
29Delay Definitions
30Simulated Inverter Delay
- Solving differential equations by hand is too
hard - SPICE simulator solves the equations numerically
- Uses more accurate I-V models too!
- But simulations take time to write
31Outline
- MOS revisit
- Static CMOS combinational circuit
- ASIC (Layout) design tools
32Static CMOS Circuit
33Static Complementary CMOS
VDD
In1
PMOS only
In2
PUN
InN
F(In1,In2,InN)
In1
In2
PDN
NMOS only
InN
PUN and PDN are dual logic networks
34NMOS Transistors in Series/Parallel Connection
Transistors can be thought as a switch controlled
by its gate signal NMOS switch closes when switch
control input is high
35PMOS Transistors in Series/Parallel Connection
36Threshold Drops
VDD
VDD
PUN
S
D
VDD
D
S
0 ? VDD
0 ? VDD - VTn
VGS
VDD ? 0
PDN
VDD ? VTp
VGS
S
D
VDD
S
D
37Complementary CMOS Logic Style
38Example Gate NAND
39Example Gate NOR
40Complex CMOS Gate
OUT D A (B C)
A
D
B
C
41Standard Cells
N Well
Cell height 12 metal tracks Metal track is
approx. 3? 3? Pitch repetitive distance
between objects Cell height is 12 pitch
2?
Out
In
Rails 10?
GND
Cell boundary
42Standard Cells
2-input NAND gate
A
B
Out
GND
43Stick Diagrams
Contains no dimensions Represents relative
positions of transistors
Inverter
NAND2
Out
Out
In
A
B
GND
GND
44Two Stick Layouts of !(C (A B))
45Connection label layout
46VDD, VSS and Output Labels
47Interconnected
48CMOS Properties
- Full rail-to-rail swing high noise margins
- Logic levels not dependent upon the relative
device sizes ratioless - Always a path to Vdd or Gnd in steady state low
output impedance - Extremely high input resistance nearly zero
steady-state input current - No direct path steady state between power and
ground no static power dissipation - Propagation delay function of load capacitance
and resistance of transistors
49Switch Delay Model
Req
A
A
NOR2
INV
NAND2
50Input Pattern Effects on Delay
- Delay is dependent on the pattern of inputs
- Low to high transition
- both inputs go low
- delay is 0.69 Rp/2 CL
- one input goes low
- delay is 0.69 Rp CL
- High to low transition
- both inputs go high
- delay is 0.69 2Rn CL
Rn
B
51Outline
- MOS revisit
- Static CMOS combinational circuit
- ASIC (Layout) design tools
52Layout
- Chips are specified with set of masks
- Minimum dimensions of masks determine transistor
size (and hence speed, cost, and power) - Feature size improves 30 every 3 years or so
- Normalize for feature size when describing design
rules
53Transistor Layout
54CMOS Process Layers
55Intra-Layer Design Rules
4
Metal2
3
56CMOS Inverter Layout
57Detailed Mask Views
- Six masks
- n-well
- Polysilicon
- n diffusion
- p diffusion
- Contact
- Metal
58Traditional Design tools
59New Design tools
HDL (Verilog)
60Cadence Design Tools Example
61QUESTIONS?
THANK YOU