Slides:



Advertisements
Similar presentations
ENGIN112 L23: Finite State Machine Design Procedure October 27, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 23 Finite State Machine.
Advertisements

Chapter #8: Finite State Machine Design 8
Finite State Machines (FSMs)
1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
Computer Architecture CS 215
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Digital Electronics Chapter 5 Synchronous Sequential Logic.
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 Systems A combinational system is a system whose outputs depend only upon its current inputs. A sequential system is a system whose outputs.
Sequential Logic Computer Organization Ellen Walker Hiram College Figures from Computer Organization and Design 3ed, D.A. Patterson & J.L. Hennessey, Morgan.
Circuits require memory to store intermediate data
Dr. ClincyLecture1 Appendix A – Part 2: Logic Circuits Current State or output of the device is affected by the previous states Circuit Flip Flops New.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
1 Lecture 23 More Sequential Circuits Analysis. 2 Analysis of Combinational Vs. Sequential Circuits °Combinational : Boolean Equations Truth Table Output.
Sequential Circuit Design
CSE 140 Lecture 8 Sequential Networks Professor CK Cheng CSE Dept. UC San Diego 1.
CS 140 Lecture 8 Sequential Networks Professor CK Cheng CSE Dept. UC San Diego.
ECE C03 Lecture 101 Lecture 10 Finite State Machine Design Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
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.
Give qualifications of instructors: DAP
Contemporary Logic Design Finite State Machine Design © R.H. Katz Transparency No Chapter #8: Finite State Machine Design Finite State.
Sequential Circuit Design
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.
Midterm Wednesday Chapter 1-3: Number /character representation and conversion Number arithmetic CMOS logic elements Combinational logic elements and design.
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.
SEQUENTIAL CIRCUITS Introduction
Digital Computer Design Fundamental
COE 202: Digital Logic Design Sequential Circuits Part 1
Flip Flop
ECE C03 Lecture 101 Lecture 10 Finite State Machine Design Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Elevator Controller We’re hired to design a digital elevator controller for a four-floor building st try: Design a counter that counts up.
Chap 4. Sequential Circuits
Introduction to Sequential Logic Design Flip-flops FSM Analysis.
Lecture 18 More Moore/Mealy machines.
Sequential Logic Combinatorial components: the output values are computed only from their present input values. Sequential components: their output values.
Sequential Design Basics. Lecture 2 topics  A review of devices that hold state A review of Latches A review of Flip-Flops 8/22/2012 – ECE 3561 Lect.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Introduction to State Machine
DLD Lecture 26 Finite State Machine Design Procedure.
1 Finite State Machines (FSMs) Now that we understand sequential circuits, we can use them to build: Synchronous (Clocked) Finite State Machines Finite.
ANALYSIS OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham.
Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Introduction to Sequential Logic Design Finite State-Machine Analysis.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CSE 140 Lecture 8 Sequential Networks

LATCHED, FLIP-FLOPS,AND TIMERS
Chapter #6: Sequential Logic Design
Introduction to Sequential Logic Design
ANALYSIS OF SEQUENTIAL CIRCUITS
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
FLIP FLOPS.
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
Assistant Prof. Fareena Saqib Florida Institute of Technology
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.
Introduction to Sequential Logic Design
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Sequential logic circuits
CSE 370 – Winter Sequential Logic-2 - 1
Finite State Machines (FSMs)
FLIP-FLOPS.
Flip-Flops.
SYEN 3330 Digital Systems Chapter 6 – Part 3 SYEN 3330 Digital Systems.
FLIPFLOPS.
Presentation transcript:

Sequential Circuits Design Problem: Combinational Lock Detect the lock sequence 3-1-2

Storage Elements: Latches vs. Flip Flops Latch: level sensitive: continuously sampling input while level is high Flip Flop: sample input at a transition of the clock positive edge triggered, negative edge triggered D Clk Qlatch Qff(neg edge)

