1 Lecture 13 Overview of sequential logic  Basic concepts  An example.

Slides:



Advertisements
Similar presentations
Finite State Machines (FSMs)
Advertisements

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.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
Circuits require memory to store intermediate data
EKT 124 / 3 DIGITAL ELEKTRONIC 1
CS 151 Digital Systems Design Lecture 21 Analyzing Sequential Circuits.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
Overview Finite State Machines - Sequential circuits with inputs and outputs State Diagrams - An abstraction tool to visualize and analyze sequential circuits.
Overview Finite State Machines - Sequential circuits with inputs and outputs State Diagrams - An abstraction tool to visualize and analyze sequential circuits.
Overview Finite State Machines
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)
Midterm Wednesday Chapter 1-3: Number /character representation and conversion Number arithmetic CMOS logic elements Combinational logic elements and design.
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
Lecture 21 Overview Counters Sequential logic design.
EECS Components and Design Techniques for Digital Systems FSMs 9/11/2007 Sarah Bird Electrical Engineering and Computer Sciences University of California,
1 Lecture 15 Registers Counters Finite State Machine (FSM) design.
1 CSE370, Lecture 14 Lecture 14 u Logistics n Midterm 1: Average 90/100. Well done! n Midterm solutions online n HW5 due date delayed until this Friday.
Lecture 17 General finite state machine (FSM) design
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
Sequential Networks Two major classes of Sequential Circuits 1.Fundamental Mode – A sequential circuit where: Only one input is allowed to change at any.
Some Useful Circuits Lecture for CPSC 5155 Edward Bosworth, Ph.D. Computer Science Department Columbus State University.
1 COMP541 State Machines Montek Singh Feb 8, 2012.
1 Chapter 1 Introduction * Many slides are from the authors.
I - Introduction © Copyright 2004, Gaetano Borriello and Randy H. Katz 1 Why study logic design? Obvious reasons  this course is part of the CS/CompE.
Sequential Logic Materials taken from: Digital Design and Computer Architecture by David and Sarah Harris & The Essentials of Computer Organization and.
VI - Sequential Logic © Copyright 2004, Gaetano Borriello and Randy H. Katz 1 Sequential logic Sequential circuits  simple circuits with feedback  latches.
Introduction to Computer Engineering ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin.
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
1 CSE370, Lecture 15 Lecture 15 u Logistics n HW5 due this Friday n HW6 out today, due Friday Feb 20 n I will be away Friday, so no office hour n Bruce.
1 CSE370, Lecture 17 Lecture 17 u Logistics n Lab 7 this week n HW6 is due Friday n Office Hours íMine: Friday 10:00-11:00 as usual íSara: Thursday 2:30-3:20.
Introduction to State Machine
Computer Organization & Programming Chapter 5 Synchronous Components.
DLD Lecture 26 Finite State Machine Design Procedure.
1 ENGG 1015 Tutorial Three Examples of Finite State Machines Supplementary notes Learning Objectives  Learn about Design of Finite State Machines Ack.:
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
COMBINATIONAL AND SEQUENTIAL CIRCUITS Guided By: Prof. P. B. Swadas Prepared By: BIRLA VISHVAKARMA MAHAVDYALAYA.
TOPIC : Introduction to Sequential Circuits UNIT 1: Modeling and Simulation Module 4 : Modeling Sequential Circuits.
Govt. Engineering College- Gandhinagar. It is all about……  STATE MACHINE.
Mealy and Moore Machines Lecture 8 Overview Moore Machines Mealy Machines Sequential Circuits.
1 CSE370, Lecture 24 Lecture 26 u Logistics n HW8 due Friday n Ant extra credit due Friday n Final exam a week from today, 12/8 8:30am-10:20am here n Review.
Class Exercise 1B.
LATCHED, FLIP-FLOPS,AND TIMERS
© Copyright 2004, Gaetano Borriello and Randy H. Katz
Lecture 26 Logistics Last lecture Today HW8 due Friday
Lecture 27 Logistics Last lecture Today: HW8 due Friday
Sequential logic examples
ECE Digital logic Lecture 16: Synchronous Sequential Logic
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
Lecture 27 Logistics Last lecture Today: HW8 due Friday
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
Instructor: Alexander Stoytchev
David Culler Electrical Engineering and Computer Sciences
CSE 370 – Winter Sequential Logic-2 - 1
CSE 370 – Winter Sequential Logic - 1
Lecture 15 Logistics Last lecture Today HW4 is due today
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Introduction to Sequential Circuits
CSE 370 – Winter Sequential Logic-2 - 1
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
The Processor Lecture 3.1: Introduction & Logic Design Conventions
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Flip-Flops.
Lecture 24 Logistics Last lecture Today HW7 back today
Lecture 23 Logistics Last lecture Today HW8 due Wednesday, March 11
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
CSE 370 – Winter Introduction -2- 1
Presentation transcript:

