OpenCores
URL https://opencores.org/ocsvn/openmsp430/openmsp430/trunk

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [src/] [two-op_autoincr-b.v] - Blame information for rev 200

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 134 olivier.gi
/*===========================================================================*/
2
/* Copyright (C) 2001 Authors                                                */
3
/*                                                                           */
4
/* This source file may be used and distributed without restriction provided */
5
/* that this copyright statement is not removed from the file and that any   */
6
/* derivative work contains the original copyright notice and the associated */
7
/* disclaimer.                                                               */
8
/*                                                                           */
9
/* This source file is free software; you can redistribute it and/or modify  */
10
/* it under the terms of the GNU Lesser General Public License as published  */
11
/* by the Free Software Foundation; either version 2.1 of the License, or    */
12
/* (at your option) any later version.                                       */
13
/*                                                                           */
14
/* This source is distributed in the hope that it will be useful, but WITHOUT*/
15
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or     */
16
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public       */
17
/* License for more details.                                                 */
18
/*                                                                           */
19
/* You should have received a copy of the GNU Lesser General Public License  */
20
/* along with this source; if not, write to the Free Software Foundation,    */
21
/* Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA        */
22
/*                                                                           */
23
/*===========================================================================*/
24
/*                   TWO-OPERAND ARITHMETIC: MOV INSTRUCTION                 */
25
/*---------------------------------------------------------------------------*/
26
/* Test the MOV instruction with all addressing modes                        */
27
/*                                                                           */
28
/* Author(s):                                                                */
29
/*             - Olivier Girard,    olgirard@gmail.com                       */
30
/*                                                                           */
31
/*---------------------------------------------------------------------------*/
32
/* $Rev: 19 $                                                                */
33
/* $LastChangedBy: olivier.girard $                                          */
34
/* $LastChangedDate: 2009-08-04 23:47:15 +0200 (Tue, 04 Aug 2009) $          */
35
/*===========================================================================*/
36
 
37
initial
38
   begin
39
      $display(" ===============================================");
40
      $display("|                 START SIMULATION              |");
41
      $display(" ===============================================");
42
      repeat(5) @(posedge mclk);
43
      stimulus_done = 0;
44
 
45
      // Initialize memory
46
      //--------------------------------------------------------
47
 
