


































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



































Odd Parity Checker: two alternative state diagrams
**- Identical output behavior on all input strings
Example FSM Specification: Single input X, output Z Taking inputs grouped four at a time, output 1 if last four inputs were the string 1010 or 0110 Example I/O Behavior: X = 0010 0110 1100 1010 0011... Z = 0000 0001 0000 0001 0000... Upper bound on FSM complexity: Fifteen states (1 + 2 + 4 + 8) Thirty transitions (2 + 4 + 8 + 16) sufficient to recognize any binary string of length four!
State Diagram for Example FSM:
Initial State Transition Table: Present State S 0 S 1 S 2 S 3 S 4 S 5 S 6 S 7 S 8 S 9 S 10 S 11 S 12 S 13 S 14 Input Sequence Reset 0 1 00 01 10 11 000 001 010 011 100 101 110 111
11 S 13 S 0 S 0 S 0 S 0 S 0 S 0 S 0 S 0
10 S 12 S 14 S 0 S 0 S 0 S 0 S 0 S 0 S 0 S 0
Next State Output
Present State S 0 S 1 S 2 S 3 S 4 S 5 S 6 S 7 S 8 S 9 S' 10 S 11 S 13 S 14 Input Sequence Reset 0 1 00 01 10 11 000 001 010 01 1 or 101 100 110 111 Next State X=0 X= S 1 S 3 S 5 S 7 S 9 S 11 S 13 S 0 S 0 S 0 S 0 S 0 S 0 S 0
10 S' 10 S 14 S 0 S 0 S 0 S 0 S 0 S 0 S 0
Output
Present State S 0 S 1 S 2 S 3 S 4 S 5 S 6 S 7 ' S' 10 Input Sequence Reset 0 1 00 01 10 11 not (011 or 101) 01 1 or 101
Next State Output S 7
7
7
7
7
10 S' 10 S 7
Present State S 0 S 1 S 2 S 3 S 4 S 5 S 6 S 7 ' S' 10 Input Sequence Reset 0 1 00 01 10 11 not (011 or 101) 01 1 or 101
Next State Output S 7
7
7
7
7
10 S' 10 S 7
**- Straightforward to understand and easy to implement
New example FSM: Single input X, Single output Z Output a 1 whenever the serial sequence 010 or 110 has been observed at the inputs State transition table: Present State S 0 S 1 S 2 S 3 S 4 S 5 S 6 Input Sequence Reset 0 1 00 01 10 11
Next State Output X= S 1 S 3 S 5 S 0 S 0 S 0 S 0
Filling in the Implication Chart Entry Xij — Row is Si, Column is Sj Si is equivalent to Sj if outputs are the same and next states are equivalent Xij contains the next states of Si, Sj which must be equivalent if Si and Sj are equivalent If Si, Sj have different output behavior, then Xij is crossed out Example: S0 transitions to S1 on 0, S2 on 1; S1 transitions to S3 on 0, S4 on 1; So square X<0,1> contains entries S1-S3 (transition on zero) S2-S4 (transition on one) S1-S S2-S S S
have different I/O behavior This implies that S1 and S0 cannot
- 0/0 1/ Reset - 0/0 1/0 0/0 1/