1 Lecture 13 Overview of sequential logic  Basic concepts  An example

2 Sequential vs. combinational Combinational systems are memoryless  Outputs depend only on the present inputs Sequential systems have memory  Outputs depend on the present and the previous inputs InputsOutputs System Inputs Outputs System Feedback

3 Sequential vs. combinational B A C clock Apply fixed inputs A, B When the clock ticks, the output becomes available Observe C Wait for another clock tick Observe C again Combinational: C will stay the same Sequential: C may be different

4 Synchronous sequential systems Memory holds a system’s state  Changes in state occur at specific times  A periodic signal times or clocks the state changes

5 Clock period pulsewidth B A C clock State changes occur at rising edge of clock clock

6 Steady-state abstraction The clock period must be long enough for all voltages to settle to a steady state before the next state change clock Clock hides transient behavior C Settled value

7 Recap: Sequential logic Mostly has clock (for us, always)  Synchronous = clocked  Exception: Asynchronous circuits Has state  State = memory Employs feedback Assumes steady-state signals  Signals are valid after they have settled  State elements hold their settled output values

8 Example: Sequential system Door combination lock  Enter three numbers in sequence and the door opens  As each new number is entered, press ‘new’ (like ‘enter)  If there is an error the lock must be reset  After the door opens the lock must be reset Inputs?  Sequence of numbers, reset, new Outputs?  Door open/close Memory?  Must remember the combination and what was entered

9 Understand the problem How many bits per input? How many inputs in sequence? How do we know a new input is entered? How do we represent the system states?  What are the system states? resetvalue open/closed new clock

10 Implementation A diagram may be helpful  Assume synchronous inputs  State sequence Enter 3 numbers serially Remember if error occurred  All states have outputs Lock open or closed

11 Finite-state diagram States: 5  Each state has outputs Outputs: open/closed Inputs: reset, new, results of comparisons  Assume synchronous inputs We use state diagrams to represent sequential logic System transitions between finite numbers of states

12 Finite-state diagram closed C1== value & new C2== value & new C3== value & new C1!= value & new C2!= value & new C3!= value & new closed reset not new S1S2S3OPEN ERR open Shorthand: implies arrow from every state labeled ‘reset’

13 Separate data path and control Data path  Stores combination  Compares inputs with combination Control  State-machine controller  State changes clocked reset open/closed new C1C2C3 comparator value equal multiplexer controller mux control clock

14 Refine state diagram Refine state diagram to include internal structure closed mux=C1 reset equal & new not equal & new not new S1S2S3OPEN ERR closed mux=C2 equal & new closed mux=C3 equal & new open

15 Generate state table resetnewequalstatestatemuxopen/closed 1–––S1C1closed 00–S1S1C1closed 010S1ERR–closed 011S1S2C2closed S3OPEN–open... next

16 Encode state table State can be: S1, S2, S3, OPEN, or ERR  Need at least 3 bits to encode: 000, 001, 010, 011, 100  Can use 5 bits: 00001, 00010, 00100, 01000,  Choose 4 bits: 0001, 0010, 0100, 1000, 0000 Output to mux can be: C1, C2, or C3  Need 2 or 3 bits to encode  Choose 3 bits: 001, 010, 100 Output open/closed can be: Open or closed  Need 1 or 2 bits to encode  Choose 1 bit: 1, 0

17 Encode state table Good encoding choice!  Mux control is identical to last 3 state bits  Open/closed is identical to first state bit  Output encoding  the outputs and state bits are the same resetnewequalstatestatemuxopen/closed 1––– – – – 1... next

18 Implementing the controller Will learn how to design the controller given the encoded state-transition table reset open/closed newequal mux control clock comb. logic state special circuit element, called a register, for storing inputs when told to by the clock

19 Designing the datapath C1C2C3 comparator equal multiplexer mux control value

20 Designing the datapath Four multiplexers  2-input ANDs and 3- input OR Four single-bit comparators  2-input XNORs 4-input AND C1 i C2 i C3 i mux control value i equal

21 Where did we use memory? Memory: Stored combination, state (errors or successes in past inputs) reset open/closed new C1C2C3 comparator value equal multiplexer equal controller mux control clock

22 Where did we use feedback? Feedback: Comparator output ("equal" signal) reset open/closed new C1C2C3 comparator value equal multiplexer equal controller mux control clock

23 Where did we use clock? Clock synchronizes the inputs  Accept inputs when clock goes high Controller is clocked  Mux-control and open/closed signals change on the clock edge reset open/closed new C1C2C3 comparator value equal multiplexer equal controller mux control clock