ECE 301 Digital Electronics

Similar documents
ECE 331 Digital System Design

ECE 301 Digital Electronics

Lecture 11: Synchronous Sequential Logic

ELCT201: DIGITAL LOGIC DESIGN

Chapter 5 Synchronous Sequential Logic

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

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

Flip-Flops and Registers

More design examples, state assignment and reduction. Page 1

Chapter 5 Sequential Circuits

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

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.

Flip-Flops and Sequential Circuit Design

Chapter. Synchronous Sequential Circuits

Digital Logic Design I

Sequential Design Basics

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

The reduction in the number of flip-flops in a sequential circuit is referred to as the state-reduction problem.

Dr.Mohamed Elmahdy Winter 2015 Eng.Yasmin Mohamed. Problem Set 6. Analysis and Design of Clocked Sequential Circuits. Discussion: 7/11/ /11/2015

Course Administration

WEEK 10. Sequential Circuits: Analysis and Design. Page 1

Other Flip-Flops. Lecture 27 1

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 2 Logistics

FPGA Implementation of Sequential Logic

L5 Sequential Circuit Design

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

Synchronous sequential circuits

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

Sequential Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

Analysis of Clocked Sequential Circuits


Combinational / Sequential Logic

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

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Experiment # 12. Traffic Light Controller

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

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

# "$ $ # %!"$!# &!'$("!)!"! $ # *!"! $ '!!$ #!!)! $ "# ' "

Sequential Circuits: Latches & Flip-Flops

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

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

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Chapter 5: Synchronous Sequential Logic

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

Advanced Digital Logic Design EECS 303

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

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

Final Examination (Open Katz, Calculators OK, 3 hours)

Part II. Chapter2: Synchronous Sequential Logic

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

ECE 341. Lecture # 2

Introduction to Sequential Circuits

Synchronous Sequential Logic. Chapter 5

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

St. MARTIN S ENGINEERING COLLEGE

CS61C : Machine Structures

LAB 7. Latches & Flip Flops

ELCT201: DIGITAL LOGIC DESIGN

Sequential Circuit W CLK. CMSC 2833 Lecture 42. Steps:

EE292: Fundamentals of ECE

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

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

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

Introduction to Computer Engineering EECS dickrp/eecs203/

Universidad Carlos III de Madrid Digital Electronics Exercises

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

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

UNIVERSITI TEKNOLOGI MALAYSIA

Unit 11. Latches and Flip-Flops

EECS 270 Final Exam Spring 2012

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

California State University, Bakersfield Computer & Electrical Engineering & Computer Science ECE 3220: Digital Design with VHDL Laboratory 7

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

Synchronous Sequential Logic

Chapter 5. Introduction

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

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

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

AIM: To study and verify the truth table of logic gates

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad ELECTRICAL AND ELECTRONICS ENGINEERING

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

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

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

Synchronous Sequential Logic

EET2411 DIGITAL ELECTRONICS

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

Microprocessor Design

Engr354: Digital Logic Circuits

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

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

Computer Organization & Architecture Lecture #5

CH 11 Latches and Flip-Flops

ECE 172 Digital Systems. Chapter 2.2 Review: Ring Counter, Johnson Counter. Herbert G. Mayer, PSU Status 7/14/2018

Subject : EE6301 DIGITAL LOGIC CIRCUITS

Chapter 3. Boolean Algebra and Digital Logic

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

CSE 140 Exam #3 Tajana Simunic Rosing

Transcription:

