import slipway (fpga-fleet) code
[fleet.git] / contrib / demo.fleet
index e926afb..4d8eed3 100644 (file)
@@ -1,20 +1,20 @@
-#include "contrib/demo.ships"
-
-0:          sendto alu2.a;
-1:          sendto alu2.b;
-2:          sendto alu2.b;
-3:          sendto alu2.b;
-
-0:          sendto alu2.op;
-alu2.op:
-  take;
-  [*] deliver;
-
-alu2.out:
-  [*r] take, sendto debug.data;
-  [*r]       sendto alu2.a;
-
-alu2.a:     [*] take, deliver;
-alu2.b:     [*] take, deliver;
+#import edu.berkeley.fleet.ships
+#ship alu          : Alu2
+#ship debug        : Debug
+#ship command      : Command
 
+0: sendto alu.a;
+0: sendto alu.op;
+42: sendto alu.b;
+1:  sendto alu.b;
+5:  sendto alu.b;
+alu.a:  [*] take, deliver;
+alu.b:  [*] take, deliver;
+alu.op: take; [*] deliver;
 debug.data: [*] take, deliver;
+alu.out:
+  [*]  nop;
+  [*r] take, sendto alu.a;
+  [*r]       sendto debug.data;
+  kill;
+