File: state-3bit-count.in

package info (click to toggle)
kicad 9.0.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 769,124 kB
  • sloc: cpp: 960,330; ansic: 121,001; xml: 66,428; python: 18,382; sh: 1,010; awk: 301; asm: 292; makefile: 227; javascript: 167; perl: 10
file content (21 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
* This is an example state.in file. This file
* defines a simple 3-bit counter with one input. The
* value of this input determines whether the counter counts
* up (in = 1) or down (in = 0).
* [state#] [output1 output2 output3] [input] [next state]
0 0s 0s 0s 0 -> 7
           1 -> 1
1 0s 0s 1z 0 -> 0
           1 -> 2
2 0s 1z 0s 0 -> 1
           1 -> 3
3 0s 1z 1z 0 -> 2
           1 -> 4
4 1z 0s 0s 0 -> 3
           1 -> 5
5 1z 0s 1z 0 -> 4
           1 -> 6
6 1z 1z 0s 0 -> 5
           1 -> 7
7 1z 1z 1z 0 -> 6
           1 -> 0