CSE 260 DIGITAL LOGIC DESIGN

Slides:



Advertisements
Similar presentations
Flip-Flops Basic concepts. A. Yaicharoen2 Flip-Flops A flip-flop is a bi-stable device: a circuit having 2 stable conditions (0 or 1) A flip-flop circuit.
Advertisements

CS1104 – Computer Organization Aaron Tan Tuck Choy School of Computing National University.
Sequential Logic Building Blocks – Flip-flops
Latches. Outline  Pulse-Triggered Latch  S-R Latch  Gated S-R Latch  Gated D Latch.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR1 Sequential Circuit Latch & Flip-flop.
Digital Logic Design ESGD2201
CENG 241 Digital Design 1 Lecture 8 Amirali Baniasadi
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Sequential Logic Latches and Flip-Flops. Sequential Logic Circuits The output of sequential logic circuits depends on the past history of the state of.
Sequential circuits The digital circuits considered thus far have been combinational, where the outputs are entirely dependent on the current inputs. Although.
Sequential logic circuits. 2 Outline Sequential Circuit Models –Asynchronous –Synchronous Latches Flip-Flops.
Sequential Logic Latches & Flip-flops
1 Sequential Circuits –Digital circuits that use memory elements as part of their operation –Characterized by feedback path –Outputs depend not only on.
Logical Circuit Design Week 11: Sequential Logic Circuits Mentor Hamiti, MSc Office ,
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
Digital Logic Design Brief introduction to Sequential Circuits and Latches.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
CS2100 Computer Organisation
ECE 424 – Introduction to VLSI Design Emre Yengel Department of Electrical and Communication Engineering Fall 2014.
Half Adder Sum = X’Y+XY’ = X  Y Carry = XY YXYXYX  YYYX  XX XOR XNOR.
Sequential Logic Flip-Flops and Related Devices Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
So far, all of the logic circuits we have studied were basically based on the analysis and design of combinational digital circuits. The other major aspect.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR1 Sequential Circuit Design.
Objectives: Given input logice levels, state the output of an RS NAND and RS NOR. Given a clock signal, determine the PGT and NGT. Define “Edge Triggered”
1 Sequential Circuit Latch & Flip-flop. 2 Contents Introduction Memory Element Latch  SR latch  D latch Flip-flop  SR flip-flop  D flip-flop  JK.
COE 202: Digital Logic Design Sequential Circuits Part 1
Flip-flops. Outline  Edge-Triggered Flip-flops  S-R Flip-flop  D Flip-flop  J-K Flip-flop  T Flip-flop  Asynchronous Inputs.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
ECA1212 Introduction to Electrical & Electronics Engineering Chapter 9: Digital Electronics – Sequential Logic by Muhazam Mustapha, November 2011.
Sequential Logic Combinatorial components: the output values are computed only from their present input values. Sequential components: their output values.
Introduction to Sequential Logic
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
EKT 121 / 4 ELEKTRONIK DIGIT I
Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
Sequential Circuit Latch & Flip-flop. Contents Introduction Memory Element Latch  SR latch  D latch Flip-flop  SR flip-flop  D flip-flop  JK flip-flop.
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Flip Flops Engr. Micaela Renee Bernardo. A latch is a temporary storage device that has two stable states (bistable). It is a basic form of memory. Latches.
ECE 301 – Digital Electronics Brief introduction to Sequential Circuits and Latches (Lecture #14)
ECE 331 – Digital System Design Introduction to Sequential Circuits and Latches (Lecture #16)
7. Latches and Flip-Flops Digital Computer Logic.
EEE 301 DIGITAL ELECTRONICS
Memory Elements. Outline  Introduction  Memory elements.
Flip-Flop Flip-flops Objectives Upon completion of this chapter, you will be able to :  Construct and analyze the operation of a latch flip-flop made.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
CS1103 Arunima Shukla Asim Marchant Urja Kantharia Harsh kosambia Digital Electronics Mini Project.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
CS2100 Computer Organisation
LATCHED, FLIP-FLOPS,AND TIMERS
Counters & Sequential Circuit Design
Lecture 8 Dr. Nermi Hamza.
Digital Fundamentals Floyd Chapter 7 Tenth Edition
Flip Flops.
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
CS1104 – Computer Organization
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Sequential logic circuits
Chapter 6 -- Introduction to Sequential Devices
FLIP-FLOPS.
Synchronous sequential
Synchronous Sequential
Flip-Flops.
Week 11 Flip flop & Latches.
Presentation transcript:

CSE 260 DIGITAL LOGIC DESIGN Sequential Logic, RS Flip-Flop, D Flip-Flop, JK Flip-Flop, T Flip-Flop BRAC University

Combinational outputs Introduction A sequential circuit consists of a feedback path, and employs some memory elements. Combinational logic Memory elements Combinational outputs Memory outputs External inputs Sequential circuit = Combinational logic + Memory Elements output= external input + present state of memory element

Introduction There are two types of sequential circuits: synchronous: outputs change only at specific time (i.e. with clock input) asynchronous: outputs change at any time (i.e. without clock input) Multivibrator: a class of sequential circuits. They can be: bistable (2 stable states) monostable or one-shot (1 stable state) astable (no stable state) Bistable logic devices: flip-flops. Flip-flops differ in the method used for changing their state.

Memory Elements Memory element: a device which can remember value indefinitely, or change value on command from its inputs. Characteristic table: command Memory element stored value Q Q(t): current state Q(t+1) or Q+: next state

Memory Elements Memory element with clock. Flip-flops are memory elements that change state on clock signals. Clock is usually a square wave. command Memory element stored value Q clock Positive edges Negative edges Positive pulses

Types of tables in sequential circuit Characteristic table Criteria Table State Table Excitation table MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR

S-R Flip-Flop Complementary outputs: Q and Q'. When Q is HIGH, the FF is in SET state. When Q is LOW, the FF is in RESET state. For active-HIGH input S-R FF (also known as NOR gate FF), R=HIGH (and S=LOW) a RESET state S=HIGH (and R=LOW) a SET state both inputs LOW a no change both inputs HIGH a Q and Q' both LOW (invalid)!

S-R FF For active-LOW input S'-R' FF (also known as NAND gate FF), R'=LOW (and S'=HIGH) a RESET state S'=LOW (and R'=HIGH) a SET state both inputs HIGH a no change both inputs LOW a Q and Q' both HIGH (invalid)! Drawback of S-R FF: invalid condition exists and must be avoided.

