update tests for transition from Icache to Memory
[fleet.git] / tests / memory / memory-test.fleet
1 // output ///////////////////////////////////////////////////////////////////
2 #expect 14
3 #expect 13
4 #expect 12
5 #expect 11
6
7 // program //////////////////////////////////////////////////////////////////
8 #ship debug        : Debug
9 #ship memory       : Memory
10 #ship fifo         : Fifo
11
12 // dumb configurations
13 debug.in:        [*] take, deliver;
14 memory.inAddr:   [*] take, deliver;
15 memory.inData:   [*] take, deliver;
16 fifo.in:         [*] take, deliver;
17
18 // addresses and values to initialize the memory with
19 1:  sendto memory.inAddr.write;
20 2:  sendto memory.inAddr.write;
21 3:  sendto memory.inAddr.write;
22 4:  sendto memory.inAddr.write;
23 11: sendto memory.inData;
24 12: sendto memory.inData;
25 13: sendto memory.inData;
26 14: sendto memory.inData;
27
28 // send write-completion tokens to the fifo output
29 memory.out:
30   [4] take, notify fifo.out;
31   [*] take, sendto debug.in;
32
33 // when the write-completion tokens accumulate, unleash
34 // the read addresses
35 fifo.out:
36   [4] wait;
37   [4] take, sendto memory.inAddr.read;
38
39 // read addresses
40 4:  sendto fifo.in;
41 3:  sendto fifo.in;
42 2:  sendto fifo.in;
43 1:  sendto fifo.in;
44