change some tests to require only a single fifo ship
[fleet.git] / tests / dock / test-use-loop-counter.fleet
1 #expect 5
2 #expect 7
3 #expect 5
4 #expect 7
5 #expect 5
6 #expect 7
7 #expect 9
8
9 #ship memory       : Memory
10 #ship debug        : Debug
11 #ship fifo         : Fifo
12
13 debug.in:
14    set ilc=*;
15    recv, deliver;
16
17 fifo.out:
18    set ilc=*;
19    collect, send to debug.in;
20
21 fifo.in:
22   set olc=3;
23   [Rq] set word=5;
24   [Rq] deliver;
25   [Rq] send token to memory.inCBD;
26   [Rq] recv, deliver;
27   [Rq] set olc--;
28   tail;
29
30 memory.out:
31   set word=7;
32   set ilc=3;
33   send to fifo.in;
34
35   set ilc=*;
36   collect packet, send;
37
38 memory.inCBD:
39   recv nothing;
40   recv nothing;
41   recv nothing;
42   set word={
43     fifo.in:
44        [*] set olc=1;
45        set word=9;
46        deliver;
47   };
48   deliver;
49