5 - 1 Chapter 6 Analysis of Sequential Systems. 5 - 2 Chapter 6 Analysis of Sequential Systems 6.0 Introduction  Clocked System Clock A signal that alternates.

Slides:



Advertisements
Similar presentations
COE 202: Digital Logic Design Sequential Circuits Part 2
Advertisements

Clocked Synchronous State-machine Analysis
State-machine structure (Mealy)
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
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.
CSCE 211: Digital Logic Design. Chapter 6: Analysis of Sequential Systems.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.
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.
CSCE 211: Digital Logic Design
Logic and Computer Design Fundamentals Registers and Counters
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.
1 Synchronous Sequential Circuit Analysis. 2 Synchronous Sequential Circuit State Memory – A set of n edge-triggered flip-flops that store the current.
Chapter 6 Analysis of Sequential Systems Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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
COE 202: Digital Logic Design Sequential Circuits Part 1
Chapter 7 The Design of Sequential Systems.
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Chap 4. Sequential Circuits
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Digital Logic of Computer Engineering KKU.1 Chapter 5 Sequential Systems Latches and Flip-flops Synchronous Counter Asynchronous.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
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.
A sequential logic circuit (a.k.a. state machine) consists of both combinational logic circuit(s) and memory devices (flip flops). The combinational circuits.
Introduction to Sequential Logic Design Finite State-Machine Analysis.
Chapter 8 Solving Larger Sequential Problems.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
Chapter 6 Analysis of Sequential Systems Sequential Memory Feedback.
Lecture 14 State Machines II Topics State Machine Design Resolution with Text Design with D flip-flops Design with JK Readings: Chapter 7 November 11,
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
7. Latches and Flip-Flops Digital Computer Logic.
Mealy and Moore Machines Lecture 8 Overview Moore Machines Mealy Machines Sequential Circuits.
Sequential Circuits.
LATCHED, FLIP-FLOPS,AND TIMERS
Chapter #6: Sequential Logic Design
Introduction to Sequential Logic Design
ANALYSIS OF SEQUENTIAL CIRCUITS
Lecture 12 Analysis of Clocked Sequential Network
Analysis of Clocked Sequential Circuit
SLIDES FOR CHAPTER 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
CSCE 211: Digital Logic Design
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
Synchronous Sequential Circuits
CSCE 211: Digital Logic Design
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
Asynchronous Inputs of a Flip-Flop
T Flip-Flop A T (toggle) flip-flop is a complementing flip-flop and can be obtained from a JK flip-flop when the two inputs are tied together. When T.
ECE Digital logic Lecture 16: Synchronous Sequential Logic
CSCE 211: Digital Logic Design
Sequential logic circuits
CSCE 211: Digital Logic Design
Chapter 6 -- Introduction to Sequential Devices
CSCE 211: Digital Logic Design
Synchronous Sequential Circuits
Analysis of Sequential Systems
FLIP-FLOPS.
Synchronous sequential
Synchronous Sequential
Flip-Flops.
CSCE 211: Digital Logic Design
Lecture 14: State Tables, Diagrams, Latches, and Flip Flop
Chapter 5 Sequential Circuits.
Presentation transcript:

5 - 1 Chapter 6 Analysis of Sequential Systems

5 - 2 Chapter 6 Analysis of Sequential Systems 6.0 Introduction  Clocked System Clock A signal that alternates between 0 and 1 at a regular rate Two versions of clock Type A : 0 half and 1 half Type B : 1 is shorter part of the cycle P. 277

5 - 3 Chapter 6 Analysis of Sequential Systems 6.0 Introduction  Synchronous System Change occurs on the transition of the clock signal Conceptual view of a synchronous sequential system n inputs(x’s), clock, k outputs(z’s), m binary storage devices(q’s) P. 278

5 - 4 Chapter 6 Analysis of Sequential Systems 6.1 State Tables and Diagrams  CE6 A system with one input x and one output z such that z = 1 iff x has been 1 for at least three consecutive clock times. State The last three inputs store in memory Timing Trace A Set of values for the input and the output at consecutive clock times x z? P. 279

5 - 5 Chapter 6 Analysis of Sequential Systems 6.1 State Tables and Diagrams  CE6 Moore Model The output depends only on the state of the system. The output occurs after the desired input pattern has occurred. Named after E. F. Moore. The output for the first input is shown as unknown. After 3 consecutive inputs are 1, the system output is 1. x z? P. 278

