Course Administration

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

Other Flip-Flops. Lecture 27 1

Analysis of Clocked Sequential Circuits

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

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Lecture 11: Synchronous Sequential Logic

ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN

ECE 331 Digital System Design

ECE 301 Digital Electronics

Logic Design II (17.342) Spring Lecture Outline

Chapter. Synchronous Sequential Circuits

Chapter 5 Synchronous Sequential Logic

ELCT201: DIGITAL LOGIC DESIGN

ECE 341. Lecture # 2

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

CHAPTER 4: Logic Circuits

Administrative issues. Sequential logic

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

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

1. Convert the decimal number to binary, octal, and hexadecimal.

Introduction to Sequential Circuits

CHAPTER 4: Logic Circuits

Part II. Chapter2: Synchronous Sequential Logic

Synchronous Sequential Logic

Chapter 5: Synchronous Sequential Logic

Logic Design II (17.342) Spring Lecture Outline

Unit 11. Latches and Flip-Flops

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

MC9211 Computer Organization

Digital Logic Design I

Registers and Counters

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

L5 Sequential Circuit Design

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

Synchronous Sequential Logic. Chapter 5

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

Flip-Flops and Registers

UNIVERSITY OF MASSACHUSSETS LOWELL Department of Electrical & Computer Engineering Course Syllabus for Logic Design Fall 2013

Lecture 8: Sequential Logic

Principles of Computer Architecture. Appendix A: Digital Logic

Registers and Counters

ECE 301 Digital Electronics

Sequential Logic Circuits

Chapter 5 Sequential Circuits

Multiplexor (aka MUX) An example, yet VERY useful circuit!

Sequential Design Basics

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

UNIVERSITI TEKNOLOGI MALAYSIA

Synchronous Sequential Logic

B.Tech CSE Sem. 3 15CS202 DIGITAL SYSTEM DESIGN (Regulations 2015) UNIT -IV

Using minterms, m-notation / decimal notation Sum = Cout = Using maxterms, M-notation Sum = Cout =

Synchronous Sequential Logic

CMSC 313 Preview Slides

Flip-Flops and Sequential Circuit Design

Sequential Logic and Clocked Circuits

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

Latches, Flip-Flops, and Registers. Dr. Ouiem Bchir

Chapter Contents. Appendix A: Digital Logic. Some Definitions

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

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

Computer Architecture and Organization

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

LESSON PLAN. Sub Code: EE2255 Sub Name: DIGITAL LOGIC CIRCUITS Unit: I Branch: EEE Semester: IV

1.b. Realize a 5-input NOR function using 2-input NOR gates only.

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

Chapter 5 Synchronous Sequential Logic

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

Chapter 3. Boolean Algebra and Digital Logic

CS 261 Fall Mike Lam, Professor. Sequential Circuits

EE292: Fundamentals of ECE

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

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs)

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

Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic

CprE 281: Digital Logic

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

EECS 270 Group Homework 4 Due Friday. June half credit if turned in by June

Combinational vs Sequential

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1


Advanced Digital Logic Design EECS 303

Digital Circuits ECS 371

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

Introduction to Microprocessor & Digital Logic

CprE 281: Digital Logic

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

CS6201 UNIT I PART-A. Develop or build the following Boolean function with NAND gate F(x,y,z)=(1,2,3,5,7).

Universal Asynchronous Receiver- Transmitter (UART)

Combinational / Sequential Logic

CprE 281: Digital Logic

ASYNCHRONOUS COUNTER CIRCUITS

Sequential Circuits: Latches & Flip-Flops

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

CprE 281: Digital Logic

Transcription:

EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN Lecture 5: Sequential Logic - 2 Analysis of Clocked Sequential Systems 4/2/2 Avinash Kodi, kodi@ohio.edu Course Administration 2 Hw 2 due on today Monday 4/26 Hw 3 posted, due on Friday 4/3 by : PM (drop outside my office) Quiz 2 on Wednesday esday 4/28 Exam on Monday 5/3 syllabus next slide

Exam - Syllabus 3 Number System and Binary Arithmetic Boolean Algebra, Simplification and K-maps Combinational Logic (Adders, Muxes, Decoders, PLAs) Sequential Logic (Latches and Flip Flops) Analysis s of Clocked Sequential Logic (Moore and Mealy machines) FF Summary 4 Flip-Flop Characteristic Table JK Flip-Flop J K Q + Operation Q No Change Reset Set Q Complement D Flip-Flop D Q + Operation Reset Set SR Flip-Flop S R Q + Operation Q No Change Reset Set? Undefined T Flip-Flop T Q + Operation Q No Change Q Complement 2

