Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic...

35
Xuan ‘Silvia’ Zhang Washington University in St. Louis http:// classes.engineering.wustl.edu /ese566/ Lecture 4&5 CMOS Circuits

Transcript of Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic...

Page 1: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Xuan ‘Silvia’ Zhang Washington University in St. Louis

http://classes.engineering.wustl.edu/ese566/

Lecture 4&5 CMOS Circuits

Page 2: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Worst-Case VOL

2

Page 3: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Outline

Combinational Logic (Delay Analysis) Sequential Circuits Memory

3

Page 4: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

RC Delay

•  Lumped Model –  C only –  RC model

4

Page 5: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Elmore Delay Formula

•  Assumptions regarding the RC network –  the network has a single input node –  all the capacitors are between a node and the ground –  the network does not contain any resistive loops (tree)

•  Unique resistive path –  path resistance –  shared path resistance

5

Page 6: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Example: RC Ladder/Chain

6

What if distributed?

Page 7: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Distributed RC Line

7

Page 8: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Calculate Wire Delay

•  Rule of Thumb –  RC delay should only be considered when tpRC>>tpgate

–  RC delay should only be considered when the rise/fall time at the line input is smaller than RC: trise<RC

8

Page 9: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Inverter Propagation Delay

•  Simplified switch model –  find equivalent resistance

–  apply RC delay

9

Page 10: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Minimize Inverter Delay

•  Reduce CL –  keep the drain diffusion areas as small as possible

•  Increase W/L ratio –  will minimize the delay until intrinsic capacitance

dominate è “self-loading”

•  Increase VDD –  reliability concerns

•  NMOS/PMOS ratio

10

Page 11: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Sizing Inverter for Performance

•  Inverter delay model

•  Size scaling factor (S)

11

Page 12: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Sizing Inverter Chain

•  Intrinsic delay

•  Inverter delay chain

12

Page 13: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Optimal Number of Inverters in the Chain

13

Page 14: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Examples: Inverter Sizing and Delay

14

Page 15: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Propagation Delay of Complex Logic Gates

•  Depend on inputs

•  Internal cap matters

15

Page 16: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Sizing Combinational Network for Performance

•  Inverter delay •  Complex logic delay

–  p: ratio of the intrinsic (unloaded) delay of the complex gate and the simple inverter. Affected by both topology and layout style

–  g: logic effort –  f: electrical effort

16

Page 17: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Logic Effort (g)

•  For a given capacitive load, complex gates have to work harder than an inverter to produce similar response

17

Page 18: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Optimal Sizing of Combinational Network

•  Gate effort –  h=fg

•  Optimal delay condition

18

Page 19: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Outline

19

Page 20: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Level-Sensitive Latch

20

Page 21: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

SR Latch

•  Basic NOR latch

21

S (set)

R (reset) Q

Q

S

R

0

0

not allowed

Q

Q

1

0

tpd

set

reset

unstable No change

Page 22: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Other SR Latches

•  Clocked

•  NAND SR latch

22

1

2

Q

Q

S

R

Clk

Q S (set)

R (reset) Q

S

R

C

Q

Q

S

R

Page 23: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Edge-Sensitive Flip-Flop

23

Page 24: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Outline

Combinational Logic (Delay Analysis) Sequential Circuits Memory

24

Page 25: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Static RAM

•  Applications –  CPU register file, cache, embedded memory, DSP

•  Characteristics –  6 transistor per cell, other topologies –  no need to refresh –  access time ~ cycle time –  no charge to leak –  faster, more area, more expensive

25

Page 26: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

SRAM Operation

•  Standby –  word line de-asserted

•  Read –  precharge bit lines –  assert WL –  BL rise/drop slightly

•  Write –  apply value to BL –  assert WL –  input drivers stronger

26

Page 27: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

SRAM Architecture

27

source: semiengineering.com

Page 28: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Multi-Bank Layout

28

source: semiengineering.com

Page 29: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Questions?

Comments?

Discussion?

29

Page 30: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Homework #3

•  Posted on class website •  Due on 2/6 at 2:30pm •  Solution will be posted on 2/5 evening •  Use it as an exercise to prepare for exam •  Will release excerpts from textbook on

BlackBoard

30

Page 31: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

In-Class Exam

•  2/6 in the lecture room •  Starts at 2:40pm and ends at 4:00pm •  Designed to be completed in 60min •  75% material similar to HW0 and HW1 •  25% material similar to HW2 and HW3

31

Page 32: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Design Tool Tutorials

•  Standard-cell based design flow

32

Page 33: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Design Tool Tutorials

•  Functional Simulation –  tool: Synopsys VCS –  simulate your HDL (eg. Verilog) code to verify

functionality

•  Logic Synthesis –  tool: Synopsys Design Compiler (DC) –  convert/synthesize behavioral/RTL level HDL to gate-

level netlist (i.e. connectivity list)

•  Physical Design (Place & Route) –  tool: Cadence Encounter –  given the gate-level netlist, place and route the design

to complete an IC chip in its final physical form

33

Page 34: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Lab1: Design Tool Tutorials

•  Will be posted on 2/7 before the Wed lecture •  TA will give hand-on introduction on 2/8 •  Please bring your laptop •  Please set up your SEAS account •  Please send your Github ID to Yunfei •  Please walk through the Linuxlab tutorial •  Please read Lab1 before the lecture, so you can

ask questions •  Due on 2/22 at 2:30pm

34

Page 35: Lecture 4&5 CMOS CircuitsLecture 4&5 CMOS Circuits . Worst-Case V OL 2 . Outline Combinational Logic (Delay Analysis) Sequential Circuits Memory 3 . RC Delay • Lumped Model – C

Acknowledgement

Jan Rabaey, “Digital Integrated Circuits”, 2006 Cornell University, ECE 5745

35