35
Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Embed Size (px)

Citation preview

Page 1: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Introduction to Sequential Circuit

By : Pn Siti Nor Diana Ismail

CHAPTER 5

Page 2: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

What is Sequential Circuit?

Its behaviour is from :InputsOutputsPresent state

Includes flip-flops with clock inputs

Logic diagram may or may not include combinational gates.

Page 3: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Sequential Circuit Diagram

Page 4: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Important element in sequential circuit :

i. Input equationsii.State tableiii.State diagram

Page 5: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Diagram (A)

Page 6: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Diagram (B)

Page 7: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

From previous diagrams (A and B)

You should be able to identify, which part is :The inputsThe outputsThe combinational circuitsThe flip-flop

Page 8: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

i. Input Equation

Algebraic expression specifying logic diagram of a sequential circuit

Imply the type of FF used

Fully specify the combinational circuit that drives the

Page 9: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Try to analyze this circuit

Page 10: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

What are the elements that you can identify?

Type of flip-flop;Input;Output;The equations of the circuit.

Page 11: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

INPUT

EquationsDA =

DB =Y =

STATES

The element are:- Type FFs : D FFs- Input : X, State:A,B- Output : Y- Equation : 3 equations, DA , DB and Y

Page 12: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

ii. State Table

Shows functional relationship between inputs, outputs and FF states.

State table consists of:- Present state- Input- Next state- Output

Page 13: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Example : State table

Page 14: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

How many rows in state table?

FF = mInputs = n

Number of rows = 2m+n

Page 15: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

How to fill in the state table?

STEP 1 : List all possible binary combinations of present state and inputs.

STEP 2 : Next state column is determined by logic diagram or input equations of FF (get the value for all FF inputs and then refer to FF truth table to get the next state value).

STEP 3 : Output column is determined by logic diagram or input equations.

Page 16: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

STEP 1List down all binary numbers from 0 to (2m+n – 1) in present state and input column.

Let’s say you have 3 FF and 1 input, number of rows = 23+1 = 16

Binary numbers involved is 0 – 15

Page 17: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

STEP 2Determine the next column

Substitute the values in every rows into the FF input equations that you have got earlier.

You will get the input for each FF

Trace down the value for the FF output

Page 18: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

STEP 3Determine the output

Substitute the values in every rows into the input equations of output that you have got earlier.

You will directly get the output value

Page 19: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Try to fill in this state table based on the given diagram

Page 20: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

So, here is the answer

Page 21: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Types of sequential circuits

Mealy model- Output depend on INPUTS and STATES

Moore model - Output depend on STATES

Page 22: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Circuit Analysis :What type of this circuit?

Page 23: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Circuit Analyze

Just take a look at the output equation

Since Y involves both (A & B) states and (X) input, therefore it is a Mealy model.

XBXAY

Page 24: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Can you differentiate between the previous equation and this one?

The output is Z. Only involves A (state).. So it is a Moore model

AZ

YXADA

Page 25: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

iii. State Diagram

State – represented by a circle

Transition between states – directed lines connecting the circles

Page 26: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Examples of State Diagram

Page 27: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Referring to State Diagram (a)

Circuit diagram

Page 28: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

State Table

Page 29: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Moore Model

Circuit Diagram

Page 30: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Equation

State Table

AZ

YXADA

Page 31: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

State Diagram (Mealy)

Provide same info with state tableObtained from state table

State (A B)

Input (X)

Output (Y)

Page 32: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

State Diagram (Moore)

Input X Input Y

State Output

Page 33: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

State Table

Page 34: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Exercise 1

A sequential circuit with two D flip-flops A and B, X input , and one output Y is specified by the following input equations :

DA = XA

DB = A+XB’

Y = XBDraw the logic diagram of the circuitDerive the state tableState Diagram

Page 35: Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5

Exercise 2

A sequential circuit with two D flip-flops A and B, two inputs X and Y, and one output Z is specified by the following input equations :

DA = XA + XY

DB = XA + XB

Z = XBDraw the logic diagram of the circuitDerive the state table