CS221: Digital Design. Indian Institute of Technology Guwahati

Similar documents
CS221: Digital Design. Dr. A. Sahu. Indian Institute of Technology Guwahati

Sequential vs. Combinational

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Synchronous Sequential Logic

Week-5. Sequential Circuit Design. Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA.

Chapter 14 Sequential logic, Latches and Flip-Flops

Sequential Circuit Analysis

ELCT201: DIGITAL LOGIC DESIGN

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

ALU, Latches and Flip-Flops

Adders, subtractors comparators, multipliers and other ALU elements

Lecture 7: Sequential Networks

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Different encodings generate different circuits

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

ELCT201: DIGITAL LOGIC DESIGN

Chapter 7 Sequential Logic

Problem Set 9 Solutions

Sequential Circuits Sequential circuits combinational circuits state gate delay

ELE2120 Digital Circuits and Systems. Tutorial Note 9

P2 (10 points): Given the circuit below, answer the following questions:

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

Topic 8: Sequential Circuits

CSE370 HW6 Solutions (Winter 2010)

Introduction to Digital Logic

Synchronous Sequential Logic. Chapter 5

Chapter 4 Part 2 Sequential Circuits

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

EET 310 Flip-Flops 11/17/2011 1

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Sequential Logic Design

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

Latches. October 13, 2003 Latches 1

ELE2120 Digital Circuits and Systems. Tutorial Note 10

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Sequential Logic Circuits

The equations of the ideal latches

Chapter 3 Digital Logic Structures

Sequential Circuit Design

COE 202: Digital Logic Design Sequential Circuits Part 4. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Lecture Outline. ESE 570: Digital Integrated Circuits and VLSI Fundamentals. Total Power. Energy and Power Optimization. Worksheet Problem 1

6 Synchronous State Machine Design

CSE 140: Components and Design Techniques for Digital Systems. Lecture 9: Sequential Networks: Implementation

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Memory Elements I. CS31 Pascal Van Hentenryck. CS031 Lecture 6 Page 1

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

Chapter 4. Sequential Logic Circuits

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

Topic 8: Sequential Circuits. Bistable Devices. S-R Latches. Consider the following element. Readings : Patterson & Hennesy, Appendix B.4 - B.

I. Motivation & Examples

ALU A functional unit

UMBC. At the system level, DFT includes boundary scan and analog test bus. The DFT techniques discussed focus on improving testability of SAFs.

Sequential Logic (3.1 and is a long difficult section you really should read!)

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Overview of Chapter 4

Lecture 9: Sequential Logic Circuits. Reading: CH 7

Sequential Circuits. Circuits with state. Silvina Hanono Wachman Computer Science & Artificial Intelligence Lab M.I.T. L06-1

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Hold Time Illustrations

CSE 140 Midterm 2 Tajana Simunic Rosing. Spring 2008

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output of

FSM model for sequential circuits

PGT104 Digital Electronics. PGT104 Digital Electronics


Topics. CMOS Design Multi-input delay analysis. John A. Chandy Dept. of Electrical and Computer Engineering University of Connecticut

5. Sequential Logic x Computation Structures Part 1 Digital Circuits. Copyright 2015 MIT EECS

Integrated Circuits & Systems

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

Designing Sequential Logic Circuits

Sequential Logic Worksheet

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

Adders, subtractors comparators, multipliers and other ALU elements

EE141- Spring 2007 Digital Integrated Circuits

MOSIS REPORT. Spring MOSIS Report 1. MOSIS Report 2. MOSIS Report 3

CS61C : Machine Structures

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

Counters. We ll look at different kinds of counters and discuss how to build them

Synchronous Sequential Logic Part I

Chapter #6: Sequential Logic Design

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

Chapter 9 Asynchronous Sequential Logic

Chapter 5 Synchronous Sequential Logic

Synchronous Sequential Circuit Design

CHAPTER 9: SEQUENTIAL CIRCUITS

Chapter 6 Flip-Flops, and Registers

EE 209 Logic Cumulative Exam Name:

Lecture 17: Designing Sequential Systems Using Flip Flops

Chapter 7. Sequential Circuits Registers, Counters, RAM

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Digital Circuits and Systems

DIGITAL LOGIC CIRCUITS

EECS150 - Digital Design Lecture 23 - FFs revisited, FIFOs, ECCs, LSFRs. Cross-coupled NOR gates

Digital Logic Design - Chapter 4

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

Transcription:

CS221: Digital Design FlipFlop&Register Flop Dr. A. Sahu DeptofComp.Sc.&Engg. Indian Institute of Technology Guwahati

Outline Level Sensitive (Latch) vsedge Sensitive (Flip Flop) Master Slave Flip Flop D Flip Flop, J K Flip Flop and T Flip Flop Combine that block to build multi bit storage a register FSMDesign:ExampleCounters

Level Sensitive D Latch SR latch requires careful design to ensure SR=11 never occurs D latch relieves designer of that burden Inserted inverter ensures R always opposite of S D C S R D latch Q D 1 0 C 1 0 D Q 1 S 0 1 R 0 Q 1 0 C Q D latch symbol

Solution: Ensure, Stabilize, Store X S Level-sensitive SR latch S1 Clk C Y Ensure Stage Never Happens SR=11 R Stabilize Stage WhenC=0 Stabilize SR and Use when C=1 R1 Store Stage Store bit Q

Problem with Level Sensitive D Latch D latch still has problem (as does SR latch) When C=1, through how many latches will a signal travel? Depends on for how long C=1 Clk_A signal may travel through multiple latches Clk_B signal may travel through fewer latches Hard to pick C that is just the right length Can we design bit storage that only stores a value on the rising edge of a clock signal? Y D1 Q1 D2 Q2 D3 Q3 D4 Q4 rising edges C1 C2 C3 C4 Clk Clk Clk_A Clk_B

