e1453216e7ce8fdc5aafda0c4ddcba3f7b1a1aa1
[fleet.git] / tests / memory / count.and.stride.fleet
1 // output ///////////////////////////////////////////////////////////////////
2 #skip
3 #expect 14
4 #expect 13
5 #expect 12
6 #expect 11
7
8 // program //////////////////////////////////////////////////////////////////
9 #ship debug        : Debug
10 #ship memory       : Memory
11 #ship fifo         : Fifo
12
13 // dumb configurations
14 debug.in:        set ilc=*;  recv, deliver;
15 memory.inAddrRead:   set ilc=*;  recv, deliver;
16 memory.inAddrWrite:   set ilc=*;  recv, deliver;
17 memory.inDataWrite:   set ilc=*;  recv, deliver;
18 //memory.inCount:  set ilc=*;  recv, deliver;
19 //memory.inStride: set ilc=*;  recv, deliver;
20 fifo.in:         set ilc=*;  recv, deliver;
21
22 // addresses and values to initialize the memory with
23 //1:  send to memory.inAddrWrite;
24 //4:  send to memory.inCount;
25 //1:  send to memory.inStride;
26 //11: send to memory.inDataWrite;
27 //12: send to memory.inDataWrite;
28 //13: send to memory.inDataWrite;
29 //14: send to memory.inDataWrite;
30
31 // send write-completion tokens to the fifo output
32 memory.out:
33   set ilc=4; collect, send token to fifo.out;
34   set ilc=*;  collect, send to debug.in;
35
36 // when the write-completion tokens accumulate, unleash
37 // the read addresses
38 fifo.out:
39   set ilc=4; recv token;
40   collect, send to memory.inAddrRead;
41
42 // read addresses
43 //4: send to fifo.in;
44 //4: send to memory.inCount;
45 //-1: send to memory.inStride;
46