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

Subversion Repositories versatile_library

[/] [versatile_library/] [trunk/] [rtl/] [verilog/] [defines.v] - Blame information for rev 103

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

Line No. Rev Author Line
1 40 unneback
`ifndef BASE
2
`define BASE vl_
3
`endif
4
 
5 60 unneback
// default SYN_KEEP definition
6
`define SYN_KEEP /*synthesis syn_keep = 1*/
7
 
8 44 unneback
`ifdef ACTEL
9 60 unneback
`undef SYN_KEEP
10 44 unneback
`define SYN_KEEP /*synthesis syn_keep = 1*/
11
`endif
12
 
13 98 unneback
`ifdef ACTEL
14
    // ACTEL FPGA should not use logic to handle rw collision
15
    `define SYN_NO_RW_CHECK /*synthesis syn_ramstyle = "no_rw_check"*/
16
`else
17
    `define SYN_NO_RW_CHECK
18
`endif
19
 
20 40 unneback
`ifdef ALL
21
 
22
`define GBUF
23
`define SYNC_RST
24
`define PLL
25
 
26
`define MULTS
27
`define MULTS18X18
28
`define MULT
29
`define SHIFT_UNIT_32
30
`define LOGIC_UNIT
31
 
32
`define CNT_SHREG_WRAP
33
`define CNT_SHREG_CE_WRAP
34
`define CNT_SHREG_CE_CLEAR
35
`define CNT_SHREG_CE_CLEAR_WRAP
36
 
37
`define MUX_ANDOR
38
`define MUX2_ANDOR
39
`define MUX3_ANDOR
40
`define MUX4_ANDOR
41
`define MUX5_ANDOR
42
`define MUX6_ANDOR
43 43 unneback
`define PARITY
44 40 unneback
 
45
`define ROM_INIT
46
`define RAM
47
`define RAM_BE
48
`define DPRAM_1R1W
49
`define DPRAM_2R1W
50 100 unneback
`define DPRAM_1R2W
51 40 unneback
`define DPRAM_2R2W
52 75 unneback
`define DPRAM_BE_2R2W
53 40 unneback
`define FIFO_1R1W_FILL_LEVEL_SYNC
54
`define FIFO_2R2W_SYNC_SIMPLEX
55
`define FIFO_CMP_ASYNC
56
`define FIFO_1R1W_ASYNC
57
`define FIFO_2R2W_ASYNC
58
`define FIFO_2R2W_ASYNC_SIMPLEX
59 48 unneback
`define REG_FILE
60 40 unneback
 
61
`define DFF
62
`define DFF_ARRAY
63
`define DFF_CE
64
`define DFF_CE_CLEAR
65
`define DF_CE_SET
66
`define SPR
67
`define SRP
68
`define DFF_SR
69
`define LATCH
70
`define SHREG
71
`define SHREG_CE
72
`define DELAY
73
`define DELAY_EMPTYFLAG
74 94 unneback
`define PULSE2TOGGLE
75
`define TOGGLE2PULSE
76
`define SYNCHRONIZER
77
`define CDC
78 40 unneback
 
79 75 unneback
`define WB3AVALON_BRIDGE
80 40 unneback
`define WB3WB3_BRIDGE
81
`define WB3_ARBITER_TYPE1
82 83 unneback
`define WB_ADR_INC
83 101 unneback
`define WB_RAM
84 103 unneback
`define WB_SHADOW_RAM
85 48 unneback
`define WB_B4_ROM
86 40 unneback
`define WB_BOOT_ROM
87
`define WB_DPRAM
88 101 unneback
`define WB_CACHE
89 103 unneback
`define WB_AVALON_BRIDGE
90
`define WB_AVALON_MEM_CACHE
91 40 unneback
 
92 44 unneback
`define IO_DFF_OE
93
`define O_DFF
94
 
95 40 unneback
`endif
96
 
