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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [src/] [tA_output.v] - Blame information for rev 219

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 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
/*                                  TIMER A                                  */
25
/*---------------------------------------------------------------------------*/
26
/* Test the timer A:                                                         */
27
/*                        - Check the timer output unit.                     */
28 18 olivier.gi
/*                                                                           */
29
/* Author(s):                                                                */
30
/*             - Olivier Girard,    olgirard@gmail.com                       */
31
/*                                                                           */
32
/*---------------------------------------------------------------------------*/
33 19 olivier.gi
/* $Rev: 202 $                                                                */
34
/* $LastChangedBy: olivier.girard $                                          */
35
/* $LastChangedDate: 2015-07-01 23:13:32 +0200 (Wed, 01 Jul 2015) $          */
36 2 olivier.gi
/*===========================================================================*/
37
 
38
integer my_counter;
39
always @ (posedge mclk)
40
  my_counter <=  my_counter+1;
41
 
42
wire [15:0] tar = timerA_0.tar;
43 202 olivier.gi
 
44 2 olivier.gi
initial
45
   begin
46
      $display(" ===============================================");
47
      $display("|                 START SIMULATION              |");
48
      $display(" ===============================================");
49
      repeat(5) @(posedge mclk);
50
      stimulus_done = 0;
51
 
52 180 olivier.gi
`ifdef ASIC_CLOCKING
53 202 olivier.gi
      tb_skip_finish("|   (this test is not supported in ASIC mode)   |");
54 134 olivier.gi
`else
55
 
56 2 olivier.gi
      // TIMER A TEST:  COMPARATOR 0
57
      //--------------------------------------------------------
58
 
59
                                // --------- Output       (mode 0) ----------
