Administrative issues. Sequential logic

Similar documents
Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Course Administration

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Spring 2017 EE 3613: Computer Organization Chapter 5: The Processor: Datapath & Control - 1

Logic Design II (17.342) Spring Lecture Outline

EE 121 June 4, 2002 Digital Design Laboratory Handout #34 CLK

Digital Logic Design I

Chapter 5 Synchronous Sequential Logic

Sequential Logic Circuits

Combinational / Sequential Logic

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

CPS311 Lecture: Sequential Circuits

Flip-Flops and Sequential Circuit Design

Lecture 8: Sequential Logic

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

LATCHES & FLIP-FLOP. Chapter 7

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Logic Design II (17.342) Spring Lecture Outline

Registers and Counters

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

Experiment 8 Introduction to Latches and Flip-Flops and registers

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

Advanced Digital Logic Design EECS 303

CHAPTER 4: Logic Circuits

Synchronous Sequential Logic

Synchronous Sequential Logic

EE141-Fall 2010 Digital Integrated Circuits. Announcements. Homework #8 due next Tuesday. Project Phase 3 plan due this Sat.

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

Chapter 5: Synchronous Sequential Logic


Experiment # 12. Traffic Light Controller

Asynchronous (Ripple) Counters

Counters

Introduction to Sequential Circuits

Synchronous Sequential Logic. Chapter 5

Lecture 11: Synchronous Sequential Logic

Chapter 5 Sequential Circuits

EECS150 - Digital Design Lecture 3 Synchronous Digital Systems Review. Announcements

Unit 11. Latches and Flip-Flops

CHAPTER1: Digital Logic Circuits

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

Engr354: Digital Logic Circuits

Digital Circuits ECS 371

CprE 281: Digital Logic

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

EE141-Fall 2010 Digital Integrated Circuits. Announcements. Synchronous Timing. Latch Parameters. Class Material. Homework #8 due next Tuesday

Digital Logic Design ENEE x. Lecture 19

Analysis of Clocked Sequential Circuits

Synchronous sequential circuits

ELCT 501: Digital System Design

COE328 Course Outline. Fall 2007

CHAPTER 4: Logic Circuits

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

Counter dan Register

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

Problems with D-Latch

Other Flip-Flops. Lecture 27 1

Switching Circuits & Logic Design, Fall Final Examination (1/13/2012, 3:30pm~5:20pm)

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Faculty of Electrical & Electronics Engineering BEE3233 Electronics System Design. Laboratory 3: Finite State Machine (FSM)

CMSC 313 Preview Slides

Synchronous Sequential Logic

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

ELCT201: DIGITAL LOGIC DESIGN

L5 Sequential Circuit Design

Digital Logic Design ENEE x. Lecture 24

Logic Design. Flip Flops, Registers and Counters

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3)

Registers and Counters

Lecture 12. Amirali Baniasadi

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

Unit-5 Sequential Circuits - 1

The NOR latch is similar to the NAND latch

Chapter 5 Synchronous Sequential Logic

ECE 25 Introduction to Digital Design. Chapter 5 Sequential Circuits ( ) Part 1 Storage Elements and Sequential Circuit Analysis

ELE2120 Digital Circuits and Systems. Tutorial Note 8

Sequential Design Basics

ELCT201: DIGITAL LOGIC DESIGN

Computer Architecture and Organization

CS8803: Advanced Digital Design for Embedded Hardware

Sequential Logic. Analysis and Synthesis. Joseph Cavahagh Santa Clara University. r & Francis. TaylonSi Francis Group. , Boca.Raton London New York \

Computer Organization & Architecture Lecture #5

Universidad Carlos III de Madrid Digital Electronics Exercises

EE292: Fundamentals of ECE

Chapter Contents. Appendix A: Digital Logic. Some Definitions

Principles of Computer Architecture. Appendix A: Digital Logic

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

CHAPTER 6 DESIGN OF HIGH SPEED COUNTER USING PIPELINING

2 Sequential Circuits

Transcription:

Administrative issues Midterm #1 will be given Tuesday, October 29, at 9:30am. The entire class period (75 minutes) will be used. Open book, open notes. DDPP sections: 2.1 2.6, 2.10 2.13, 3.1 3.4, 3.7, 4.1 4.3.7, 4.5, 5.1 5.2, 5.4 5.5, 5.7, 5.9, 6.1. Lab #5 will be handed out next week and due November 6 7. No laboratory assignment next week. :-( October 22, 2002 EE 121: Digital Design Laboratory Lecture 8 1 Sequential logic Executive summary of EE 121: combinational logic easy, sequential logic hard. Combinational logic = truth tables. Combinational logic synthesis can be greatly aided by clever decomposition of the problem. Example: 8-bit adder built using two 4-bit adders. Sequential logic = simple matter of programming. ;-) Designing state machines is similar to programming, but much harder because things happen in parallel. In software programs, data is stored in variables simple state machines that remember one or more bits. A stored value remains unchanged until a new value is loaded. The values of the variables are part of the state of the system. October 22, 2002 EE 121: Digital Design Laboratory Lecture 8 2