S-R FF Characteristics table for active-high input S-R FF: Characteristics table for active-low input S'-R' FF: Use this mostly S R Q Q' S R Q Q' Notice the difference

S-R FF: Active-HIGH input S-R FF 1 1 1 1 1 R S Q Q' NOR truth table A B Output 1 Presence of ‘1’ in input, leads to ‘0’ in output

S-R FF: Active-LOW input S’-R’ FF Q Q' NAND truth table A B Output 1 Note: Here output=0 means high! Presence of ‘0’ in input, leads to ‘1’ in output

S-R FF R S Operation Q(t) Q(t+1) Q’(t) Q’(t+1) No Change 1 Set x Reset No Change 1 Set x Reset Invalid - S R Q Q'

Clocked S-R FF S-R FF + Clock Pulse (CP) and 2 NAND gates  Clocked S-R FF. S CP R Q Q'

Clocked S-R FF Outputs change (if necessary) only when CP is HIGH. Under what condition does the invalid state occur? Characteristic table: Characteristic Eqn: CP=1 Q(t+1) = S + R'.Q S.R = 0

Clocked D Flip-Flop Make R input equal to S'  D FF. D FF eliminates the undesirable condition of invalid state in the S-R FF. D Q Q' CLK D CLK Q Q'

D Flip-flop Characteristic table Q(t) D Q(t+1) 1 Clock Q

Clocked D Flip-Flop When CLK is HIGH, D=HIGH  FF is SET D=LOW  FF is RESET Hence when CLK is HIGH, Q ‘follows’ the D (data) input. Characteristic table: When CLK=1, Q(t+1) = D

Combinational logic circuit D Flip-flop Application: Parallel data transfer. To transfer logic-circuit outputs X, Y, Z to flip-flops Q1, Q2 and Q3 for storage. Q1 = X D CLK Q Q' Q2 = Y Q3 = Z Combinational logic circuit Transfer X Y Z

Try it yourself Design a D FF using RS FF D Q Q' CLK

J-K Flip-flop J-K flip-flop: Q and Q' are fed back to the NAND gates. No invalid state. Include a toggle state. J=HIGH (and K=LOW) a SET state K=HIGH (and J=LOW) a RESET state both inputs LOW a no change both inputs HIGH a toggle

J-K FF SET RESET Clock J K Operation Q(t) Q(t+1) Q’(t) Q’(t+1) No Change 1 Set x Reset Toggle

Pulse transition detector J-K Flip-flop J-K flip-flop. Characteristic table. J Q Q' CLK Pulse transition detector K Q(t+1) = J.Q' + K'.Q

T Flip-flop T Operation Q(t) Q(t+1) No change 1 Toggle T J Q C K CLK No change 1 Toggle J C K Q Q' CLK T

Pulse transition detector T Flip-flop T flip-flop: single-input version of the J-K flip flop, formed by tying both inputs together. Characteristic table. T Q Q' CLK Pulse transition detector J C K Q Q' CLK T Q(t+1) = T.Q' + T'.Q

T Flip-flop Application: Frequency division. Application: Counter J C K Q CLK High Divide clock frequency by 2. J C K QA CLK High QB Divide clock frequency by 4.

Try it yourself Design a T FF using JK FF Design a D FF using JK FF

J C K Q Q' CLK T

How to build excitation table: Example: JK Flip-Flop Q Q+ Actually what happens Final Combined Result J K 1 x MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR

Flip-flop Excitation Tables Excitation tables : it give transition characteristic between current condition and next condition to determine flip-flop input MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR