flip flops

23
Flip Flops

Upload: chadwick-morse

Post on 30-Dec-2015

32 views

Category:

Documents


0 download

DESCRIPTION

Flip Flops. Clock Signal. Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by a periodic “clock” signal. Clock Signal generator. Clock signals can be generated using odd number of inverters. Flip Flop. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Flip Flops

Flip Flops

Page 2: Flip Flops

Clock Signal

Sequential logic circuits have memory Output is a function of input and present stateSequential circuits are synchronized by a periodic “clock” signal

Page 3: Flip Flops

Clock Signal generator

Clock signals can be generated using odd number of inverters

v0 v1 v2 v3 v4 v5

v0 v1 v5

T = 2 tp N

Page 4: Flip Flops

Flip Flop

A basic sequential circuit is a flip-flop Flip-flop has two stable states of complementary output values

Page 5: Flip Flops

SR Flip Flop

SR (set-reset) flip-flop based on two nor gates

Page 6: Flip Flops

SR Flip Flop

Page 7: Flip Flops

Noise Reduction in SR Flip FlopSR flip flop can reduce a switching noiseWhen switch is pulled down some oscillations may occur at BThey will be eliminated by the flip-flop

Page 8: Flip Flops

Exercise

For a given S and R inputs to SR flip-flop, sketch the output signal Q

Q

t

Page 9: Flip Flops

Exercise

Page 10: Flip Flops

SR Flip Flop

SR (set-reset) flip-flop based on two nand gates

Page 11: Flip Flops

Clocked SR Flip Flop Circuit

Clock controlled flip-flop changes its state only when the clock C is high

Page 12: Flip Flops

Clocked SR Flip Flop Circuit with ResetSome flip-flops have asynchronous preset Pr and clear Cl signals.Output changes once these signals change, however the input signals must wait for a change in clock to change the output

Page 13: Flip Flops

Edge triggered flip-flop changes only when the clock C changes

Edge Triggered Flip Flop

Page 14: Flip Flops

Positive Edge Triggered Flip Flop

Positive-edge triggered flip-flop changes only on the rising edge of the clock C

Page 15: Flip Flops

Exercise

The input D to a positive-edge triggered flip-flop is shownFind the output signal Q

Q

t

Page 16: Flip Flops

Exercise

Page 17: Flip Flops

Negative Edge Triggered JK Flip Flop

Page 18: Flip Flops

QJ

KQ

T

QJ

KQ

D

Q

Q

T Q

Q

D

Toggle Flip-Flop Delay Flip-Flop (D-latch)

Other Flip Flops

Page 19: Flip Flops

Q

Q

D

1

t

t

tloop

Signal can race around during = 1

Race Problem

Page 20: Flip Flops

S

R

Q

Q Q

QS

R

Q

Q

J

K

MASTER SLAVE

QJ

K Q

PRESET

CLEAR

SI

RI

Master transmits the signal to the output during the high clock phase and slave is waiting for the clock to change this prevents race conditions

Master-Slave Flip Flop Implementation

Page 21: Flip Flops

Shift Registers

Page 22: Flip Flops

Shift Registers

Page 23: Flip Flops

Counter