60
      @(mem200 === 16'h0001);
61
      if (ta_out0 !== 1'b1) tb_error("====== TIMER_A COMPARE 0: Output (mode 0) =====");
62
      @(mem200 === 16'h0002);
63
      if (ta_out0 !== 1'b0) tb_error("====== TIMER_A COMPARE 0: Output (mode 0) =====");
64
 
65 202 olivier.gi
 
66 2 olivier.gi
                                // --------- Set          (mode 1) ----------
67
      @(mem200 === 16'h0003);
68
      @(tar === 16'h0014);
69
      if (ta_out0 !== 1'b0) tb_error("====== TIMER_A COMPARE 0: Set (mode 1) =====");
70
      @(tar === 16'h0015);
71
      if (ta_out0 !== 1'b1) tb_error("====== TIMER_A COMPARE 0: Set (mode 1) =====");
72
      @(tar === 16'h0014);
73
      if (ta_out0 !== 1'b1) tb_error("====== TIMER_A COMPARE 0: Set (mode 1) =====");
74
      @(tar === 16'h0015);
75
      if (ta_out0 !== 1'b1) tb_error("====== TIMER_A COMPARE 0: Set (mode 1) =====");
76
      @(mem200 === 16'h0004);
77
      if (ta_out0 !== 1'b0) tb_error("====== TIMER_A COMPARE 0: Set (mode 1) =====");
78
 
79 202 olivier.gi
 
80 2 olivier.gi
                                // --------- Toggle       (mode 4) ----------
81
      @(mem200 === 16'h0005);
82
      @(tar === 16'h0014);
83
      if (ta_out0 !== 1'b0) tb_error("====== TIMER_A COMPARE 0: Toggle (mode 4) =====");
84
      @(tar === 16'h0015);
85
      if (ta_out0 !== 1'b1) tb_error("====== TIMER_A COMPARE 0: Toggle (mode 4) =====");
86
      @(tar === 16'h0014);
87
      if (ta_out0 !== 1'b1) tb_error("====== TIMER_A COMPARE 0: Toggle (mode 4) =====");
88
      @(tar === 16'h0015);
89
      if (ta_out0 !== 1'b0) tb_error("====== TIMER_A COMPARE 0: Toggle (mode 4) =====");
90
 
91 202 olivier.gi
 
92 2 olivier.gi
                                // --------- Reset        (mode 5) ----------
93
      @(mem200 === 16'h0006);
94
      @(tar === 16'h0014);
95
      if (ta_out0 !== 1'b1) tb_error("====== TIMER_A COMPARE 0: Reset (mode 5) =====");
96
      @(tar === 16'h0015);
97
      if (ta_out0 !== 1'b0) tb_error("====== TIMER_A COMPARE 0: Reset (mode 5) =====");
98
      @(tar === 16'h0014);
99
      if (ta_out0 !== 1'b0) tb_error("====== TIMER_A COMPARE 0: Reset (mode 5) =====");
100
      @(tar === 16'h0015);
101
      if (ta_out0 !== 1'b0) tb_error("====== TIMER_A COMPARE 0: Reset (mode 5) =====");
102
 
103 202 olivier.gi
 
104 2 olivier.gi
      // TIMER A TEST:  COMPARATOR 1
105
      //--------------------------------------------------------
106
      @(r15 === 16'h1000);
107
 
108
                                // --------- Output       (mode 0) ----------
109
      @(mem200 === 16'h0001);
110
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Output (mode 0) =====");
111
      @(mem200 === 16'h0002);
112
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Output (mode 0) =====");
113
 
114 202 olivier.gi
 
115 2 olivier.gi
                                // --------- Set          (mode 1) ----------
116
      @(mem200 === 16'h0003);
117
      @(tar === 16'h0014);
118
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Set (mode 1) =====");
119
      @(tar === 16'h0015);
120
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Set (mode 1) =====");
121
      @(tar === 16'h0014);
122
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Set (mode 1) =====");
123
      @(tar === 16'h0015);
124
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Set (mode 1) =====");
125
      @(mem200 === 16'h0004);
126
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Set (mode 1) =====");
127
 
128
 
129
                                // --------- Toggle/Reset (mode 2) ----------
130
      @(mem200 === 16'h0005);
131
      @(tar === 16'h0014);
132
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Toggle/Reset (mode 2) =====");
133
      @(tar === 16'h0015);
134
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Toggle/Reset (mode 2) =====");
135
      @(tar === 16'h001f);
136
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Toggle/Reset (mode 2) =====");
137
      @(tar === 16'h0020);
138
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Toggle/Reset (mode 2) =====");
139
 
140
      @(mem200 === 16'h0006);
141
      @(tar === 16'h0014);
142
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Toggle/Reset (mode 2) =====");
143
      @(tar === 16'h0015);
144
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Toggle/Reset (mode 2) =====");
145
      @(tar === 16'h001f);
146
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Toggle/Reset (mode 2) =====");
147
      @(tar === 16'h0020);
148
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Toggle/Reset (mode 2) =====");
149
 
150 202 olivier.gi
 
151 2 olivier.gi
                                // --------- Set/Reset (mode 3) ----------
152
      @(mem200 === 16'h0007);
153
      @(tar === 16'h0014);
154
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Set/Reset (mode 3) =====");
155
      @(tar === 16'h0015);
156
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Set/Reset (mode 3) =====");
157
      @(tar === 16'h001f);
158
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Set/Reset (mode 3) =====");
159
      @(tar === 16'h0020);
160
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Set/Reset (mode 3) =====");
161
 
162
      @(mem200 === 16'h0008);
163
      @(tar === 16'h0014);
164
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Set/Reset (mode 3) =====");
165
      @(tar === 16'h0015);
166
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Set/Reset (mode 3) =====");
167
      @(tar === 16'h001f);
168
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Set/Reset (mode 3) =====");
169
      @(tar === 16'h0020);
170
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Set/Reset (mode 3) =====");
171
 
172 202 olivier.gi
 
173 2 olivier.gi
                                // --------- Toggle (mode 4) ----------
174
      @(mem200 === 16'h0009);
175
      @(tar === 16'h0014);
176
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Toggle (mode 4) =====");
177
      @(tar === 16'h0015);
178
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Toggle (mode 4) =====");
179
      @(tar === 16'h0014);
180
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Toggle (mode 4) =====");
181
      @(tar === 16'h0015);
182
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Toggle (mode 4) =====");
183
 
184 202 olivier.gi
 
185 2 olivier.gi
                                // --------- Reset  (mode 5) ----------
186
      @(mem200 === 16'h000A);
187
      @(tar === 16'h0014);
188
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Reset (mode 5) =====");
189
      @(tar === 16'h0015);
190
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Reset (mode 5) =====");
191
      @(tar === 16'h0014);
192
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Reset (mode 5) =====");
193
      @(tar === 16'h0015);
194
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Reset (mode 5) =====");
195
 
196 202 olivier.gi
 
197 2 olivier.gi
                                // --------- Toggle/Set (mode 6) ----------
198
      @(mem200 === 16'h000B);
199
      @(tar === 16'h0014);
200
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Toggle/Set (mode 6) =====");
201
      @(tar === 16'h0015);
202
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Toggle/Set (mode 6) =====");
203
      @(tar === 16'h001f);
204
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Toggle/Set (mode 6) =====");
205
      @(tar === 16'h0020);
206
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Toggle/Set (mode 6) =====");
207
 
208
      @(mem200 === 16'h000C);
209
      @(tar === 16'h0014);
210
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Toggle/Set (mode 6) =====");
211
      @(tar === 16'h0015);
212
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Toggle/Set (mode 6) =====");
213
      @(tar === 16'h001f);
214
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Toggle/Set (mode 6) =====");
215
      @(tar === 16'h0020);
216
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Toggle/Set (mode 6) =====");
217
 
218 202 olivier.gi
 
219 2 olivier.gi
                                // --------- Reset/Set (mode 7) ----------
220
      @(mem200 === 16'h000D);
221
      @(tar === 16'h0014);
222
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Reset/Set (mode 7) =====");
223
      @(tar === 16'h0015);
224
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Reset/Set (mode 7) =====");
225
      @(tar === 16'h001f);
226
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Reset/Set (mode 7) =====");
227
      @(tar === 16'h0020);
228
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Reset/Set (mode 7) =====");
229
 
230
      @(mem200 === 16'h000E);
231
      @(tar === 16'h0014);
232
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Reset/Set (mode 7) =====");
233
      @(tar === 16'h0015);
234
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Reset/Set (mode 7) =====");
235
      @(tar === 16'h001f);
236
      if (ta_out1 !== 1'b0) tb_error("====== TIMER_A COMPARE 1: Reset/Set (mode 7) =====");
237
      @(tar === 16'h0020);
238
      if (ta_out1 !== 1'b1) tb_error("====== TIMER_A COMPARE 1: Reset/Set (mode 7) =====");
239
 
240 202 olivier.gi
 
241 2 olivier.gi
      // TIMER A TEST:  COMPARATOR 2
242
      //--------------------------------------------------------
243
      @(r15 === 16'h2000);
244
 
245
                                // --------- Output       (mode 0) ----------
246
      @(mem200 === 16'h0001);
247
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Output (mode 0) =====");
248
      @(mem200 === 16'h0002);
249
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Output (mode 0) =====");
250
 
251
 
252
                                // --------- Set          (mode 1) ----------
253
      @(mem200 === 16'h0003);
254
      @(tar === 16'h0014);
255
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Set (mode 1) =====");
256
      @(tar === 16'h0015);
257
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Set (mode 1) =====");
258
      @(tar === 16'h0014);
259
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Set (mode 1) =====");
260
      @(tar === 16'h0015);
261
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Set (mode 1) =====");
262
      @(mem200 === 16'h0004);
263
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Set (mode 1) =====");
264
 
265
 
266
                                // --------- Toggle/Reset (mode 2) ----------
267
      @(mem200 === 16'h0005);
268
      @(tar === 16'h0014);
269
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Toggle/Reset (mode 2) =====");
270
      @(tar === 16'h0015);
271
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Toggle/Reset (mode 2) =====");
272
      @(tar === 16'h001f);
273
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Toggle/Reset (mode 2) =====");
274
      @(tar === 16'h0020);
275
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Toggle/Reset (mode 2) =====");
276
 
277
      @(mem200 === 16'h0006);
278
      @(tar === 16'h0014);
279
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Toggle/Reset (mode 2) =====");
280
      @(tar === 16'h0015);
281
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Toggle/Reset (mode 2) =====");
282
      @(tar === 16'h001f);
283
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Toggle/Reset (mode 2) =====");
284
      @(tar === 16'h0020);
285
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Toggle/Reset (mode 2) =====");
286
 
287 202 olivier.gi
 
288 2 olivier.gi
                                // --------- Set/Reset (mode 3) ----------
289
      @(mem200 === 16'h0007);
290
      @(tar === 16'h0014);
291
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Set/Reset (mode 3) =====");
292
      @(tar === 16'h0015);
293
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Set/Reset (mode 3) =====");
294
      @(tar === 16'h001f);
295
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Set/Reset (mode 3) =====");
296
      @(tar === 16'h0020);
297
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Set/Reset (mode 3) =====");
298
 
299
      @(mem200 === 16'h0008);
300
      @(tar === 16'h0014);
301
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Set/Reset (mode 3) =====");
302
      @(tar === 16'h0015);
303
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Set/Reset (mode 3) =====");
304
      @(tar === 16'h001f);
305
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Set/Reset (mode 3) =====");
306
      @(tar === 16'h0020);
307
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Set/Reset (mode 3) =====");
308
 
309 202 olivier.gi
 
310 2 olivier.gi
                                // --------- Toggle (mode 4) ----------
311
      @(mem200 === 16'h0009);
312
      @(tar === 16'h0014);
313
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Toggle (mode 4) =====");
314
      @(tar === 16'h0015);
315
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Toggle (mode 4) =====");
316
      @(tar === 16'h0014);
317
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Toggle (mode 4) =====");
318
      @(tar === 16'h0015);
319
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Toggle (mode 4) =====");
320
 
321 202 olivier.gi
 
322 2 olivier.gi
                                // --------- Reset  (mode 5) ----------
323
      @(mem200 === 16'h000A);
324
      @(tar === 16'h0014);
325
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Reset (mode 5) =====");
326
      @(tar === 16'h0015);
327
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Reset (mode 5) =====");
328
      @(tar === 16'h0014);
329
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Reset (mode 5) =====");
330
      @(tar === 16'h0015);
331
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Reset (mode 5) =====");
332
 
333 202 olivier.gi
 
334 2 olivier.gi
                                // --------- Toggle/Set (mode 6) ----------
335
      @(mem200 === 16'h000B);
336
      @(tar === 16'h0014);
337
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Toggle/Set (mode 6) =====");
338
      @(tar === 16'h0015);
339
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Toggle/Set (mode 6) =====");
340
      @(tar === 16'h001f);
341
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Toggle/Set (mode 6) =====");
342
      @(tar === 16'h0020);
343
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Toggle/Set (mode 6) =====");
344
 
345
      @(mem200 === 16'h000C);
346
      @(tar === 16'h0014);
347
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Toggle/Set (mode 6) =====");
348
      @(tar === 16'h0015);
349
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Toggle/Set (mode 6) =====");
350
      @(tar === 16'h001f);
351
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Toggle/Set (mode 6) =====");
352
      @(tar === 16'h0020);
353
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Toggle/Set (mode 6) =====");
354
 
355 202 olivier.gi
 
356 2 olivier.gi
                                // --------- Reset/Set (mode 7) ----------
357
      @(mem200 === 16'h000D);
358
      @(tar === 16'h0014);
359
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Reset/Set (mode 7) =====");
360
      @(tar === 16'h0015);
361
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Reset/Set (mode 7) =====");
362
      @(tar === 16'h001f);
363
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Reset/Set (mode 7) =====");
364
      @(tar === 16'h0020);
365
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Reset/Set (mode 7) =====");
366
 
367
      @(mem200 === 16'h000E);
368
      @(tar === 16'h0014);
369
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Reset/Set (mode 7) =====");
370
      @(tar === 16'h0015);
371
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Reset/Set (mode 7) =====");
372
      @(tar === 16'h001f);
373
      if (ta_out2 !== 1'b0) tb_error("====== TIMER_A COMPARE 2: Reset/Set (mode 7) =====");
374
      @(tar === 16'h0020);
375
      if (ta_out2 !== 1'b1) tb_error("====== TIMER_A COMPARE 2: Reset/Set (mode 7) =====");
376
 
377 134 olivier.gi
`endif
378 2 olivier.gi
 
379
      stimulus_done = 1;
380
   end

powered by: WebSVN 2.1.0

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