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

Subversion Repositories versatile_library

[/] [versatile_library/] [trunk/] [rtl/] [verilog/] [custom_defines.v] - Blame information for rev 148

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

Line No. Rev Author Line
1 139 unneback
//=tab Main
2
 
3
//=comment
4
//=comment Defines base part of module names
5
`define BASE vl_
6
 
7
//=comment Defines target technology
8
//=select
9
//`define GENERIC // GENERIC
10
`define ALTERA // ALTERA
11
//`define ACTEL // ACTEL
12
//=end
13
 
14
//=comment
15
//=comment Generate all modules
16 140 unneback
`define ALL
17 139 unneback
 
18
 
19
//=comment System Verilog
20
`define SYSTEMVERILOG
21
 
22
//=tab Clk and reset
23
 
24
//=comment Global buffer for high fanout signals
25 140 unneback
//`define GBUF
26
//`define SYNC_RST
27
//`define PLL
28 139 unneback
 
29
//=tab registers
30 140 unneback
//`define DFF
31
//`define DFF_ARRAY
32
//`define DFF_CE
33
//`define DFF_CE_CLEAR
34
//`define DF_CE_SET
35
//`define SPR
36
//`define SRP
37
//`define DFF_SR
38
//`define LATCH
39
//`define SHREG
40
//`define SHREG_CE
41
//`define DELAY
42
//`define DELAY_EMPTYFLAG
43
//`define PULSE2TOGGLE
44
//`define TOGGLE2PULSE
45
//`define SYNCHRONIZER
46
//`define CDC
47 139 unneback
 
48
//=tab Logic
49 140 unneback
//`define MUX_ANDOR
50
//`define MUX2_ANDOR
51
//`define MUX3_ANDOR
52
//`define MUX4_ANDOR
53
//`define MUX5_ANDOR
54
//`define MUX6_ANDOR
55
//`define PARITY
56
//`define SHIFT_UNIT_32
57
//`define LOGIC_UNIT
58 139 unneback
 
59
//=tab
60
 
61
//=tab IO
62 140 unneback
//`define IO_DFF_OE
63
//`define O_DFF
64
//`define O_DDR
65
//`define O_CLK
66 139 unneback
 
67
//=tab Counters
68
//=comment Binary counters
69 140 unneback
//`define CNT_BIN
70
//`define CNT_BIN_CE
71
//`define CNT_BIN_CLEAR
72
//`define CNT_BIN_CE_CLEAR
73
//`define CNT_BIN_CE_CLEAR_L1_L2
74
//`define CNT_BIN_CE_CLEAR_SET_REW
75
//`define CNT_BIN_CE_REW_L1
76
//`define CNT_BIN_CE_REW_ZQ_L1
77
//`define CNT_BIN_CE_REW_Q_ZQ_L1
78 139 unneback
//=comment Gray counters
79 140 unneback
//`define CNT_GRAY
80
//`define CNT_GRAY_CE
81
//`define CNT_GRAY_CE_BIN
82 139 unneback
//=comment LFSR counters
83 140 unneback
//`define CNT_LFSR_ZQ
84
//`define CNT_LFSR_CE
85
//`define CNT_LFSR_CE_CLEAR_Q
86
//`define CNT_LFSR_CE_Q
87
//`define CNT_LFSR_CE_ZQ
88
//`define CNT_LFSR_CE_Q_ZQ
89
//`define CNT_LFSR_CE_REW_L1
90 139 unneback
//=comment Shift register based counters
91 140 unneback
//`define CNT_SHREG_WRAP
92
//`define CNT_SHREG_CLEAR
93
//`define CNT_SHREG_CE_WRAP
94
//`define CNT_SHREG_CE_CLEAR
95
//`define CNT_SHREG_CE_CLEAR_WRAP
96 139 unneback
 
97
//=tab Memories
98 140 unneback
//`define ROM_INIT
99
//`define RAM
100
//`define RAM_BE
101
//`define DPRAM_1R1W
102
//`define DPRAM_2R1W
103
//`define DPRAM_1R2W
104
//`define DPRAM_2R2W
105
//`define DPRAM_BE_2R2W
106
//`define FIFO_1R1W_FILL_LEVEL_SYNC
107
//`define FIFO_2R2W_SYNC_SIMPLEX
108
//`define FIFO_CMP_ASYNC
109
//`define FIFO_1R1W_ASYNC
110
//`define FIFO_2R2W_ASYNC
111
//`define FIFO_2R2W_ASYNC_SIMPLEX
112
//`define REG_FILE
113 139 unneback
 
