EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.

Slides:



Advertisements
Similar presentations
EE 5900 Advanced Algorithms for Robust VLSI CAD, Spring 2009 Sequential Circuits.
Advertisements

1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
Latches CS370 –Spring 2003 Section 4-2 Mano & Kime.
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
1 Fundamentals of Computer Science Sequential Circuits.
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Computer Architecture CS 215
Digital Logic Chapter 5 Presented by Prof Tim Johnson
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:
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Sequential Circuits. 2 ياداوري  آموزش تکنيک هاي طراحي و پياده سازي سيستم هاي پيچيده: سيستم:  داراي ورودي ها، خروجي ها و رفتار مشخصي است −اين رفتار توسط.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
Sequential circuits The digital circuits considered thus far have been combinational, where the outputs are entirely dependent on the current inputs. Although.
Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  A sequential logic circuit is one whose outputs depend not only on.
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.
1 Sequential Circuits –Digital circuits that use memory elements as part of their operation –Characterized by feedback path –Outputs depend not only on.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 1 – Storage.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
INTRODUCTION TO SEQUENCIAL CIRCUIT
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
Latches Section 4-2 Mano & Kime. Sequential Logic Combinational Logic –Output depends only on current input Sequential Logic –Output depends not only.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Sequential Circuits. 2 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential.
EE 4271 VLSI Design, Fall 2010 Sequential Circuits.
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.
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
Digital Computer Design Fundamental
Latches, Flip-Flops BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
COE 202: Digital Logic Design Sequential Circuits Part 1
Synchronous Sequential Logic Chapter 5. Digital Circuits Sequential Circuits Combinational circuits contains no memory elements the outputs depends.
Chap 4. Sequential Circuits
ENG241 Digital Design Week #6 Sequential Circuits (Part A)
D Latch Delay (D) latch:a) logic symbolb) NAND implementationc) NOR implementation.
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.
© BYU 11b MSFF Page 1 ECEn 224 MSFF Master/Slave Flip Flops.
1 Synchronous Sequential Logic Sequential Circuits Every digital system is likely to have combinational circuits, most systems encountered in practice.
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
Synchronous Sequential Logic Part 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.
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.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CENG 241 Digital Design 1 Lecture 7 Amirali Baniasadi
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
2018/5/2 EE 4271 VLSI Design, Fall 2016 Sequential Circuits.
Digital Fundamentals Floyd Chapter 7 Tenth Edition
2018/8/29 EE 4271 VLSI Design, Fall 2013 Sequential Circuits.
Synchronous Sequential Circuits
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Assistant Prof. Fareena Saqib Florida Institute of Technology
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Boolean Algebra and Digital Logic
Synchronous Sequential Circuits
Reference: Chapter 5 Sequential Circuits Moris Mano 4th Ediditon
FLIP-FLOPS.
Synchronous sequential
Synchronous Sequential
Flip-Flops.
Sequential Circuits UNIT- IV
2019/9/26 EE 4271 VLSI Design, Fall 2012 Sequential Circuits.
Presentation transcript:

EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential Circuits

12-Sep-15 PJF - 2Chapter 9: Sequential Circuits Sequential Circuits Combinational Logic: Combinational Logic: Output depends only on current input Output depends only on current input Able to perform useful operations (add/subtract/multiply/…) Able to perform useful operations (add/subtract/multiply/…) Require cascading of many structures Require cascading of many structures Costly and inflexible Costly and inflexible

12-Sep-15 PJF - 3Chapter 9: Sequential Circuits Sequential Circuits (cont.) Sequential Logic: Sequential Logic: Output depends not only on current input but also on past input values Output depends not only on current input but also on past input values Store information between operations (no need for cascading) Store information between operations (no need for cascading) Need some type of memory to remember the past input values Need some type of memory to remember the past input values

12-Sep-15 PJF - 4Chapter 9: Sequential Circuits Sequential Circuits (cont.) Circuits that we have learned so far Information Storing Circuits Timed “States”

12-Sep-15 PJF - 5Chapter 9: Sequential Circuits Sequential Logic: Concept Sequential Logic circuits remember past inputs and past circuit state. Sequential Logic circuits remember past inputs and past circuit state. Outputs from the system are “fed back” as new inputs (usually with delay). Outputs from the system are “fed back” as new inputs (usually with delay). The storage elements are circuits that are capable of storing binary information: memory. The storage elements are circuits that are capable of storing binary information: memory.