ECE 301 Digital Electronics Derivation of Flip-Flop Input Equations and State Assignment (Lecture #24) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design, 6 th Edition, by Roth and Kinney, and were used with permission from Cengage Learning.

Sequential Circuit Design 1. Understand specifications 2. Draw state graph (to describe state machine behavior) 3. Construct state table (from state graph) 4. Perform state reduction (if necessary) 5. Assign a binary value to each state (state assignment) 6. Create state transition table 7. Select type of Flip-Flop to use 8. Derive Flip-Flop input equations and FSM output equation(s) 9. Draw circuit diagram Spring 2011 ECE 301 - Digital Electronics 2

Derivation of Flip-Flop Input Equations Spring 2011 ECE 301 - Digital Electronics 3

Derivation of FF Input Equations Example #2: Derive the Flip-Flop input equations for the FSM described by the following state table. Assume that JK Flip-Flops are used in the design. Excitation Table: Q Q + J K 0 0 0 x 0 1 1 x 1 0 x 1 1 1 x 0 Spring 2011 ECE 301 - Digital Electronics 4

Example #2: FF Input Equations Present Next State Output State X = 0 X = 1 X = 0 X = 1 S0 S1 S2 0 1 S1 S2 S3 0 0 S2 S3 S0 1 0 S3 S0 S1 0 1 State Table Spring 2011 ECE 301 - Digital Electronics 5

Example #2: FF Input Equations 1. Assign a binary value to each state. 2. Construct the state transition table. A + B + J A K A J B K B AB X = 0 X = 1 X = 0 X = 1 X = 0 X = 1 00 01 10 11 Spring 2011 ECE 301 - Digital Electronics 6

Example #2: FF Input Equations 3. Construct K-maps for Flip-Flop inputs. 4. Derive the minimized FF input equation. J A = K A = Spring 2011 ECE 301 - Digital Electronics 7

Example #2: FF Input Equations 3. Construct K-maps for Flip-Flop inputs. 4. Derive the minimized FF input equation. J B = K B = Spring 2011 ECE 301 - Digital Electronics 8

Derivation of FF Input Equations Example #3: Derive the Flip-Flop input equations for the FSM described by the following state table. Assume that SR Flip-Flops are used in the design. Excitation Table: Q Q + S R 0 0 0 x 0 1 1 0 1 0 0 1 1 1 x 0 Spring 2011 ECE 301 - Digital Electronics 9

Example #3: FF Input Equations Present Next State Output State X = 0 X = 1 X = 0 X = 1 S0 S1 S2 0 1 S1 S2 S3 0 0 S2 S3 S0 1 0 S3 S0 S1 0 1 State Table Spring 2011 ECE 301 - Digital Electronics 10

Example #3: FF Input Equations 1. Assign a binary value to each state. 2. Construct the state transition table. A + B + S A R A S B R B AB X = 0 X = 1 X = 0 X = 1 X = 0 X = 1 00 01 10 11 Spring 2011 ECE 301 - Digital Electronics 11

Example #3: FF Input Equations 3. Construct K-maps for Flip-Flop inputs. 4. Derive the minimized FF input equation. S A = R A = Spring 2011 ECE 301 - Digital Electronics 12

Example #3: FF Input Equations 3. Construct K-maps for Flip-Flop inputs. 4. Derive the minimized FF input equation. S B = R B = Spring 2011 ECE 301 - Digital Electronics 13

State Assignment Spring 2011 ECE 301 - Digital Electronics 14

State Assignment After the number of states in the state table has been reduced A binary value must be assigned to each of the states. State assignment (or state encoding) Binary value = state of Flip-Flops The cost of the logic required to realize the FSM is dependent on the state assignment. Spring 2011 ECE 301 - Digital Electronics 15

State Assignment Given: A FSM with three states. Requires: Two Flip-Flops (A and B) Can implement a maximum of four states. There are 4 x 3 x 2 = 24 possible state assignments. Spring 2011 ECE 301 - Digital Electronics 16

State Assignment For a FSM realized using symmetrical Flip- Flops (i.e. JK and SR) 3 unique state assignments for 3-state FSM 3 unique state assignments for 4-state FSM Binary Gray Code Spring 2011 ECE 301 - Digital Electronics 17

State Assignment Spring 2011 ECE 301 - Digital Electronics 18

Guidelines for State Assignment The author provides a set of guidelines by which the optimal state assignment can be selected. Spring 2011 ECE 301 - Digital Electronics 19

One-Hot State Assignment Sometimes, reducing the next-state logic is more important than reducing the number of Flip-Flops. One-hot state assignment may result in minimal next-state logic. Uses one Flip-Flop per state. Exactly one Flip-Flop is set to 1 for each state. Spring 2011 ECE 301 - Digital Electronics 20

Example: State Assignments For a 4-state FSM, three possible state assignments are: State Binary Gray-code One-hot S 0 00 00 0001 S 1 01 01 0010 S 2 10 11 0100 S 3 11 10 1000 # of FF 2 2 4 Spring 2011 ECE 301 - Digital Electronics 21

Example: State Assignments Binary state-assignment: Present Next State State X = 0 X = 1 S0 S1 S2 S1 S2 S3 S2 S3 S0 S3 S0 S1 State Table A + B + AB X = 0 X = 1 00 01 10 01 10 11 10 11 00 11 00 01 State Transition Table Spring 2011 ECE 301 - Digital Electronics 22

Example: State Assignments Gray-code state-assignment: Present Next State State X = 0 X = 1 S0 S1 S2 S1 S2 S3 S2 S3 S0 S3 S0 S1 State Table A + B + AB X = 0 X = 1 00 01 11 01 11 10 11 10 00 10 00 01 State Transition Table Spring 2011 ECE 301 - Digital Electronics 23

Example: State Assignments One-hot state-assignment: Present Next State State X = 0 X = 1 S0 S1 S2 S1 S2 S3 S2 S3 S0 S3 S0 S1 State Table A + B + C + D + ABCD X = 0 X = 1 0001 0010 0100 0010 0100 1000 0100 1000 0001 1000 0001 0010 State Transition Table Spring 2011 ECE 301 - Digital Electronics 24

Questions? Spring 2011 ECE 301 - Digital Electronics 25