Top Banner
1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs depend not only on the present logic input values but also on previous logic input and output values. Can remember past events and have a response dependent upon past events, an essential feature for designing digital systems. The basic sequential circuits with memory are the latch and the flip-flop. This material is for the sole and exclusive use of students at UNC-Charlotte. It is not to be sold, reproduced, or generally distributed.
27

1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

Dec 15, 2015

Download

Documents

Annabel Maurice
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: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

1© 2014 B. Wilkinson Modification date: Dec 30 2014

Sequential Logic Circuits – I

Flip-FlopsA sequential circuit is a logic components whose outputs depend not only on the present logic input values but also on previous logic input and output values.

Can remember past events and have a response dependent upon past events, an essential feature for designing digital systems.

The basic sequential circuits with memory are the latch and the flip-flop.

This material is for the sole and exclusive use of students at UNC-Charlotte. It is not to be sold, reproduced, or generally distributed.

Page 2: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

2

Latches

A “memory” logic circuit that can maintain a constant output value. Achieved by the use of feedback whereby the output is connected to the inputs in such a way to reinforce the output value.

Page 3: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

3

Suppose an AND gate has 1’s on its inputs.

This produces a 1 on the output. If this 1 is fed back to create a 1 on an input with the other inputs kept at 1, the output will maintain a 1 output:

Potential memory design

If the output was initially a 0, a 0 would be fed back and reinforce and maintain the 0 output.

However then no way to make output a 1.

Page 4: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

4

To force output to become either a 0 or a 1 requires a circuit such as:

Set–reset memory design

To force Q to 0, apply a 0 to while maintaining at a 1.To force Q to 1 apply a 0 to while maintaining at a 1.

Once Q forced to a 0 or a 1, or can return to a 1 and Q will remain unchanged.Inputs labelled with overbars to indicate that a 0 necessary to cause action. Such signals called active-low signals as opposed to active-high signals where a 1 causes action.

Reset (bar)

Set (bar)

Page 5: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

5

Latch memory design with true and complementary outputs

Just the previous circuit re-drawn in the more conventional manner

Page 6: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

6

Latch memory design with true and complementary outputs

To make output, Q = 1, = 0, = 1

Page 7: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

7

Latch memory design with true and complementary outputs

To make output, Q = 1, = 0, = 1

Page 8: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

8

Latch memory design with true and complementary outputs

To make output, Q = 0, = 1, = 0

Page 9: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

9

Question

What happens if = 1 and = 1?

Answer

Question

What happens if = 0 and = 0?

Answer

Page 10: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

10

Latch memory design with true and complementary outputs

With active-high inputs

Could be NOT gates but see later using NAND gates here

S-R latch

Page 11: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

11

Flip-Flops

The latch design will store one binary value, but has the disadvantage that the outputs will change immediately one of the inputs changes to a 0.

Often, we want the output changes to be synchronized with a clock signal.

Such memory designs are usually called flip-flops. (Output flips to a 1, flops to a 0)

There are several types of flip-flop.

Page 12: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

12

S-R flip-flop(Clocked S-R latch)

Essentially the same characteristics of the memory latch in that it has two inputs, named S for (set) and R for (reset).

The S input when a 1 will set the output to a 1, while the R input when a 1 will reset the output to a 0.

Synchronous operation requires an additional clock input and only after a specified clock transition occurs will the outputs take on the required values

Before the clock transition occurs, the outputs will not change even if the S and R inputs change.

Page 13: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

13

S-R flip-flop truth table

Flip-Flop Truth Tables

Flip-flops can be described by a truth table.

Q+ indicates the value of Q after the activating clock transition.

Q- is sometimes used to indicate the value of Q before the activating clock transition.

X indicates an undefined output.

Page 14: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

14

Level triggering

When the clock becomes a 1, the outputs assume their values according to S and R.

Level triggered S-R flip-flop

Clock

Assumed that S and R will not change while clock at a 1.

Page 15: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

15

Level triggered S-R flip flop timing

Page 16: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

16

D-type flip-flop

Stores one binary digits. The Q output simply becomes the value on the D input after the activating clock transition.

Q+ indicates the value of Q after the activating clock transition.

Truth table of D-type flip-flop

Page 17: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

17

Level triggered D latch design

Page 18: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

18

Time of Output Change

In positive edge triggering, the activating transition is from a logic 0 to a logic 1.

In negative edge triggering, the activating transition is from a logic 1 to a logic 0.

Both forms are common.

Edge Triggered Designs(usual for flop –flops)

The output changes on a transition of the clock signal (edge).

The inputs are allowed to change at other times without affecting the output.

Page 19: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

19

Negative edge-triggered D-type flip-flop timing

Page 20: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

20

D-type flip-flop symbols

Positive edge triggered

Negative edge triggered

Page 21: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

21

D-type flip-flop symbols with asynchronous set and reset inputs

Positive edge triggered

Page 22: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

22

Common requirements is to create a circuit whose outputs change from a 0 to a 1 or from a 1 to a 0, e.g. binary counter.

J–K flip-flop provides this toggle operation in additional to being able to set the output to a 1 or reset the output to a 0.

J–K flip-flop truth table

Output toggles

Same as S-R flip-flop

Not allowed in S-R flip-flop

Page 23: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

23

Positive edge triggered

Negative edge triggered

J-K flip flop symbol

Page 24: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

24

State Diagrams

Sequential circuits exist in defined states, described in a state diagram.

All practical sequential circuits have a finite number of states, hence the term finite state machine for describing practical sequential circuits.

A flip-flip can exist in one of two states:

1. When the output is a 0, and 2. When the output is a 1.

A state change initiated by a specified change of inputs and the activating clock transition (for “synchronous” sequential circuits having clock input).

Page 25: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

25

D-type Flip Flop State Diagram(Moore model)

A state diagram of a D-type flip-flop:

Page 26: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

26

J-K Flip Flop State Diagram(Moore model)

A state diagram of a J-K flip-flop:

Page 27: 1 © 2014 B. Wilkinson Modification date: Dec 30 2014 Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.

27

Questions

Next we will explore using flip-flops to create more complex sequential circuits