-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcmp_test.imem.0.fill
150 lines (150 loc) · 2.76 KB
/
cmp_test.imem.0.fill
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
F0000000 // NOP // Program for single packet read and write from processor
81400000 // load datamem[0] into R10 //load packet to be sent out in register file
82800001 // load datamem[1] into R20 //load packet to be sent out in register file
83C00002 // load datamem[2] into R30 //load packet to be sent out in register file
8020C003 // load NIC[3] into R1 //read the output channel status register
8C200010 // VBNEZ r1, 4 //if full, read again until empty
8540C002 // store r10 into NIC[2] //send packet out to NIC
8020C003 // load NIC[3] into r1 //read the output channel status register
8C20001c // VBNEZ r1, 7 //if full, read again until empty
8680C002 // store r20 into NIC[2] //send packet out to NIC
8020C003 // load NIC[3] into r1 //read the output channel status register
8C200028 // VBNEZ R1, 10 //if full, read again until empty
87C0C002 // store R30 into NIC[2] //send packet out to NIC
8040C001 // load NIC[1] into R2 //read the input channel status register
88400034 // VBEZ R2, 13 //if empty, read again
80A0C000 // load NIC[0] into R5
8040C001 // load NIC[1] into R2 //read the input channel status register
88400040 // VBEZ R2, 16
81E0C000 // load NIC[0] into R15
8040C001 // load NIC[1] into R2 //read the input channel status register
8840004C // VBEZ R2, 19
8320C000 // load NIC[0] into R25
84A00005 // VSD R5, 5 //write R5 to datamem[5]
85E00006 // VSD R15, 6 //write R15 to datamem[6]
87200007 // VSD R25, 7 //write R25 to datamem[7]
00000000 // NOP End Program
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000