FF Transition Input Codes 5 Using FF state tables we can derive the input conditions that will cause specific transitions in each FF output 4 possible transitions: D & T FFs have welldefined input conditions in each case J-K FF has Don t Care () conditions FF Outputs FF Inputs Q(t) Q(t+) T D J-K - - Key to follow sequential logic circuit design examples (i.e. counters) - - FF Excitation Table 6 Flip-Flop Excitation Table JK Flip-Flop Q Q + J K D Flip-Flop Q Q + D SR Flip-Flop Q Q + S R T Flip-Flop Q Q + T 3

7 Analysis by Signal Tracing and Timing Charts Analysis steps: Assume an initial iti state t of FFs (all FFs reset to unless specified) For the input sequence, determine the circuit output(s) and FF inputs Determine the new set of FF states after the next active clock edge Determine the output(s) that corresponds to the new states 8 Two Types of Clocked Sequential Circuits Moore Machine: If the output of a sequential circuit is a function of the present state only Mealy Machine: If the output of a sequential circuit is a function of both the present state and the input 4

State Tables and Graphs 9 State Table Construction Step : Determine the FF input equations and output t equations from the circuit Step 2: Derive the next state equation for each FF from input equations from the circuit D FF: Q + = D T FF: Q + = T Q SR FF: Q + = S + R Q JK FF: Q + = JQ + K Q Step 3: Plot a next state map for each FF Step 4: Combine the maps to form a state table Example of Moore s Machine (/4) A A B B CLK D A CLK D B = A B D A = B D B = + A 5

Example of Moore s Machine (2/4) Assume the initial value of A =, B =, = CLK A B ns 2ns 3ns 4ns 5ns 6ns 7ns 8ns 9ns ns Example of Moore s Machine (3/4) 2 Step : FF input equations and output equations: = A B D A = B D B = + A Step 2: Next state equations for the FF are: A + = B B + = + A Step 3: Corresponding K-maps for A + and B + 6

Example of Moore s Machine (4/4) 3 Step 4: Combine the K-maps into transition table shown here from which states can be derived A + B + = = Present State Next State = = Present Output () S S3 S S S S2 S2 S S2 S3 S2 S S S3 S2 S Example of Mealy Machine (/4) 4 A A B B K A J A K B J B CLK CLK B A A B B A A + = J A A + K A A = BA + A B + = J B B + K B B = B + (A) B = B + B + A B = A B + B + A 7

Example of Mealy Machine (2/4) 5 A B False Output False Output ns 2ns 3ns 4ns 5ns 6ns 7ns 8ns 9ns ns Example of Mealy Machine (3/4) 6 Step : FF input equations and output equations: J A = B, K A = J B =, K B = A Step 2: Next state equations for the FF are: A + = BA + A B + = B + B + A B = A B + B + A Step 3: Corresponding K-maps for A + B + and 8

Example of Mealy Machine (2/4) 7 Step 4: Combine the K-maps into transition table shown here from which states can be derived Present State Next State Present A + B + = = = = = = Output () = = S S S S S S2 S2 S2 S S3 S3 S / S / S / S3 / / S2 Design of a Sequence Detector (/3) 8 Circuit examines a string of s and s applied to input and generates an output = only when the prescribed sequence occurs with the assumption that can only change between clock cycles. Design the circuit so that the input sequence ending in will produce an output = coincident with the last. The circuit does not reset when a occurs. = = Is this a Mealy machine or Moore machine? 9

Design of a Sequence Detector (2/3) 9 Present State Next State Present = = Output () = = S / S S S S S2 S S2 / S / S2 S S A + B + = = = = Design of a Sequence Detector (3/3) 2 A + = B B + = = A

How about Moore Machine? 2 S / S3 / S / S2 / Present State Next State = = Present Output () S S S S S2 S S2 S S3 S3 S2 S A + B + = = Complex Design - 22 The output = if the input sequence ends in either or and should be otherwise. Here s a typical sequence = =

Solution - 23 S S / S4 / State S Sequence Ends In Reset / / S (but not ) S2 S2 / / S3 S3 S4 (but not ) / S5 S5 Complex Design - 2 24 A sequential circuit has one input () and two outputs ( and 2). An output = occurs every time when the input sequence is completed, provided that the sequence has never occurred. An output 2 = occurs every time the input sequence is completed. Note that once 2 = output has occurred, = can never occur but not vice versa. Find a mealy state graph and table. = = 2 = 2

Solution - 2 25 S / / / S7 S S3 / / / S2 / S4 S5 / / S6 Complex Design - 3 26 A sequential circuit has two inputs ( and 2) and one output. The output remembers the constant value unless one of the following input sequence occurs: The input sequence 2 =, causes the output to become The input sequence 2 =, causes the output to become The input sequence 2 =, causes the output to change value (toggle) 3

27 Solution 3 (see text for complete solution Previous Input Output () State Designation or S or S S2 S3 S4 S5 4