5 - 6 Chapter 6 Analysis of Sequential Systems 6.1 State Tables and Diagrams  Two Tools for Describing Sequential Systems State Table It shows the output and the next state for each input combination and each state. Next state is to be stored in memory after the next clock. State Diagram(State Graph) A graphical representation of the behavior of the system. State Table State Diagram Present state Next state x=0 x=1 Present output A AB 0 B AC 0 C AD 0 D AD 1 P. 280

5 - 7 Chapter 6 Analysis of Sequential Systems 6.1 State Tables and Diagrams  Two Tools for Describing Sequential Systems Representation q : present state q* : next state ( Q, q+, q+  ) It will be stored in memory after this clock transition Output depends on the present state, but not the present input. State Diagram corresponds to its state table. Trace with State x q?ABCABCDAABABCDDDDAA? z? P. 281

5 - 8 Chapter 6 Analysis of Sequential Systems 6.1 State Tables and Diagrams  Mealy Model The Output depends not only the present state of the machine, but also on the present input. The state table has as many output columns as the next state portion. The state diagram is different from the Moore model. State TableState Diagram Trace with State q q* x=0 x=1 z x=0 x=1 AAB 0 0 BAC 0 0 CAC 0 1 x q?ABCABCCAABABCCCCCAA z? P

5 - 9 Chapter 6 Analysis of Sequential Systems 6.2 Latches  Latch Binary storage device composed of two or more gates with feedback. Simple example Simplest two NOR gates latch The output of each gate is connected to the input of the other gate. Equations for this system P = ( S + Q )’ Q = ( R + P )’ P. 282

Chapter 6 Analysis of Sequential Systems 6.2 Latches  Latch Simple example Equations for this system S = 0, R = 0 P = Q’, Q = P’ Store 0 (Q = 0 and P = 1) or store 1 (Q = 1 and P = 0) S is used to indicate ‘set’, store a 1 in the latch S = 1, R = 0 P = (1 + Q)’ = 1’ = 0 Q = (0 + 0)’ = 0’ = 1 R is used to indicate ‘reset’, store a 0 in the latch S = 0, R = 1 Q = (1 + P)’ = 1’ = 0 P = (0 + 0)’ = 0’ = 1

Chapter 6 Analysis of Sequential Systems 6.2 Latches  Latch Simple example Equations for this system S = 1, R = 1 : not operated P = (1 + Q)’ = 1’ = 0 Q = (1 + P)’ = 1’ = 0

Chapter 6 Analysis of Sequential Systems 6.2 Latches  Gated Latch Gate signal is inactive ( = 0 )  SG, RG are both 0. Latch remains unchanged. Gate signal is active ( = 1 )  Latch stores 0 or 1. P. 283

Chapter 6 Analysis of Sequential Systems 6.3 Flip Flops  Flip Flop Clocked binary storage device Flip Flop stores a 0 or a 1. Trailing-edge Triggered Change FF state when the clock goes from 1 to 0. Leading-edge Triggered Change FF state when the clock goes from 0 to 1. Various Types of Flip Flops D Flip Flop JK Flip Flop SR Flip Flop T Flip Flop

Chapter 6 Analysis of Sequential Systems 6.3 Flip Flops  D Flip Flop The output is just the input delayed until the next active clock transition. Block Diagram D q q’ D q Clock Trailing-edge Triggered Leading-edge Triggered P. 284

Chapter 6 Analysis of Sequential Systems 6.3 Flip Flops  D Flip Flop Two forms of a truth table State Diagram Dqq* D P. 284

Chapter 6 Analysis of Sequential Systems 6.3 Flip Flops  D Flip Flop Timing Diagram Trailing-edge triggered D FF Result in (b) will be same as (a) (a) (b) P. 285

Chapter 6 Analysis of Sequential Systems 6.3 Flip Flops  D Flip Flop Timing Diagram Leading-edge triggered D FF P. 286

Chapter 6 Analysis of Sequential Systems 6.3 Flip Flops  D Flip Flop Two Flip Flops P

Chapter 6 Analysis of Sequential Systems 6.3 Flip Flops  D Flip Flop Preset and Reset P. 287

