ELCT201: DIGITAL LOGIC DESIGN

Similar documents
ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN

Lecture 11: Synchronous Sequential Logic

Digital Logic Design I

ECE 301 Digital Electronics

Sequential Logic Circuits

Part II. Chapter2: Synchronous Sequential Logic

Chapter 5: Synchronous Sequential Logic

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

Analysis of Clocked Sequential Circuits

Chapter 5 Synchronous Sequential Logic

Synchronous Sequential Logic

Synchronous Sequential Logic

Synchronous Sequential Logic

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

Logic Design II (17.342) Spring Lecture Outline

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Synchronous Sequential Logic. Chapter 5

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

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.

Chapter. Synchronous Sequential Circuits

Course Administration

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

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

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

ECE 331 Digital System Design

ECE 301 Digital Electronics

Chapter 5 Synchronous Sequential Logic

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

Other Flip-Flops. Lecture 27 1

Universidad Carlos III de Madrid Digital Electronics Exercises

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

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

ELCT 501: Digital System Design

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

CHAPTER1: Digital Logic Circuits

Chapter 3. Boolean Algebra and Digital Logic

Synchronous sequential circuits

CHAPTER 4: Logic Circuits

Chapter 5. Introduction

MC9211 Computer Organization

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

Advanced Digital Logic Design EECS 303

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


Chapter 5 Sequential Circuits

Combinational / Sequential Logic

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

CHAPTER 4: Logic Circuits

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

EE292: Fundamentals of ECE

Unit 11. Latches and Flip-Flops

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

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

Chapter 11 State Machine Design

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Chapter 5 Synchronous Sequential Logic

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

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

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

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

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

CPS311 Lecture: Sequential Circuits

CS T34-DIGITAL SYSTEM DESIGN Y2/S3

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

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

CS61C : Machine Structures

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

Digital Fundamentals: A Systems Approach

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

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

TMEL53, DIGITALTEKNIK. INTRODUCTION TO SYNCHRONOUS CIRCUITS, FLIP-FLOPS and COUNTERS

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

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

Chapter 3 Unit Combinational

2 Sequential Circuits

FE REVIEW LOGIC. The AND gate. The OR gate A B AB A B A B 0 1 1

Experiment 8 Introduction to Latches and Flip-Flops and registers

Introduction to Sequential Circuits

To design a sequential logic circuit using D-Flip-flop. To implement the designed circuit.

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

CHAPTER 6 COUNTERS & REGISTERS

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

CS8803: Advanced Digital Design for Embedded Hardware

Subject : EE6301 DIGITAL LOGIC CIRCUITS

Midterm Examination II

10.1 Sequential logic circuits are a type of logic circuit where the output of the circuit depends not only on

EECS150 - Digital Design Lecture 15 Finite State Machines. Announcements

Chapter Contents. Appendix A: Digital Logic. Some Definitions

FPGA Implementation of Sequential Logic

Introduction to Computer Engineering EECS dickrp/eecs203/

Sequential Design Basics

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

Chapter 5 Sequential Circuits

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

Introduction to Microprocessor & Digital Logic

Microprocessor Design

Logic Design. Flip Flops, Registers and Counters

ECE 341. Lecture # 2

Transcription:

ELCT201: DIGITAL LOGIC DESIGN Dr. Eng. Haitham Omran, haitham.omran@guc.edu.eg Dr. Eng. Wassim Alexan, wassim.joseph@guc.edu.eg Lecture 8 Following the slides of Dr. Ahmed H. Madian محرم 1439 ه Winter 2018

COURSE OUTLINE 1. Introduction 2. Gate-Level Minimization 3. Combinational Logic 4. Synchronous Sequential Logic 5. Registers and Counters 6. Memories and Programmable Logic 2

LECTURE OUTLINE Describing Sequential Circuits Finite State Machines Analysis of Sequential Circuits Designing of Sequential Circuits 3

DESCRIBING SEQUENTIAL CIRCUITS In previous lectures, we covered various memory elements and now we are ready to implement sequential circuits But first we need to know how to analyze or deal with a sequential circuit, which has outputs that are a function of not only the inputs, but also previous outputs Basically, we need a tool to help us describe the behavior of such circuits 4

FINITE STATE MACHINES (FSM) A FSM is a tool to model the desired behavior of a sequential system A designer would develop a finite state model of the system behavior and then design a circuit that implements this model A FSM consists of several states. Inputs into the machine are combined with the current state of the machine to determine the new state or next state of the machine 5

DESCRIBING A FSM We can describe a FSM using: A state equation (transition equation) Input variables, present states, next states equation A state table Input variables, present states, next states, truth table A state diagram 6

x ANALYSIS OF SEQUENTIAL CIRCUITS Example I A t + 1 = A t x t + B t x t B t + 1 = A t x t A y t = [A t + B t ]x t A State equations B B Example of a Sequental Circuit y The logic diagram of this sequential circuit could also be expressed algebraically with two FF input equations and an output equation: D A = Ax + Bx D B = A x y = (A + B)x State table 7

ANALYSIS OF SEQUENTIAL CIRCUITS Example I A t + 1 = Ax + Bx B t + 1 = A x y t = (A + B)x State equations State diagram State table 8

x y ANALYSIS WITH D FLIP-FLOPS Example II A D A = A x y Input equation Circuit diagram State diagram State table 9