Complex state machines: machine examples Record/play control for digital audio (EE 121 lab #6) Control unit for computer (very ambitious final project) Examples of small state machines: Light switch controller (toggle on/off) Simultaneous button push detector Push button processor converts long button push to one cycle pulse What these examples have in common: the output is a function of past (memory) as well as current input. October 22, 2002 EE 121: Digital Design Laboratory Lecture 8 3 machines A state machine is a sequential circuit whose depend on the current state (values of memory devices) and whose state changes based on current state and. state = (state, input) next state function output = (state, input) output function (may not depend on input) machines may be asynchronous or synchonous: transitions may occur at any time when input changes Examples: R-S latch, D latch transitions occur only at times determined by system, usually at active an edge. Examples: D flip-flop, shift register = series of D flip-flops October 22, 2002 EE 121: Digital Design Laboratory Lecture 8 4

Clocked synchronous state machines: Mealy Mealy machine: output depends on state and current input. eorge Mealy worked at Bell Labs in the 1950s. October 22, 2002 EE 121: Digital Design Laboratory Lecture 8 5 Clocked synchronous state machines: Moore Moore machine: output depends only on. E.. Moore was Electrical Engineering professor at the University of Pennsylvania after working at Bell Labs. October 22, 2002 EE 121: Digital Design Laboratory Lecture 8 6

Mealy vs. Moore Mealy: Moore: Mealy machines are more powerful, but Moore machines are easier. October 22, 2002 EE 121: Digital Design Laboratory Lecture 8 7 Mealy machine with pipelined s of a Mealy machine can be kept constant within a period by using output flip-flops. Pipeline pipelined Drawback: output changes are delayed by as much as one cycle. October 22, 2002 EE 121: Digital Design Laboratory Lecture 8 8

Characteristic equations machine memory is built using latches or flip-flops. Each device has a characteristic equation that describes how the state machine changes state as a function of the. S-R latch D latch Device Type Edge-triggered D flip-flop D flip-flop with enable Master/slave S-R flip-flop Master/slave J-K flip-flop Characteristic Equation = S + R = D = D = D + = S + R = J + K Edge-triggered J-K flip-flop = J + K T flip-flop = T flip-flop with enable = + Table 7-1 Latch and flip-flop characteristic equations. The characteristic equation of the D flip-flop is very simple, so we use it! October 22, 2002 EE 121: Digital Design Laboratory Lecture 8 9 Clocked synchronous state machine analysis Clocked synchronous state machines can be described in many ways: circuit schematic state and state/output tables transition and transition/output tables state diagrams (flowcharts) ASM (algorithmic state machine) charts HDL (hardware description languages) programming languages A description that can be given to a CAD system for simulation and synthesis is preferred. Usually these are text descriptions, but drawing tools exist. October 22, 2002 EE 121: Digital Design Laboratory Lecture 8 10

Clocked synchronous state machine example output input D0 D CLK 0 MAX 0 0 D1 D 1 1 CLK 1 CLK October 22, 2002 EE 121: Digital Design Laboratory Lecture 8 11 machine analysis Excitation equations: D0 = 0 + 0 D1 = 1 + 1 0 + 1 0 Characteristic equations: 0* = D0 1* = D1 Transition equations: 0* = 0 + 0 1* = 1 + 1 0 + 1 0 October 22, 2002 EE 121: Digital Design Laboratory Lecture 8 12

Transition, state, and state/output tables (a) (b) (c) 1 0 0 1 S 0 1 S 0 1 00 00 01 A A B A A, 0 B, 0 01 01 10 B B C B B, 0 C, 0 10 10 11 C C D C C, 0 D, 0 11 11 00 D D A D D, 0 A, 1 1 0 S S, MAX Table 7-2 Transition, state, state/output tabl the state machin igure 7-38. equation: MAX = 1 0 October 22, 2002 EE 121: Digital Design Laboratory Lecture 8 13 diagram and timing diagram = 0 = 0 A = 1 B = 1 (MAX = 1) = 1 = 0 D = 1 C = 0 CLOCK 1 0 MAX MAXS STATE A A B C C C D D D A A October 22, 2002 EE 121: Digital Design Laboratory Lecture 8 14