EECC341 - Shaaban #1 Lec # 13 Winter 2001 1-29-2002 Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.

Slides:



Advertisements
Similar presentations
Types of Logic Circuits
Advertisements

Latches/Flip-Flops. Overview We focuses on sequential circuits – We add memory to the hardware that we’ve already seen Our schedule will be very similar.
Introduction to Sequential Logic Design Latches. 2 Terminology A bistable memory device is the generic term for the elements we are studying. Latches.
1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
Latches CS370 –Spring 2003 Section 4-2 Mano & Kime.
Flip-Flops Computer Organization I 1 June 2010 © McQuain, Feng & Ribbens A clock is a free-running signal with a cycle time. A clock may be.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Basic (NAND) S – R Latch “Cross-Coupling” two NAND gates gives the S -R Latch:
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /23/2013 Lecture 7: Computer Clock & Memory Elements Instructor: Ashraf Yaseen DEPARTMENT OF MATH &
1 Kuliah Rangkaian Digital Kuliah 8: Rangkaian Logika Sekuensial Teknik Komputer Universitas Gunadarma.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Module 12.  In Module 9, 10, 11, you have been introduced to examples of combinational logic circuits whereby the outputs are entirely dependent on the.
Sequential Logic Latches & Flip-flops
ReturnNext  Latch : a sequential device that watches all of its inputs continuously and changes its outputs at any time, independent of a clocking signal.
1 CS 151: Digital Design Chapter 5: Sequential Circuits 5-3: Flip-Flops I.
Sequential Circuits : Part I Read Sections 5-1, 5-2, 5-3.
ECE 3130 – Digital Electronics and Design Lab 5 Latches and Flip-Flops Fall 2012 Allan Guan.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
+ CS 325: CS Hardware and Software Organization and Architecture Sequential Circuits 1.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
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.
EECC341 - Shaaban #1 Lec # 14 Winter Clocked Synchronous State-Machines Such machines have the characteristics: –Sequential circuits designed.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
A clocked synchronous state-machine changes state only when a triggering edge or “tick” occurs on the clock signal. ReturnNext  “State-machine”: is a.
Fall 2007 L16: Memory Elements LECTURE 16: Clocks Sequential circuit design The basic memory element: a latch Flip Flops.
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.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
COE 202: Digital Logic Design Sequential Circuits Part 1
Flip Flop
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
Sequential Logic Combinatorial components: the output values are computed only from their present input values. Sequential components: their output values.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
Sequential Logic Computer Organization II 1 © McQuain A clock is a free-running signal with a cycle time. A clock may be either high or.
EKT 221 / 4 DIGITAL ELECTRONICS II
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
5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates.
Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
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.
Lecture 5. Sequential Logic 1 Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System Education & Research.
Chapter5: Synchronous Sequential Logic – Part 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
A latch is a temporary storage device that has two stable states (bistable). It is a basic form of memory. The S-R (Set-Reset) latch is the most basic.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
7. Latches and Flip-Flops Digital Computer Logic.
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.
©2010 Cengage Learning SLIDES FOR CHAPTER 11 LATCHES AND FLIP-FLOPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This.
UNIT 11 LATCHES AND FLIP-FLOPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter in the book includes: Objectives.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
LATCHED, FLIP-FLOPS,AND TIMERS
Lecture 8 Dr. Nermi Hamza.
Synchronous Sequential Circuits
Flip Flops.
ECE Digital logic Lecture 16: Synchronous Sequential Logic
FLIP-FLOPS.
Lecture 14: State Tables, Diagrams, Latches, and Flip Flop
Presentation transcript:

EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits not only depends on current inputs but also on the past sequence of inputs. Sequential circuits are constructed using combinational logic and a number of memory elements with some or all of the memory outputs fed back into the combinational logic forming a feedback path or loop. A very simple sequential circuit with no inputs created using inverters to form a feedback loop: Q QN When this circuit is powered up it randomly outputs Q = 0 or Q =1

EECC341 - Shaaban #2 Lec # 13 Winter Sequential Logic Circuits Combinational logic Memory elements Combinational outputs Memory outputs Inputs Sequential circuit = Combinational logic + Memory Elements Current State of A sequential Circuit: Value stored in memory elements (value of state variables). State transition: A change in the stored values in memory elements thus changing the sequential circuit from one state to another state.

EECC341 - Shaaban #3 Lec # 13 Winter Sequential Circuit Buliding Blocks: Generic Memory Elements A Memory Element: A logic device that can remember a single-bit value indefinitely, or change its value on command from its inputs. The output Q of the memory element represents the value stored in the memory element. This is also called the state variable of the memory elements. A memory element can be in one of two possible states: –Q = 0 (the memory element has 0 stored), also said be in state 0. –Q =1 (the memory element has 1 stored), also said to be in state 1. The commands to the memory element formed by its input(s) may include: –Set: Store 1 (Q=1) in the memory element. –Reset: Store 0 (Q=0) in the memory element. –Flip: Change stored value from 0 to 1 or from 1 to 0. –Hold value: Memory value does not change. Memory Element state transition: A change in the stored value from 0 to 1, or from 1 to 0 such as that caused by a flip command. command Memory element Memory Element Output: stored single-bit value Q

