XSPICE state machine example

This commit is contained in:
Holger Vogt
2018-07-28 12:54:02 +02:00
parent a5e382d0ea
commit 0de66ea3b8
2 changed files with 49 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
* This is an example state.in file. This file
* defines a simple 2-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] [input] [next state]
0 0s 0s 0 -> 3
1 -> 1
1 0s 1z 0 -> 0
1 -> 2
2 1z 0s 0 -> 1
1 -> 3
3 1z 1z 0 -> 2
3 1z 1z 1 -> 0