add flush tests
authoradam <adam@megacz.com>
Mon, 27 Oct 2008 06:37:47 +0000 (07:37 +0100)
committeradam <adam@megacz.com>
Mon, 27 Oct 2008 06:37:47 +0000 (07:37 +0100)
tests/flush/flush-alu.test [new file with mode: 0644]
tests/flush/flush-debug.test [new file with mode: 0644]
tests/flush/flush-fifo.test [new file with mode: 0644]

diff --git a/tests/flush/flush-alu.test b/tests/flush/flush-alu.test
new file mode 100644 (file)
index 0000000..bd7f968
--- /dev/null
@@ -0,0 +1,39 @@
+// FIXME: need test for ADD carry-out c-flag
+
+#ship debug : Debug
+#ship alu   : Alu
+
+#expect 18
+#expect 12
+
+debug.in:   set ilc=*;  recv, deliver;
+alu.in1:
+  set word=9;
+  deliver;
+  set word=9;
+  deliver;
+  flush;
+  set word=3;
+  deliver;
+
+alu.in2:
+  set word=9;
+  deliver;
+  set word=10;
+  flush;
+  set word=9;
+  deliver;
+
+alu.inOp:
+ set word=Alu.inOp[ADD];
+ deliver;
+ deliver;
+ deliver;
+ deliver;
+ flush;
+ deliver;
+ deliver;
+
+alu.out:
+  set ilc=*;
+  collect, send to debug.in;
diff --git a/tests/flush/flush-debug.test b/tests/flush/flush-debug.test
new file mode 100644 (file)
index 0000000..8790ed6
--- /dev/null
@@ -0,0 +1,14 @@
+// FIXME: need test for ADD carry-out c-flag
+
+#ship debug : Debug
+
+#expect 1
+#expect 3
+
+debug.in:
+  set word=1;
+  deliver;
+  set word=2;
+  flush;
+  set word=3;
+  deliver;
diff --git a/tests/flush/flush-fifo.test b/tests/flush/flush-fifo.test
new file mode 100644 (file)
index 0000000..4bcf7d6
--- /dev/null
@@ -0,0 +1,23 @@
+// FIXME: need test for ADD carry-out c-flag
+
+#ship debug : Debug
+#ship fifo  : Fifo
+
+#expect 1
+#expect 3
+
+debug.in:
+  set ilc=*;
+  recv, deliver;
+
+fifo.out:
+  set ilc=*;
+  collect, send to debug.in;
+
+fifo.in:
+  set word=1;
+  deliver;
+  set word=2;
+  flush;
+  set word=3;
+  deliver;