26
Flip Flops prepared by : Eng. Rania Elsadig Sudan University of science and Technology College of Engineering Biomedical Engineering Department Digital Design II Third year

digital design

Embed Size (px)

Citation preview

Page 1: digital design

Flip Flops

prepared by : Eng. Rania Elsadig

Sudan University of science and Technology

College of Engineering Biomedical Engineering

DepartmentDigital Design II

Third year

Page 2: digital design

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: digital design

SR Flip Flop

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

Page 4: digital design

SR Flip Flop

Page 5: digital design

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

Edge Triggered Flip Flop

Page 6: digital design

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

Q

t

Page 7: digital design

Exercise

Page 8: digital design

Positive Edge Triggered D Flip Flop

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

Page 9: digital design

Positive Edge Triggered D Flip Flop Cont.

Page 10: digital design

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

Q

t

Page 11: digital design

Exercise

Page 12: digital design

Positive Edge Triggered JK Flip Flop

Page 13: digital design

D = J Q' + K' Q

Positive Edge Triggered JK Flip Flop Cont.

Page 14: digital design

T ( Toggle) Flip Flop

Page 15: digital design

D = T Q = T Q' + T' Q+

T ( Toggle) Flip Flop Cont.

Page 16: digital design

D flip-flop with asynchronous reset

Page 17: digital design

17

Master-slave D-type flip-flop

D Q

CLK

Input

Master D latch

D Q Output

Slave D latchX

• How to make into negative edge-triggered D-type flip-flop?

Page 18: digital design

Analysis of Clocked Sequential Circuits

State diagrams:• How do we characterize logic circuits?– Combinational circuits: Truth tables – Sequential circuits: State diagrams

• First draw the states– States Unique circuit configurations

• Second draw the transitions between states– Transitions Changes in state caused by inputs

Page 19: digital design

Example1: A Sequential Circuit with D Flip Flops

Page 20: digital design

State Table for the Circuit (ex1)

Page 21: digital design

State Diagram for the Circuit (ex1)

Page 22: digital design

Example2: A Sequential Circuit with D Flip Flops

Page 23: digital design

example3: A Sequential Circuit with JK Flip Flops

Page 24: digital design

State Table & Diagram for the Circuit (ex3)

Page 25: digital design

example4: A Sequential Circuit with T Flip Flops

Page 26: digital design

State Table for the Circuit (ex4)