Lecture (08) Synchronous Sequential Logic

Similar documents
Analysis and Design of Sequential Circuits: Examples

Chapter 5 Synchronous Sequential Logic

Synchronous Sequential Logic

Sequential Synchronous Circuit Analysis

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

The Design Procedure. Output Equation Determination - Derive output equations from the state table

Finite State Machine. By : Ali Mustafa

Chapter 7. Synchronous Sequential Networks. Excitation for

Synchronous Sequential Logic. Chapter 5

Analysis of Clocked Sequential Circuits

Lecture 8: Sequential Networks and Finite State Machines

Lecture 17: Designing Sequential Systems Using Flip Flops

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

Sequential Circuit Analysis

Counters. We ll look at different kinds of counters and discuss how to build them

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

ELE2120 Digital Circuits and Systems. Tutorial Note 9

Synchronous Sequential Logic Part I

Synchronous Sequential Logic Part I. BME208 Logic Circuits Yalçın İŞLER

6 Synchronous State Machine Design

FYSE420 DIGITAL ELECTRONICS

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

ELCT201: DIGITAL LOGIC DESIGN

CSE 140: Components and Design Techniques for Digital Systems. Lecture 9: Sequential Networks: Implementation

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

FSM model for sequential circuits

Different encodings generate different circuits

Chapter 4 Part 2 Sequential Circuits

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

Digital Circuits and Systems

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output of

Fundamentals of Digital Design

Week-5. Sequential Circuit Design. Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA.

Lecture 10: Synchronous Sequential Circuits Design

14:332:231 DIGITAL LOGIC DESIGN

Sequential Circuit Design

Ch 7. Finite State Machines. VII - Finite State Machines Contemporary Logic Design 1

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

Logical design of digital systems


Lecture (02) NAND and NOR Gates

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Philadelphia University Student Name: Student Number:

DE58/DC58 LOGIC DESIGN DEC 2014

Synchronous Sequential Circuit Design. Digital Computer Design

Sequential Circuits Sequential circuits combinational circuits state gate delay

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

Problem Set 9 Solutions

Chapter 5 Synchronous Sequential Logic

10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop

Chapter 7 Logic Circuits

Sequential logic and design

L10 State Machine Design Topics

Philadelphia University Student Name: Student Number:

Analysis of clocked sequential networks

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

Example: vending machine

CprE 281: Digital Logic

Memory Elements I. CS31 Pascal Van Hentenryck. CS031 Lecture 6 Page 1

Design of Sequential Circuits

ENGG 1203 Tutorial _03 Laboratory 3 Build a ball counter. Lab 3. Lab 3 Gate Timing. Lab 3 Steps in designing a State Machine. Timing diagram of a DFF

Simplify the following Boolean expressions and minimize the number of literals:

CSE140: Digital Logic Design Registers and Counters

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

15.1 Elimination of Redundant States

Gates and Flip-Flops

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

Let s now begin to formalize our analysis of sequential machines Powerful methods for designing machines for System control Pattern recognition Etc.

Chapter 15 SEQUENTIAL CIRCUITS ANALYSIS, STATE- MINIMIZATION, ASSIGNMENT AND CIRCUIT IMPLEMENTATION

or 0101 Machine

ELCT201: DIGITAL LOGIC DESIGN

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

ECE380 Digital Logic. Synchronous sequential circuits

Final Exam. ECE 25, Spring 2008 Thursday, June 12, Problem Points Score Total 90


Digital Design. Sequential Logic

Topic 8: Sequential Circuits

Computer Science Final Examination Friday December 14 th 2001

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Digital Logic Design. Midterm #2

Discrete Mathematics. CS204: Spring, Jong C. Park Computer Science Department KAIST

Lecture 3 Review on Digital Logic (Part 2)

Review for B33DV2-Digital Design. Digital Design

CSCI 2150 Intro to State Machines

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

Homework #4. CSE 140 Summer Session Instructor: Mohsen Imani. Only a subset of questions will be graded

Parity Checker Example. EECS150 - Digital Design Lecture 9 - Finite State Machines 1. Formal Design Process. Formal Design Process

EECS150 - Digital Design Lecture 23 - FSMs & Counters

EEE2135 Digital Logic Design

Clocked Synchronous State-machine Analysis

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

Logic and Computer Design Fundamentals. Chapter 8 Sequencing and Control

Finite State Machine (FSM)

