Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Assumptions: (i) Network A can only generate sequences X=100 and X = 110. (ii) Network B produces output Z=1 when it receives X=110 and output Z=0 for.

Similar presentations


Presentation on theme: "1 Assumptions: (i) Network A can only generate sequences X=100 and X = 110. (ii) Network B produces output Z=1 when it receives X=110 and output Z=0 for."— Presentation transcript:

1 1 Assumptions: (i) Network A can only generate sequences X=100 and X = 110. (ii) Network B produces output Z=1 when it receives X=110 and output Z=0 for X=100 (iii) Network C ignores values of Z at other times, so that we don’t care what Z is during the first two inputs of the sequence. Incompletely Specified State Tables Network A B Seq. Network Subsystem Network C X Z ( - is a don’t care output) t 0, t 1, t 2 represent three successive clock cycles,

2 2 Incompletely Specified State Tables S0 S1 1/- S3 S2 0/- 1/- 0/0 0/1 Whenever there is a don’t care state or a don’t care output, I can fill it with any value. I can also use row matching to reduce the table.

3 3 Incompletely Specified State Tables S0 S1 1/- S3 S2 0/- 1/- 0/0 0/1 Therefore, I should fill it in a way that allows minimization of the state machine.

4 4 Incompletely Specified State Tables S0 S1 1/- S3 S2 0/- 1/- 0/1 0/0 1/- S0 S2 no longer exists in the row reduced table, so it is replaced with S0

5 5 Incompletely Specified State Tables S0 S1 1/- 0/1 0/0 1/- S0 S3 no longer exists in row reduced table, so it is replaced with S1

6 6 Derivation of FF Input Equations 1. Assign FF state values to correspond to states in the reduced table. 2. Construct a transition table which gives the next states of the FF’s as a function of the present states and inputs. 3. Derive next state maps from the transition table. 4. Find FF input maps from the next state maps and find the input equations form the maps.

7 7 Derivation of FF Input Equations Example: Design a sequential network to realize the state table shown. (This state assignment is derived in 15.8) For 7 states we need 3 FF’s, A B C Transition Table based on state assignments S 0 = 000 S 1 = 110 S 2 = 111 …..

8 8 Derivation of D-FF Input Equations Next State maps for D FF realization

9 9 Derivation of JK-FF Input Equations For a JK-FF with output Q, the characteristic eqn. is Q + = JQ’ + K’Q From the next state map; A + = X’ = X’(A’+A) = X’A’+X’A = J A A’ + K A ’A => J A = X’, K A = X B + = X’C’+A’C+A’B = (X’C’+A’C)(B’+B) + A’B = (X’C’+A’C)B’ + (X’C’+A’C)B + A’B = (X’C’+A’C)B’ + (X’C’+A’C+A’)B = (X’C’+A’C)B’ + (X’C’+A’)B = J B B’ + K B ’B => J B = X’C’+A’C, K B = (X’C’+A’)’ = [(A’+c’)(A’+X’)]’ = AC+XA C + = A+XB’ = (A+XB’)(C’+C) = (A+XB’)C’ + (A+XB’)C = J C C’ + K C ’C => J C = A+XB’ K C = (A+XB’)’ = [(X+A)(A+B’)]’ = X’A’ + A’B

10 10 Derivation of JK-FF Input Equations Alternate Method JK-FF shortcut method

11 11 Why does choice of state assignment matter? –BIG effect on complexity of excitation and output equations AND thus on the amount of logic. How to find the best state assignment? –The only known way is to try ALL assignments and determine the resulting equations. N = 2: (2^2)! = 4! = 24 assignments N = 3: (2^3)! = 8! = ~ 40,000 assignments N = 4: (2^4)! = 16! = ~ 20,000,000,000,000 assignments for 4 state bits! THIS IS NOT PRACTICAL!  Use heuristic guidelines for pretty good assignments. There is no effective way to guarantee a “best” assignment. - the heuristic methods sometimes perform poorly! Finding an Optimal State Assignment (15.7)

12 12 Finding an Optimal State Assignment (15.7) It seems that we will not be able to enumerate all possible state assignments, generate the next state and output equations, compute the cost and then choose the best one. Therefore we must settle for “good” state assignments.

13 13 Rule 1: States that have the same next state for a given input should be given adjacent assignments. S a and S b should be given adjacent assignments. ScSc SaSa SbSb I 0 =1 Pred(S c, I 0 =1) = {S a, S b } Guidelines for State Assignment Good state assignments result when the following set of empirical rules are followed in the selection of the state assignment:

14 14 Guidelines for State Assignment Rule 2: States that are the next states of the same state should be given adjacent assignments. SiSi SjSj SkSk 0 1 Suc(S i ) = {S j, S k } S j and S k should be given adjacent assignments.

15 15 Guidelines for State Assignment Rule 3: States that have the same output for a given input should be given adjacent assignments. Guideline: The cost of the circuit will not be affected by the choice of which state receives the state “0” (according to McCluskey). Therefore to simplify reset generating circuits, the state “0” should always be assigned to the reset state.

16 16 Guidelines for State Assignment Example: Derivation of state assignment is illustrated for state table given. The sets of adjacent states specified by guidelines 1 and 2 are: (i)(ii) K-maps (i) and (ii) are obtained by trial and error, attempting to fulfill the adjacency conditions. Conditions from guideline 1 have precedence over 2 Also conditions that are 2x have precedence over 1x The k-map in (i) corresponds to the given state table For this state assignment we need 6 gates, 13 inputs to realize D-FF input eqns. vs. 10 gates, 39 inputs for straight binary assignment.

17 17 Guidelines for State Assignment Example (Cont’d): The state assignment obtained using the guidelines simplifies the FF input eqns. Next state map in terms of S i map (is used to obtain the A +, B +, C + next state maps)

18 18 Guidelines for State Assignment Example (Cont’d): Next state map in terms of S i map (is used to obtain the A +, B +, C + next state maps) 1 1 1 1 1 1 1 1 1 0 0 0 0

19 19 Guidelines for State Assignment Another Example: 1. (b,d) (c,f) (b,e) 2. (a,c) 2x (d,f) (b,d) (b,f) (c,e) 3. (a,c) (b,d) (e,f) We derive D-FF input eqns. for this assignment by first constructing the transition table We arrange the states on k-maps attempting to satisfy as many guideline pairs as possible.

20 20 Guidelines for State Assignment Another Example (cont’d): 1. (b,d) (c,f) (b,e) 2. (a,c) 2x (d,f) (b,d) (b,f) (c,e) 3. (a,c) (b,d) (e,f)


Download ppt "1 Assumptions: (i) Network A can only generate sequences X=100 and X = 110. (ii) Network B produces output Z=1 when it receives X=110 and output Z=0 for."

Similar presentations


Ads by Google