12-Sep-15 PJF - 6Chapter 9: Sequential Circuits Synchronous vs. Asynchronous machines There are two types of sequential circuits: Synchronous (latch mode) sequential circuit: the behavior can be defined from knowledge of its signal at discrete instants of time. This type of circuits achieves synchronization by using a timing signal called the clock. Synchronous (latch mode) sequential circuit: the behavior can be defined from knowledge of its signal at discrete instants of time. This type of circuits achieves synchronization by using a timing signal called the clock. Asynchronous (fundamental mode) sequential circuit: the behavior is dependent on the order of input signal changes over continuous time, and output can change at any time (clockless). Asynchronous (fundamental mode) sequential circuit: the behavior is dependent on the order of input signal changes over continuous time, and output can change at any time (clockless).

12-Sep-15 PJF - 7Chapter 9: Sequential Circuits Clock Signal Different duty cycles Clock generator: Periodic train of clock pulses

12-Sep-15 PJF - 8Chapter 9: Sequential Circuits Synchronous Sequential Circuits: Flip flops as state memory The flip-flops receive their inputs from the combinational circuit and also from a clock signal with pulses at fixed intervals of time, as shown in the timing diagram. The flip-flops receive their inputs from the combinational circuit and also from a clock signal with pulses at fixed intervals of time, as shown in the timing diagram.

12-Sep-15 PJF - 9Chapter 9: Sequential Circuits Buffers Inverters Storing Elements Can’t change the stored value!

12-Sep-15 PJF - 10Chapter 9: Sequential Circuits S’R’ Latch (NAND version) S’ R’ Q Q’ S’ R’ Q Q’ Set X Y NAND

12-Sep-15 PJF - 11Chapter 9: Sequential Circuits S’R’ Latch (NAND version) S’ R’ Q Q’ S’ R’ Q Q’ Hold X Y NAND 1 0 Set

12-Sep-15 PJF - 12Chapter 9: Sequential Circuits S’R’ Latch (NAND version) S’ R’ Q Q’ S’ R’ Q Q’ X Y NAND 1 0 Hold 1 0 Set 0 1 Reset

12-Sep-15 PJF - 13Chapter 9: Sequential Circuits S’R’ Latch (NAND version) S’ R’ Q Q’ S’ R’ Q Q’ X Y NAND 0 1 Hold 1 0 Set 0 1 Reset 1 0 Hold

12-Sep-15 PJF - 14Chapter 9: Sequential Circuits S’R’ Latch (NAND version) S’ R’ Q Q’ S’ R’ Q Q’ X Y NAND 0 1 Hold 1 0 Set 0 1 Reset 1 0 Hold 1 1 Disallowed

12-Sep-15 PJF - 15Chapter 9: Sequential Circuits SR Latch with Clock signal Latch is sensitive to input changes ONLY when C=1

12-Sep-15 PJF - 16Chapter 9: Sequential Circuits SR Latch with Clock signal (cont.) S’ R’ Q Q’ S R CLK S R CLK S’ R’ Q Q’ Q 0 Q 0 ’ Store Reset Set Disallowed X X Q 0 Q 0 ’ Store

12-Sep-15 PJF - 17Chapter 9: Sequential Circuits D Latch One way to eliminate the undesirable indeterminate state in the RS latch is to ensure that inputs S and R are never 1 simultaneously. This is done in the D latch: One way to eliminate the undesirable indeterminate state in the RS latch is to ensure that inputs S and R are never 1 simultaneously. This is done in the D latch:

12-Sep-15 PJF - 18Chapter 9: Sequential Circuits D Latch (cont.) D S R CLK Q Q’ Q 0 Q 0 ’ Store Reset Set Disallowed X X 0 Q 0 Q 0 ’ Store X 0 Q 0 Q 0 ’ D CLK Q Q’ S’ R’ Q Q’ S R CLK

12-Sep-15 PJF - 19Chapter 9: Sequential Circuits D Latch with Transmission Gates C=1  TG1 closes and TG2 opens  Q’=D’ and Q=D C=1  TG1 closes and TG2 opens  Q’=D’ and Q=D C=0  TG1 opens and TG2 closes  Hold Q and Q’ C=0  TG1 opens and TG2 closes  Hold Q and Q’ 2 1

12-Sep-15 PJF - 20Chapter 9: Sequential Circuits Flip-Flops Latches are “transparent” (= any change on the inputs is seen at the outputs immediately). Latches are “transparent” (= any change on the inputs is seen at the outputs immediately). This causes synchronization problems! This causes synchronization problems! Solution: use latches to create flip- flops that can respond (update) ONLY on SPECIFIC times (instead of ANY time). Solution: use latches to create flip- flops that can respond (update) ONLY on SPECIFIC times (instead of ANY time).