114
//=tab Wishbone
115 140 unneback
//`define WB3AVALON_BRIDGE
116
//`define WB3WB3_BRIDGE
117
//`define WB3_ARBITER_TYPE1
118
//`define WB_ADR_INC
119
//`define WB_RAM
120
//`define WB_SHADOW_RAM
121
//`define WB_B4_ROM
122
//`define WB_BOOT_ROM
123
//`define WB_DPRAM
124
//`define WB_CACHE
125
//`define WB_AVALON_BRIDGE
126
//`define WB_AVALON_MEM_CACHE
127
//`define WB_SDR_SDRAM_CTRL
128 139 unneback
 
129
//=tab Arithmetic
130 140 unneback
//`define MULTS
131
//`define MULTS18X18
132
//`define MULT
133
//`define ARITH_UNIT
134
//`define COUNT_UNIT
135
//`define EXT_UNIT
136 139 unneback
 
137
///////////////////////////////////////
138
// dependencies
139
///////////////////////////////////////
140
 
141
`ifdef PLL
142
`ifndef SYNC_RST
143
`define SYNC_RST
144
`endif
145
`endif
146
 
147
`ifdef SYNC_RST
148
`ifndef GBUF
149
`define GBUF
150
`endif
151
`endif
152
 
153
`ifdef WB_SDR_SDRAM_CTRL
154
`ifndef WB_SHADOW_RAM
155
`define WB_SHADOW_RAM
156
`endif
157
`ifndef WB_CACHE
158
`define WB_CACHE
159
`endif
160
`ifndef WB_SDR_SDRAM
161
`define WB_SDR_SDRAM
162
`endif
163
`ifndef IO_DFF_OE
164
`define IO_DFF_OE
165
`endif
166
`ifndef O_DFF
167
`define O_DFF
168
`endif
169
`ifndef O_CLK
170
`define O_CLK
171
`endif
172
`endif
173
 
174
`ifdef WB_SDR_SDRAM
175
`ifndef CNT_SHREG_CLEAR
176
`define CNT_SHREG_CLEAR
177
`endif
178
`ifndef CNT_LFSR_ZQ
179
`define CNT_LFSR_ZQ
180
`endif
181
`ifndef DELAY_EMPTYFLAG
182
`define DELAY_EMPTYFLAG
183
`endif
184
`endif
185
 
186
`ifdef WB_DPRAM
187
`ifndef WB_ADR_INC
188
`define WB_ADR_INC
189
`endif
190
`ifndef DPRAM_BE_2R2W
191
`define DPRAM_BE_2R2W
192
`endif
193
`endif
194
 
195
`ifdef WB3_ARBITER_TYPE1
196
`ifndef SPR
197
`define SPR
198
`endif
199
`ifndef MUX_ANDOR
200
`define MUX_ANDOR
201
`endif
202
`endif
203
 
204
`ifdef WB3AVALON_BRIDGE
205
`ifndef WB3WB3_BRIDGE
206
`define WB3WB3_BRIDGE
207
`endif
208
`endif
209
 
210
`ifdef WB3WB3_BRIDGE
211
`ifndef CNT_SHREG_CE_CLEAR
212
`define CNT_SHREG_CE_CLEAR
213
`endif
214
`ifndef DFF
215
`define DFF
216
`endif
217
`ifndef DFF_CE
218
`define DFF_CE
219
`endif
220
`ifndef CNT_SHREG_CE_CLEAR
221
`define CNT_SHREG_CE_CLEAR
222
`endif
223
`ifndef FIFO_2R2W_ASYNC_SIMPLEX
224
`define FIFO_2R2W_ASYNC_SIMPLEX
225
`endif
226
`endif
227
 
228
 
229
`ifdef WB_AVALON_MEM_CACHE
230
`ifndef WB_SHADOW_RAM
231
`define WB_SHADOW_RAM
232
`endif
233
`ifndef WB_CACHE
234
`define WB_CACHE
235
`endif
236
`ifndef WB_AVALON_BRIDGE
237
`define WB_AVALON_BRIDGE
238
`endif
239
`endif
240
 
241
`ifdef WB_CACHE
242
`ifndef RAM
243
`define RAM
244
`endif
245
`ifndef WB_ADR_INC
246
`define WB_ADR_INC
247
`endif
248
`ifndef DPRAM_1R1W
249
`define DPRAM_1R1W
250
`endif
251
`ifndef DPRAM_1R2W
252
`define DPRAM_1R2W
253
`endif
254
`ifndef DPRAM_BE_2R2W
255
`define DPRAM_BE_2R2W
256
`endif
257
`ifndef CDC
258
`define CDC
259
`endif
260
`ifndef O_DFF
261
`define O_DFF
262
`endif
263
`ifndef O_CLK
264
`define O_CLK
265
`endif
266
`endif
267
 