EECC341 - Shaaban #4 Lec # 13 Winter The State of A sequential Circuit A state variable in a sequential circuit represents the single-bit variable Q stored in a memory element in circuit. –Each memory element may be in state 0 or state 1 depending on the current value stored in the memory element. The State of A sequential Circuit: –The collection of all state variables (memory element stored values) that at any time contain all the information about the past necessary to account for the circuit’s future behavior. –A sequential circuit that contains n memory elements could be in one of a maximum of 2 n states at any given time depending on the stored values in the memory elements. –Sequential Circuit State transition: A change in the stored values in memory elements thus changing the sequential circuit from one state to another.

EECC341 - Shaaban #5 Lec # 13 Winter Clock Signals & Synchronous Sequential Circuits A clock signal is a periodic square wave that indefinitely switches values from 0 to 1 and 1 to 0 at fixed intervals. Clock cycle time or clock period: The time interval between two consecutive rising or falling edges of the clock. Clock Frequency = 1 / clock cycle time (measured in cycles per second or Hz) –Example: Clock cycle time = 1ms clock frequency = 1000Hz Synchronous Sequential Circuits: Sequential circuits that have a clock signal as one of its inputs: –All state transitions in such circuits occur only when the clock value is either 0 or 1 or happen at the rising or falling edges of the clock depending on the type of memory elements used in the circuit. Rising edges of the clock Falling edges of the clock Clock signal Clock Cycle Time 1 0

EECC341 - Shaaban #6 Lec # 13 Winter Sequential Circuit Memory Elements: Latches, Flip-Flops Latches and flip-flops are the basic single-bit memory elements used to build sequential circuit with one or two inputs/outputs, designed using individual logic gates and feedback loops. Latches: –The output of a latch depends on its current inputs and on its previous inputs and its change of state can happen at any time when its inputs change. Flip-Flop: –The output of a flip-flop also depends on current and previous input but the change in output (change of state or state transition) occurs at specific times determined by a clock input.

EECC341 - Shaaban #7 Lec # 13 Winter Latches: –S-R Latch –S-R Latch With Enable –D-Latch Flip-Flops: –Edge-Triggered D Flip-Flop –Master/Slave S-R Flip-Flop –Master/Slave J-K Flip-Flop –Edge-Triggered J-K Flip-Flop –T Flip-Flop With Enable Sequential Circuit Memory Elements: Latches, Flip-Flops

EECC341 - Shaaban #8 Lec # 13 Winter S-R Latch An S-R (set-reset) latch can be built using two NOR- gates forming a feedback loop. The output of the S-R latch depends on current as well as previous inputs or state, and its state (value stored) can change as soon as its inputs change. R S Q QN S R Q QN 0 0 last Q Last QN Function Table Circuit

EECC341 - Shaaban #9 Lec # 13 Winter S-R Latch With Enable Since the S-R latch is responsive to its inputs at all times an enable line C is used to disable or enable state transitions. Behaves similar to a regular S-R latch when enable C=1 Q QN S Enable C R S R C Q QN last Q last QN x x 0 last Q last QN Q Q S C R Function Table Circuit Logic Symbol

EECC341 - Shaaban #10 Lec # 13 Winter D-Latch Similar to S-R latch with an enable line, but both S, R are generated from one input D (data) and an inverter. Stores the value of its input D when enable C =1. C D Q QN x Last Q Last QN Q QN D C Q Q D C Function Table Circuit Logic Symbol

EECC341 - Shaaban #11 Lec # 13 Winter Edge-Triggered D Flip-Flop Uses a pair of D latches and inverters. Similar in behavior to a D latch except that output and state changes happen at the rising or falling edge of an input clock. A D Flip-Flop triggered on the rising edge of the clock is given by: Q Q D CLK D CLK Q QN x 0 Last Q Last QN x x Last Q Last QN Clock Q Q D C Q Q D C CLK D QM Master LatchSlave Latch Q QN Circuit Logic Symbol Function Table

EECC341 - Shaaban #12 Lec # 13 Winter Master/Slave S-R Flip-Flop S-R latches are substituted for the D latches in the negative-edge triggered D flip flop Q Q S C Q Q S C CLK S QM Master LatchSlave Latch Q QN RRR Q Q S C R S R C Q QN x x 0 last Q last QN 0 0 last Q last QN undef. undef. Circuit Logic Symbol Function Table

EECC341 - Shaaban #13 Lec # 13 Winter Master/Slave J-K Flip-Flop Solves the problem in the problem when both S=R=1 When J=K=1 the last state is inverted. J K C Q QN x x 0 last Q last QN 0 0 last Q last QN last QN last Q Q Q S C R Logic Symbol Function Table CLK Q Q S C Q Q S C J QM Master LatchSlave Latch Q QN K RR Circuit

EECC341 - Shaaban #14 Lec # 13 Winter Edge Triggered J-K Flip-Flop Created from an edge-triggered D flip-flop Q Q j CLK k J K C Q QN x x 0 last Q last QN x x 1 last Q last QN 0 0 last Q last QN last QN last Q Function Table Logic Symbol Q Q D CLK Q QN J K CLK Circuit

EECC341 - Shaaban #15 Lec # 13 Winter T Flip-Flop With Enable Changes state on every clock cycle (rising edge of T). Q Q CLK D Q QN En T Q Q j CLK k EN Q QN T OR T En Q QN x 0 last Q last QN 1 last QN last Q Circuit Function Table