97
`ifdef PLL
98
`ifndef SYNC_RST
99
`define SYNC_RST
100
`endif
101
`endif
102
 
103
`ifdef SYNC_RST
104
`ifndef GBUF
105
`define GBUF
106
`endif
107
`endif
108
 
109 92 unneback
`ifdef WB_B3_DPRAM
110
`ifndef WB_ADR_INC
111
`define WB_ADR_INC
112 40 unneback
`endif
113 92 unneback
`ifndef DPRAM_BE_2R2W
114
`define DPRAM_BE_2R2W
115 40 unneback
`endif
116
`endif
117
 
118 101 unneback
`ifdef WB_RAM
119 83 unneback
`ifndef WB_ADR_INC
120
`define WB_ADR_INC
121 62 unneback
`endif
122
`ifndef RAM_BE
123
`define RAM_BE
124
`endif
125
`endif
126
 
127 40 unneback
`ifdef WB3_ARBITER_TYPE1
128 42 unneback
`ifndef SPR
129
`define SPR
130
`endif
131 40 unneback
`ifndef MUX_ANDOR
132
`define MUX_ANDOR
133
`endif
134
`endif
135
 
136 76 unneback
`ifdef WB3AVALON_BRIDGE
137
`ifndef WB3WB3_BRIDGE
138
`define WB3WB3_BRIDGE
139
`endif
140
`endif
141
 
142 40 unneback
`ifdef WB3WB3_BRIDGE
143
`ifndef CNT_SHREG_CE_CLEAR
144
`define CNT_SHREG_CE_CLEAR
145
`endif
146
`ifndef DFF
147
`define DFF
148
`endif
149
`ifndef DFF_CE
150
`define DFF_CE
151
`endif
152
`ifndef CNT_SHREG_CE_CLEAR
153
`define CNT_SHREG_CE_CLEAR
154
`endif
155
`ifndef FIFO_2R2W_ASYNC_SIMPLEX
156
`define FIFO_2R2W_ASYNC_SIMPLEX
157
`endif
158
`endif
159
 
160 103 unneback
 
161
`ifdef WB_AVALON_MEM_CACHE
162
`ifndef WB_SHADOW_RAM
163
`define WB_SHADOW_RAM
164
`endif
165
`ifndef WB_CACHE
166
`define WB_CACHE
167
`endif
168
`ifndef WB_AVALON_BRIDGE
169
`define WB_AVALON_BRIDGE
170
`endif
171
`endif
172
 
173 101 unneback
`ifdef WB_CACHE
174 100 unneback
`ifndef RAM
175
`define RAM
176
`endif
177
`ifndef WB_ADR_INC
178
`define WB_ADR_INC
179
`endif
180
`ifndef DPRAM_1R1W
181
`define DPRAM_1R1W
182
`endif
183
`ifndef DPRAM_1R2W
184
`define DPRAM_1R2W
185
`endif
186
`ifndef DPRAM_BE_2R2W
187
`define DPRAM_BE_2R2W
188
`endif
189
`ifndef CDC
190
`define CDC
191
`endif
192
`endif
193 103 unneback
 
194
`ifdef WB_SHADOW_RAM
195
`ifndef WB_RAM
196
`define WB_RAM
197
`endif
198
`endif
199
 
200
`ifdef WB_RAM
201
`ifndef WB_ADR_INC
202
`define WB_ADR_INC
203
`endif
204
`endif
205 97 unneback
 
206 40 unneback
`ifdef MULTS18X18
207
`ifndef MULTS
208
`define MULTS
209
`endif
210
`endif
211
 
212
`ifdef SHIFT_UNIT_32
213
`ifndef MULTS
214
`define MULTS
215
`endif
216
`endif
217
 
218
`ifdef MUX2_ANDOR
219
`ifndef MUX_ANDOR
220
`define MUX_ANDOR
221
`endif
222
`endif
223
 
