Digital Logic Design Sequential circuits

Slides:



Advertisements
Similar presentations
State-machine structure (Mealy)
Advertisements

State Machine Design Procedure
COE 202: Digital Logic Design Sequential Circuits Part 3
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Circuits require memory to store intermediate data
CS 151 Digital Systems Design Lecture 21 Analyzing Sequential Circuits.
1 Lecture 23 More Sequential Circuits Analysis. 2 Analysis of Combinational Vs. Sequential Circuits °Combinational : Boolean Equations Truth Table Output.
Sequential Circuit Design
Give qualifications of instructors: DAP
Sequential Circuit Design
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
A.Abhari CPS2131 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers:
Sequential logic and systems
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
Lecture 21 Overview Counters Sequential logic design.
Digital Computer Design Fundamental
Circuit, State Diagram, State Table
Chap 4. Sequential Circuits
Rabie A. Ramadan Lecture 3
Digital Logic Design Review Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM 2010.
Chap 4. Sequential Circuits
Introduction to Sequential Logic Design Finite State-Machine Design.
CE1110: Digital Logic Design Sequential Circuits.
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
ENG241 Digital Design Week #8 Registers and Counters.
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
Chap 5. Registers and Counters. Chap Definition of Register and Counter l a clocked sequential circuit o consist of a group of flip-flops & combinational.
REGISTER A register is a group of flip-flops. Each flip- flop is capable of storing one bit of informa­ tion. An n-bit register consists of a group of.
Introduction to State Machine
2017/4/24 1.
Department of Computer and IT Engineering University of Kurdistan Computer Architecture (Review of Digital Design) By: Dr. Alireza Abdollahpouri.
DLD Lecture 26 Finite State Machine Design Procedure.
1 Finite State Machines (FSMs) Now that we understand sequential circuits, we can use them to build: Synchronous (Clocked) Finite State Machines Finite.
ANALYSIS OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham.
Digital Circuits State Reduction and Assignment State Reduction reductions on the number of flip-flops and the number of gates a reduction in the.
DESIGN OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham.
Registers; State Machines Analysis Section 7-1 Section 5-4.
1 State Reduction Goal: reduce the number of states while keeping the external input-output requirements unchanged. State reduction example: a: input 0.
1Sequential circuit design Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA by Erol Sahin and Ruken Cakici.

ENG241 Digital Design Week #7 Sequential Circuits (Part B)
Chapter5: Synchronous Sequential Logic – Part 1
Introduction to Sequential Logic Design Finite State-Machine Analysis.
Chap 5. Registers and Counters
Cpe 252: Computer Organization1 Lo’ai Tawalbeh Lecture #3 Flip-Flops, Registers, Shift registers, Counters, Memory 3/3/2005.
State Machine Design State Machine Design Digital Electronics
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1.
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
Introduction to Sequential Logic Design
ANALYSIS OF SEQUENTIAL CIRCUITS
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
Asynchronous Inputs of a Flip-Flop
ECE 301 – Digital Electronics
T Flip-Flop A T (toggle) flip-flop is a complementing flip-flop and can be obtained from a JK flip-flop when the two inputs are tied together. When T.
Princess Sumaya University
Introduction to Sequential Circuits
CSE 370 – Winter Sequential Logic-2 - 1
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
DESIGN OF SEQUENTIAL CIRCUITS
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Chapter5: Synchronous Sequential Logic – Part 4
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
EGR 2131 Unit 12 Synchronous Sequential Circuits
Chapter5: Synchronous Sequential Logic – Part 3
COE 202: Digital Logic Design Sequential Circuits Part 3
Presentation transcript:

Digital Logic Design Sequential circuits Dr. Eng. Ahmed H. Madian ahmed.madian@guc.edu.eg Dr. Eng. Ahmed H. Madian

Outlines Finite State Machine (FSM) Design of FSMs Analysis of FSMs Registers Dr. Eng. Ahmed H. Madian

Design of Sequential Circuits The procedure of designing synchronous sequential circuits can be summarized as follows: From the word description and specs of the desired operation, derive a state diagram for the circuit Assign binary values to the states. Obtain the binary-coded state table Choose the type of flip-flops to be used. Derive the simplified flip-flop input and output equations. Draw the logic diagram. Dr. Eng. Ahmed H. Madian

State tables Table is another way to represent an FSM with an emphasis on exploring all Event/State combinations Similar to the truth table Doesn’t contain the system clock when specifying its transitions (it is implicit that transitions occur only when allowed by clock) Unless different stated, all the transitions are occurring on the positive edge of the clock Present State Inputs Next State Outputs Dr. Eng. Ahmed H. Madian

State Transition Diagrams Used to visually represent any FSM Emphasis is on identifying states and possible transitions Circles represent States Arrows represent Transitions Transitions 1/0 Initial State S0 S1 Input/Output 0/0 0/0 1/0 0/0 S3 1/1 S2 State Dr. Eng. Ahmed H. Madian

