IKI10201 06b-Analysis of Sequential Logic Bobby Nazief Semester-I 2005 - 2006 The materials on these slides are adopted from: CS231’s Lecture Notes at.

Slides:



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

1 Combinational Logic Design&Analysis. 2 Introduction We have learned all the prerequisite material: – Truth tables and Boolean expressions describe functions.
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
October 16, 2002Flip-flops1 Summary : Latches A sequential circuit has memory. It may respond differently to the same inputs, depending on its current.
Computing Machinery Chapter 5: Sequential Circuits.
IKI a-Latches & Flip-flops
CS 151 Digital Systems Design Lecture 21 Analyzing Sequential Circuits.
1 Lecture 23 More Sequential Circuits Analysis. 2 Analysis of Combinational Vs. Sequential Circuits °Combinational : Boolean Equations Truth Table Output.
Sequential Logic Design with Flip-flops
Registers.1. Register  Consists of N Flip-Flops  Stores N bits  Common clock used for all Flip-Flops Shift Register  A register that provides the.
Sequential Circuits and Finite State Machines Prof. Sin-Min Lee
EECC341 - Shaaban #1 Lec # 14 Winter Clocked Synchronous State-Machines Such machines have the characteristics: –Sequential circuits designed.
Chp 6: Synchronous sequential logic 1 Synchronous Sequential Logic Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at.
Sequential Circuits Problems(I) Prof. Sin-Min Lee Department of Mathematics and Computer Science Algorithm = Logic + Control.
Digital Logic Design Lecture 26. Announcements Exams will be returned on Thursday Final small quiz on Monday, 12/8. Final homework will be assigned Thursday,
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
1 Synchronous Sequential Circuit Analysis. 2 Synchronous Sequential Circuit State Memory – A set of n edge-triggered flip-flops that store the current.
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
Sequential circuit design
IKI a-Simplification of Boolean Functions Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR1 Sequential Circuit Design.
ECE 320 Homework #6 Derive the state table and state diagram of the sequential circuit of the Figure below. What is the function of the circuit? A’ A.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
IKI c-Synthesis of Sequential Logic Bobby Nazief Semester-I The materials on these slides are adopted from: Prof. Daniel Gajski’s transparency.
Chapter 5 - Part Sequential Circuit Design Design Procedure  Specification  Formulation - Obtain a state diagram or state table  State Assignment.
Analyzing our example circuit
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 =
Rabie A. Ramadan Lecture 2
Flip_Flops  Logic circuits are classified ito two groups  1. The combinational logic circuits,using the basic gates AND,OR and NOT.  2. Sequential.
Circuit, State Diagram, State Table
Chap 4. Sequential Circuits
IKI a-Boolean Algebra Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes at UIUC,
IKI a-Combinatorial Components Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes.
IKI Register-transfer Design
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5.
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
IKI b-Arithmetic Logic Unit (ALU) Bobby Nazief Semester-I The materials on these slides are adopted from: CS231’s Lecture Notes at UIUC,
ACOE1611 Combinational Logic Circuits Reference: M. Mano, C. Kime, “Logic and Computer Design Fundamentals”, Chapter 2.
ANALYSIS OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham.
Registers; State Machines Analysis Section 7-1 Section 5-4.
1Sequential circuit design Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA by Erol Sahin and Ruken Cakici.
Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
ENG241 Digital Design Week #7 Sequential Circuits (Part B)
Revision Mid 1 Prof. Sin-Min Lee Department of Computer Science.
A sequential logic circuit (a.k.a. state machine) consists of both combinational logic circuit(s) and memory devices (flip flops). The combinational circuits.
Sequential circuit analysis1 Sequential Circuit Analysis Last time we started talking about latches and flip-flops, which are basic one-bit memory units.
Sequential Circuit Design 05 Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA.
Materials on the Exam Introduction Data Representation in Computer Systems Boolean Algebra Digital Logic MARIE: An Introduction to a Simple Computer Until.
(Synchronous) Sequential Logic 04 Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA.
1 Lecture #15 EGR 277 – Digital Logic Reading Assignment: Chapter 5 in Digital Design, 3 rd Edition by Mano Example: (Problem 5-17 from Digital Design,
ANALYSIS OF SEQUENTIAL CIRCUITS
Digital Design Lecture 9
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
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.
Princess Sumaya University
Sequential circuit design
Sequential circuit design
AOI Design: Logic Analysis
Sequential circuit design
Sequential circuit analysis: kale
AOI Design: Logic Analysis
From now on: Combinatorial Circuits:
Analysis with JK flip-flops
Sequential circuit analysis
AOI Design: Logic Analysis
Sequential Circuit Analysis
ECE 352 Digital System Fundamentals
Presentation transcript:

IKI b-Analysis of Sequential Logic Bobby Nazief Semester-I The materials on these slides are adopted from: CS231’s Lecture Notes at UIUC, which is derived from Howard Huang’s work and developed by Jeff Carlyle; Prof. Daniel Gajski’s transparency for Principles of Digital Design.

