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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [rtl/] [verilog/] [openMSP430_undefines.v] - Blame information for rev 67

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

Line No. Rev Author Line
1 33 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
// 
25
// *File Name: openMSP430_undefines.v
26
// 
27
// *Module Description:
28
//                      openMSP430 Verilog `undef file
29
//
30
// *Author(s):
31
//              - Olivier Girard,    olgirard@gmail.com
32
//
33
//----------------------------------------------------------------------------
34
// $Rev: 23 $
35
// $LastChangedBy: olivier.girard $
36
// $LastChangedDate: 2009-08-30 18:39:26 +0200 (Sun, 30 Aug 2009) $
37
//----------------------------------------------------------------------------
38
 
39
//----------------------------------------------------------------------------
40
// SYSTEM CONFIGURATION
41
//----------------------------------------------------------------------------
42
 
43
// Program Memory Size:
44
`ifdef PMEM_AWIDTH
45
`undef PMEM_AWIDTH
46
`endif
47
 
48
// Data Memory Size:
49
`ifdef DMEM_AWIDTH
50
`undef DMEM_AWIDTH
51
`endif
52
 
53 67 olivier.gi
// Include/Exclude Hardware Multiplier
54
`ifdef MULTIPLIER
55
`undef MULTIPLIER
56
`endif
57
 
58 33 olivier.gi
//----------------------------------------------------------------------------
59
// REMOTE DEBUGGING INTERFACE CONFIGURATION
60
//----------------------------------------------------------------------------
61
 
62
// Include Debug interface
63
`ifdef DBG_EN
64
`undef DBG_EN
65
`endif
66
 
67
// Debug interface selection
68
`ifdef DBG_UART
69
`undef DBG_UART
70
`endif
71
`ifdef DBG_JTAG
72
`undef DBG_JTAG
73
`endif
74
 
75
// Number of hardware breakpoints
76
`ifdef DBG_HWBRK_0
77
`undef DBG_HWBRK_0
78
`endif
79
`ifdef DBG_HWBRK_1
80
`undef DBG_HWBRK_1
81
`endif
82
`ifdef DBG_HWBRK_2
83
`undef DBG_HWBRK_2
84
`endif
85
`ifdef DBG_HWBRK_3
86
`undef DBG_HWBRK_3
87
`endif
88
 
89
 
90
//==========================================================================//
91
//==========================================================================//
92
//==========================================================================//
93
//==========================================================================//
94
//=====        SYSTEM CONSTANTS --- !!!!!!!! DO NOT EDIT !!!!!!!!      =====//
95
//==========================================================================//
96
//==========================================================================//
97
//==========================================================================//
98
//==========================================================================//
99
 
100
// Program and Data Memory sizes
101
`ifdef PMEM_SIZE
102
`undef PMEM_SIZE
103
`endif
104
`ifdef DMEM_SIZE
105
`undef DMEM_SIZE
106
`endif
107
 
108
// Data Memory Base Adresses
109
`ifdef DMEM_BASE
110
`undef DMEM_BASE
111
`endif
112
 
113
// Program & Data Memory most significant address bit (for 16 bit words)
114
`ifdef PMEM_MSB
115
`undef PMEM_MSB
116
`endif
117
`ifdef DMEM_MSB
118
`undef DMEM_MSB
119
`endif
120
 
121
 
122
// Instructions type
123
`ifdef INST_SO
124
`undef INST_SO
125
`endif
126
`ifdef INST_JMP
127
`undef INST_JMP
128
`endif
129
`ifdef INST_TO
130
`undef INST_TO
131
`endif
132
 
133
// Single-operand arithmetic
134
`ifdef RRC
135
`undef RRC
136
`endif
137
`ifdef SWPB
138
`undef SWPB
139
`endif
140
`ifdef RRA
141
`undef RRA
142
`endif
143
`ifdef SXT
144
`undef SXT
145
`endif
146
`ifdef PUSH
147
`undef PUSH
148
`endif
149
`ifdef CALL
150
`undef CALL
151
`endif
152
`ifdef RETI
153
`undef RETI
154
`endif
155
`ifdef IRQ
156
`undef IRQ
157
`endif
158
 
159
// Conditional jump
160
`ifdef JNE
161
`undef JNE
162
`endif
163
`ifdef JEQ
164
`undef JEQ
165
`endif
166
`ifdef JNC
167
`undef JNC
168
`endif
169
`ifdef JC
170
`undef JC
171
`endif
172
`ifdef JN
173
`undef JN
174
`endif
175
`ifdef JGE
176
`undef JGE
177
`endif
178
`ifdef JL
179
`undef JL
180
`endif
181
`ifdef JMP
182
`undef JMP
183
`endif
184
 
