projects
/
fleet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
fab816c07a834a02d4cdaa82b450e541f9bfd097
[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
#ship fifo2 : Fifo
13
14
debug.in:
15
set ilc=*;
16
recv, deliver;
17
18
fifo.out:
19
set ilc=*;
20
collect, send to debug.in;
21
22
fifo.in:
23
set olc=3;
24
[Rq] set word=5;
25
[Rq] deliver;
26
[Rq] send token to memory.inCBD;
27
[Rq] recv, deliver;
28
[Rq] set olc--;
29
tail;
30
31
fifo2.out:
32
set word=7;
33
set ilc=3;
34
send to fifo.in;
35
36
memory.out:
37
set ilc=*;
38
collect packet, send;
39
40
memory.inCBD:
41
recv nothing;
42
recv nothing;
43
recv nothing;
44
set word={
45
fifo.in:
46
[*] set olc=1;
47
set word=9;
48
deliver;
49
};
50
deliver;
51