• No results found

Master/Slave Flip Flops

N/A
N/A
Protected

Academic year: 2021

Share "Master/Slave Flip Flops"

Copied!
42
0
0

Loading.... (view fulltext now)

Full text

(1)

MSFF

(2)

A Master/Slave Flip Flop (D Type)

Gated D latch(master) Gated D latch (slave)

D Q Gate D Q Gate D GATE Q Q1 Either:

The master is loading (the master in on) or

The slave is loading (the slave is on) But never both at the same time…

(3)

DFF Timing

Gate Q1 Master Loads Slave Loads D Q Master Loads Master Loads Slave Loads Slave Loads D Q Gate D Q Gate D GATE Q Q1

(4)

Output Changes in Response to

Falling Clock

CLK Q1 Master Loads Master Loads Master Loads Slave Loads Slave Loads Slave Loads D Q time D Q Gate D Q Gate D GATE Q Q1

(5)

DFF Detailed Schematic

D CLK Q Q’ Master latch (D)

(6)

A Falling Edge Triggered DFF

D CLK Q Q’ D CLK Q D Q Edge-triggered

(7)

Oscillator (Toggle Circuit) Operation

Q CLK CLK time Q D D Q

(8)

Rising Edge Triggered DFF Schematic

D CLK Q Q’ D Q D CLK Edge-triggered Q

(9)

Oscillator (Toggle Circuit) Operation

Q CLK time CLK Q D D Q

(10)

D Flip Flop Transition Table

D Q Q+

0 0

0

0 1

0

1 0

1

1 1

1

Q+ = D

(11)

Falling vs. Rising Edge Triggered

D Q D Q D CLK CLK Qfall Qrise CLK D Qrise Qfall

(12)

Alternative Flip Flops

T

JK

(13)

Toggle Flip Flop

T Q Q+

0 0

0

0 1

1

1 0

1

1 1

0

No

Action

T oggle

T Q CLK Q T

Q+ = T’•Q + T•Q’ = T + Q

Clock edge is assumed in this transition table…

(14)

Toggle Flip Flop

T Q Q+

0 0

0

0 1

1

1 0

1

1 1

0

No

Action

T oggle

T Q CLK Q T

Q+ = T’•Q + T•Q’ = T + Q

D Q T Q CLK

An oscillator with an enable input (T)

(15)

Toggle Flip Flop

Q T

(16)

JK Flip Flop

J K Q Q+

0 0 0

0

0 0 1

1

0 1 0

0

0 1 1

0

1 0 0

1

1 0 1

1

1 1 0

1

1 1 1

0

No Change Reset Set Toggle J Q K CLK Q J K

Q+ = K’•Q + J•Q’

Kind of a cross between a SR FF and a T FF

(17)

JK Flip Flop

Q J

CLK K

(18)

Why Alternative FF’s?

• With discrete parts (TTL family)

– JK or T FF’s could reduce gate count for

the input forming logic

– Extensively used

• With VLSI IC’s and FPGA’s

– JK or T FF’s must be built from

DFF+gates

– Larger, slower than a DFF

– Not used

(19)
(20)

D CLK Q Q’

What is this?

???

(21)

D CLK Q Q’

What is this?

Enable

(22)

D CLK Q Q’

What is this?

???

(23)

D CLK Q Q’

What is this?

Set

A falling edge triggered, D-type FF with an asynchronous set If Set=1 then Q=>1, regardless of CLK or D

(24)

D CLK Q Q’

What is this?

???

(25)

D

CLK

Q

Q’

What is this?

A falling edge triggered, D-type FF with a synchronous set If Set=1 then Q=>1 on the next falling edge of the clock, Set

(26)

Flip Flops With Additional Control Inputs

• A variety of FF’s have been made

over the years

• They contain combinations of these

inputs:

– Enable

– Set

– Reset

• The Set and Reset can be either:

– Asynchronous (independent of CLK)

– Synchronous (work only on CLK edge)

(27)
(28)

Clock-to-Q Time (t

CLKÎ Q

)

D

CLK

Q

Q’

t

CLKÎ Q

= t

NOT

+ t

AND

+ 2 x t

NOR

The output does not change instantaneously…

(29)

t

CLK Î Q

CLK

D

Q

(30)

Setup Time (t

setup

)

D

CLK

Q

Q’

t

setup

= t

NOT

+ t

AND

+ 2 x t

NOR

The input has to get there early enough to set the master latch before

(31)

t

setup

CLK

D

Q

(32)

D

CLK

Q

Q’

Same setup time as before

Clock is delayed through the NOT gate

(33)

CLK

D

Q

(34)

CLK D Q time CLKdly

t

not

t

setup-old

t

setup-old

(35)

CLK D Q CLKdly

t

not Dnew

t

setup-old

t

setup-old

(36)

CLK D Q time CLKdly Dnew

t

setup

t

setup-old

(37)

Falling Edge Hold Time (t

hold

)

D

CLK

Q

Q’

thold = 0ns (AND gates turn off immediately)

You have to keep the old D value there until the AND gates are shut off… (but no longer)

(38)

Rising Edge Hold Time (t

hold

)

D CLK Q Q’

t

hold

= t

NOT

You have to keep the old D value there until the AND gates are shut off…

(39)

t

hold

CLK

D

Q

t

hold

= t

NOT

(40)

Flip Flop Timing

CLK D Q

t

setup

t

hold

t

CLK Î Q time

(41)

Timing of a Synchronous System

CLK D Q CLK D Q Input Forming Logic Input Forming Logic Q D CLK Q D tCYCLE >= tCLKÎ Q + tIFL + tSETUP

(42)

D Q D Q D Q

Example of a Synchronous System

D Q +1 Circuit 4 CLK 4 4 CNT = 0000 0001 0010 0011 0100 … 1111 0000 …

References

Related documents

Treasury bills are the main financial instruments of money market. These Treasury bills are the main financial instruments of money market. These  bills are issued by the

Experience shows that students who are unable to meet this requirement find great difficulty tackling the graduate level APMA courses needed to fulfill the ScM requirements..

Quoting from the Graduate College Bulletin, “The Graduate Dean governs admission and enrollment in the Graduate College. Except for those in unclassified status, the student must

The purpose of this analysis is to sift through given examples the moment when a company needs factoring, to analyze the gap of liquidity and also, through an econometric model

Q’ negative edge-triggered D flip-flop (D-FF) 4-5 gate delays. must respect setup and hold time constraints

Note that the transitions occur on the falling edge of the applied clock signal+1/2 half clock cycle due to the slave action... The D-type flip-flop can be configured as a T-type

Recognize the triggering way of the synchronous D flip-flops (gated latch, master slave with or without 1s and 0s catching, or positive or negative edge-triggered)..

Objectives Study Guide 11.1 Introduction 11.2 Set-Reset Latch 11.3 Gated D Latch 11.4 Edge-Triggered D Flip-Flop 11.5 S-R Flip-Flop 11.6 J-K Flip-Flop 11.7 T Flip-Flop.. 11.8