sequential logic circuit optimization

31
06/12/22 1 Ashis Kumar Chanda MS (2014-15), Roll 343 Department of Computer Science and Engineering University of Dhaka Submitted to: Prof. Hafiz Md. Hasan Babu

Upload: ashis-kumar-chanda

Post on 13-Aug-2015

77 views

Category:

Engineering


3 download

TRANSCRIPT

Page 1: Sequential logic circuit optimization

04/15/23 1

Ashis Kumar ChandaMS (2014-15), Roll 343

Department of Computer Science and EngineeringUniversity of Dhaka

Submitted to:Prof. Hafiz Md. Hasan Babu

Page 2: Sequential logic circuit optimization

Logical Circuits Sequential Logical Circuits Finite State Machine Minimization Methods Applications Summary

04/15/23 2

Page 3: Sequential logic circuit optimization

If you have good CGPA score AND publicationsapply for research assistantship

If you have good score OR presentation skillapply for teacher assistantship

04/15/23 3

Page 4: Sequential logic circuit optimization

04/15/23 4

• We use a bit (binary digit), 0 or 1, to represent the state

0 (00)

1 (01)

2 (10)

3 (11)

Page 5: Sequential logic circuit optimization

04/15/23 5

Combinational Logical Circuitso The logic level at the output depends on the

combination of logic levels present at the inputso It has no memory characteristic

Sequential Logical Circuitso The output follows a predetermined stateso It has memory characteristic

Page 6: Sequential logic circuit optimization

04/15/23 6

The word “Sequential” means that things happen in a “sequence”

Why is it important?

Need to follow synchronous process using clock signal

Page 7: Sequential logic circuit optimization

04/15/23 7

Output is dependent on the input and the record of the input or state

Page 8: Sequential logic circuit optimization

04/15/23 8

What is Finite State Diagrams?o The behavioral view of sequential circuits at

logic level

Why will we express a circuit in Finite State Diagrams?o state diagrams encapsulate the traces that the

corresponding circuit can accept and produce

Page 9: Sequential logic circuit optimization

04/15/23 9

oA set of primary input patterns, XoA set of primary output patterns, YoA set of states, SoA state transition functionoAn output transition function (Mealy

model, Moore model)

Page 10: Sequential logic circuit optimization

For a Mealy machine, each arc (transition) is labeled with an output value.

04/15/23 10

The information in the state is typically written as q1q0 / Z

q1q0 indicates the inputs, Z indicates output

Ex: 01/1

Page 11: Sequential logic circuit optimization

A single input single output network that produces 1 if three consecutive 1's appear in the inputs.

04/15/23 11

S1

S2 S3

S4

1

1

1

0

0 0

0, 1

Page 12: Sequential logic circuit optimization

For a Moore machine, each node (state) is labeled with an output value;

04/15/23 12

Present state Next State for input 0,output

Next state for input 1, output

S1 S1 S0

S0 S0 S2

S2 S1 S0

Page 13: Sequential logic circuit optimization

04/15/23 13

NOR

D FF

rr

xx

zz

Input Current State

Next State Output

0 S1 S2 1

0 S2 S1 0

1 S1 S1 0

1 S2 S1 0

r x Z

0 0 1

0 1 0

1 0 0

1 1 0

S1 S2

r/zr/z

r/zr/z

Page 14: Sequential logic circuit optimization

04/15/23 14

NOR

D FF

rr

xx

zz

Input Current State

Next State Output

0 S1 S2 1

0 S2 S1 0

1 S1 S1 0

1 S2 S1 0

r x Z

0 0 1

0 1 0

1 0 0

1 1 0

S1 S2

0/10/1

Page 15: Sequential logic circuit optimization

04/15/23 15

NOR

D FF

rr

xx

zz

r x Z

0 0 1

0 1 0

1 0 0

1 1 0

S1 S2

1/01/00/10/1

Input Current State

Next State Output

0 S1 S2 1

0 S2 S1 0

1 S1 S1 0

1 S2 S1 0

Page 16: Sequential logic circuit optimization

04/15/23 16

NOR

D FF

rr

xx

zz

r x Z

0 0 1

0 1 0

1 0 0

1 1 0

S1 S2

1/01/00/10/1

0/00/0

Input Current State

Next State Output

0 S1 S2 1

0 S2 S1 0

1 S1 S1 0

1 S2 S1 0

Page 17: Sequential logic circuit optimization

04/15/23 17

NOR

D FF

rr

xx

zz

r x Z

0 0 1

0 1 0

1 0 0

1 1 0

S1 S2

1/01/00/10/1

1/00/01/00/0

Input Current State

Next State Output

0 S1 S2 1

0 S2 S1 0

1 S1 S1 0

1 S2 S1 0

Page 18: Sequential logic circuit optimization

04/15/23 18

Completely specified Incompletely specified FSM FSM

Page 19: Sequential logic circuit optimization

04/15/23 19

Page 20: Sequential logic circuit optimization

04/15/23 20

Merge the equivalent states into a single stateTwo states are equivalent iff:oFor the same input, they have identical

outputsoFor the same input, the corresponding next

states are equivalent

Page 21: Sequential logic circuit optimization

04/15/23 21

S3S1 S2

S4 S5

0/10/1

1/11/1

1/11/1

1/11/1

1/11/1

0/10/1

0/10/10/00/0

0/00/0

1/01/0

Page 22: Sequential logic circuit optimization

04/15/23 22

Input Current State Next State Output

0 S1 S3 1

1 S1 S5 1

0 S2 S3 1

1 S2 S5 1

0 S3 S2 0

1 S3 S1 1

0 S4 S4 0

1 S4 S5 1

0 S5 S4 1

1 S5 S1 0

Output based partition -> {S1, S2} Next state based partition -> {{S1, S2}, {S3}, {S4}, {S5}}

{S3, S4}, {S5}}

Page 23: Sequential logic circuit optimization

04/15/23 23

Output based partition

Next state based partition -> {{S1, S2}, {S3}, {S4}, {S5}}

S1, S2 S3, S4 S5

P1 P2 P3

Page 24: Sequential logic circuit optimization

04/15/23 24

Input Current State Next State Output

0 S12 S3 1

1 S12 S5 1

0 S3 S12 0

1 S3 S12 1

0 S4 S4 0

1 S4 S5 1

0 S5 S4 1

1 S5 S12 0

Page 25: Sequential logic circuit optimization

04/15/23 25

S3S12

S4 S5

1/01/0

0/00/0

0/00/01/11/1

1/11/1

1/11/1

0/10/1

0/10/1

Page 26: Sequential logic circuit optimization

04/15/23 26

The optimization process will reduce the area of circuit.

So, we can save cost. It ensures better performance

Page 27: Sequential logic circuit optimization

04/15/23 27

Computer memoryDelay and storage elementsFinite state machinesMinimizing ensures smaller circuit areaBetter performance from fewer number of

components

Page 28: Sequential logic circuit optimization

04/15/23 28

Sequential logic circuit The minimization process Improvement in speed and cost Applications

Page 29: Sequential logic circuit optimization

Questions?

04/15/23 29

Page 30: Sequential logic circuit optimization

Digital systems principles and applications oBy Tocci 2001

Synthesis And Optimization of Digital circuitso Giovani De Micheli

Digital Logic Design [Sequential circuits] oDr. Eng. Ahmed H. Madian

http://en.wikipedia.org/wiki/Moore_machine http://en.wikipedia.org/wiki/Mealy_machine

04/15/23 30

Page 31: Sequential logic circuit optimization