268
`ifdef WB_SHADOW_RAM
269
`ifndef WB_RAM
270
`define WB_RAM
271
`endif
272
`endif
273
 
274
`ifdef WB_RAM
275
`ifndef WB_ADR_INC
276
`define WB_ADR_INC
277
`endif
278
`ifndef RAM_BE
279
`define RAM_BE
280
`endif
281
`endif
282
 
283
`ifdef MULTS18X18
284
`ifndef MULTS
285
`define MULTS
286
`endif
287
`endif
288
 
289
`ifdef SHIFT_UNIT_32
290
`ifndef MULTS
291
`define MULTS
292
`endif
293
`endif
294
 
295
`ifdef MUX2_ANDOR
296
`ifndef MUX_ANDOR
297
`define MUX_ANDOR
298
`endif
299
`endif
300
 
301
`ifdef MUX3_ANDOR
302
`ifndef MUX_ANDOR
303
`define MUX_ANDOR
304
`endif
305
`endif
306
 
307
`ifdef MUX4_ANDOR
308
`ifndef MUX_ANDOR
309
`define MUX_ANDOR
310
`endif
311
`endif
312
 
313
`ifdef MUX5_ANDOR
314
`ifndef MUX_ANDOR
315
`define MUX_ANDOR
316
`endif
317
`endif
318
 
319
`ifdef MUX6_ANDOR
320
`ifndef MUX_ANDOR
321
`define MUX_ANDOR
322
`endif
323
`endif
324
 
325
`ifdef FIFO_1R1W_FILL_LEVEL_SYNC
326
`ifndef CNT_BIN_CE
327
`define CNT_BIN_CE
328
`endif
329
`ifndef DPRAM_1R1W
330
`define DPRAM_1R1W
331
`endif
332
`ifndef CNT_BIN_CE_REW_Q_ZQ_L1
333
`define CNT_BIN_CE_REW_Q_ZQ_L1
334
`endif
335
`endif
336
 
337
`ifdef FIFO_1R1W_FILL_LEVEL_SYNC
338
`ifndef CNT_LFSR_CE
339
`define CNT_LFSR_CE
340
`endif
341
`ifndef DPRAM_2R2W
342
`define DPRAM_2R2W
343
`endif
344
`ifndef CNT_BIN_CE_REW_ZQ_L1
345
`define CNT_BIN_CE_REW_ZQ_L1
346
`endif
347
`endif
348
 
349
`ifdef FIFO_2R2W_ASYNC_SIMPLEX
350
`ifndef CNT_GRAY_CE_BIN
351
`define CNT_GRAY_CE_BIN
352
`endif
353
`ifndef DPRAM_2R2W
354
`define DPRAM_2R2W
355
`endif
356
`ifndef FIFO_CMP_ASYNC
357
`define FIFO_CMP_ASYNC
358
`endif
359
`endif
360
 
361
`ifdef FIFO_2R2W_ASYNC
362
`ifndef FIFO_1R1W_ASYNC
363
`define FIFO_1R1W_ASYNC
364
`endif
365
`endif
366
 
367
`ifdef FIFO_1R1W_ASYNC
368
`ifndef CNT_GRAY_CE_BIN
369
`define CNT_GRAY_CE_BIN
370
`endif
371
`ifndef DPRAM_1R1W
372
`define DPRAM_1R1W
373
`endif
374
`ifndef FIFO_CMP_ASYNC
375
`define FIFO_CMP_ASYNC
376
`endif
377
`endif
378
 
379
`ifdef FIFO_CMP_ASYNC
380
`ifndef DFF_SR
381
`define DFF_SR
382
`endif
383
`ifndef DFF
384
`define DFF
385
`endif
386
`endif
387
 
388
`ifdef REG_FILE
389
`ifndef DPRAM_1R1W
390
`define DPRAM_1R1W
391
`endif
392
`endif
393
 
394
`ifdef CDC
395
`ifndef PULSE2TOGGLE
396
`define PULSE2TOGGLE
397
`endif
398
`ifndef TOGGLE2PULSE
399
`define TOGGLE2PULSE
400
`endif
401
`ifndef SYNCHRONIZER
402
`define SYNCHRONIZER
403
`endif
404
`endif
405
 
406
`ifdef O_CLK
407
`ifndef O_DDR
408
`define O_DDR
409
`endif
410
`endif
411
 
412
// size to width
413 140 unneback
//`define SIZE2WIDTH_EXPR

powered by: WebSVN 2.1.0

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