48
      @(mem200==16'h0001);
49
      if (mem200 !== 16'h0001) tb_error("====== Initialize memory error: @0x200 =====");
50
      if (mem202 !== 16'h1020) tb_error("====== Initialize memory error: @0x202 =====");
51
      if (mem204 !== 16'h1122) tb_error("====== Initialize memory error: @0x204 =====");
52
      if (mem206 !== 16'h3344) tb_error("====== Initialize memory error: @0x206 =====");
53
      if (mem208 !== 16'h5566) tb_error("====== Initialize memory error: @0x208 =====");
54
      if (mem20A !== 16'h7788) tb_error("====== Initialize memory error: @0x20A =====");
55
      if (mem20C !== 16'h99AA) tb_error("====== Initialize memory error: @0x20C =====");
56
      if (mem20E !== 16'hBBCC) tb_error("====== Initialize memory error: @0x20E =====");
57
      if (mem210 !== 16'hDDEE) tb_error("====== Initialize memory error: @0x210 =====");
58
      if (mem212 !== 16'hFF21) tb_error("====== Initialize memory error: @0x212 =====");
59
      if (mem214 !== 16'h1223) tb_error("====== Initialize memory error: @0x214 =====");
60
      if (mem216 !== 16'h3445) tb_error("====== Initialize memory error: @0x216 =====");
61
      if (mem218 !== 16'h5667) tb_error("====== Initialize memory error: @0x218 =====");
62
      if (mem21A !== 16'h7889) tb_error("====== Initialize memory error: @0x21A =====");
63
      if (mem21C !== 16'h9AAB) tb_error("====== Initialize memory error: @0x21C =====");
64
      if (mem21E !== 16'hBCCD) tb_error("====== Initialize memory error: @0x21E =====");
65
      if (mem220 !== 16'hDEEF) tb_error("====== Initialize memory error: @0x220 =====");
66
      if (mem222 !== 16'hF001) tb_error("====== Initialize memory error: @0x222 =====");
67
 
68
      // Auto-increment: R1 (increment by 2 even in byte mode)
69
      //--------------------------------------------------------
70
      @(mem200==16'h1000);
71
      if (r1     !== (`DMEM_BASE+16'h0004)) tb_error("====== Auto-increment (R1): R1     - test 1 =====");
72
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R1): R2     - test 1 =====");
73
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R1): R3     - test 1 =====");
74
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R1): R4     - test 1 =====");
75
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R1): R5     - test 1 =====");
76
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R1): R6     - test 1 =====");
77
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R1): R7     - test 1 =====");
78
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R1): R8     - test 1 =====");
79
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R1): R9     - test 1 =====");
80
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R1): R10    - test 1 =====");
81
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R1): R11    - test 1 =====");
82
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R1): R12    - test 1 =====");
83
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R1): R13    - test 1 =====");
84
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R1): R14    - test 1 =====");
85
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R1): R15    - test 1 =====");
86
      if (mem202 !== 16'h1020)              tb_error("====== Auto-increment (R1): @0x202 - test 1 =====");
87
 
88
      @(mem200==16'h1001);
89
      if (r1     !== (`DMEM_BASE+16'h0006)) tb_error("====== Auto-increment (R1): R1     - test 2 =====");
90
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R1): R2     - test 2 =====");
91
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R1): R3     - test 2 =====");
92
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R1): R4     - test 2 =====");
93
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R1): R5     - test 2 =====");
94
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R1): R6     - test 2 =====");
95
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R1): R7     - test 2 =====");
96
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R1): R8     - test 2 =====");
97
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R1): R9     - test 2 =====");
98
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R1): R10    - test 2 =====");
99
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R1): R11    - test 2 =====");
100
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R1): R12    - test 2 =====");
101
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R1): R13    - test 2 =====");
102
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R1): R14    - test 2 =====");
103
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R1): R15    - test 2 =====");
104
      if (mem202 !== 16'h1022)              tb_error("====== Auto-increment (R1): @0x202 - test 2 =====");
105
 
106
      @(mem200==16'h1002);
107
      if (r1     !== (`DMEM_BASE+16'h0008)) tb_error("====== Auto-increment (R1): R1     - test 3 =====");
108
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R1): R2     - test 3 =====");
109
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R1): R3     - test 3 =====");
110
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R1): R4     - test 3 =====");
111
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R1): R5     - test 3 =====");
112
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R1): R6     - test 3 =====");
113
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R1): R7     - test 3 =====");
114
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R1): R8     - test 3 =====");
115
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R1): R9     - test 3 =====");
116
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R1): R10    - test 3 =====");
117
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R1): R11    - test 3 =====");
118
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R1): R12    - test 3 =====");
119
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R1): R13    - test 3 =====");
120
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R1): R14    - test 3 =====");
121
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R1): R15    - test 3 =====");
122
      if (mem202 !== 16'h1044)              tb_error("====== Auto-increment (R1): @0x202 - test 3 =====");
123
 
124
 
125
      // Auto-increment: R2 (@R2+ addressing mode generated constant 8)
126
      //----------------------------------------------------------------
127
      @(mem200==16'h2000);
128
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R2): R1     - test 1 =====");
129
      if (r2     !== 16'h0004)              tb_error("====== Auto-increment (R2): R2     - test 1 =====");
130
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R2): R3     - test 1 =====");
131
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R2): R4     - test 1 =====");
132
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R2): R5     - test 1 =====");
133
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R2): R6     - test 1 =====");
134
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R2): R7     - test 1 =====");
135
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R2): R8     - test 1 =====");
136
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R2): R9     - test 1 =====");
137
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R2): R10    - test 1 =====");
138
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R2): R11    - test 1 =====");
139
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R2): R12    - test 1 =====");
140
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R2): R13    - test 1 =====");
141
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R2): R14    - test 1 =====");
142
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R2): R15    - test 1 =====");
143
      if (mem202 !== 16'h0000)              tb_error("====== Auto-increment (R2): @0x202 - test 1 =====");
144
 
145
      @(mem200==16'h2001);
146
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R2): R1     - test 2 =====");
147
      if (r2     !== 16'h0004)              tb_error("====== Auto-increment (R2): R2     - test 2 =====");
148
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R2): R3     - test 2 =====");
149
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R2): R4     - test 2 =====");
150
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R2): R5     - test 2 =====");
151
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R2): R6     - test 2 =====");
152
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R2): R7     - test 2 =====");
153
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R2): R8     - test 2 =====");
154
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R2): R9     - test 2 =====");
155
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R2): R10    - test 2 =====");
156
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R2): R11    - test 2 =====");
157
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R2): R12    - test 2 =====");
158
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R2): R13    - test 2 =====");
159
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R2): R14    - test 2 =====");
160
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R2): R15    - test 2 =====");
161
      if (mem202 !== 16'h0008)              tb_error("====== Auto-increment (R2): @0x202 - test 2 =====");
162
 
163
      @(mem200==16'h2002);
164
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R2): R1     - test 3 =====");
165
      if (r2     !== 16'h0004)              tb_error("====== Auto-increment (R2): R2     - test 3 =====");
166
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R2): R3     - test 3 =====");
167
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R2): R4     - test 3 =====");
168
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R2): R5     - test 3 =====");
169
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R2): R6     - test 3 =====");
170
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R2): R7     - test 3 =====");
171
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R2): R8     - test 3 =====");
172
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R2): R9     - test 3 =====");
173
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R2): R10    - test 3 =====");
174
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R2): R11    - test 3 =====");
175
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R2): R12    - test 3 =====");
176
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R2): R13    - test 3 =====");
177
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R2): R14    - test 3 =====");
178
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R2): R15    - test 3 =====");
179
      if (mem202 !== 16'h0008)              tb_error("====== Auto-increment (R2): @0x202 - test 3 =====");
180
 
181
 
182
      // Auto-increment: R3
183
      //--------------------------------------------------------
184
      @(mem200==16'h3000);
185
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R3): R1     - test 1 =====");
186
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R3): R2     - test 1 =====");
187
      if (r3     !== (`DMEM_BASE+16'h0008)) tb_error("====== Auto-increment (R3): R3     - test 1 =====");
188
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R3): R4     - test 1 =====");
189
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R3): R5     - test 1 =====");
190
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R3): R6     - test 1 =====");
191
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R3): R7     - test 1 =====");
192
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R3): R8     - test 1 =====");
193
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R3): R9     - test 1 =====");
194
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R3): R10    - test 1 =====");
195
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R3): R11    - test 1 =====");
196
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R3): R12    - test 1 =====");
197
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R3): R13    - test 1 =====");
198
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R3): R14    - test 1 =====");
199
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R3): R15    - test 1 =====");
200
      if (mem202 !== 16'h0000)              tb_error("====== Auto-increment (R3): @0x202 - test 1 =====");
201
 
202
      @(mem200==16'h3001);
203
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R3): R1     - test 2 =====");
204
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R3): R2     - test 2 =====");
205
      if (r3     !== (`DMEM_BASE+16'h0008)) tb_error("====== Auto-increment (R3): R3     - test 2 =====");
206
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R3): R4     - test 2 =====");
207
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R3): R5     - test 2 =====");
208
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R3): R6     - test 2 =====");
209
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R3): R7     - test 2 =====");
210
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R3): R8     - test 2 =====");
211
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R3): R9     - test 2 =====");
212
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R3): R10    - test 2 =====");
213
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R3): R11    - test 2 =====");
214
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R3): R12    - test 2 =====");
215
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R3): R13    - test 2 =====");
216
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R3): R14    - test 2 =====");
217
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R3): R15    - test 2 =====");
218
      if (mem202 !== 16'h00FF)              tb_error("====== Auto-increment (R3): @0x202 - test 2 =====");
219
 
220
      @(mem200==16'h3002);
221
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R3): R1     - test 3 =====");
222
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R3): R2     - test 3 =====");
223
      if (r3     !== (`DMEM_BASE+16'h0008)) tb_error("====== Auto-increment (R3): R3     - test 3 =====");
224
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R3): R4     - test 3 =====");
225
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R3): R5     - test 3 =====");
226
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R3): R6     - test 3 =====");
227
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R3): R7     - test 3 =====");
228
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R3): R8     - test 3 =====");
229
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R3): R9     - test 3 =====");
230
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R3): R10    - test 3 =====");
231
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R3): R11    - test 3 =====");
232
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R3): R12    - test 3 =====");
233
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R3): R13    - test 3 =====");
234
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R3): R14    - test 3 =====");
235
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R3): R15    - test 3 =====");
236
      if (mem202 !== 16'h00FF)              tb_error("====== Auto-increment (R3): @0x202 - test 3 =====");
237
 
238
 
239
      // Auto-increment: R4
240
      //--------------------------------------------------------
241
      @(mem200==16'h4000);
242
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R4): R1     - test 1 =====");
243
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R4): R2     - test 1 =====");
244
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R4): R3     - test 1 =====");
245
      if (r4     !== (`DMEM_BASE+16'h000A)) tb_error("====== Auto-increment (R4): R4     - test 1 =====");
246
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R4): R5     - test 1 =====");
247
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R4): R6     - test 1 =====");
248
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R4): R7     - test 1 =====");
249
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R4): R8     - test 1 =====");
250
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R4): R9     - test 1 =====");
251
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R4): R10    - test 1 =====");
252
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R4): R11    - test 1 =====");
253
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R4): R12    - test 1 =====");
254
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R4): R13    - test 1 =====");
255
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R4): R14    - test 1 =====");
256
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R4): R15    - test 1 =====");
257
      if (mem202 !== 16'h0000)              tb_error("====== Auto-increment (R4): @0x202 - test 1 =====");
258
 
259
      @(mem200==16'h4001);
260
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R4): R1     - test 2 =====");
261
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R4): R2     - test 2 =====");
262
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R4): R3     - test 2 =====");
263
      if (r4     !== (`DMEM_BASE+16'h000B)) tb_error("====== Auto-increment (R4): R4     - test 2 =====");
264
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R4): R5     - test 2 =====");
265
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R4): R6     - test 2 =====");
266
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R4): R7     - test 2 =====");
267
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R4): R8     - test 2 =====");
268
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R4): R9     - test 2 =====");
269
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R4): R10    - test 2 =====");
270
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R4): R11    - test 2 =====");
271
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R4): R12    - test 2 =====");
272
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R4): R13    - test 2 =====");
273
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R4): R14    - test 2 =====");
274
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R4): R15    - test 2 =====");
275
      if (mem202 !== 16'h0088)              tb_error("====== Auto-increment (R4): @0x202 - test 2 =====");
276
 
277
      @(mem200==16'h4002);
278
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R4): R1     - test 3 =====");
279
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R4): R2     - test 3 =====");
280
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R4): R3     - test 3 =====");
281
      if (r4     !== (`DMEM_BASE+16'h000C)) tb_error("====== Auto-increment (R4): R4     - test 3 =====");
282
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R4): R5     - test 3 =====");
283
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R4): R6     - test 3 =====");
284
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R4): R7     - test 3 =====");
285
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R4): R8     - test 3 =====");
286
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R4): R9     - test 3 =====");
287
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R4): R10    - test 3 =====");
288
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R4): R11    - test 3 =====");
289
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R4): R12    - test 3 =====");
290
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R4): R13    - test 3 =====");
291
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R4): R14    - test 3 =====");
292
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R4): R15    - test 3 =====");
293
      if (mem202 !== 16'h0077)              tb_error("====== Auto-increment (R4): @0x202 - test 3 =====");
294
 
295
 
296
      // Auto-increment: R5
297
      //--------------------------------------------------------
298
      @(mem200==16'h5000);
299
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R5): R1     - test 1 =====");
300
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R5): R2     - test 1 =====");
301
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R5): R3     - test 1 =====");
302
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R5): R4     - test 1 =====");
303
      if (r5     !== (`DMEM_BASE+16'h000C)) tb_error("====== Auto-increment (R5): R5     - test 1 =====");
304
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R5): R6     - test 1 =====");
305
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R5): R7     - test 1 =====");
306
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R5): R8     - test 1 =====");
307
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R5): R9     - test 1 =====");
308
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R5): R10    - test 1 =====");
309
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R5): R11    - test 1 =====");
310
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R5): R12    - test 1 =====");
311
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R5): R13    - test 1 =====");
312
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R5): R14    - test 1 =====");
313
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R5): R15    - test 1 =====");
314
      if (mem202 !== 16'h0000)              tb_error("====== Auto-increment (R5): @0x202 - test 1 =====");
315
 
316
      @(mem200==16'h5001);
317
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R5): R1     - test 2 =====");
318
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R5): R2     - test 2 =====");
319
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R5): R3     - test 2 =====");
320
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R5): R4     - test 2 =====");
321
      if (r5     !== (`DMEM_BASE+16'h000D)) tb_error("====== Auto-increment (R5): R5     - test 2 =====");
322
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R5): R6     - test 2 =====");
323
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R5): R7     - test 2 =====");
324
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R5): R8     - test 2 =====");
325
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R5): R9     - test 2 =====");
326
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R5): R10    - test 2 =====");
327
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R5): R11    - test 2 =====");
328
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R5): R12    - test 2 =====");
329
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R5): R13    - test 2 =====");
330
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R5): R14    - test 2 =====");
331
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R5): R15    - test 2 =====");
332
      if (mem202 !== 16'h00AA)              tb_error("====== Auto-increment (R5): @0x202 - test 2 =====");
333
 
334
      @(mem200==16'h5002);
335
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R5): R1     - test 3 =====");
336
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R5): R2     - test 3 =====");
337
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R5): R3     - test 3 =====");
338
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R5): R4     - test 3 =====");
339
      if (r5     !== (`DMEM_BASE+16'h000E)) tb_error("====== Auto-increment (R5): R5     - test 3 =====");
340
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R5): R6     - test 3 =====");
341
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R5): R7     - test 3 =====");
342
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R5): R8     - test 3 =====");
343
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R5): R9     - test 3 =====");
344
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R5): R10    - test 3 =====");
345
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R5): R11    - test 3 =====");
346
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R5): R12    - test 3 =====");
347
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R5): R13    - test 3 =====");
348
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R5): R14    - test 3 =====");
349
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R5): R15    - test 3 =====");
350
      if (mem202 !== 16'h0099)              tb_error("====== Auto-increment (R5): @0x202 - test 3 =====");
351
 
352
 
353
      // Auto-increment: R6
354
      //--------------------------------------------------------
355
      @(mem200==16'h6000);
356
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R6): R1     - test 1 =====");
357
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R6): R2     - test 1 =====");
358
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R6): R3     - test 1 =====");
359
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R6): R4     - test 1 =====");
360
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R6): R5     - test 1 =====");
361
      if (r6     !== (`DMEM_BASE+16'h000E)) tb_error("====== Auto-increment (R6): R6     - test 1 =====");
362
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R6): R7     - test 1 =====");
363
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R6): R8     - test 1 =====");
364
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R6): R9     - test 1 =====");
365
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R6): R10    - test 1 =====");
366
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R6): R11    - test 1 =====");
367
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R6): R12    - test 1 =====");
368
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R6): R13    - test 1 =====");
369
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R6): R14    - test 1 =====");
370
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R6): R15    - test 1 =====");
371
      if (mem202 !== 16'h0000)              tb_error("====== Auto-increment (R6): @0x202 - test 1 =====");
372
 
373
      @(mem200==16'h6001);
374
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R6): R1     - test 2 =====");
375
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R6): R2     - test 2 =====");
376
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R6): R3     - test 2 =====");
377
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R6): R4     - test 2 =====");
378
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R6): R5     - test 2 =====");
379
      if (r6     !== (`DMEM_BASE+16'h000F)) tb_error("====== Auto-increment (R6): R6     - test 2 =====");
380
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R6): R7     - test 2 =====");
381
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R6): R8     - test 2 =====");
382
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R6): R9     - test 2 =====");
383
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R6): R10    - test 2 =====");
384
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R6): R11    - test 2 =====");
385
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R6): R12    - test 2 =====");
386
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R6): R13    - test 2 =====");
387
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R6): R14    - test 2 =====");
388
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R6): R15    - test 2 =====");
389
      if (mem202 !== 16'h00CC)              tb_error("====== Auto-increment (R6): @0x202 - test 2 =====");
390
 
391
      @(mem200==16'h6002);
392
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R6): R1     - test 3 =====");
393
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R6): R2     - test 3 =====");
394
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R6): R3     - test 3 =====");
395
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R6): R4     - test 3 =====");
396
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R6): R5     - test 3 =====");
397
      if (r6     !== (`DMEM_BASE+16'h0010)) tb_error("====== Auto-increment (R6): R6     - test 3 =====");
398
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R6): R7     - test 3 =====");
399
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R6): R8     - test 3 =====");
400
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R6): R9     - test 3 =====");
401
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R6): R10    - test 3 =====");
402
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R6): R11    - test 3 =====");
403
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R6): R12    - test 3 =====");
404
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R6): R13    - test 3 =====");
405
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R6): R14    - test 3 =====");
406
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R6): R15    - test 3 =====");
407
      if (mem202 !== 16'h00BB)              tb_error("====== Auto-increment (R6): @0x202 - test 3 =====");
408
 
409
 
410
      // Auto-increment: R7
411
      //--------------------------------------------------------
412
      @(mem200==16'h7000);
413
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R7): R1     - test 1 =====");
414
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R7): R2     - test 1 =====");
415
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R7): R3     - test 1 =====");
416
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R7): R4     - test 1 =====");
417
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R7): R5     - test 1 =====");
418
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R7): R6     - test 1 =====");
419
      if (r7     !== (`DMEM_BASE+16'h0010)) tb_error("====== Auto-increment (R7): R7     - test 1 =====");
420
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R7): R8     - test 1 =====");
421
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R7): R9     - test 1 =====");
422
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R7): R10    - test 1 =====");
423
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R7): R11    - test 1 =====");
424
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R7): R12    - test 1 =====");
425
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R7): R13    - test 1 =====");
426
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R7): R14    - test 1 =====");
427
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R7): R15    - test 1 =====");
428
      if (mem202 !== 16'h0000)              tb_error("====== Auto-increment (R7): @0x202 - test 1 =====");
429
 
430
      @(mem200==16'h7001);
431
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R7): R1     - test 2 =====");
432
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R7): R2     - test 2 =====");
433
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R7): R3     - test 2 =====");
434
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R7): R4     - test 2 =====");
435
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R7): R5     - test 2 =====");
436
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R7): R6     - test 2 =====");
437
      if (r7     !== (`DMEM_BASE+16'h0011)) tb_error("====== Auto-increment (R7): R7     - test 2 =====");
438
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R7): R8     - test 2 =====");
439
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R7): R9     - test 2 =====");
440
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R7): R10    - test 2 =====");
441
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R7): R11    - test 2 =====");
442
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R7): R12    - test 2 =====");
443
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R7): R13    - test 2 =====");
444
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R7): R14    - test 2 =====");
445
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R7): R15    - test 2 =====");
446
      if (mem202 !== 16'h00EE)              tb_error("====== Auto-increment (R7): @0x202 - test 2 =====");
447
 
448
      @(mem200==16'h7002);
449
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R7): R1     - test 3 =====");
450
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R7): R2     - test 3 =====");
451
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R7): R3     - test 3 =====");
452
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R7): R4     - test 3 =====");
453
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R7): R5     - test 3 =====");
454
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R7): R6     - test 3 =====");
455
      if (r7     !== (`DMEM_BASE+16'h0012)) tb_error("====== Auto-increment (R7): R7     - test 3 =====");
456
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R7): R8     - test 3 =====");
457
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R7): R9     - test 3 =====");
458
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R7): R10    - test 3 =====");
459
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R7): R11    - test 3 =====");
460
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R7): R12    - test 3 =====");
461
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R7): R13    - test 3 =====");
462
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R7): R14    - test 3 =====");
463
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R7): R15    - test 3 =====");
464
      if (mem202 !== 16'h00DD)              tb_error("====== Auto-increment (R7): @0x202 - test 3 =====");
465
 
466
 
467
      // Auto-increment: R8
468
      //--------------------------------------------------------
469
      @(mem200==16'h8000);
470
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R8): R1     - test 1 =====");
471
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R8): R2     - test 1 =====");
472
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R8): R3     - test 1 =====");
473
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R8): R4     - test 1 =====");
474
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R8): R5     - test 1 =====");
475
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R8): R6     - test 1 =====");
476
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R8): R7     - test 1 =====");
477
      if (r8     !== (`DMEM_BASE+16'h0012)) tb_error("====== Auto-increment (R8): R8     - test 1 =====");
478
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R8): R9     - test 1 =====");
479
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R8): R10    - test 1 =====");
480
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R8): R11    - test 1 =====");
481
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R8): R12    - test 1 =====");
482
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R8): R13    - test 1 =====");
483
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R8): R14    - test 1 =====");
484
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R8): R15    - test 1 =====");
485
      if (mem202 !== 16'h0000)              tb_error("====== Auto-increment (R8): @0x202 - test 1 =====");
486
 
487
      @(mem200==16'h8001);
488
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R8): R1     - test 2 =====");
489
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R8): R2     - test 2 =====");
490
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R8): R3     - test 2 =====");
491
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R8): R4     - test 2 =====");
492
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R8): R5     - test 2 =====");
493
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R8): R6     - test 2 =====");
494
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R8): R7     - test 2 =====");
495
      if (r8     !== (`DMEM_BASE+16'h0013)) tb_error("====== Auto-increment (R8): R8     - test 2 =====");
496
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R8): R9     - test 2 =====");
497
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R8): R10    - test 2 =====");
498
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R8): R11    - test 2 =====");
499
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R8): R12    - test 2 =====");
500
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R8): R13    - test 2 =====");
501
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R8): R14    - test 2 =====");
502
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R8): R15    - test 2 =====");
503
      if (mem202 !== 16'h0021)              tb_error("====== Auto-increment (R8): @0x202 - test 2 =====");
504
 
505
      @(mem200==16'h8002);
506
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R8): R1     - test 3 =====");
507
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R8): R2     - test 3 =====");
508
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R8): R3     - test 3 =====");
509
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R8): R4     - test 3 =====");
510
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R8): R5     - test 3 =====");
511
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R8): R6     - test 3 =====");
512
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R8): R7     - test 3 =====");
513
      if (r8     !== (`DMEM_BASE+16'h0014)) tb_error("====== Auto-increment (R8): R8     - test 3 =====");
514
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R8): R9     - test 3 =====");
515
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R8): R10    - test 3 =====");
516
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R8): R11    - test 3 =====");
517
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R8): R12    - test 3 =====");
518
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R8): R13    - test 3 =====");
519
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R8): R14    - test 3 =====");
520
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R8): R15    - test 3 =====");
521
      if (mem202 !== 16'h00FF)              tb_error("====== Auto-increment (R8): @0x202 - test 3 =====");
522
 
523
 
524
      // Auto-increment: R9
525
      //--------------------------------------------------------
526
      @(mem200==16'h9000);
527
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R9): R1     - test 1 =====");
528
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R9): R2     - test 1 =====");
529
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R9): R3     - test 1 =====");
530
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R9): R4     - test 1 =====");
531
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R9): R5     - test 1 =====");
532
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R9): R6     - test 1 =====");
533
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R9): R7     - test 1 =====");
534
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R9): R8     - test 1 =====");
535
      if (r9     !== (`DMEM_BASE+16'h0014)) tb_error("====== Auto-increment (R9): R9     - test 1 =====");
536
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R9): R10    - test 1 =====");
537
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R9): R11    - test 1 =====");
538
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R9): R12    - test 1 =====");
539
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R9): R13    - test 1 =====");
540
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R9): R14    - test 1 =====");
541
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R9): R15    - test 1 =====");
542
      if (mem202 !== 16'h0000)              tb_error("====== Auto-increment (R9): @0x202 - test 1 =====");
543
 
544
      @(mem200==16'h9001);
545
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R9): R1     - test 2 =====");
546
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R9): R2     - test 2 =====");
547
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R9): R3     - test 2 =====");
548
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R9): R4     - test 2 =====");
549
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R9): R5     - test 2 =====");
550
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R9): R6     - test 2 =====");
551
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R9): R7     - test 2 =====");
552
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R9): R8     - test 2 =====");
553
      if (r9     !== (`DMEM_BASE+16'h0015)) tb_error("====== Auto-increment (R9): R9     - test 2 =====");
554
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R9): R10    - test 2 =====");
555
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R9): R11    - test 2 =====");
556
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R9): R12    - test 2 =====");
557
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R9): R13    - test 2 =====");
558
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R9): R14    - test 2 =====");
559
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R9): R15    - test 2 =====");
560
      if (mem202 !== 16'h0023)              tb_error("====== Auto-increment (R9): @0x202 - test 2 =====");
561
 
562
      @(mem200==16'h9002);
563
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R9): R1     - test 3 =====");
564
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R9): R2     - test 3 =====");
565
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R9): R3     - test 3 =====");
566
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R9): R4     - test 3 =====");
567
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R9): R5     - test 3 =====");
568
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R9): R6     - test 3 =====");
569
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R9): R7     - test 3 =====");
570
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R9): R8     - test 3 =====");
571
      if (r9     !== (`DMEM_BASE+16'h0016)) tb_error("====== Auto-increment (R9): R9     - test 3 =====");
572
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R9): R10    - test 3 =====");
573
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R9): R11    - test 3 =====");
574
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R9): R12    - test 3 =====");
575
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R9): R13    - test 3 =====");
576
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R9): R14    - test 3 =====");
577
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R9): R15    - test 3 =====");
578
      if (mem202 !== 16'h0012)              tb_error("====== Auto-increment (R9): @0x202 - test 3 =====");
579
 
580
 
581
      // Auto-increment: R10
582
      //--------------------------------------------------------
583
      @(mem200==16'hA000);
584
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R10): R1     - test 1 =====");
585
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R10): R2     - test 1 =====");
586
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R10): R3     - test 1 =====");
587
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R10): R4     - test 1 =====");
588
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R10): R5     - test 1 =====");
589
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R10): R6     - test 1 =====");
590
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R10): R7     - test 1 =====");
591
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R10): R8     - test 1 =====");
592
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R10): R9     - test 1 =====");
593
      if (r10    !== (`DMEM_BASE+16'h0016)) tb_error("====== Auto-increment (R10): R10    - test 1 =====");
594
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R10): R11    - test 1 =====");
595
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R10): R12    - test 1 =====");
596
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R10): R13    - test 1 =====");
597
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R10): R14    - test 1 =====");
598
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R10): R15    - test 1 =====");
599
      if (mem202 !== 16'h0000)              tb_error("====== Auto-increment (R10): @0x202 - test 1 =====");
600
 
601
      @(mem200==16'hA001);
602
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R10): R1     - test 2 =====");
603
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R10): R2     - test 2 =====");
604
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R10): R3     - test 2 =====");
605
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R10): R4     - test 2 =====");
606
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R10): R5     - test 2 =====");
607
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R10): R6     - test 2 =====");
608
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R10): R7     - test 2 =====");
609
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R10): R8     - test 2 =====");
610
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R10): R9     - test 2 =====");
611
      if (r10    !== (`DMEM_BASE+16'h0017)) tb_error("====== Auto-increment (R10): R10    - test 2 =====");
612
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R10): R11    - test 2 =====");
613
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R10): R12    - test 2 =====");
614
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R10): R13    - test 2 =====");
615
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R10): R14    - test 2 =====");
616
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R10): R15    - test 2 =====");
617
      if (mem202 !== 16'h0045)              tb_error("====== Auto-increment (R10): @0x202 - test 2 =====");
618
 
619
      @(mem200==16'hA002);
620
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R10): R1     - test 3 =====");
621
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R10): R2     - test 3 =====");
622
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R10): R3     - test 3 =====");
623
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R10): R4     - test 3 =====");
624
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R10): R5     - test 3 =====");
625
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R10): R6     - test 3 =====");
626
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R10): R7     - test 3 =====");
627
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R10): R8     - test 3 =====");
628
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R10): R9     - test 3 =====");
629
      if (r10    !== (`DMEM_BASE+16'h0018)) tb_error("====== Auto-increment (R10): R10    - test 3 =====");
630
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R10): R11    - test 3 =====");
631
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R10): R12    - test 3 =====");
632
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R10): R13    - test 3 =====");
633
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R10): R14    - test 3 =====");
634
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R10): R15    - test 3 =====");
635
      if (mem202 !== 16'h0034)              tb_error("====== Auto-increment (R10): @0x202 - test 3 =====");
636
 
637
 
638
      // Auto-increment: R11
639
      //--------------------------------------------------------
640
      @(mem200==16'hB000);
641
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R11): R1     - test 1 =====");
642
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R11): R2     - test 1 =====");
643
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R11): R3     - test 1 =====");
644
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R11): R4     - test 1 =====");
645
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R11): R5     - test 1 =====");
646
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R11): R6     - test 1 =====");
647
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R11): R7     - test 1 =====");
648
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R11): R8     - test 1 =====");
649
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R11): R9     - test 1 =====");
650
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R11): R10    - test 1 =====");
651
      if (r11    !== (`DMEM_BASE+16'h0018)) tb_error("====== Auto-increment (R11): R11    - test 1 =====");
652
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R11): R12    - test 1 =====");
653
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R11): R13    - test 1 =====");
654
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R11): R14    - test 1 =====");
655
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R11): R15    - test 1 =====");
656
      if (mem202 !== 16'h0000)              tb_error("====== Auto-increment (R11): @0x202 - test 1 =====");
657
 
658
      @(mem200==16'hB001);
659
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R11): R1     - test 2 =====");
660
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R11): R2     - test 2 =====");
661
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R11): R3     - test 2 =====");
662
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R11): R4     - test 2 =====");
663
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R11): R5     - test 2 =====");
664
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R11): R6     - test 2 =====");
665
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R11): R7     - test 2 =====");
666
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R11): R8     - test 2 =====");
667
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R11): R9     - test 2 =====");
668
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R11): R10    - test 2 =====");
669
      if (r11    !== (`DMEM_BASE+16'h0019)) tb_error("====== Auto-increment (R11): R11    - test 2 =====");
670
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R11): R12    - test 2 =====");
671
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R11): R13    - test 2 =====");
672
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R11): R14    - test 2 =====");
673
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R11): R15    - test 2 =====");
674
      if (mem202 !== 16'h0067)              tb_error("====== Auto-increment (R11): @0x202 - test 2 =====");
675
 
676
      @(mem200==16'hB002);
677
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R11): R1     - test 3 =====");
678
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R11): R2     - test 3 =====");
679
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R11): R3     - test 3 =====");
680
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R11): R4     - test 3 =====");
681
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R11): R5     - test 3 =====");
682
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R11): R6     - test 3 =====");
683
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R11): R7     - test 3 =====");
684
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R11): R8     - test 3 =====");
685
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R11): R9     - test 3 =====");
686
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R11): R10    - test 3 =====");
687
      if (r11    !== (`DMEM_BASE+16'h001A)) tb_error("====== Auto-increment (R11): R11    - test 3 =====");
688
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R11): R12    - test 3 =====");
689
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R11): R13    - test 3 =====");
690
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R11): R14    - test 3 =====");
691
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R11): R15    - test 3 =====");
692
      if (mem202 !== 16'h0056)              tb_error("====== Auto-increment (R11): @0x202 - test 3 =====");
693
 
694
 
695
      // Auto-increment: R12
696
      //--------------------------------------------------------
697
      @(mem200==16'hC000);
698
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R12): R1     - test 1 =====");
699
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R12): R2     - test 1 =====");
700
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R12): R3     - test 1 =====");
701
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R12): R4     - test 1 =====");
702
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R12): R5     - test 1 =====");
703
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R12): R6     - test 1 =====");
704
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R12): R7     - test 1 =====");
705
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R12): R8     - test 1 =====");
706
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R12): R9     - test 1 =====");
707
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R12): R10    - test 1 =====");
708
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R12): R11    - test 1 =====");
709
      if (r12    !== (`DMEM_BASE+16'h001A)) tb_error("====== Auto-increment (R12): R12    - test 1 =====");
710
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R12): R13    - test 1 =====");
711
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R12): R14    - test 1 =====");
712
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R12): R15    - test 1 =====");
713
      if (mem202 !== 16'h0000)              tb_error("====== Auto-increment (R12): @0x202 - test 1 =====");
714
 
715
      @(mem200==16'hC001);
716
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R12): R1     - test 2 =====");
717
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R12): R2     - test 2 =====");
718
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R12): R3     - test 2 =====");
719
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R12): R4     - test 2 =====");
720
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R12): R5     - test 2 =====");
721
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R12): R6     - test 2 =====");
722
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R12): R7     - test 2 =====");
723
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R12): R8     - test 2 =====");
724
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R12): R9     - test 2 =====");
725
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R12): R10    - test 2 =====");
726
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R12): R11    - test 2 =====");
727
      if (r12    !== (`DMEM_BASE+16'h001B)) tb_error("====== Auto-increment (R12): R12    - test 2 =====");
728
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R12): R13    - test 2 =====");
729
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R12): R14    - test 2 =====");
730
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R12): R15    - test 2 =====");
731
      if (mem202 !== 16'h0089)              tb_error("====== Auto-increment (R12): @0x202 - test 2 =====");
732
 
733
      @(mem200==16'hC002);
734
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R12): R1     - test 3 =====");
735
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R12): R2     - test 3 =====");
736
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R12): R3     - test 3 =====");
737
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R12): R4     - test 3 =====");
738
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R12): R5     - test 3 =====");
739
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R12): R6     - test 3 =====");
740
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R12): R7     - test 3 =====");
741
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R12): R8     - test 3 =====");
742
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R12): R9     - test 3 =====");
743
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R12): R10    - test 3 =====");
744
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R12): R11    - test 3 =====");
745
      if (r12    !== (`DMEM_BASE+16'h001C)) tb_error("====== Auto-increment (R12): R12    - test 3 =====");
746
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R12): R13    - test 3 =====");
747
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R12): R14    - test 3 =====");
748
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R12): R15    - test 3 =====");
749
      if (mem202 !== 16'h0078)              tb_error("====== Auto-increment (R12): @0x202 - test 3 =====");
750
 
751
 
752
      // Auto-increment: R13
753
      //--------------------------------------------------------
754
      @(mem200==16'hD000);
755
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R13): R1     - test 1 =====");
756
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R13): R2     - test 1 =====");
757
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R13): R3     - test 1 =====");
758
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R13): R4     - test 1 =====");
759
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R13): R5     - test 1 =====");
760
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R13): R6     - test 1 =====");
761
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R13): R7     - test 1 =====");
762
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R13): R8     - test 1 =====");
763
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R13): R9     - test 1 =====");
764
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R13): R10    - test 1 =====");
765
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R13): R11    - test 1 =====");
766
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R13): R12    - test 1 =====");
767
      if (r13    !== (`DMEM_BASE+16'h001C)) tb_error("====== Auto-increment (R13): R13    - test 1 =====");
768
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R13): R14    - test 1 =====");
769
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R13): R15    - test 1 =====");
770
      if (mem202 !== 16'h0000)              tb_error("====== Auto-increment (R13): @0x202 - test 1 =====");
771
 
772
      @(mem200==16'hD001);
773
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R13): R1     - test 2 =====");
774
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R13): R2     - test 2 =====");
775
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R13): R3     - test 2 =====");
776
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R13): R4     - test 2 =====");
777
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R13): R5     - test 2 =====");
778
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R13): R6     - test 2 =====");
779
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R13): R7     - test 2 =====");
780
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R13): R8     - test 2 =====");
781
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R13): R9     - test 2 =====");
782
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R13): R10    - test 2 =====");
783
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R13): R11    - test 2 =====");
784
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R13): R12    - test 2 =====");
785
      if (r13    !== (`DMEM_BASE+16'h001D)) tb_error("====== Auto-increment (R13): R13    - test 2 =====");
786
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R13): R14    - test 2 =====");
787
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R13): R15    - test 2 =====");
788
      if (mem202 !== 16'h00AB)              tb_error("====== Auto-increment (R13): @0x202 - test 2 =====");
789
 
790
      @(mem200==16'hD002);
791
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R13): R1     - test 3 =====");
792
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R13): R2     - test 3 =====");
793
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R13): R3     - test 3 =====");
794
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R13): R4     - test 3 =====");
795
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R13): R5     - test 3 =====");
796
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R13): R6     - test 3 =====");
797
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R13): R7     - test 3 =====");
798
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R13): R8     - test 3 =====");
799
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R13): R9     - test 3 =====");
800
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R13): R10    - test 3 =====");
801
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R13): R11    - test 3 =====");
802
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R13): R12    - test 3 =====");
803
      if (r13    !== (`DMEM_BASE+16'h001E)) tb_error("====== Auto-increment (R13): R13    - test 3 =====");
804
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R13): R14    - test 3 =====");
805
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R13): R15    - test 3 =====");
806
      if (mem202 !== 16'h009A)              tb_error("====== Auto-increment (R13): @0x202 - test 3 =====");
807
 
808
 
809
      // Auto-increment: R14
810
      //--------------------------------------------------------
811
      @(mem200==16'hE000);
812
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R14): R1     - test 1 =====");
813
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R14): R2     - test 1 =====");
814
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R14): R3     - test 1 =====");
815
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R14): R4     - test 1 =====");
816
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R14): R5     - test 1 =====");
817
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R14): R6     - test 1 =====");
818
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R14): R7     - test 1 =====");
819
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R14): R8     - test 1 =====");
820
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R14): R9     - test 1 =====");
821
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R14): R10    - test 1 =====");
822
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R14): R11    - test 1 =====");
823
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R14): R12    - test 1 =====");
824
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R14): R13    - test 1 =====");
825
      if (r14    !== (`DMEM_BASE+16'h001E)) tb_error("====== Auto-increment (R14): R14    - test 1 =====");
826
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R14): R15    - test 1 =====");
827
      if (mem202 !== 16'h0000)              tb_error("====== Auto-increment (R14): @0x202 - test 1 =====");
828
 
829
      @(mem200==16'hE001);
830
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R14): R1     - test 2 =====");
831
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R14): R2     - test 2 =====");
832
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R14): R3     - test 2 =====");
833
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R14): R4     - test 2 =====");
834
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R14): R5     - test 2 =====");
835
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R14): R6     - test 2 =====");
836
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R14): R7     - test 2 =====");
837
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R14): R8     - test 2 =====");
838
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R14): R9     - test 2 =====");
839
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R14): R10    - test 2 =====");
840
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R14): R11    - test 2 =====");
841
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R14): R12    - test 2 =====");
842
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R14): R13    - test 2 =====");
843
      if (r14    !== (`DMEM_BASE+16'h001F)) tb_error("====== Auto-increment (R14): R14    - test 2 =====");
844
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R14): R15    - test 2 =====");
845
      if (mem202 !== 16'h00CD)              tb_error("====== Auto-increment (R14): @0x202 - test 2 =====");
846
 
847
      @(mem200==16'hE002);
848
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R14): R1     - test 3 =====");
849
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R14): R2     - test 3 =====");
850
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R14): R3     - test 3 =====");
851
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R14): R4     - test 3 =====");
852
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R14): R5     - test 3 =====");
853
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R14): R6     - test 3 =====");
854
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R14): R7     - test 3 =====");
855
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R14): R8     - test 3 =====");
856
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R14): R9     - test 3 =====");
857
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R14): R10    - test 3 =====");
858
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R14): R11    - test 3 =====");
859
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R14): R12    - test 3 =====");
860
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R14): R13    - test 3 =====");
861
      if (r14    !== (`DMEM_BASE+16'h0020)) tb_error("====== Auto-increment (R14): R14    - test 3 =====");
862
      if (r15    !== 16'h0000)              tb_error("====== Auto-increment (R14): R15    - test 3 =====");
863
      if (mem202 !== 16'h00BC)              tb_error("====== Auto-increment (R14): @0x202 - test 3 =====");
864
 
865
 
866
      // Auto-increment: R15
867
      //--------------------------------------------------------
868
      @(mem200==16'hF000);
869
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R15): R1     - test 1 =====");
870
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R15): R2     - test 1 =====");
871
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R15): R3     - test 1 =====");
872
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R15): R4     - test 1 =====");
873
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R15): R5     - test 1 =====");
874
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R15): R6     - test 1 =====");
875
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R15): R7     - test 1 =====");
876
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R15): R8     - test 1 =====");
877
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R15): R9     - test 1 =====");
878
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R15): R10    - test 1 =====");
879
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R15): R11    - test 1 =====");
880
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R15): R12    - test 1 =====");
881
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R15): R13    - test 1 =====");
882
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R15): R14    - test 1 =====");
883
      if (r15    !== (`DMEM_BASE+16'h0020)) tb_error("====== Auto-increment (R15): R15    - test 1 =====");
884
      if (mem202 !== 16'h0000)              tb_error("====== Auto-increment (R15): @0x202 - test 1 =====");
885
 
886
      @(mem200==16'hF001);
887
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R15): R1     - test 2 =====");
888
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R15): R2     - test 2 =====");
889
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R15): R3     - test 2 =====");
890
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R15): R4     - test 2 =====");
891
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R15): R5     - test 2 =====");
892
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R15): R6     - test 2 =====");
893
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R15): R7     - test 2 =====");
894
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R15): R8     - test 2 =====");
895
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R15): R9     - test 2 =====");
896
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R15): R10    - test 2 =====");
897
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R15): R11    - test 2 =====");
898
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R15): R12    - test 2 =====");
899
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R15): R13    - test 2 =====");
900
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R15): R14    - test 2 =====");
901
      if (r15    !== (`DMEM_BASE+16'h0021)) tb_error("====== Auto-increment (R15): R15    - test 2 =====");
902
      if (mem202 !== 16'h00EF)              tb_error("====== Auto-increment (R15): @0x202 - test 2 =====");
903
 
904
      @(mem200==16'hF002);
905
      if (r1     !== 16'h0000)              tb_error("====== Auto-increment (R15): R1     - test 3 =====");
906
      if (r2     !== 16'h0000)              tb_error("====== Auto-increment (R15): R2     - test 3 =====");
907
      if (r3     !== 16'h0000)              tb_error("====== Auto-increment (R15): R3     - test 3 =====");
908
      if (r4     !== 16'h0000)              tb_error("====== Auto-increment (R15): R4     - test 3 =====");
909
      if (r5     !== 16'h0000)              tb_error("====== Auto-increment (R15): R5     - test 3 =====");
910
      if (r6     !== 16'h0000)              tb_error("====== Auto-increment (R15): R6     - test 3 =====");
911
      if (r7     !== 16'h0000)              tb_error("====== Auto-increment (R15): R7     - test 3 =====");
912
      if (r8     !== 16'h0000)              tb_error("====== Auto-increment (R15): R8     - test 3 =====");
913
      if (r9     !== 16'h0000)              tb_error("====== Auto-increment (R15): R9     - test 3 =====");
914
      if (r10    !== 16'h0000)              tb_error("====== Auto-increment (R15): R10    - test 3 =====");
915
      if (r11    !== 16'h0000)              tb_error("====== Auto-increment (R15): R11    - test 3 =====");
916
      if (r12    !== 16'h0000)              tb_error("====== Auto-increment (R15): R12    - test 3 =====");
917
      if (r13    !== 16'h0000)              tb_error("====== Auto-increment (R15): R13    - test 3 =====");
918
      if (r14    !== 16'h0000)              tb_error("====== Auto-increment (R15): R14    - test 3 =====");
919
      if (r15    !== (`DMEM_BASE+16'h0022)) tb_error("====== Auto-increment (R15): R15    - test 3 =====");
920
      if (mem202 !== 16'h00DE)              tb_error("====== Auto-increment (R15): @0x202 - test 3 =====");
921
 
922
 
923
 
924
 
925 200 olivier.gi
 
926 134 olivier.gi
      stimulus_done = 1;
927
   end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.