Design Example Design a FSM that detects 3 or more consecutive ones from a serial input x. 3 ones detector Y X Steps: 1. Understand the statement of the Specification 2. Obtain a state diagram of the FSM from the specification 3. Perform state assignment 4. Determine the number of flip flop (to represent 4 states => 2 flip flops) 5. Choose type of flip-flop if not given (for example we will choose D-FF) Dr. Eng. Ahmed H. Madian

Our system will stop at S0 if the input to the system is always ‘0’ 1. Derive state diagram S0 00 1/0 S1 01 0/0 Input/Output We will begin with assumption that no input entered to system, we will give this state name S0 Our system will stop at S0 if the input to the system is always ‘0’ If the system has ‘1’ input a new states created which represent the state that you have only 1 we will call it S1 Dr. Eng. Ahmed H. Madian

0/0 0/0 S0 00 1/0 S1 01 1/0 S2 10 0/0 0/0 1/1 S3 11 1/1 If the system was in state S1 and a ‘0’ entered the system, it must be returned to S0 as we are searching for 3 consecutive ones. Else if another ‘1’ entered the system it will go to new state that represent existing of two ones consecutive we will call it S2. If the system was in state S2 and ‘0’ entered the system it will return to S0. Else if ‘1’ entered to the system it will move to a new state that represent the existing of three consecutive ones S3 and the output would be equal to y=‘1’. If the system has more ones as an input it will continue at S3 and output y=‘1’ Finally, if we have input X=‘0’ to the system, it will goes to the starting state S0 Dr. Eng. Ahmed H. Madian

2. Construct the state table Present State Input Next State Out FF Inputs A B X y DA DB 1 D–FF Excitation Table Q(t) Q(t+1) D 1 Dr. Eng. Ahmed H. Madian

3. Drive simplified State Equations Note: Output here depends on the present state (A(t)) and input (x) Dr. Eng. Ahmed H. Madian

4: Implement the FSM Dr. Eng. Ahmed H. Madian

FSM Circuit Analysis Start with schematic diagram Need to determine how circuit works Trace schematic, determine equations of operation FF input equations sequential circuit output equations Create State transition table Sequential circuit inputs, FFs are comb. logic inputs Organize truth table as current state (FFs) and inputs Create FF input, seq. Circuit output columns From FF char. Tables, determine FF next state values Dr. Eng. Ahmed H. Madian

Sequential Circuit Analysis (cont.) Generate State Diagram Circles (nodes) represent current or present state values Lines (arcs) represent how state and output values change Given the current state and current inputs, the next state and output values are indicated by the associated arc State diagram can have different forms depending on the type of sequential circuit output. Next State Value Inputs/outputs Present State Value Dr. Eng. Ahmed H. Madian

Example Analyze the following sequential circuit How to analyze any sequential circuit You need to know : State equation State diagram State table Dr. Eng. Ahmed H. Madian

1- Determine State equation From the circuit get the logic equations of the input of flip-flops A(t+1) & B(t+1) and output y(t) A(t+1) (t) FF input equations A(t+1) = A(t)X(t)+B(t)X(t) B(t+1) = A’(t)X(t) Output equation Y(t) = X’(t)(B(t)+A(t)) B(t+1) (t) (t) Dr. Eng. Ahmed H. Madian

2-Create State table From logic equation & characteristics table of flip-flop create State table FF input equations A(t+1) = AX+BX B(t+1) = A’X Output equation Y = X’(B+A) D flip-flop characteristic table Dr. Eng. Ahmed H. Madian

3-Construct the state diagram 0/0 1/0 0/1 00 10 Input/Output 0/1 1/0 0/1 1/0 01 11 1/0 Dr. Eng. Ahmed H. Madian

Registers There are also another applications for Flip-flops like Registers “Register” is a small amount of storage available on the CPU whose contents can be accessed more quickly than storage available elsewhere. Typically, this specialized storage is not considered part of the normal memory range for the machine. Registers are normally measured by the number of bits they can hold (ex. 8-bits or 32-bits register) They have been implemented using individual flip-flops Dr. Eng. Ahmed H. Madian

What’s the main structure of the register from inside What’s the main structure of the register from inside? And what’s the types of registers? Dr. Eng. Ahmed H. Madian

Registers An n-bit register consists of a group n flip -flops capable of storing n bits of binary info. All Flip-flops are connected to one clock source Each flip-flop can store one bit of Info. Clear signal during normal operation is set to high The clear input is useful for clearing all the content of the register to all 0’s Problem: Typically don’t want to load every clock Solution: use a external signal to control the operation of the load Dr. Eng. Ahmed H. Madian

Registers with Parallel Load 1 1 1 Dr. Eng. Ahmed H. Madian

Shift Registers 1 Qb Qc Qa A register capable of shifting its binary information in one or both direction is called a shift register A chain of flip-flops in cascade 1 Qb Qc Qa SI CLK Qa Qb etc Dr. Eng. Ahmed H. Madian

Universal Shift Registers No Change Shift Right Shift Left Parallel Load Need a Clear and Clock S1 S2 Action No Change 1 Shift Right Shift Left Parallel Load Dr. Eng. Ahmed H. Madian

Quiz 2 check the website for date and locations Assignment 3 on the web site deadline will be next Wednesday Dr. Eng. Ahmed H. Madian