12-Sep-15 PJF - 21Chapter 9: Sequential Circuits Alternatives in FF choice Type of FF Type of FF RS RS D JK JK Type of triggering Type of triggering Untriggered (asynchronous) Untriggered (asynchronous) Level-triggered (C=1) Level-triggered (C=1) Edge-triggered (rising or falling edge of C) Edge-triggered (rising or falling edge of C)

12-Sep-15 PJF - 22Chapter 9: Sequential Circuits Master-Slave FF configuration using SR latches

12-Sep-15 PJF - 23Chapter 9: Sequential Circuits S R CLK Q Q’ Q 0 Q 0 ’ Hold Reset Set Disallowed X X 0 Q 0 Q 0 ’ Hold Master-Slave FF configuration using SR latches (cont.) When C=1, master is enabled and stores new data, slave stores old data. When C=0, master’s state passes to enabled slave (Q=Y), master not sensitive to new data (disabled).

12-Sep-15 PJF - 24Chapter 9: Sequential Circuits Master-Slave J-K Flip-Flop

12-Sep-15 PJF - 25Chapter 9: Sequential Circuits Flip-Flop Problem The change in the flip-flop output is determined by the circuit frequency The change in the flip-flop output is determined by the circuit frequency S and/or R are permitted to change while C = 1 S and/or R are permitted to change while C = 1 Suppose that Q = 0 and S=1, R=0 -> S=0, R=0 Suppose that Q = 0 and S=1, R=0 -> S=0, R=0 The master latch sets to 1 The master latch sets to 1 A 1 is transferred to the slave A 1 is transferred to the slave Suppose that Q = 0 and S=1, R=0 -> S=0, R=0 -> S=0, R=1 -> S=0, R=0 Suppose that Q = 0 and S=1, R=0 -> S=0, R=0 -> S=0, R=1 -> S=0, R=0 The master latch sets and then resets The master latch sets and then resets A 0 is transferred to the slave A 0 is transferred to the slave

12-Sep-15 PJF - 26Chapter 9: Sequential Circuits Flip-Flop Solution Use edge-triggering instead of master-slave Use edge-triggering instead of master-slave An edge-triggered flip-flop ignores the pulse while it is at a constant level and triggers only during a transition of the clock signal An edge-triggered flip-flop ignores the pulse while it is at a constant level and triggers only during a transition of the clock signal Edge-triggered flip-flops can be built directly at the electronic circuit level, or Edge-triggered flip-flops can be built directly at the electronic circuit level, or A master-slave D flip-flop which also exhibits edge- triggered behavior can be used. A master-slave D flip-flop which also exhibits edge- triggered behavior can be used.

12-Sep-15 PJF - 27Chapter 9: Sequential Circuits Edge-triggered Flip-Flops Attach level-triggered D to level-triggered SR, using complemented clocks. Attach level-triggered D to level-triggered SR, using complemented clocks. D-Type Positive Edge-Triggered Flip-Flop:

12-Sep-15 PJF - 28Chapter 9: Sequential Circuits Characteristic Tables Defines the logical properties of a flip- flop (such as a truth table does for a logic gate). Defines the logical properties of a flip- flop (such as a truth table does for a logic gate). Q(t) – present state at time t Q(t) – present state at time t Q(t+1) – next state at time t+1 Q(t+1) – next state at time t+1

12-Sep-15 PJF - 29Chapter 9: Sequential Circuits Characteristic Tables (cont.) JK Flip-Flop JKQ(t+1)Operation 00Q(t) No change/Hold 010Reset 101Set 11Q(t)’Complement

12-Sep-15 PJF - 30Chapter 9: Sequential Circuits Characteristic Tables (cont.) SR Flip-Flop SRQ(t+1)Operation 00Q(t) No change/Hold 010Reset 101Set 11?Undefined/Invalid

12-Sep-15 PJF - 31Chapter 9: Sequential Circuits Characteristic Tables (cont.) D Flip-Flop DQ(t+1)Operation 00Set 11Reset Characteristic Equation: Q(t+1) = D(t)

12-Sep-15 PJF - 32Chapter 9: Sequential Circuits Characteristic Tables (cont.) T Flip-Flop TQ(t+1)Operation 0Q(t)Hold 1Q(t)’Complement Obtained by JK Flip-Flop with J=K=T Characteristic Equation: Q(t+1) = T’Q(t) + TQ(t)’