FlipFlop Flop CoinFlip:Head/Tail (1/0) Latch have either one state 0 or 1 Flip Flop (Both Master/Slave) Flip State/Flop State

Master Slave D Flip Flop Flip flop:stores on clock edge, not level Two latches, output of first goes to input of second, master latch has inverted clock signal So master loaded when C=0, then servant when C=1 WhenCchangesfrom0to1 1, masterdisabled disabled, servantloadedwith value that was at D just before C changed i.e., value at D during rising edge of C D Dm Cm D latch master Qm Ds D flip-flop D latch Qs Q Cs Qs Q servant Clk D/Dm Cm Qm/Ds Cs Clk Qs

DFlip Flop Flop The triangle means clock input, edge triggered D Q D Q Q Symbol for rising-edge triggered D flip-flop Q Symbol for falling-edge triggered D flip-flop Internal design: Just invert servant clock rather than master rising edges falling edges Clk Clk

D Flip Flop Solves problem of not knowing through how many latches a signal travels when C=1 Signal travels through exactly one flip flop, for Clk_Aor Clk_B Why? Because on rising edge of Clk, all four flip flops are loaded simultaneously then all four no longer pay attention to their input, until the next rising edge. Doesn t matter how long Clkis 1. Y D1 Q1 D2 Q2 D3 Q3 D4 Q4 Clk Clk_A Clk_B Two latches inside each flip-flop

D Latch vs. D Flip Flop Latch is level sensitive: Stores D when C=1 Flip flop is edge triggered: Stores D when C changes from 0 to 1 Saying level sensitive latch, or edge triggered flipflop, is redundant Two types of flip flops rising or falling edge triggered. Comparing behavior of latch and flip flop: Clk 1 2 D 3 4 5 6 Q (D latch) 7 8 Q (D flip-flop) 9 10

S R SR Latch S R Q Q S R Q+ 0 0 1*0* (Unpredictable) 0 1 1 1 0 0 1 1 Q

Conventions The circuit is setmeans output = 1 The circuit is resetmeans output = 0 Flip flops flopshavetwooutputqandq output and Q Due to time related characteristic of the flip flop: Q t or Q: present state Q t+1 or Q + : next state 0 1 2 3

4TypeofFlipFlop Flop SRFlipFlop:Set/ResetFlipFlop Flop : Set/Reset Flop D Flip Flop : Data Flip Flop to store Bit J K Flip Flop: SR with use of the unavoidable SR=11 state to Toggle (All input values are useful) T Flip Flop: Toggle Flip Flop

J K Flip Flop The JKfli flip flop augments the behavior bh of fthe SR flip flop (J=Set, K=Reset) by interpreting the S = R = 1 condition as a "flip"" or toggle command. J C K JK FF from SR S R Q J K Q+ 0 0 Qt 0 1 0 1 0 1 1 1 Qt Q + = K Q + JQ

Master Slave J K Flip Flop J S S Q C C K Q Q R R Q + = K Q + JQ

J K Flip Flop To synthesize a D flip flop, simply set K equal to the complement of J. The JK flip flop is a universal flip flop BecauseitcanbeconfiguredtoworkasanyFF can configured to as any T flip flop or D flip flop or SR flip flop. J=T K=T Q+ 0 0 Qt 0 1 0 1 0 1 J=D K=D Q+ 0 0 Qt 0 1 0 1 0 1 J=S K=R Q+ 0 0 Qt 0 1 0 1 0 1 1 1 Qt 1 1 Qt 1 1 Qt

Toggle Flip Flop:TFFFlop: FF J=K=1, Q + =Q T J K Q JK FlipFlop T Q T FlipFlop C C

4 Types of Flip Flops S R Q+ J K Q+ 0 0 Qt 0 0 Qt 0 1 0 0 1 0 1 0 1 1 0 1 1 1 U 1 1 Qt D Q+ 0 0 1 1 T Q+ 0 Qt 1 Qt

CharacteristicEquations Adescriptionsofthenext of the next state statetabletable of a flip flop Constructing from the Karnaughmap forq t+1 intermsofthepresentstate the state and input

Characteristic tables The tables that we ve made so far are called characteristic tables. They show the next state Q(t+1) in terms of the current state Q(t) and the inputs. For simplicity, the control input C is not usually listed. Again, these tables don t indicate the positive edgetriggered behavior of the flip-flops that we ll be using. J K Q+ 0 0 Qt 0 1 0 1 0 1 1 1 Qt D Q+ 0 0 T Q+ 0 Qt 1 1 1 Qt

Characteristic equations We can also write characteristic equations, where the next state Q(t+1)is defined in terms of the current state Q(t) and inputs. J K Q+ 0 0 Qt Q + = K Q + JQ 0 1 0 Q(t+1)=K Q(t)+JQ (t) KQ(t) + (t) 1 0 1 1 1 Qt

Characteristic equations We can also write characteristic equations, where the next state Q(t+1) is defined in terms of the current state Q(t) and inputs. D Q+ 0 0 1 1 T Q+ 0 Qt 1 Qt Q + =D Q(t+1) = D Q+= T Q+TQ = T Q Q(t+1) = T Q(t) + TQ (t) = T Q(t)

Characteristic equations Q SR Flip Flop Type SR JK Characteristic Equation Q + =S +R Q (SR=0) Q + =JQ +K Q +KQ D Q + =D Q + = S + R Q (SR=0) T Q + =TQ +T Q=T Q

Thanks