CENG 241 Digital Design 1 Lecture 10 Amirali Baniasadi

Slides:



Advertisements
Similar presentations
State-machine structure (Mealy)
Advertisements

CENG 241 Digital Design 1 Lecture 11
Analysis of Clocked Sequential Circuits
COE 202: Digital Logic Design Sequential Circuits Part 3
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
CENG 241 Digital Design 1 Lecture 8 Amirali Baniasadi
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Synchronous Sequential Logic
Digital Logic Design Lecture 27.
1 Lecture 23 More Sequential Circuits Analysis. 2 Analysis of Combinational Vs. Sequential Circuits °Combinational : Boolean Equations Truth Table Output.
Sequential Design Part II. Output A(t+1) =D A = AX + BX B(t+1) =D B = AX Y = AX + BX.
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 Circuit Design
Sequential Circuit Design
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
ECE 301 – Digital Electronics
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.
CENG 241 Digital Design 1 Lecture 9 Amirali Baniasadi
CENG 241 Digital Design 1 Lecture 5
ECE 331 – Digital Systems Design Sequential Logic Circuits: FSM Design (Lecture #20)
1 Chapter 5 Synchronous Sequential Logic 5-1 Sequential Circuits Every digital system is likely to have combinational circuits, most systems encountered.
Rabie A. Ramadan Lecture 2
(Sequential Logic Circuit)
Digital Design Lecture 10 Sequential Design. State Reduction Equivalent Circuits –Identical input sequence –Identical output sequence Equivalent States.
Synchronous Sequential Logic Part II
Circuit, State Diagram, State Table
Chap 4. Sequential Circuits
State Machines.
Synchronous Sequential Logic Chapter 5. Digital Circuits Sequential Circuits Combinational circuits contains no memory elements the outputs depends.
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
Sequential Circuit Design. Outline  Flip-flop Excitation Tables  Sequential Circuit Design  Design: Example #1  Design: Example #2  Design: Example.
1 Lecture #12 EGR 277 – Digital Logic Synchronous Logic Circuits versus Combinational Logic Circuits A) Combinational Logic Circuits Recall that there.
Digital Circuits State Reduction and Assignment State Reduction reductions on the number of flip-flops and the number of gates a reduction in the.
DESIGN OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham.
1 State Reduction Goal: reduce the number of states while keeping the external input-output requirements unchanged. State reduction example: a: input 0.
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.
C HAPTER F IVE S YNCHRONOUS S EQUENTIAL L OGIC 1.
Princess Sumaya University
Lecture 20: Sequential Logic (5)
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
ENG241 Digital Design Week #7 Sequential Circuits (Part B)
Synthesis Synchronous Sequential Circuits synthesis procedure –Word description of problem /hardest; art, not science/ –Derive state diagram & state table.
1 Lecture #14 EGR 277 – Digital Logic Self-starting counters Counters are considered to be self-starting if all unused counts eventually lead to the correct.
Sequential Circuit Design 05 Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
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,
Week #7 Sequential Circuits (Part B)
FIGURE 5.1 Block diagram of sequential circuit
CSCE 211: Digital Logic Design
ECE 301 – Digital Electronics
CSCE 211: Digital Logic Design
FINITE STATE MACHINES (FSMs)
Princess Sumaya University
CENG 241 Digital Design 1 Lecture 11
CSCE 211: Digital Logic Design
CSCE 211: Digital Logic Design
Chapter 5 Synchronous Sequential Logic 5-1 Sequential Circuits
INTRODUCTION TO LOGIC DESIGN Chapter 5 Synchronous Sequential Logic
MTE 202, Summer 2016 Digital Circuits Dr.-Ing. Saleh Hussin
DESIGN OF SEQUENTIAL CIRCUITS
Analysis with JK flip-flops
Chapter5: Synchronous Sequential Logic – Part 4
FINITE STATE MACHINES.
CSCE 211: Digital Logic Design
Chapter5: Synchronous Sequential Logic – Part 3
COE 202: Digital Logic Design Sequential Circuits Part 3
Presentation transcript:

CENG 241 Digital Design 1 Lecture 10 Amirali Baniasadi

2 This Lecture zReview of last lecture: Analysis zChapter 5: State Reduction, Design Procedure

3 zAnalysis: Obtaining a table/diagram for the time sequence of inputs/outputs/internal states. zExamples: State Equations, State Table, State Diagram Analysis of Clocked Sequential Circuits

4 Example of state equation: A(t+1) = A(t)x(t) + B(t)x(t) B(t+1) = A’(t)x(t) A(t+1)=Ax+Bx B(t+1)=A’x y(t)=(A(t)+B(t)).x’(t) = (A+B)x’

5 Example of state tables zPresent state input Next State Output zA B x A B y z z z z z z z z State equation: A(t+1) = A(t)x(t) + B(t)x(t) B(t+1) = A’(t)x(t) y(t)=(A(t)+B(t)).x’(t)

6 Example of state tables-2nd form zPresent state Next State Output z x=0 x=1 x=0 x=1 zAB AB AB y y z z z z State equation: A(t+1) = A(t)x(t) + B(t)x(t) B(t+1) = A’(t)x(t) y(t)=(A(t)+B(t)).x’(t)

7 Example of state diagram Present state Next State Output x=0 x=1 x=0 x=1 AB AB AB y y

8 Mealy & Moore zMealy machine: Output depends on both input & present state zMoore machine: Output only depends on present state.

9 Example of Mealy Machine Present state Next State Output x=0 x=1 x=0 x=1 AB AB AB y y

10 Example of Moore Machine Present state input Next State A B x A B

11 State Reduction and Assignment zGoal: Reduce the number of states while keeping the external input-output requirements. z2 m states need m flip-flops, so reducing the states may reduce flip-flops. zIf two states are equal, one can be removed but what are equal states?

12 State Reduction Example As an example consider the input sequence below: applied and start from state a. State a a b c d e f f g f g a input output

13 State Reduction Example Present State Next State Output x=0 x=1 x=0 x=1 a a b 0 0 b c d 0 0 c a d 0 0 d e f 0 1 e a f 0 1 f g f 0 1 g a f 0 1 States e and g are equal since for each member of the set of inputs, they give the same output and send the circuit either to the same state or an equivalent state.

14 State Reduction Example Present State Next State Output x=0 x=1 x=0 x=1 a a b 0 0 b c d 0 0 c a d 0 0 d e f 0 1 e a f 0 1 f e f 0 1 Table and state diagram after the first reduction: g is removed and replaced by state e. NEW equal states: d and f

15 State Reduction Example Present State Next State Output x=0 x=1 x=0 x=1 a a b 0 0 b c d 0 0 c a d 0 0 d e d 0 1 e a d 0 1 Table and state diagram after the second reduction: f is removed and replaced by state d. If we apply the same sequence State a a b c d e d d e d e a input output

16 Design Procedure First Step: From the word description of the problem derive a state diagram example:design a circuit to detect three or more consecutive 1’s in a string of bits coming through an input line.

17 Design steps z1.From word description, derive state diagram z2.Reduce the number of states z3.Assign binary values to states z4.Obtain the binary coded state table z5.Choose the type of flip-flop used z6.Derive the simplified flip-flop input and output equations z7.Draw the logic diagram zsteps 4 to 7can be implemented by exact algorithms and can be automated. zThe part of the design that is well-defined is referred to as synthesis.

18 State Table for Sequence Decoder zPresent State Input Next State Output zA B x A B y z z z z z z z z A(t+1)= Σ(3,5,7) B(t+1)= Σ(1,5,7) Y(A,B,x)= Σ(6,7)

19 Synthesis Using D Flip-Flops A(t+1)=D A (A,B,x)= Σ(3,5,7) B(t+1)=D B (A,B,x)= Σ(1,5,7) Y(A,B,x)= Σ(6,7)

20 Logic Diagram for a Sequence Detector D A = Ax + Bx D B = Ax + B’x y=AB

21 Excitation Tables zUsing flip-flops other than D can be complicated. zWhy? Input equations for the circuit must be derived indirectly from the state table zExcitation tables can help. zExcitation tables give us the flip-flop input for every state transition. zExample : JK- Recall Q(t+1) = JQ’(t) + K’Q(t) zQ(t) Q(t+1) J K z0 0 0 X z0 1 1 X z1 0 X 1 z1 1 X 0

22 Excitation Tables- T flip-flop zExample : JK- Recall Q(t+1) = TQ’(t) + T’Q(t) = T XOR Q zQ(t) Q(t+1) T z0 0 0 z0 1 1 z1 0 1 z1 1 0

23 Synthesis Using JK Flip-Flops zPresent State Input Next State Flip-Flop Inputs zA B x A B JA KA JB KB z x 0 x z x 1 x z x x 1 z x x 0 z x 0 0 x z x 0 1 x z x 0 x 0 z x 1 x 1 zWe also include J, K input conditions, derived from the excitation table.

24 Synthesis Using JK Flip-Flops

25 Synthesis Using JK Flip-Flops

26 Synthesis Using T Flip-Flops Example: 3-bit Binary Counter The counter counts the clock. Clock does not appear explicitly in the state diagram.

27 Synthesis Using T Flip-Flops Present State Next State Flip-Flop Inputs A2 A1 A0 A2 A1 A0 TA2 TA1 TA

28 Synthesis Using T Flip-Flops

29 Synthesis Using T Flip-Flops

30 Summary zState Reduction, Synthesis