Models for representing sequential circuits

Digital Electronics Sequential Logic

Transcription:

Lecture (08) Synchronous Sequential Logic By: Dr. Ahmed ElShafee ١ Dr. Ahmed ElShafee, ACU : Spring 2018, CSE303 Logic design II Analysis of Clocked Sequential Circuits The behavior of a clocked sequential circuit can be described by means of state equation. A state equation (also called transition equation) specifies the next state as a function of the present state and inputs. For example, the characteristic equations of T flip-flop, D flipflop, and JK flip-flop specifies their next states as: Q(t+1) = T Q, Q(t+1) = D, and Q(t+1) = JQ + K Q, respectively. An example of sequential circuit is analyzed in next slide. ٢

A(t+1) = A(t) x(t)+ B(t) x(t) B(t+1) = A (t) x(t), y(t) = (A(t) + B(t)) x (t) or in compact form A(t+1) = A x+ B x B(t+1) = A x, y = (A + B) x ٣ A(t+1) = A x+ B x B(t+1) = A x, y = (A + B) x ٤

A(t+1) = A x+ B x B(t+1) = A x, y = (A + B) x ٥ ٦

The logic diagram of a sequential circuit consists of flip flops and gates. The interconnections among the gates form a combinational circuit and may be specified algebraically with Boolean expressions. The knowledge of the type of flip flops and a list of the Boolean expressions of the combinational circuit provide the information needed to draw the logic diagram of the sequential circuit. ٧ The part of the combinational circuit that generates external outputs is described algebraically by a set of Boolean functions called output equations. The part of the circuit that generates the inputs of flip flops is described algebraically by a set of Boolean functions called flip flop input equations (or excitation equations). ٨

Example For the circuit in Fig; we have Input equations: DA= Ax+ Bx,DB= A x Output equations: y= (A+ B) x Input equations: DA= Ax+ Bx, DB= A x. Output equations: y= (A+ B) x These equations provide the necessary information for drawing the logic diagram of the sequential circuit. ٩ Example D A = A x y, A(t + 1) = A x y ١٠

Example ١١ Example Input equations: J A = B, K A = Bx, J B = x, K B = A x ١٢

Input equations: J A = B, K A = Bx, J B = x, K B = A x ١٣ Input equations: J A = B, K A = Bx, J B = x, K B = A x Characteristic equation: Q(t+1) = J Q + K Q A(t+1) = J A A + K A A = BA + (Bx ) A = BA + B A + xa B(t+1) = J B B + K B B = x B + (A x) B = x B + ABx+ A Bx ١٤

A(t+1) = BA + B A + xa B(t+1) = x B + ABx+ A Bx S0: A = 0, B = 0 on x = 1, A(t+1) = 0, B(t+1) = 0 S0 S0 on x = 0, A(t+1) = 0, B(t+1) = 1 S0 S1 S1: A ١٥ = 0, B = 1 Example Input equations: T A = Bx, T B = x Output equation: y = AB ١٦

Input equations: T A = Bx, T B = x Output equation: y = AB ١٧ Input equations: T A = Bx, T B = x Output equation: y = AB Characteristic equation: Q(t+1) = T Q A(t+1) = (T A A) = (Bx A) = (Bx) A + (Bx)A = AB + Ax + A Bx B(t+1) = (T B B) = (x B) ١٨

A(t+1) = (Bx A) B(t+1) = (x B) y = AB 00/0: A = 0, B = 0, y = 0 on x = 1: A(t+1) = 0, B(t+1) = 1, y = 0 00/0 01/0 on x = 0: A(t+1) = 0, B(t+1) = 0, y = 0 ١٩ 00/0 00/0 Mealy model and the Moore model The most general model of a sequential circuit has inputs, outputs, and internal states. It is customary to distinguish between two models of sequential circuits: the Mealy model and the Moore model. They differ only in the way the outputs is generated. In the Mealy model, the output is a function of both the present state and the input. In the Moore model, the output is a function of only the present state. ٢٠

٢١ The analysis of sequential circuits starts from a circuit diagram and culminates in a state table or diagram. The design (synthesis) of a sequential circuit starts from a set of specifications and culminates in a logic diagram. Two sequential circuits may exhibit the same input-output behavior, but have a different number of internal states (flipflops) in their state diagram. Reducing the number of internal states may simplify a design. The reduction in the number of flip-flops in a sequential circuit is referred to as state-reduction problem. ٢٢

