Docsity

Understanding Sequential Logic: Latches, Flip-Flops, and Timing - Prof. Andrew Fagg, Assignments of Aerospace Engineering

Partial preview of the text

Download Understanding Sequential Logic: Latches, Flip-Flops, and Timing - Prof. Andrew Fagg and more Assignments Aerospace Engineering in PDF only on Docsity!

Andrew H. Fagg: Embedded Real-Time Systems: Sequential 1

Today

Sequential logic

  • Latches
  • Flip-flops
  • Counters

Andrew H. Fagg: Embedded Real-Time Systems: Sequential 2

Time

Until now: we have essentially ignored the issue of time

  • We have assumed that our digital logic circuits perform their computations instantaneously
  • Our digital logic circuits have been “stateless” - Once you present a new input, they forget everything about previous inputs

Andrew H. Fagg: Embedded Real-Time Systems: Sequential 4

Timing Notation

time

X

high low In transition (undetermined)

Andrew H. Fagg: Embedded Real-Time Systems: Sequential 5

Timing Notation

time

X

Either high or low (but well defined and constant) low In transition (undetermined)

Andrew H. Fagg: Embedded Real-Time Systems: Sequential 7

NAND Latch

Consider this initial state Is this a stable state?

Yes!

Andrew H. Fagg: Embedded Real-Time Systems: Sequential 8

NAND Latch

What happens with S is set to 0? 0 0->? 1

Andrew H. Fagg: Embedded Real-Time Systems: Sequential 10

NAND Latch

Now S is set 1 – what happens? 1 1->? 1

Andrew H. Fagg: Embedded Real-Time Systems: Sequential 11

NAND Latch

Q and Q’ remain the same! 1 1-> 1

So Q and Q’ retain a memory of past state!

Andrew H. Fagg: Embedded Real-Time Systems: Sequential 13

NAND Latch

Now set R to 0 – what happens? The state flips back (Q is ‘reset’)

Andrew H. Fagg: Embedded Real-Time Systems: Sequential 14

NAND Latch

Finally: set R to 1 – what happens? 1 0->? 1

Andrew H. Fagg: Embedded Real-Time Systems: Sequential 16

Timing Diagram Representation

S R Q Q’ ?

Andrew H. Fagg: Embedded Real-Time Systems: Sequential 17

Timing Diagram Representation

S R Q Q’ Note small delay in response in Q and Q’

Andrew H. Fagg: Embedded Real-Time Systems: Sequential 19

Timing Diagram Representation

S R Q Q’ ?

Andrew H. Fagg: Embedded Real-Time Systems: Sequential 20

Timing Diagram Representation

S R Q Q’ Q and Q’ flip state