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 98

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
`define DPRAM_2R2W
51 75 unneback
`define DPRAM_BE_2R2W
52 40 unneback
`define FIFO_1R1W_FILL_LEVEL_SYNC
53
`define FIFO_2R2W_SYNC_SIMPLEX
54
`define FIFO_CMP_ASYNC
55
`define FIFO_1R1W_ASYNC
56
`define FIFO_2R2W_ASYNC
57
`define FIFO_2R2W_ASYNC_SIMPLEX
58 48 unneback
`define REG_FILE
59 40 unneback
 
60
`define DFF
61
`define DFF_ARRAY
62
`define DFF_CE
63
`define DFF_CE_CLEAR
64
`define DF_CE_SET
65
`define SPR
66
`define SRP
67
`define DFF_SR
68
`define LATCH
69
`define SHREG
70
`define SHREG_CE
71
`define DELAY
72
`define DELAY_EMPTYFLAG
73 94 unneback
`define PULSE2TOGGLE
74
`define TOGGLE2PULSE
75
`define SYNCHRONIZER
76
`define CDC
77 40 unneback
 
78 75 unneback
`define WB3AVALON_BRIDGE
79 40 unneback
`define WB3WB3_BRIDGE
80
`define WB3_ARBITER_TYPE1
81 83 unneback
`define WB_ADR_INC
82 59 unneback
`define WB_B3_RAM_BE
83 49 unneback
`define WB_B4_RAM_BE
84 48 unneback
`define WB_B4_ROM
85 40 unneback
`define WB_BOOT_ROM
86
`define WB_DPRAM
87 97 unneback
`define WBB3_WBB4_CACHE
88 40 unneback
 
89 44 unneback
`define IO_DFF_OE
90
`define O_DFF
91
 
92 40 unneback
`endif
93
 
94
`ifdef PLL
95
`ifndef SYNC_RST
96
`define SYNC_RST
97
`endif
98
`endif
99
 
100
`ifdef SYNC_RST
101
`ifndef GBUF
102
`define GBUF
103
`endif
104
`endif
105
 
106 92 unneback
`ifdef WB_B3_DPRAM
107
`ifndef WB_ADR_INC
108
`define WB_ADR_INC
109 40 unneback
`endif
110 92 unneback
`ifndef DPRAM_BE_2R2W
111
`define DPRAM_BE_2R2W
112 40 unneback
`endif
113
`endif
114
 
115 62 unneback
`ifdef WB_B3_RAM_BE
116 83 unneback
`ifndef WB_ADR_INC
117
`define WB_ADR_INC
118 62 unneback
`endif
119
`ifndef RAM_BE
120
`define RAM_BE
121
`endif
122
`endif
123
 
124 40 unneback
`ifdef WB3_ARBITER_TYPE1
125 42 unneback
`ifndef SPR
126
`define SPR
127
`endif
128 40 unneback
`ifndef MUX_ANDOR
129
`define MUX_ANDOR
130
`endif
131
`endif
132
 
133 76 unneback
`ifdef WB3AVALON_BRIDGE
134
`ifndef WB3WB3_BRIDGE
135
`define WB3WB3_BRIDGE
136
`endif
137
`endif
138
 
139 40 unneback
`ifdef WB3WB3_BRIDGE
140
`ifndef CNT_SHREG_CE_CLEAR
141
`define CNT_SHREG_CE_CLEAR
142
`endif
143
`ifndef DFF
144
`define DFF
145
`endif
146
`ifndef DFF_CE
147
`define DFF_CE
148
`endif
149
`ifndef CNT_SHREG_CE_CLEAR
150
`define CNT_SHREG_CE_CLEAR
151
`endif
152
`ifndef FIFO_2R2W_ASYNC_SIMPLEX
153
`define FIFO_2R2W_ASYNC_SIMPLEX
154
`endif
155
`endif
156
 
157 97 unneback
 `ifdef WBB3_WBB4_CACHE
158
 `ifndef RAM
159
 `define RAM
160
 `endif
161
 `ifndef WB_ADR_INC
162
 `define WB_ADR_INC
163
 `endif
164
 `ifndef dpram_be_2r2w
165
 `define DPRAM_BE_2R2W