185
// Two-operand arithmetic
186
`ifdef MOV
187
`undef MOV
188
`endif
189
`ifdef ADD
190
`undef ADD
191
`endif
192
`ifdef ADDC
193
`undef ADDC
194
`endif
195
`ifdef SUBC
196
`undef SUBC
197
`endif
198
`ifdef SUB
199
`undef SUB
200
`endif
201
`ifdef CMP
202
`undef CMP
203
`endif
204
`ifdef DADD
205
`undef DADD
206
`endif
207
`ifdef BIT
208
`undef BIT
209
`endif
210
`ifdef BIC
211
`undef BIC
212
`endif
213
`ifdef BIS
214
`undef BIS
215
`endif
216
`ifdef XOR
217
`undef XOR
218
`endif
219
`ifdef AND
220
`undef AND
221
`endif
222
 
223
// Addressing modes
224
`ifdef DIR
225
`undef DIR
226
`endif
227
`ifdef IDX
228
`undef IDX
229
`endif
230
`ifdef INDIR
231
`undef INDIR
232
`endif
233
`ifdef INDIR_I
234
`undef INDIR_I
235
`endif
236
`ifdef SYMB
237
`undef SYMB
238
`endif
239
`ifdef IMM
240
`undef IMM
241
`endif
242
`ifdef ABS
243
`undef ABS
244
`endif
245
`ifdef CONST
246
`undef CONST
247
`endif
248
 
249
// Execution state machine
250
`ifdef E_IRQ_0
251
`undef E_IRQ_0
252
`endif
253
`ifdef E_IRQ_1
254
`undef E_IRQ_1
255
`endif
256
`ifdef E_IRQ_2
257
`undef E_IRQ_2
258
`endif
259
`ifdef E_IRQ_3
260
`undef E_IRQ_3
261
`endif
262
`ifdef E_IRQ_4
263
`undef E_IRQ_4
264
`endif
265
`ifdef E_SRC_AD
266
`undef E_SRC_AD
267
`endif
268
`ifdef E_SRC_RD
269
`undef E_SRC_RD
270
`endif
271
`ifdef E_SRC_WR
272
`undef E_SRC_WR
273
`endif
274
`ifdef E_DST_AD
275
`undef E_DST_AD
276
`endif
277
`ifdef E_DST_RD
278
`undef E_DST_RD
279
`endif
280
`ifdef E_DST_WR
281
`undef E_DST_WR
282
`endif
283
`ifdef E_EXEC
284
`undef E_EXEC
285
`endif
286
`ifdef E_JUMP
287
`undef E_JUMP
288
`endif
289
`ifdef E_IDLE
290
`undef E_IDLE
291
`endif
292
 
293
// ALU control signals
294
`ifdef ALU_SRC_INV
295
`undef ALU_SRC_INV
296
`endif
297
`ifdef ALU_INC
298
`undef ALU_INC
299
`endif
300
`ifdef ALU_INC_C
301
`undef ALU_INC_C
302
`endif
303
`ifdef ALU_ADD
304
`undef ALU_ADD
305
`endif
306
`ifdef ALU_AND
307
`undef ALU_AND
308
`endif
309
`ifdef ALU_OR
310
`undef ALU_OR
311
`endif
312
`ifdef ALU_XOR
313
`undef ALU_XOR
314
`endif
315
`ifdef ALU_DADD
316
`undef ALU_DADD
317
`endif
318
`ifdef ALU_STAT_7
319
`undef ALU_STAT_7
320
`endif
321
`ifdef ALU_STAT_F
322
`undef ALU_STAT_F
323
`endif
324
`ifdef ALU_SHIFT
325
`undef ALU_SHIFT
326
`endif
327
`ifdef EXEC_NO_WR
328
`undef EXEC_NO_WR
329
`endif
330
 
331
// Debug interface
332
`ifdef DBG_UART_WR
333
`undef DBG_UART_WR
334
`endif
335
`ifdef DBG_UART_BW
336
`undef DBG_UART_BW
337
`endif
338
`ifdef DBG_UART_ADDR
339
`undef DBG_UART_ADDR
340
`endif
341
 
342
// Debug interface CPU_CTL register
343
`ifdef HALT
344
`undef HALT
345
`endif
346
`ifdef RUN
347
`undef RUN
348
`endif
349
`ifdef ISTEP
350
`undef ISTEP
351
`endif
352
`ifdef SW_BRK_EN
353
`undef SW_BRK_EN
354
`endif
355
`ifdef FRZ_BRK_EN
356
`undef FRZ_BRK_EN
357
`endif
358
`ifdef RST_BRK_EN
359
`undef RST_BRK_EN
360
`endif
361
`ifdef CPU_RST
362
`undef CPU_RST
363
`endif
364
 