224
`ifdef MUX3_ANDOR
225
`ifndef MUX_ANDOR
226
`define MUX_ANDOR
227
`endif
228
`endif
229
 
230
`ifdef MUX4_ANDOR
231
`ifndef MUX_ANDOR
232
`define MUX_ANDOR
233
`endif
234
`endif
235
 
236
`ifdef MUX5_ANDOR
237
`ifndef MUX_ANDOR
238
`define MUX_ANDOR
239
`endif
240
`endif
241
 
242
`ifdef MUX6_ANDOR
243
`ifndef MUX_ANDOR
244
`define MUX_ANDOR
245
`endif
246
`endif
247
 
248
`ifdef FIFO_1R1W_FILL_LEVEL_SYNC
249
`ifndef CNT_BIN_CE
250
`define CNT_BIN_CE
251
`endif
252
`ifndef DPRAM_1R1W
253
`define DPRAM_1R1W
254
`endif
255
`ifndef CNT_BIN_CE_REW_Q_ZQ_L1
256
`define CNT_BIN_CE_REW_Q_ZQ_L1
257
`endif
258
`endif
259
 
260
`ifdef FIFO_1R1W_FILL_LEVEL_SYNC
261
`ifndef CNT_LFSR_CE
262
`define CNT_LFSR_CE
263
`endif
264
`ifndef DPRAM_2R2W
265
`define DPRAM_2R2W
266
`endif
267
`ifndef CNT_BIN_CE_REW_ZQ_L1
268
`define CNT_BIN_CE_REW_ZQ_L1
269
`endif
270
`endif
271
 
272
`ifdef FIFO_2R2W_ASYNC_SIMPLEX
273
`ifndef CNT_GRAY_CE_BIN
274
`define CNT_GRAY_CE_BIN
275
`endif
276
`ifndef DPRAM_2R2W
277
`define DPRAM_2R2W
278
`endif
279
`ifndef FIFO_CMP_ASYNC
280
`define FIFO_CMP_ASYNC
281
`endif
282
`endif
283
 
284
`ifdef FIFO_2R2W_ASYNC
285
`ifndef FIFO_1R1W_ASYNC
286
`define FIFO_1R1W_ASYNC
287
`endif
288
`endif
289
 
290
`ifdef FIFO_1R1W_ASYNC
291
`ifndef CNT_GRAY_CE_BIN
292
`define CNT_GRAY_CE_BIN
293
`endif
294
`ifndef DPRAM_1R1W
295
`define DPRAM_1R1W
296
`endif
297
`ifndef FIFO_CMP_ASYNC
298
`define FIFO_CMP_ASYNC
299
`endif
300
`endif
301
 
302
`ifdef FIFO_CMP_ASYNC
303
`ifndef DFF_SR
304
`define DFF_SR
305
`endif
306
`ifndef DFF
307
`define DFF
308
`endif
309
`endif
310 48 unneback
 
311
`ifdef REG_FILE
312
`ifndef DPRAM_1R1W
313
`define DPRAM_1R1W
314
`endif
315
`endif
316 97 unneback
 
317 98 unneback
`ifdef CDC
318
`ifndef PULSE2TOGGLE
319
`define PULSE2TOGGLE
320
`endif
321
`ifndef TOGGLE2PULSE
322
`define TOGGLE2PULSE
323
`endif
324
`ifndef SYNCHRONIZER
325
`define SYNCHRONIZER
326
`endif
327
`endif
328
 
329 97 unneback
// size to width
330 100 unneback
`define SIZE2WIDTH_EXPR = (`SIZE2WIDTH==1) ? 0 : (`SIZE2WIDTH==2) ? 1 : (`SIZE2WIDTH==4) ? 2 : (`SIZE2WIDTH==8) ? 3 : (`SIZE2WIDTH==16) ? 4 : (`SIZE2WIDTH==32) ? 5 : (`SIZE2WIDTH==64) ? 6 : (`SIZE2WIDTH==128) ? 7 : 8;

powered by: WebSVN 2.1.0

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