2 Analysis of Sequential Logic

3 An example sequential circuit Here is a sequential circuit with two JK flip-flops. There is one input, X, and one output, Z. The values of the flip-flops (Q 1 Q 0 ) form the state, or the memory, of the circuit. The flip-flop outputs also go back into the primitive gates on the left. This fits the general sequential circuit diagram at the bottom. Combinational circuit Inputs Memory Outputs XZ Q0 Q1

4 How do you describe a sequential circuit? For a combinational circuit we could find a truth table, which shows how the outputs are related to the inputs. A state table is the sequential analog of a truth table. It shows inputs and current states on the left, and outputs and next states on the right. – For a sequential circuit, the outputs are dependent upon not only the inputs, but also the current state of the flip-flops. – In addition to finding outputs, we also need to find the state of the flip-flops on the next clock cycle.

5 Analyzing our example circuit A basic state table for our example circuit is shown below. Remember that there is one input X, one output Z, and two flip-flops Q 1 Q 0. The present state Q 1 Q 0 and the input will determine the next state and the output.

6 The outputs are easy The output depends on the current state – Q0 and Q1 – as well as the inputs. From the diagram, you can see that Z = Q 1 Q 0 X Output at the current time

7 Flip-flop input equations Finding the next states is harder. To do this, we have to figure out how the flip-flops are changing. Step 1: Find Boolean expressions for the flip-flop inputs. I.e. How do the inputs (say, J & K) to the flipflops depend on the current state and input Step 2: Use these expressions to find the actual flip-flop input values for each possible combination of present states and inputs. I.e. Fill in the state table (with new intermediate columns) Step 3: Use flip-flop characteristic tables or equations to find the next states, based on the flip-flop input values and the present states.

8 Step 1: Flip-flop input equations For our example, the flip-flop input equations are: J 1 = X’ Q 0 K 1 = X + Q 0 J 0 = X + Q 1 K 0 = X’ JK flip-flops each have two inputs, J and K. (D and T flip- flops have one input each.)

9 Step 2: Flip-flop input values With these equations, we can make a table showing J 1, K 1, J 0 and K 0 for the different combinations of present state Q 1 Q 0 and input X. J 1 = X’ Q 0 J 0 = X + Q 1 K 1 = X + Q 0 K 0 = X’

10 Step 3: Find the next states Finally, use the JK flip-flop characteristic tables or equations to find the next state of each flip-flop, based on its present state and inputs. The general JK flip-flop characteristic equation is: Q(t+1) = K’Q(t) + JQ’(t) In our example circuit, we have two JK flip-flops, so we have to apply this equation to each of them: Q 1 (t+1) = K 1 ’Q 1 (t) + J 1 Q 1 ’(t) Q 0 (t+1) = K 0 ’Q 0 (t) + J 0 Q 0 ’(t) We can also determine the next state for each input/current state combination directly from the characteristic table.

11 Step 3 concluded The next states for Q 1 and Q 0, are calculated using these equations: Q 1 (t+1) = K 1 ’Q 1 (t) + J 1 Q 1 ’(t) Q 0 (t+1) = K 0 ’Q 0 (t) + J 0 Q 0 ’(t)

12 Step 3 concluded Using the characteristic equations: Q 1 (t+1) = K 1 ’Q 1 (t) + J 1 Q 1 ’(t) Q 0 (t+1) = K 0 ’Q 0 (t) + J 0 Q 0 ’(t) Or the characteristic table

13 Step 3 concluded Finally, here are the next states for Q 1 and Q 0, using these equations: Q 1 (t+1) = K 1 ’Q 1 (t) + J 1 Q 1 ’(t) Q 0 (t+1) = K 0 ’Q 0 (t) + J 0 Q 0 ’(t)

14 Getting the state table columns straight The table starts with Present State and Inputs. – Present State and Inputs yield FF Inputs. – Present State and FF Inputs yield Next State, based on the flip- flop characteristic tables. – Present State and Inputs yield Output. We really only care about FF Inputs in order to find Next State.

15 State diagrams We can also represent the state table graphically with a state diagram. A diagram corresponding to our example state table is shown below /0 0/0 1/0 1/1 inputoutput state

16 Sizes of state diagrams /0 0/0 1/0 1/1 Always check the size of your state diagrams. – If there are n flip-flops, there should be 2 n nodes in the diagram. – If there are m inputs, then each node will have 2 m outgoing arrows. From each state In our example, – We have two flip-flops, and thus four states or nodes. – There is one input, so each node has two outgoing arrows.

17 Sequential circuit analysis summary To analyze sequential circuits, you have to: – Find Boolean expressions for the outputs of the circuit and the flip- flop inputs. – Use these expressions to fill in the output and flip-flop input columns in the state table. – Finally, use the characteristic equation or characteristic table of the flip-flop to fill in the next state columns. The result of sequential circuit analysis is a state table or a state diagram describing the circuit.