summaryrefslogtreecommitdiff
path: root/Windows/spice/tests/xspice/digital/d_state-updn.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Windows/spice/tests/xspice/digital/d_state-updn.txt')
-rw-r--r--Windows/spice/tests/xspice/digital/d_state-updn.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/Windows/spice/tests/xspice/digital/d_state-updn.txt b/Windows/spice/tests/xspice/digital/d_state-updn.txt
new file mode 100644
index 00000000..085159e7
--- /dev/null
+++ b/Windows/spice/tests/xspice/digital/d_state-updn.txt
@@ -0,0 +1,16 @@
+* 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).
+
+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