7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2024-11-22 06:55:06 +00:00
kicad/demos/simulation/up-down-counter/state-3bit-count.in
Seth Hillbrand d25ac664f8 Adding additional demos
Some simulation demos curtesy of Holger Vogt and a new board design
curtesy of Pat Deegan
2024-01-15 16:52:33 -08:00

22 lines
537 B
Plaintext

* 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