ANALYSIS WITH JK FLIP-FLOPS Example III x A B J A = B K A = Bx J B = x K B = A x FF Input equations Clk Circuit diagram Can you write the FF input equations? 10

ANALYSIS WITH JK FLIP-FLOPS Example III Steps: 1. Write the present state and input columns 2. Write the FF inputs columns (using the FF input equations) 3. Write the next state columns (Using the JK FF excitation table) J A = B K A = Bx J B = x K B = A x FF Input equations Q(t) Q(t + 1) J K 0 0 0 X 0 1 1 X 1 0 X 1 1 1 X 0 State table JK FF Excitation table 11

ANALYSIS WITH JK FLIP-FLOPS Example III State diagram State table 12

ANALYSIS WITH T FLIP-FLOPS Example IV x y T A = Bx T B = x y = AB Circuit diagram Input and output equations Clk Reset Can you write the FF input equations? 13

ANALYSIS WITH T FLIP-FLOPS Example IV Q t + 1 A t + 1 = T Q = T A A = Bx A + Bx A = AB + Ax + A Bx T A = Bx, T B = x, y = AB Input and output equations B t + 1 = T B B = x B T FF characteristic equations State table 14

ANALYSIS WITH T FLIP-FLOPS Example IV The output depends only on the present state, not on the input, thus, we write it using a slash after the state! State diagram State table 15

MEALY AND MOORE FSM 16

DESIGN OF SEQUENTIAL CIRCUITS The procedure of designing synchronous sequential circuits can be summarized in the following points: 1. From the word description and specifications of the desired operation, derive a state diagram of the circuit 2. Assign binary values to the states 3. Obtain the binary-coded state table 4. Choose the type of flip-flop to be used 5. Derive the simplified flip-flop input and output equations 6. Sketch the logic diagram 17

SYNTHESIS WITH T FLIP-FLOPS Example I Using T flip-flops, it is required to design a 3-bit binary counter that can count from 0 to 7 with a step of 1 Solution: 1. From the word description and the required specifications, we sketch the state diagram. Since each state consists of 3 bits, we need 3 flip-flops 18

SYNTHESIS WITH T FLIP-FLOPS Example I 19

SYNTHESIS WITH T FLIP-FLOPS Example I 2. Next, we derive the state table. The present and next states are known from the state diagram. While the FF inputs are obtained with the help of the T FF excitation table or characteristic equation 20

SYNTHESIS WITH T FLIP-FLOPS Example I 21

SYNTHESIS WITH T FLIP-FLOPS Example I 3. The FF input equations are then simplified using K-maps T A2 = A 1 A 0 22

SYNTHESIS WITH T FLIP-FLOPS Example I 3. The FF input equations are then simplified using K-maps T A1 = A 0 23

SYNTHESIS WITH T FLIP-FLOPS Example I 3. The FF input equations are then simplified using K-maps T A0 = 1 24

SYNTHESIS WITH T FLIP-FLOPS Example I 4. Using the simplified Boolean expressions for the inputs and outputs of the FF, we can sketch the logic diagram of this counting circuit T A2 = A 1 A 0 A 2 A 1 A 0 T A1 = A 0 T A0 = 1 Clk 25 1

SYNTHESIS WITH D FLIP-FLOPS Example II Design a FSM that detects 3 or more consecutive ones Solution: 1. From the word description and the required specifications, we sketch the state diagram 26

SYNTHESIS WITH D FLIP-FLOPS Example II The state diagram is derived by starting with state S 0, the reset state If the input is 0, the circuit stays in S 0, but if the input is 1, it goes to state S 1 to indicate that a 1 is detected If the next input is 1, the change is to state S 2 to indicate the arrival of two consecutive 1s, but if the input is 0, the state goes back to state S 0 If more 1s are detected, the circuit stays in S 3 27

SYNTHESIS WITH D FLIP-FLOPS Example II Any 0 input sends the circuit back to S 0 This way, the circuit stays in S 3 as long as there are 3 or more consecutive 1s received Note that the output does not depend on the input. It only depends on the state! (which is why the output is inside the state nodes, not on the arrows) If we reach S 3, this means that the circuit has detected 3 successive 1s 28

SYNTHESIS WITH D FLIP-FLOPS Example II 2. Next, we derive the state table The present and next states are known from the logic diagram The FF inputs are obtained with the help of the D FF excitation table or characteristic equation The output attains a value of 1 after three successive 1s are detected 29

SYNTHESIS WITH D FLIP-FLOPS Example II The columns for the FF input equations are exactly the ones for the next state, since we are using D flip-flops! Q(t) Q(t + 1) D 0 0 0 0 1 1 1 0 0 1 1 1 30

SYNTHESIS WITH D FLIP-FLOPS Example II 3. The FF input equations are then simplified using K-maps D A = Ax + Bx 31

SYNTHESIS WITH D FLIP-FLOPS Example II 3. The FF input equations are then simplified using K-maps D B = Ax + B x 32

SYNTHESIS WITH D FLIP-FLOPS Example II 3. The FF input equations are then simplified using K-maps y = AB 33

SYNTHESIS WITH D FLIP-FLOPS Example II 4. Using the simplified Boolean expressions for the inputs and outputs of the FF, we can sketch the logic diagram of this sequential circuit D A = Ax + Bx, D B = Ax + B x, y = AB 34

D A = Ax + Bx, D B = Ax + B x, y = AB A x B B y 35

ASSIGNMENT 2 Deadline of assignment 2 is Thursday the 22 nd of November, 2018 36