Chapter 6 Analysis of Sequential Systems 6.3 Flip Flops  D Flip Flop Preset and Reset P. 288

Chapter 6 Analysis of Sequential Systems 6.3 Flip Flops  SR(Set-Reset) Flip Flop Behavioral Tables SR Flip Flop State Diagram P. 288

Chapter 6 Analysis of Sequential Systems 6.3 Flip Flops  SR(Set-Reset) Flip Flop Behavioral Map q* = S + R’q Timing Diagram q* P. 289

Chapter 6 Analysis of Sequential Systems 6.3 Flip Flops  T(Toggle) Flip Flop T = 1, TFF changes state (Toggled). T = 0, TFF state remains same. Behavioral Table State Diagram Tqq* T 0q 1q` P. 289

Chapter 6 Analysis of Sequential Systems 6.3 Flip Flops  T(Toggle) Flip Flop Behavioral Equation q* = T q Timing Diagram P. 290

Chapter 6 Analysis of Sequential Systems 6.3 Flip Flops  JK Flip Flop Combination of SR and T J = K = 1, FF changes state. Behavioral Table State Diagram P. 290

Chapter 6 Analysis of Sequential Systems 6.3 Flip Flops  JK Flip Flop Behavioral Equation q* = Jq’ + K’q Timing Diagram P. 291

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems  D Flip Flop Moore Model(1) Circuit Equation D 1 = q 1 q 2 ’ + xq 1 ’ D 2 = xq 1 z = q 2 ’ P. 292

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems  D Flip Flop Moore Model(2) State Table Partial State Table Complete State Table Moore State Diagram P. 293

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems  JK Flip Flop Moore Model(1) Circuit Equation J A = x K A = xB’ J B = K b = x + A’ z = A + B P. 293

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems  JK Flip Flop Moore Model(2) State Table First two entries A* entered Complete State Table P. 294

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems  JK Flip Flop Moore Model(3) State Table using Equation q* = Jq’ + K’q A* = J A A’ + K A ’A = xA’ + (xB’)A = xA’ + x’A + AB B* = J B B’ + K B ’B = (x + A’)B’ + (x + A’)’B = xB’ + A’B’ + x’AB State table can be constructed with D flip flops. These equations give exactly the same results as before. Trace Table P. 295

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems  JK Flip Flop Moore Model(4) Timing Diagram P. 296

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems  JK Flip Flop Moore Model(5) State Diagram P. 296

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems  JK Flip Flop Mealy Model(1) Circuit Equations D 1 = xq 1 + xq 2 D 2 = xq 1 ’q 2 ’ z = xq 1 q 1 * = xq 1 + xq 2 q 2 * = xq 1 ’q 2 ’ P. 297

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems  JK Flip Flop Mealy Model(2) State Table State Diagram P

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems  JK Flip Flop Mealy Model(3) Mealy Modeling Timing P. 298

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems  JK Flip Flop Mealy Model(4) Timing Diagram P. 299

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems Circuit Moore model Output z does not depend on the input x z = q 1 q 2 Example 6.1a(1) P. 299

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems Equations J 1 = xq 2, K 1 = x’ D 2 = x(q 1 +q 2 ’) When x = 0, J 1 = 0, K 1 = 1, and D 2 = 0, thus system state is 00 When x = 1 J 1 = q 2, K 1 = 0, D 2 = q 1 + q 2 ’ q 1 * = xq 1 ’q 2 + xq 1 = x(q 1 + q 2 ) State Table Example 6.1a(2) P. 300

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems Timing Diagram Example 6.1a(3) P. 300

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems z = x’q 1 q 2 This machine is a Mealy model. State Diagram Example 6.1b P. 299, 301

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems Assume initial state is 0000 J 1 = K 1 = xq 4 T 2 = q 1 ’ S 3 = q 2 ’, R 3 = q 2 D 4 = q 3 Example 6.2 P. 301

Chapter 6 Analysis of Sequential Systems 6.4 Analysis of Sequential Systems q 1 : changes state only when xq 4 = 1 q 2 : changes state only when q 1 = 0 q 3 * = q 2 ’ q 4 * = q 3 Example 6.2 (cont.) x q1q q2q q3q q4q P. 302