9
Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering

Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering

Embed Size (px)

Citation preview

Page 1: Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering

Sequential Circuit: Analysis

BIL- 223 Logic Circuit Design

Ege UniversityDepartment of Computer

Engineering

Page 2: Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering

Sequential Circuit Analysis

Combina-tionalLogic

Inputs

State

NextState

Outputs

Storage Elements

CLK

Current State at time (t) is stored in an array of flip-flops.Next State at time (t+1) is a Boolean function of State and Inputs.Outputs at time (t) are a Boolean function of State (t) and (sometimes) Inputs (t).

 

Page 3: Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering

Example of a Sequential Circuit

What is the Output Function?

What is the Next State Function?

C

D Q

Q

C

D Q

Q'

y

xA

A

B

CP

Next State

Output

Input: x(t)Output: y(t)State: (A(t), B(t))

Page 4: Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering

State TablePresent State Input Next State Output

A(t) B(t) x(t) A(t+1) B(t+1) y(t) 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 1 0 1 1 0 0 1 1 0 0 0 1 1 1 1 1 0 0

Present State

Next State x(t)=0 x(t)=1

Output x(t)=0 x(t)=1

A(t) B(t) A(t+1)B(t+1) A(t+1)B(t+1) y(t) y(t)

0 0 0 0 0 1 0 0

0 1 0 0 1 1 1 0

1 0 0 0 1 0 1 0

1 1 0 0 1 0 1 0

Page 5: Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering

State Diagrams

The sequential circuit function can be represented in graphical form as a state diagram

A B0 0

0 1 1 1

1 0

x=0/y=1 x=1/y=0

x=1/y=0x=1/y=0

x=0/y=1

x=0/y=1

x=1/y=0

x=0/y=0

Page 6: Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering

Moore and Mealy Models

Moore Model• Outputs are a

function ONLY of states

Mealy Model• Outputs are a

function of inputs AND states

Combinationalcircuits

Inputs X(t) Outputs Z(t)

StorageElementS(t)

MEALY MACHINE

Combinationalcircuits

Inputs X(t)

Outputs Z(t)

StorageElementS(t)

MOORE MACHINE

Page 7: Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering

Moore and Mealy Example State Diagrams

0 1

x=1/y=1

x=1/y=0

x=0/y=0

x=0/y=0

1/0 2/1

x=1x=1

x=0

x=0

x=1

x=0

0/0Present State

Next Statex=0 x=1

Output

0 0 1 0 1 0 2 0 2 0 2 1

Present State

Next State x=0 x=1

Output x=0 x=1

0 0 1 0 0 1 0 1 0 1

Mealy

Moore

Page 8: Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering

Equivalent States Two states are equivalent if:

Output produced for each input is identical

The next states for each input are same or equivalent

S2 S3

1/00/1

1/0

0

S0/0 S1

1/0

0/1

1

0/1

S2

1/0

0/0

S0 S1

1/0

0/1

1/0

0/10/0

S0 S1

1/0

0/1

1/0

Page 9: Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering

Sequential Analysis Example

Clock

Reset

D

QC

Q

R

D

QC

Q

R

D

QC

Q

R

A

B

C

Z• Variables– Inputs: None– Outputs: Z– State Variables:

A, B, C• Flip Flop Input

Equations– A(t+1) =– B(t+1) = – C(t+1) =– Z =

Mealy? Moore?State Table?State Diagram?