365
// Debug interface CPU_STAT register
366
`ifdef HALT_RUN
367
`undef HALT_RUN
368
`endif
369
`ifdef PUC_PND
370
`undef PUC_PND
371
`endif
372
`ifdef SWBRK_PND
373
`undef SWBRK_PND
374
`endif
375
`ifdef HWBRK0_PND
376
`undef HWBRK0_PND
377
`endif
378
`ifdef HWBRK1_PND
379
`undef HWBRK1_PND
380
`endif
381
 
382
// Debug interface BRKx_CTL register
383
`ifdef BRK_MODE_RD
384
`undef BRK_MODE_RD
385
`endif
386
`ifdef BRK_MODE_WR
387
`undef BRK_MODE_WR
388
`endif
389
`ifdef BRK_MODE
390
`undef BRK_MODE
391
`endif
392
`ifdef BRK_EN
393
`undef BRK_EN
394
`endif
395
`ifdef BRK_I_EN
396
`undef BRK_I_EN
397
`endif
398
`ifdef BRK_RANGE
399
`undef BRK_RANGE
400
`endif
401
 
402
// Basic clock module: BCSCTL1 Control Register
403
`ifdef DIVAx
404
`undef DIVAx
405
`endif
406
 
407
// Basic clock module: BCSCTL2 Control Register
408
`ifdef SELS
409
`undef SELS
410
`endif
411
`ifdef DIVSx
412
`undef DIVSx
413
`endif
414
 
415
// Timer A: TACTL Control Register
416
`ifdef TASSELx
417
`undef TASSELx
418
`endif
419
`ifdef TAIDx
420
`undef TAIDx
421
`endif
422
`ifdef TAMCx
423
`undef TAMCx
424
`endif
425
`ifdef TACLR
426
`undef TACLR
427
`endif
428
`ifdef TAIE
429
`undef TAIE
430
`endif
431
`ifdef TAIFG
432
`undef TAIFG
433
`endif
434
 
435
// Timer A: TACCTLx Capture/Compare Control Register
436
`ifdef TACMx
437
`undef TACMx
438
`endif
439
`ifdef TACCISx
440
`undef TACCISx
441
`endif
442
`ifdef TASCS
443
`undef TASCS
444
`endif
445
`ifdef TASCCI
446
`undef TASCCI
447
`endif
448
`ifdef TACAP
449
`undef TACAP
450
`endif
451
`ifdef TAOUTMODx
452
`undef TAOUTMODx
453
`endif
454
`ifdef TACCIE
455
`undef TACCIE
456
`endif
457
`ifdef TACCI
458
`undef TACCI
459
`endif
460
`ifdef TAOUT
461
`undef TAOUT
462
`endif
463
`ifdef TACOV
464
`undef TACOV
465
`endif
466
`ifdef TACCIFG
467
`undef TACCIFG
468
`endif
469
 
470
//
471
// DEBUG INTERFACE EXTRA CONFIGURATION
472
//======================================
473
 
474
// Debug interface: Software breakpoint opcode
475
`ifdef DBG_SWBRK_OP
476
`undef DBG_SWBRK_OP
477
`endif
478
 
479
// Debug interface ID
480
`ifdef DBG_ID
481
`undef DBG_ID
482
`endif
483
 
484
// Debug UART interface auto data synchronization
485
`ifdef DBG_UART_AUTO_SYNC
486
`undef DBG_UART_AUTO_SYNC
487
`endif
488
 
489
// Debug UART interface data rate
490
`ifdef DBG_UART_BAUD
491
`undef DBG_UART_BAUD
492
`endif
493
`ifdef DBG_DCO_FREQ
494
`undef DBG_DCO_FREQ
495
`endif
496
`ifdef DBG_UART_CNT
497
`undef DBG_UART_CNT
498
`endif
499 57 olivier.gi
 
500
// Enable/Disable the hardware breakpoint RANGE mode
501
`ifdef HWBRK_RANGE
502
`undef HWBRK_RANGE
503 67 olivier.gi
`endif
504
 
505
//
506
// MULTIPLIER CONFIGURATION
507
//======================================
508
 
509
`ifdef MPY_16x16
510
`undef MPY_16x16
511
`endif

powered by: WebSVN 2.1.0

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