S-R Latch (Active High) S R Q 0 0 0 1 1 0 1 1 R(reset) S(set) Q S R Q

S-R Latch (Active Low) S R Q 0 0 0 1 1 0 1 1 R(reset) Q Q S(set) S R Q

Controlled S-R Latch S(set) Q Clock Q R(reset) C S R Q 0 X X 1 0 0 1 0 0 1 0 1 1 1 0 1 1 1

D Latch D Q Clock Q C D Q 0 X 1 0 1 1

Flip Flops Problem: latches are sensitive to any changes that occur with the input while the clock or control signal is high Glitches/Hazards Unsynchronized changes Solution use flip-flops, devices that react only on the clock edge

Master-Slave D Flip Flop Y D D Q D latch (Master) C D Q D latch (Slave) C Q Clock D Clk Y Q

Master-Slave J-K Flip Flop S Q S-R latch (Master) R C D Q D latch (Slave) C Q Q J Y K Clock Clk J K Y Q

Flip Flop Descriptions Several ways to describe a Flip Flop Example: Toggle Flip Flop: Inverts output when input is true Characteristic tables: How does the FF respond to its inputs Determines how to design the element Excitation tables: How do you get a result out of a FF Determines how to use the element T Q Toggle Flip Flop C T Q(t) Q(t+1) 0 0 0 0 1 1 1 0 1 1 1 0 Q(t) Q(t+1) T 0 0 0 1 1 0 1 1

Flip Flop Descriptions (cont.) S-R Flip Flop: D Flip Flop: S R Q ( t ) Q ( t + 1 ) Q ( t ) Q ( t+1 ) S R 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 D Q ( t ) Q ( t + 1 ) Q ( t ) Q ( t+1 ) D 1 1 1 1 1 1 1 1

Flip Flop Descriptions (cont.) J-K Flip Flop J K Q ( t ) Q ( t + 1 ) Q ( t ) Q ( t+1 ) J K 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Design Example Design a D Flip Flop with an SR Flip Flop

Design Example Design a T Flip Flop with a JK Flip Flop

(combinational logic) Finite State Machines Need to implement circuits that remember history Traffic Light controller, Sequence Lock, ... History will be held in flip flops Seqential Logic needs more complex design steps State Diagram to describe behavior State Table to specify functions (like Truth Table) Implementation of combinational logic as controller Controller (combinational logic) FFs Inputs Outputs Next State Previous (Current) State

Finite State Machine Example Example: Odd Parity Checker Assert output whenever input bit stream has odd # of 1's Reset 0/0 Even 1/0 1/1 Odd 0/1 State Diagram Even: State = 0, Odd: State = 1

Finite State Machine Example (cont.) NS = PS xor PI; OUT = PS xor PI PS NS Output Input D Q CLK Q R \Reset Input 1 1 1 1 1 1 1 Clk Output

State Diagrams Graphical diagram of FSM behavior States represented by circles Transitions (actions) represented by arrows connecting states Labels on Transitions give cause of action, resulting output Inputs causing transition/Outputs Note: We cover Mealy machines here; Moore machines put outputs on states, not transitions Finite State Machine: State Diagram with finite number of states Reset 0/0 Even 1/0 1/1 Odd 0/1

State Diagram Example Circuit that cycles through Gray code when input true, holds value otherwise Gray code: Code on top of K-Map

State Table “Truth table” for sequential circuits

State Table Example State Table for Gray code circuit

FSM Design Process 1. Understand the problem 2. Draw the state diagram 3. Use state diagram to produce state table 4. Choose which type of Flip Flops to use 5. Implement the combinational control logic

Vending Machine Example Deliver package of gum after >= 15 cents deposited Single coin slot for dimes, nickels No change returned State Diagram: N Coin Vending Open Gum Sensor D Machine Release FSM Mechanism Reset Clk

Vending Machine Example (cont.) State Table:

Vending Machine Example (cont.) Implementation: