Docsity

State Minimization-Digital Logic-Lecture 32 Slides-Electrical and Computer Engineering, Slides of Digital Logic Design and Programming

Toggle sidebar
bg1
1
Dr. D. J. Jackson Lecture 32-1Electrical & Computer Engineering
ECE380 Digital Logic
State Minimization
Dr. D. J. Jackson Lecture 32-2Electrical & Computer Engineering
State minimization
• For simple FSMs, it is easy to see from the state
diagram that the number of states used is the
minimum possible
– FSMs for counters are good examples
• For more complex FSMs, it is likely that an initial
state diagram may have more states than are
necessary to perform a required function
• Minimizing states is of interest because fewer states
implies fewer flip-flops to implement the circuit
– Complexity of combinational logic may also be reduced
• Instead of trying to show which states are
equivalent, it is often easier to show which states are
definitely not equivalent
– This can be exploited to define a minimization procedure
pf3
pf4
pf5

Partial preview of the text

Download State Minimization-Digital Logic-Lecture 32 Slides-Electrical and Computer Engineering and more Slides Digital Logic Design and Programming in PDF only on Docsity!

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 32-

ECE380 Digital Logic

State Minimization

State minimization

  • For simple FSMs, it is easy to see from the state diagram that the number of states used is the minimum possible - FSMs for counters are good examples
  • For more complex FSMs, it is likely that an initial state diagram may have more states than are necessary to perform a required function
  • Minimizing states is of interest because fewer states implies fewer flip-flops to implement the circuit - Complexity of combinational logic may also be reduced
  • Instead of trying to show which states are equivalent, it is often easier to show which states are definitely not equivalent - This can be exploited to define a minimization procedure

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 32-

State equivalence

  • Definition : Two states Si and S (^) j are equivalent if and only if for every possible input sequence, the same output sequence will be produced regardless of whether S (^) i or S (^) j is the initial state
  • If an input w=0 is applied to an FSM in state Si and the FSM transitions to state Su, then Su is termed a 0-successor of S (^) i
  • Similarly, if w=1 and the FSM transitions to S (^) y , then S (^) y is a 1-successor of S (^) i
  • The successors of S (^) i are its k-successors
  • With one input, k can only be 0 or 1, but if there are multiple inputs then k represents all the valuations of the inputs

Partitioning minimization

  • From the equivalence definition, if Si and S (^) j are equivalent then their corresponding k-successors are also equivalent
  • Using this, we can construct a minimization procedure that involves considering the states of the machine as a set and then breaking that set into partitions that comprise subsets that are definitely not equivalent
  • Definition : A partition consists of one or more blocks, where each block comprises a subset of states that may be equivalent, but the states in one block are definitely not equivalent to the states in other blocks

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 32-

Partition minimization example

• P 2 =(ABD)(CEFG)

  • For (CEFG), the 0-successors are (FEFF) which are all in the same block in P (^2) - C, E, F, and G must still be considered equivalent
  • The 1-successors of (CEFG) are (ECDG)
    • Since these are not in the same block in P 2 then at least one of the states in (CEFG) is not equivalent to the others - State F must be different from C, E and G because its 1- successor,D, is in a different block than E, C, and G
  • Therefore, P 3 =(ABD)(CEG)(F)
  • At this point, we know that state F is unique since it is in a block by itself

Partition minimization example

• P 3 =(ABD)(CEG)(F)

• The process repeats yielding the following

  • 0-successors of (ABD) are (BDB)
    • A, B and D are still considered equivalent
  • 1-successors of (ABD) are (CFG), which are not in the same block - B cannot be equivalent to A and D since F is in a different block than C and G
  • The 0- and 1-successors of (CEG) are (FFF) and (ECG) - C, E, and G must still be considered equivalent

• Thus, P 4 =(AD)(B)(CEG)(F)

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 32-

Partition minimization example

• If we repeat the process to check the 0- and

1-successors of the blocks (AD) and (CEG),

we find that

– P 5 =(AD)(B)(CEG)(F)

• Since P 5 =P 4 and no new blocks are

generated, it follows that states in each block

are equivalent

  • A and D are equivalent
  • C, E, and G are equivalent

Partition minimization example

• The state table can be rewritten, removing

the rows for D, E and G and replacing all

occurrences of D with A and all occurrences

of E or G with C

• The resulting state table is as follows

Present Nextstate^ Output state (^) w = 0 w = 1 z

A B C 1 B A F 1 C F C 0 F C A 0