Top Banner
Xuan ‘Silvia’ Zhang Washington University in St. Louis http:// classes.engineering.wustl.edu /ese566/ Lecture 6 Sequential Circuits and Memory
29

Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Mar 30, 2018

Download

Documents

dangquynh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Xuan ‘Silvia’ Zhang Washington University in St. Louis

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

Lecture 6 Sequential Circuits and Memory

Page 2: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Outline

2

Page 3: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

SR Latch

•  Basic NOR latch

3

S (set)

R (reset) Q

Q

S

R

0

0

not allowed

Q

Q

1

0

tpd

set

reset

unstable No change

Page 4: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Other SR Latches

•  Clocked

•  NAND SR latch

4

1

2

Q

Q

S

R

Clk

Q S (set)

R (reset) Q

S

R

C

Q

Q

S

R

Page 5: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

D Latch

•  Truth table

5

S R Q+ Q+ 0 0 hold, 0 1 0 1 1  0 1 0 1 1 0 0

SR latch:

C

D Q

Q

D Q

C

Q

D Q(t+1) 0 0 1 1

D latch

Page 6: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Level-Sensitive Latch

6

Page 7: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Flip-Flop

•  Latch timing issue –  transparent when C = 1 –  state should change only once every new clock cycle

•  Master-slave flip flop –  break feedthrough

7

Combina-tional Logic D Latch

(storage)

Inputs Outputs

State Next State

X0 X1 X0 X1

X2

C=0

X1 X1 X1 X2 X3

→1

C

S

R

Q

Q

Q

Q

C R

Q

Q

C

S

R

S Y

/Y

Page 8: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Flip-Flop Timing Issue

•  1’ catching

8

C

S

R

Y

Q Slave out

Master out

Master active

Slave active

1’ catching

wrong output should have been 0

C

S

R

Q

Q

Q

Q

C R

Q

Q

C

S

R

S Y

Y’

Glitch

Page 9: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Edge-Triggered D Flip-Flop (DFF)

•  Why edge trigger? •  D replace S and R input

9

C

S

R

Q

Q C

Q

Q C

D Q D

Q

C

D

Y

Q Slave out

Master out

Master active

Slave active no 1’ catching

correct output

Y

Page 10: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Edge-Sensitive Flip-Flop

10

Page 11: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Outline

Sequential Circuits Timing Analysis Memory

11

Page 12: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Timing in Digital Logic

•  Setup time •  Hold time

12

Page 13: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Timing in Digital Logic

•  Launch edge and latch edge

13

Page 14: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Timing in Digital Logic

•  Data arrival time: using launch edge

Tclk Clock Skew

Tco FF Clock-> Output

Tdata Logic Delay

14

Page 15: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Timing in Digital Logic

•  Clock arrival time

15

Page 16: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Timing in Digital Logic

•  Data required time (setup): latch edge

16

Page 17: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Timing in Digital Logic

•  Data required time (hold): next launch = latch

17

Page 18: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Timing in Digital Logic

•  Setup slack

18

Page 19: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Timing in Digital Logic

•  Hold slack

19

Page 20: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Static Timing Analysis

•  Timing Model and Timing Constraint •  Arrival Time (AT) and Required Time (RT)

20

Page 21: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Outline

Sequential Circuits Timing Analysis Memory

21

Page 22: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

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

22

Page 23: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

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

23

Page 24: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

SRAM Architecture

24

source: semiengineering.com

Page 25: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Multi-Bank Layout

25

source: semiengineering.com

Page 26: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Questions?

Comments?

Discussion?

26

Page 27: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Design Tool Tutorials

•  Standard-cell based design flow

27

Page 28: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

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

28

Page 29: Lecture 6 Sequential Circuits and Memory 6 Sequential Circuits and Memory . Outline 2 . SR Latch • Basic NOR latch 3 S (set) R (reset) Q Q S R 0 0 not allowed Q Q 1 0 t pd set reset

Acknowledgement

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

29