If identical input sequences are applied to the two circuits and identical outputs occur for all input sequences, then the two circuits are said to be equivalent (as far as the input-out is concerned) and one may be replaced by the other. The problem of state reduction is to find ways of reducing the number of states in a sequential circuit without altering the input-output relationship. The following algorithm for the state reduction of a completely specified state table is given without proof: Two states are said to be equivalent if for each member of the set of inputs, they give exactly the same output and send the circuit either to the same state or to an equivalent state. ٢٣ When two states are equivalent one of them can be removed without altering the input-output relationship. ٢٤

٢٥ Stat e inpu t Next state outpu t a 0 a 0 a 1 b 0 b 0 C 0 c 1 D 0 d 0 E 0 e 1 F 1 f 1 F 1 f 0 G 0 g 1 F 1 f 0 G 0 g 0 f 0 ٢٦

Example final result Reduced state diagram ٢٧ State Reduction and Assignment In order to design a sequential circuit with physical components, it is necessary to assign unique coded binary values to the states. For a circuit with m states, the codes must contains n bits, where m 2 n. Unused states are treated as don t care conditions during the design Sometimes, the name transition table is used for a state table with a binary assignment. This convention distinguishes it from a state table with symbolic names for the states. ٢٨

٢٩ ٣٠

Design procedure Design procedures or methodologies specify hardware that will implement a desired behavior. The design effort for small circuits may be manual, but industry relies on automated synthesis tools for designing massive integrated circuits. The building block used by synthesis tools is the D flip-flop. Together with additional logic, it can implement the behavior of JK and T flip-flop. ٣١ The procedure for designing synchronous sequential circuits can be summarized by a list of recommended steps: 1. From specification of the desired operation, derive a state diagram for the circuit. 2. Reduce the number of states if necessary. 3. Assign binary values to the states. 4. Obtain the binary-coded state table (transition table). 5. Choose the type of flip-flops to be used. 6. Derive the simplified flip-flop input equations and output equations. 7. Draw the logic diagram. ٣٢

Example Specification: Suppose we wish to design a circuit that detects a sequence of three or more consecutive 1 s in a string of bits coming through an input line, if next input is 0 circuit return to initial state. If three or more consecutive 1 s in a string followed by 0 output is one then return to initial state. ٣٣ Specification: State diagram (no further reduction) ٣٤

Binary coded state table (Transition table): ٣٥ Synthesis using D flip-flops: the characteristic equations of T flip-flop, D flip-flop, and JK flip-flop specifies their next states as: Q(t+1) = T Q, Q(t+1) = D, and Q(t+1) = J Q + K Q, respectively. ٣٦

From Transition table: A(t + 1) = D A (A, B, x) = (3, 5, 7) B(t + 1) = D B (A, B, x) = (1, 5, 7) y(a, B, x) = (6, 7) ٣٧ A(t + 1) = D A (A, B, x) = (3, 5, 7) B(t + 1) = D B (A, B, x) = (1, 5, 7) y(a, B, x) = (6, 7) ٣٨

A(t + 1) = D A (A, B, x) = (3, 5, 7) B(t + 1) = D B (A, B, x) = (1, 5, 7) y(a, B, x) = (6, 7) ٣٩ A(t + 1) = D A (A, B, x) = (3, 5, 7) B(t + 1) = D B (A, B, x) = (1, 5, 7) y(a, B, x) = (6, 7) ٤٠

٤١ Design procedure excitation tables The design of a sequential circuit with flip-flops other than the D type flip-flop is complicated by the fact that the input equations for the circuit must be derived indirectly from the state table. When D type flip-flop are employed, the input equations are obtained directly from the state table. This is not the case for the JK and T types of flip-flops (refer to the characteristic equations Q(t+1) = T Q, Q(t+1) = D, and Q(t+1) = JQ + K Q, ). ٤٢

In order to determine the input equations for these flip- flops, it is necessary to derive a functional relationship between the state table and the input equations. A table called excitation table lists the required inputs for a given change of state. ٤٣ ٤٤

٤٥ ٤٦

٤٧ ٤٨

٤٩ ٥٠

٥١ Design a three bit binary counter. ٥٢

٥٣ ٥٤

٥٥ ٥٦

٥٧ Thanks,.. ٥٨ Dr. Ahmed ElShafee, ACU : Spring 2018, CSE303 Logic design II