home *** CD-ROM | disk | FTP | other *** search
- .model state d_state state_file = state_updown.txt reset_state=0
-
- .file state_updown.txt
- * This is a simple example of a state machine state file
- * It is a 2 bit up down counter with synchronous reset
-
- *Present Outputs Inputs State destination
- *State for state (reset, up/down)
-
- 0 0S 0S 0 0 -> 3
- 0 1 -> 1
- 1 0 -> 0
- 1 1 -> 0
-
- 1 0S 1S 0 0 -> 0
- 0 1 -> 2
- 1 0 -> 0
- 1 1 -> 0
-
- 2 1S 0S 0 0 -> 1
- 0 1 -> 3
- 1 0 -> 0
- 1 1 -> 0
-
- 3 1S 1S 0 0 -> 2
- 0 1 -> 0
- 1 0 -> 0
- 1 1 -> 0
-
- .endf
-