166
 `endif
167 98 unneback
 `ifndef CDC
168
 `define CDC
169 97 unneback
 `endif
170 98 unneback
 `endif
171 97 unneback
 
172 40 unneback
`ifdef MULTS18X18
173
`ifndef MULTS
174
`define MULTS
175
`endif
176
`endif
177
 
178
`ifdef SHIFT_UNIT_32
179
`ifndef MULTS
180
`define MULTS
181
`endif
182
`endif
183
 
184
`ifdef MUX2_ANDOR
185
`ifndef MUX_ANDOR
186
`define MUX_ANDOR
187
`endif
188
`endif
189
 
190
`ifdef MUX3_ANDOR
191
`ifndef MUX_ANDOR
192
`define MUX_ANDOR
193
`endif
194
`endif
195
 
196
`ifdef MUX4_ANDOR
197
`ifndef MUX_ANDOR
198
`define MUX_ANDOR
199
`endif
200
`endif
201
 
202
`ifdef MUX5_ANDOR
203
`ifndef MUX_ANDOR
204
`define MUX_ANDOR
205
`endif
206
`endif
207
 
208
`ifdef MUX6_ANDOR
209
`ifndef MUX_ANDOR
210
`define MUX_ANDOR
211
`endif
212
`endif
213
 
214
`ifdef FIFO_1R1W_FILL_LEVEL_SYNC
215
`ifndef CNT_BIN_CE
216
`define CNT_BIN_CE
217
`endif
218
`ifndef DPRAM_1R1W
219
`define DPRAM_1R1W
220
`endif
221
`ifndef CNT_BIN_CE_REW_Q_ZQ_L1
222
`define CNT_BIN_CE_REW_Q_ZQ_L1
223
`endif
224
`endif
225
 
226
`ifdef FIFO_1R1W_FILL_LEVEL_SYNC
227
`ifndef CNT_LFSR_CE
228
`define CNT_LFSR_CE
229
`endif
230
`ifndef DPRAM_2R2W
231
`define DPRAM_2R2W
232
`endif
233
`ifndef CNT_BIN_CE_REW_ZQ_L1
234
`define CNT_BIN_CE_REW_ZQ_L1
235
`endif
236
`endif
237
 
238
`ifdef FIFO_2R2W_ASYNC_SIMPLEX
239
`ifndef CNT_GRAY_CE_BIN
240
`define CNT_GRAY_CE_BIN
241
`endif
242
`ifndef DPRAM_2R2W
243
`define DPRAM_2R2W
244
`endif
245
`ifndef FIFO_CMP_ASYNC
246
`define FIFO_CMP_ASYNC
247
`endif
248
`endif
249
 
250
`ifdef FIFO_2R2W_ASYNC
251
`ifndef FIFO_1R1W_ASYNC
252
`define FIFO_1R1W_ASYNC
253
`endif
254
`endif
255
 
256
`ifdef FIFO_1R1W_ASYNC
257
`ifndef CNT_GRAY_CE_BIN
258
`define CNT_GRAY_CE_BIN
259
`endif
260
`ifndef DPRAM_1R1W
261
`define DPRAM_1R1W
262
`endif
263
`ifndef FIFO_CMP_ASYNC
264
`define FIFO_CMP_ASYNC
265
`endif
266
`endif
267
 
268
`ifdef FIFO_CMP_ASYNC
269
`ifndef DFF_SR
270
`define DFF_SR
271
`endif
272
`ifndef DFF
273
`define DFF
274
`endif
275
`endif
276 48 unneback
 
277
`ifdef REG_FILE
278
`ifndef DPRAM_1R1W
279
`define DPRAM_1R1W
280
`endif
281
`endif
282 97 unneback
 
283 98 unneback
`ifdef CDC
284
`ifndef PULSE2TOGGLE
285
`define PULSE2TOGGLE
286
`endif
287
`ifndef TOGGLE2PULSE
288
`define TOGGLE2PULSE
289
`endif
290
`ifndef SYNCHRONIZER
291
`define SYNCHRONIZER
292
`endif
293
`endif
294
 
295 97 unneback
// size to width
296
`define SIZE2WIDTH_EXPR = (`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.