Top Banner
Timing in Sequential circuits – Stabilization time of a latch R S Q Q’ ssume that: t hl,1 = t lh,1 = t hl,2 = t lh,2 = 1 t 1 2
29

Timing in Sequential circuits – Stabilization time of a latch

Jan 02, 2016

Download

Documents

Isaac Cox

Timing in Sequential circuits – Stabilization time of a latch. 1. 2. Assume that: t hl,1 = t lh,1 = t hl,2 = t lh,2 = 1 time unit. Timing in Sequential circuits – Stabilization time of a latch. Timing in Sequential circuits – Stabilization time of a latch. - PowerPoint PPT Presentation
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: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Stabilization time of a latch

R

S

Q

Q’

Assume that:thl,1 = tlh,1 = thl,2 = tlh,2 = 1 time unit

1

2

Page 2: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Stabilization time of a latch

Time R S Qt Q’t Qt+1 Q’t+1

1 1 0 0 0 1 1

R

S

Q

Q’

Page 3: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Stabilization time of a latch

Time R S Qt Q’t Qt+1 Q’t+1

1 1 0 0 0 1 1

2 1 0 1 1 0 1

R

S

Q

Q’

Page 4: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Stabilization time of a latch

Time R S Qt Q’t Qt+1 Q’t+1

1 1 0 0 0 0 0

2 1 0 0 0 1 1

3 1 0 0 1 0 1

R

S

Q

Q’

Page 5: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Stabilization time of a latch

Time R S Qt Q’t Qt+1 Q’t+1

1 0 1 0 1 1 0

R

S

Q

Q’

It takes time unit for the latch to stabilize

Page 6: Timing in Sequential circuits –  Stabilization time of a latch

clock controlled latch

R

S

Q

Q’

CP

Cycle time

1-cycle time

0-cycle time

Page 7: Timing in Sequential circuits –  Stabilization time of a latch

The Instability problem

Combinatorial circuit

Memory

CP thl of 1

1

Memory is updatable

outputinput

Page 8: Timing in Sequential circuits –  Stabilization time of a latch

Solution latch is sensitive to the change in clock

CP

Memory is updatable

Page 9: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Master-Slave Flip Flop

R

S

Q

Q’

CP

R

S

Q

Q’

CP

CP

1 2

Page 10: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Master-Slave Flip Flop

R

S

Q

Q’

CP

R

S

Q

Q’

CP

CP

1 2

CP

Updating the FF

Page 11: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Master-Slave Flip Flop

R

S

Q

Q’

CP

R

S

Q

Q’

CP

CP

1 2

CP

Stabilization of latch 1 and latch 2

Page 12: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Edge triggered D-Flip Flop

CP

D

Q

Q’

Page 13: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Edge triggered D-Flip Flop

CP

D

Q

Q’

Page 14: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Edge triggered D-Flip FlopR

S

Q

Q’

R

S

Q

Q’

CP

D

Page 15: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Edge triggered D-Flip Flop

R

S

Q

Q’

R

S

Q

Q’

CP

D

=0

=0 1

1

10

10

Maintain value

Stabilization before change of clock

0

Page 16: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Edge triggered D-Flip Flop

R

S

Q

Q’

R

S

Q

Q’

CP

D

=1

=0 1

0

10

11

Set value to 0

Stabilization after change of clock

1

Page 17: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Edge triggered D-Flip Flop

R

S

Q

Q’

R

S

Q

Q’

CP

D

=1

=1 1

0

10

11

Set value to 0

1

Input changed Output remains

the same

Page 18: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Definitions

tsetup – time before the change of

clock that the input must not change

thold – time after the change of

clock that the input must not change

Page 19: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Definitions

CP

90%tpC-Q

tcC-Q

FF output

tpC-Q – The time it takes the output to reach its legal value from the relevant change of clock

tcC-Q – The time that the output does not change after the relevant change of clock

Page 20: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Constraints on the timing of the circuit

Flip Flop 1 Flip Flop 2

What should be the constraints on the timing characteristics of FF 1 and 2 To ensure that the circuit works properly?

Page 21: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Constraints on the timing of the circuit

Flip Flop 1 Flip Flop 2

What should be the constraints on the timing characteristics of FF 1 and 2 To ensure that the circuit works properly?

tcC-Q,1 > thold,2

Page 22: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

Analyzing a circuitX1

X2D - FF

Updating the variables in the negative edge (decrease from 1 to 0)FF locks in positive edge (increase from 0 to 1).

1. What is the minimal cycle time (what are the durations of each phase)?2. What is the maximal delay of the circuit output?3. What are the conditions on the timing properties of the clock such that the

circuit will work properly?

1

2

Page 23: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

What is the minimal cycle time (what are the durations of each phase)?

Solution IUpdate Variables

Lock FF

Page 24: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

What is the minimal cycle time (what are the durations of each phase)?

Solution I

tsetuptpd(1)

tpC-Q

Page 25: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

What is the minimal cycle time (what are the durations of each phase)?

Solution II

tsetup

tpd(1)tpC-Q

Page 26: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

What is the maximal delay of the circuit output?

Solution:

tpd =

X1

X2D - FF

1

2

Page 27: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

What is the maximal delay of the circuit output?

Solution:

tpd = tpd(2)

X1

X2D - FF

1

2

The relevant clock change.The FF is already updatedhere

Page 28: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

What are the conditions on the timing properties of the clock such that the circuit will work properly?

Solution: X1

X2D - FF

Page 29: Timing in Sequential circuits –  Stabilization time of a latch

Timing in Sequential circuits –

What are the conditions on the timing properties of the clock such that the circuit will work properly?

Solution: X1

X2D - FF

thold < tcd(1) + tcC-Q