1 |
15 |
mihad |
//////////////////////////////////////////////////////////////////////
|
2 |
|
|
//// ////
|
3 |
|
|
//// File name "pci_regression_constants.v" ////
|
4 |
|
|
//// ////
|
5 |
|
|
//// This file is part of the "PCI bridge" project ////
|
6 |
|
|
//// http://www.opencores.org/cores/pci/ ////
|
7 |
|
|
//// ////
|
8 |
|
|
//// Author(s): ////
|
9 |
|
|
//// - Miha Dolenc (mihad@opencores.org) ////
|
10 |
|
|
//// - Tadej Markovic (tadej@opencores.org) ////
|
11 |
|
|
//// ////
|
12 |
|
|
//////////////////////////////////////////////////////////////////////
|
13 |
|
|
//// ////
|
14 |
|
|
//// Copyright (C) 2000 Miha Dolenc, mihad@opencores.org ////
|
15 |
|
|
//// ////
|
16 |
|
|
//// This source file may be used and distributed without ////
|
17 |
|
|
//// restriction provided that this copyright statement is not ////
|
18 |
|
|
//// removed from the file and that any derivative work contains ////
|
19 |
|
|
//// the original copyright notice and the associated disclaimer. ////
|
20 |
|
|
//// ////
|
21 |
|
|
//// This source file is free software; you can redistribute it ////
|
22 |
|
|
//// and/or modify it under the terms of the GNU Lesser General ////
|
23 |
|
|
//// Public License as published by the Free Software Foundation; ////
|
24 |
|
|
//// either version 2.1 of the License, or (at your option) any ////
|
25 |
|
|
//// later version. ////
|
26 |
|
|
//// ////
|
27 |
|
|
//// This source is distributed in the hope that it will be ////
|
28 |
|
|
//// useful, but WITHOUT ANY WARRANTY; without even the implied ////
|
29 |
|
|
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
30 |
|
|
//// PURPOSE. See the GNU Lesser General Public License for more ////
|
31 |
|
|
//// details. ////
|
32 |
|
|
//// ////
|
33 |
|
|
//// You should have received a copy of the GNU Lesser General ////
|
34 |
|
|
//// Public License along with this source; if not, download it ////
|
35 |
|
|
//// from http://www.opencores.org/lgpl.shtml ////
|
36 |
|
|
//// ////
|
37 |
|
|
//////////////////////////////////////////////////////////////////////
|
38 |
|
|
//
|
39 |
|
|
// CVS Revision History
|
40 |
|
|
//
|
41 |
|
|
// $Log: not supported by cvs2svn $
|
42 |
26 |
mihad |
// Revision 1.1 2002/02/01 13:39:43 mihad
|
43 |
|
|
// Initial testbench import. Still under development
|
44 |
15 |
mihad |
//
|
45 |
26 |
mihad |
//
|
46 |
15 |
mihad |
|
47 |
|
|
///////////////////////////////////////////////////////////////////////////////
|
48 |
|
|
//// ===================================================================== ////
|
49 |
|
|
//// Following PCI_USER_CONSTANTS are just for regression testing purposes ////
|
50 |
|
|
//// (script for running regression is prepared for NC-Sim) ////
|
51 |
|
|
//// ////
|
52 |
|
|
//// For description of defines see pci_user_constants.v file ! ////
|
53 |
|
|
//// ===================================================================== ////
|
54 |
|
|
///////////////////////////////////////////////////////////////////////////////
|
55 |
|
|
|
56 |
|
|
// Fifo implementation defines:
|
57 |
|
|
// If FPGA and XILINX are defined, Xilinx's BlockSelectRAM+ is instantiated for Fifo storage.
|
58 |
|
|
// 16 bit width is used, so 8 bits of address ( 256 ) locations are available. If RAM_DONT_SHARE is not defined (commented out),
|
59 |
|
|
// then one block RAM is shared between two FIFOs. That means each Fifo can have a maximum address length of 7 - depth of 128 and only 6 block rams are used
|
60 |
|
|
// If RAM_DONT_SHARE is defined ( not commented out ), then 12 block RAMs are used and each Fifo can have a maximum address length of 8 ( 256 locations )
|
61 |
|
|
// If FPGA is not defined, then ASIC RAMs are used. Currently there is only one version of ARTISAN RAM supported. User should generate synchronous RAM with
|
62 |
|
|
// width of 40 and instantiate it in pci_tpram.v. If RAM_DONT_SHARE is defined, then these can be dual port rams ( write port
|
63 |
|
|
// in one clock domain, read in other ), otherwise it must be two port RAM ( read and write ports in both clock domains ).
|
64 |
|
|
// If RAM_DONT_SHARE is defined, then all RAM address lengths must be specified accordingly, otherwise there are two relevant lengths - PCI_FIFO_RAM_ADDR_LENGTH and
|
65 |
|
|
// WB_FIFO_RAM_ADDR_LENGTH.
|
66 |
|
|
|
67 |
|
|
`ifdef REGR_FIFO_SMALL_XILINX // with Xilinx FPGA parameters only
|
68 |
|
|
`define WBW_ADDR_LENGTH 3
|
69 |
|
|
`define WBR_ADDR_LENGTH 4
|
70 |
|
|
`define PCIW_ADDR_LENGTH 4
|
71 |
|
|
`define PCIR_ADDR_LENGTH 3
|
72 |
|
|
|
73 |
|
|
`define FPGA
|
74 |
|
|
`define XILINX
|
75 |
|
|
|
76 |
|
|
`define WB_RAM_DONT_SHARE
|
77 |
|
|
//`define PCI_RAM_DONT_SHARE
|
78 |
|
|
|
79 |
|
|
`ifdef FPGA
|
80 |
|
|
`ifdef XILINX
|
81 |
|
|
`define PCI_FIFO_RAM_ADDR_LENGTH 8 // PCI target unit fifo storage definition
|
82 |
|
|
`define WB_FIFO_RAM_ADDR_LENGTH 4 // WB slave unit fifo storage definition
|
83 |
|
|
`define PCI_XILINX_RAMB4
|
84 |
|
|
//`define WB_XILINX_RAMB4
|
85 |
|
|
//`define PCI_XILINX_DIST_RAM
|
86 |
|
|
`define WB_XILINX_DIST_RAM
|
87 |
|
|
`endif
|
88 |
|
|
`else
|
89 |
|
|
`define PCI_FIFO_RAM_ADDR_LENGTH 8 // PCI target unit fifo storage definition when RAM sharing is used ( both pcir and pciw fifo use same instance of RAM )
|
90 |
|
|
`define WB_FIFO_RAM_ADDR_LENGTH 8 // WB slave unit fifo storage definition when RAM sharing is used ( both wbr and wbw fifo use same instance of RAM )
|
91 |
|
|
`define WB_ARTISAN_SDP
|
92 |
|
|
`define PCI_ARTISAN_SDP
|
93 |
|
|
`endif
|
94 |
|
|
`else
|
95 |
|
|
`ifdef REGR_FIFO_MEDIUM_ARTISAN // with Artisan parameter only
|
96 |
|
|
`define WBW_ADDR_LENGTH 7
|
97 |
|
|
`define WBR_ADDR_LENGTH 6
|
98 |
|
|
`define PCIW_ADDR_LENGTH 7
|
99 |
|
|
`define PCIR_ADDR_LENGTH 8
|
100 |
|
|
|
101 |
|
|
//`define FPGA
|
102 |
|
|
//`define XILINX
|
103 |
|
|
|
104 |
|
|
//`define WB_RAM_DONT_SHARE
|
105 |
|
|
`define PCI_RAM_DONT_SHARE
|
106 |
|
|
|
107 |
|
|
`ifdef FPGA
|
108 |
|
|
`ifdef XILINX
|
109 |
|
|
`define PCI_FIFO_RAM_ADDR_LENGTH 8 // PCI target unit fifo storage definition
|
110 |
|
|
`define WB_FIFO_RAM_ADDR_LENGTH 8 // WB slave unit fifo storage definition
|
111 |
|
|
`define PCI_XILINX_RAMB4
|
112 |
|
|
`define WB_XILINX_RAMB4
|
113 |
|
|
//`define PCI_XILINX_DIST_RAM
|
114 |
|
|
//`define WB_XILINX_DIST_RAM
|
115 |
|
|
`endif
|
116 |
|
|
`else
|
117 |
|
|
`define PCI_FIFO_RAM_ADDR_LENGTH 8 // PCI target unit fifo storage definition when RAM sharing is used ( both pcir and pciw fifo use same instance of RAM )
|
118 |
|
|
`define WB_FIFO_RAM_ADDR_LENGTH 8 // WB slave unit fifo storage definition when RAM sharing is used ( both wbr and wbw fifo use same instance of RAM )
|
119 |
|
|
`define WB_ARTISAN_SDP
|
120 |
|
|
`define PCI_ARTISAN_SDP
|
121 |
|
|
`endif
|
122 |
|
|
`else
|
123 |
|
|
`ifdef REGR_FIFO_SMALL_GENERIC // without any parameters only (generic)
|
124 |
|
|
`define WBW_ADDR_LENGTH 3
|
125 |
|
|
`define WBR_ADDR_LENGTH 4
|
126 |
|
|
`define PCIW_ADDR_LENGTH 4
|
127 |
|
|
`define PCIR_ADDR_LENGTH 3
|
128 |
|
|
|
129 |
|
|
//`define FPGA
|
130 |
|
|
//`define XILINX
|
131 |
|
|
|
132 |
|
|
`define WB_RAM_DONT_SHARE
|
133 |
|
|
//`define PCI_RAM_DONT_SHARE
|
134 |
|
|
|
135 |
|
|
`ifdef FPGA
|
136 |
|
|
`ifdef XILINX
|
137 |
|
|
`define PCI_FIFO_RAM_ADDR_LENGTH 8 // PCI target unit fifo storage definition
|
138 |
|
|
`define WB_FIFO_RAM_ADDR_LENGTH 8 // WB slave unit fifo storage definition
|
139 |
|
|
`define PCI_XILINX_RAMB4
|
140 |
|
|
`define WB_XILINX_RAMB4
|
141 |
|
|
//`define PCI_XILINX_DIST_RAM
|
142 |
|
|
//`define WB_XILINX_DIST_RAM
|
143 |
|
|
`endif
|
144 |
|
|
`else
|
145 |
|
|
`define PCI_FIFO_RAM_ADDR_LENGTH 5 // PCI target unit fifo storage definition when RAM sharing is used ( both pcir and pciw fifo use same instance of RAM )
|
146 |
|
|
`define WB_FIFO_RAM_ADDR_LENGTH 4 // WB slave unit fifo storage definition when RAM sharing is used ( both wbr and wbw fifo use same instance of RAM )
|
147 |
|
|
//`define WB_ARTISAN_SDP
|
148 |
|
|
//`define PCI_ARTISAN_SDP
|
149 |
|
|
`endif
|
150 |
|
|
`else
|
151 |
|
|
`ifdef REGR_FIFO_MEDIUM_GENERIC // without any parameters only (generic)
|
152 |
|
|
`define WBW_ADDR_LENGTH 7
|
153 |
|
|
`define WBR_ADDR_LENGTH 6
|
154 |
|
|
`define PCIW_ADDR_LENGTH 7
|
155 |
|
|
`define PCIR_ADDR_LENGTH 8
|
156 |
|
|
|
157 |
|
|
//`define FPGA
|
158 |
|
|
//`define XILINX
|
159 |
|
|
|
160 |
|
|
//`define WB_RAM_DONT_SHARE
|
161 |
|
|
`define PCI_RAM_DONT_SHARE
|
162 |
|
|
|
163 |
|
|
`ifdef FPGA
|
164 |
|
|
`ifdef XILINX
|
165 |
|
|
`define PCI_FIFO_RAM_ADDR_LENGTH 8 // PCI target unit fifo storage definition
|
166 |
|
|
`define WB_FIFO_RAM_ADDR_LENGTH 8 // WB slave unit fifo storage definition
|
167 |
|
|
`define PCI_XILINX_RAMB4
|
168 |
|
|
`define WB_XILINX_RAMB4
|
169 |
|
|
//`define PCI_XILINX_DIST_RAM
|
170 |
|
|
//`define WB_XILINX_DIST_RAM
|
171 |
|
|
`endif
|
172 |
|
|
`else
|
173 |
|
|
`define PCI_FIFO_RAM_ADDR_LENGTH 8 // PCI target unit fifo storage definition when RAM sharing is used ( both pcir and pciw fifo use same instance of RAM )
|
174 |
|
|
`define WB_FIFO_RAM_ADDR_LENGTH 8 // WB slave unit fifo storage definition when RAM sharing is used ( both wbr and wbw fifo use same instance of RAM )
|
175 |
|
|
//`define WB_ARTISAN_SDP
|
176 |
|
|
//`define PCI_ARTISAN_SDP
|
177 |
|
|
`endif
|
178 |
|
|
`else
|
179 |
|
|
`ifdef REGR_FIFO_LARGE_GENERIC // without any parameters only (generic)
|
180 |
26 |
mihad |
`define WBW_ADDR_LENGTH 9
|
181 |
|
|
`define WBR_ADDR_LENGTH 9
|
182 |
|
|
`define PCIW_ADDR_LENGTH 9
|
183 |
|
|
`define PCIR_ADDR_LENGTH 9
|
184 |
15 |
mihad |
|
185 |
|
|
//`define FPGA
|
186 |
|
|
//`define XILINX
|
187 |
|
|
|
188 |
|
|
//`define WB_RAM_DONT_SHARE
|
189 |
|
|
//`define PCI_RAM_DONT_SHARE
|
190 |
|
|
|
191 |
|
|
`ifdef FPGA
|
192 |
|
|
`ifdef XILINX
|
193 |
|
|
`define PCI_FIFO_RAM_ADDR_LENGTH 8 // PCI target unit fifo storage definition
|
194 |
|
|
`define WB_FIFO_RAM_ADDR_LENGTH 8 // WB slave unit fifo storage definition
|
195 |
|
|
`define PCI_XILINX_RAMB4
|
196 |
|
|
`define WB_XILINX_RAMB4
|
197 |
|
|
//`define PCI_XILINX_DIST_RAM
|
198 |
|
|
//`define WB_XILINX_DIST_RAM
|
199 |
|
|
`endif
|
200 |
|
|
`else
|
201 |
26 |
mihad |
`define PCI_FIFO_RAM_ADDR_LENGTH 10 // PCI target unit fifo storage definition when RAM sharing is used ( both pcir and pciw fifo use same instance of RAM )
|
202 |
|
|
`define WB_FIFO_RAM_ADDR_LENGTH 10 // WB slave unit fifo storage definition when RAM sharing is used ( both wbr and wbw fifo use same instance of RAM )
|
203 |
15 |
mihad |
//`define WB_ARTISAN_SDP
|
204 |
|
|
//`define PCI_ARTISAN_SDP
|
205 |
|
|
`endif
|
206 |
|
|
`else
|
207 |
|
|
`endif
|
208 |
|
|
`endif
|
209 |
|
|
`endif
|
210 |
|
|
`endif
|
211 |
|
|
`endif
|
212 |
|
|
|
213 |
|
|
// number defined here specifies how many MS bits in PCI address are compared with base address, to decode
|
214 |
|
|
// accesses. Maximum number allows for minimum image size ( number = 20, image size = 4KB ), minimum number
|
215 |
|
|
// allows for maximum image size ( number = 1, image size = 2GB ). If you intend on using different sizes of PCI images,
|
216 |
|
|
// you have to define a number of minimum sized image and enlarge others by specifying different address mask.
|
217 |
|
|
// smaller the number here, faster the decoder operation
|
218 |
|
|
`ifdef PCI_DECODE_MIN
|
219 |
|
|
`define PCI_NUM_OF_DEC_ADDR_LINES 3
|
220 |
|
|
`else
|
221 |
|
|
`ifdef PCI_DECODE_MED
|
222 |
|
|
`define PCI_NUM_OF_DEC_ADDR_LINES 12
|
223 |
|
|
`else
|
224 |
|
|
`ifdef PCI_DECODE_MAX
|
225 |
|
|
`define PCI_NUM_OF_DEC_ADDR_LINES 20
|
226 |
|
|
`endif
|
227 |
|
|
`endif
|
228 |
|
|
`endif
|
229 |
|
|
|
230 |
|
|
// initial value for PCI image address masks. Address masks can be defined in enabled state,
|
231 |
|
|
// to allow device independent software to detect size of image and map base addresses to
|
232 |
|
|
// memory space. If initial mask for an image is defined as 0, then device independent software
|
233 |
|
|
// won't detect base address implemented and device dependent software will have to configure
|
234 |
|
|
// address masks as well as base addresses!
|
235 |
|
|
`define PCI_AM0 20'hffff_f
|
236 |
|
|
`define PCI_AM1 20'hffff_f
|
237 |
|
|
`define PCI_AM2 20'hffff_f
|
238 |
|
|
`define PCI_AM3 20'hffff_f
|
239 |
|
|
`define PCI_AM4 20'hffff_f
|
240 |
|
|
`define PCI_AM5 20'hffff_f
|
241 |
|
|
|
242 |
|
|
// initial value for PCI image maping to MEMORY or IO spaces. If initial define is set to 0,
|
243 |
|
|
// then IMAGE with that base address points to MEMORY space, othervise it points ti IO space. D
|
244 |
|
|
// Device independent software sets the base addresses acording to MEMORY or IO maping!
|
245 |
|
|
`define PCI_BA0_MEM_IO 1'b0 // considered only when PCI_IMAGE0 is used as general PCI-WB image!
|
246 |
|
|
`define PCI_BA1_MEM_IO 1'b0
|
247 |
|
|
`define PCI_BA2_MEM_IO 1'b0
|
248 |
|
|
`define PCI_BA3_MEM_IO 1'b0
|
249 |
|
|
`define PCI_BA4_MEM_IO 1'b1
|
250 |
|
|
`define PCI_BA5_MEM_IO 1'b1
|
251 |
|
|
|
252 |
|
|
// number defined here specifies how many MS bits in WB address are compared with base address, to decode
|
253 |
|
|
// accesses. Maximum number allows for minimum image size ( number = 20, image size = 4KB ), minimum number
|
254 |
|
|
// allows for maximum image size ( number = 1, image size = 2GB ). If you intend on using different sizes of WB images,
|
255 |
|
|
// you have to define a number of minimum sized image and enlarge others by specifying different address mask.
|
256 |
|
|
// smaller the number here, faster the decoder operation
|
257 |
|
|
`ifdef WB_DECODE_MIN
|
258 |
26 |
mihad |
`define WB_NUM_OF_DEC_ADDR_LINES 4
|
259 |
15 |
mihad |
`else
|
260 |
|
|
`ifdef WB_DECODE_MED
|
261 |
|
|
`define WB_NUM_OF_DEC_ADDR_LINES 12
|
262 |
|
|
`else
|
263 |
|
|
`ifdef WB_DECODE_MAX
|
264 |
|
|
`define WB_NUM_OF_DEC_ADDR_LINES 20
|
265 |
|
|
`endif
|
266 |
|
|
`endif
|
267 |
|
|
`endif
|
268 |
|
|
|
269 |
|
|
// Base address for Configuration space access from WB bus. This value cannot be changed during runtime
|
270 |
|
|
`ifdef WB_CNF_BASE_ZERO
|
271 |
|
|
`define WB_CONFIGURATION_BASE 20'h0000_0
|
272 |
|
|
`else
|
273 |
26 |
mihad |
`define WB_CONFIGURATION_BASE 20'hB000_0
|
274 |
15 |
mihad |
`endif
|
275 |
|
|
|
276 |
|
|
/*-----------------------------------------------------------------------------------------------------------
|
277 |
|
|
[000h-00Ch] First 4 DWORDs (32-bit) of PCI configuration header - the same regardless of the HEADER type !
|
278 |
|
|
Vendor_ID is an ID for a specific vendor defined by PCI_SIG - 2321h does not belong to anyone (e.g.
|
279 |
|
|
Xilinx's Vendor_ID is 10EEh and Altera's Vendor_ID is 1172h). Device_ID and Revision_ID should be used
|
280 |
|
|
together by application.
|
281 |
|
|
-----------------------------------------------------------------------------------------------------------*/
|
282 |
|
|
`define HEADER_VENDOR_ID 16'h2321
|
283 |
|
|
`define HEADER_DEVICE_ID 16'h0001
|
284 |
|
|
`define HEADER_REVISION_ID 8'h01
|
285 |
|
|
|
286 |
|
|
// MAX Retry counter value for WISHBONE Master state-machine
|
287 |
|
|
// This value is 8-bit because of 8-bit retry counter !!!
|
288 |
26 |
mihad |
`define WB_RTY_CNT_MAX 8'hff
|
289 |
15 |
mihad |
|
290 |
|
|
/////////////////////////////////////////////////////////////////////////////////
|
291 |
|
|
//// ======================================================================= ////
|
292 |
|
|
//// Following PCI_TESTBENC_DEFINES are just for regression testing purposes ////
|
293 |
|
|
//// (script for running regression is prepared for NC-Sim) ////
|
294 |
|
|
//// ////
|
295 |
|
|
//// For description of defines see pci_testbench_defines.v file ! ////
|
296 |
|
|
//// ======================================================================= ////
|
297 |
|
|
/////////////////////////////////////////////////////////////////////////////////
|
298 |
|
|
|
299 |
|
|
// wishbone frequncy in GHz
|
300 |
|
|
`ifdef WB_CLK10
|
301 |
|
|
`define WB_FREQ 0.01
|
302 |
|
|
`else
|
303 |
|
|
`ifdef WB_CLK66
|
304 |
|
|
`define WB_FREQ 0.066
|
305 |
|
|
`else
|
306 |
26 |
mihad |
`ifdef WB_CLK220
|
307 |
|
|
`define WB_FREQ 0.22
|
308 |
15 |
mihad |
`endif
|
309 |
|
|
`endif
|
310 |
|
|
`endif
|
311 |
|
|
|
312 |
|
|
// values of image registers of PCI bridge device - valid are only upper 20 bits, others must be ZERO !
|
313 |
|
|
`define TAR0_BASE_ADDR_0 32'h1000_0000
|
314 |
|
|
`define TAR0_BASE_ADDR_1 32'h2000_0000
|
315 |
26 |
mihad |
`define TAR0_BASE_ADDR_2 32'h4000_0000
|
316 |
|
|
`define TAR0_BASE_ADDR_3 32'h6000_0000
|
317 |
|
|
`define TAR0_BASE_ADDR_4 32'h8000_0000
|
318 |
|
|
`define TAR0_BASE_ADDR_5 32'hA000_0000
|
319 |
15 |
mihad |
|
320 |
|
|
`define TAR0_ADDR_MASK_0 32'hFFFF_F000 // when BA0 is used to access configuration space, this is NOT important!
|
321 |
|
|
`define TAR0_ADDR_MASK_1 32'hFFFF_F000
|
322 |
|
|
`define TAR0_ADDR_MASK_2 32'hFFFF_F000
|
323 |
|
|
`define TAR0_ADDR_MASK_3 32'hFFFF_F000
|
324 |
|
|
`define TAR0_ADDR_MASK_4 32'hFFFF_F000
|
325 |
|
|
`define TAR0_ADDR_MASK_5 32'hFFFF_F000
|
326 |
|
|
|
327 |
26 |
mihad |
`define TAR0_TRAN_ADDR_0 32'hC000_0000 // when BA0 is used to access configuration space, this is NOT important!
|
328 |
|
|
`define TAR0_TRAN_ADDR_1 32'hA000_0000
|
329 |
|
|
`define TAR0_TRAN_ADDR_2 32'h8000_0000
|
330 |
|
|
`define TAR0_TRAN_ADDR_3 32'h6000_0000
|
331 |
|
|
`define TAR0_TRAN_ADDR_4 32'h4000_0000
|
332 |
|
|
`define TAR0_TRAN_ADDR_5 32'h2000_0000
|
333 |
15 |
mihad |
|
334 |
|
|
// values of image registers of PCI behavioral target devices !
|
335 |
26 |
mihad |
`define BEH_TAR1_MEM_START 32'hC000_0000
|
336 |
|
|
`define BEH_TAR1_MEM_END 32'hC000_0FFF
|
337 |
|
|
`define BEH_TAR1_IO_START 32'hD000_0001
|
338 |
|
|
`define BEH_TAR1_IO_END 32'hD000_0FFF
|
339 |
15 |
mihad |
|
340 |
26 |
mihad |
`define BEH_TAR2_MEM_START 32'hE000_0000
|
341 |
|
|
`define BEH_TAR2_MEM_END 32'hE000_0FFF
|
342 |
|
|
`define BEH_TAR2_IO_START 32'hF000_0001
|
343 |
|
|
`define BEH_TAR2_IO_END 32'hF000_0FFF
|
344 |
15 |
mihad |
|
345 |
|
|
/*=======================================================================================
|
346 |
|
|
Following defines are used in a script file for regression testing !!!
|
347 |
|
|
=========================================================================================
|
348 |
|
|
|
349 |
|
|
REGRESSION
|
350 |
|
|
HOST GUEST
|
351 |
|
|
REGR_FIFO_SMALL_XILINX REGR_FIFO_MEDIUM_ARTISAN REGR_FIFO_LARGE_GENERIC
|
352 |
|
|
(REGR_FIFO_SMALL_GENERIC) (REGR_FIFO_MEDIUM_GENERIC)
|
353 |
|
|
ADDR_TRAN_IMPL
|
354 |
|
|
WB_RETRY_MAX
|
355 |
|
|
WB_CNF_BASE_ZERO
|
356 |
|
|
NO_CNF_IMAGE
|
357 |
|
|
PCI_IMAGE0 // `ifdef HOST `ifdef NO_CNF_IMAGE `define PCI_IMAGE0
|
358 |
|
|
PCI_IMAGE2
|
359 |
|
|
PCI_IMAGE3
|
360 |
|
|
PCI_IMAGE4
|
361 |
|
|
PCI_IMAGE5
|
362 |
|
|
WB_IMAGE2
|
363 |
|
|
WB_IMAGE3
|
364 |
|
|
WB_IMAGE4
|
365 |
|
|
WB_IMAGE5
|
366 |
|
|
WB_DECODE_FAST WB_DECODE_MEDIUM WB_DECODE_SLOW
|
367 |
|
|
REGISTER_WBM_OUTPUTS
|
368 |
|
|
REGISTER_WBS_OUTPUTS
|
369 |
|
|
PCI_DECODE_MIN PCI_DECODE_MED PCI_DECODE_MAX
|
370 |
|
|
WB_DECODE_MIN WB_DECODE_MED WB_DECODE_MAX
|
371 |
|
|
PCI33 PCI66
|
372 |
|
|
WB_CLK10 WB_CLK66 WB_CLK100
|
373 |
|
|
ACTIVE_LOW_OE ACTIVE_HIGH_OE
|
374 |
|
|
|
375 |
|
|
-----------------------------------------------------------------------------------------
|
376 |
|
|
Follows combinations of defines used in a script file for regression testing !!!
|
377 |
|
|
-----------------------------------------------------------------------------------------
|
378 |
|
|
|
379 |
|
|
"REGRESSION+HOST+REGR_FIFO_SMALL_XILINX+WB_DECODE_FAST+PCI_DECODE_MAX+WB_DECODE_MIN+PCI33+WB_CLK10+ACTIVE_LOW_OE+REGISTER_WBM_OUTPUTS+REGISTER_WBS_OUTPUTS+ADDR_TRAN_IMPL+WB_RETRY_MAX+PCI_IMAGE0+PCI_IMAGE2"
|
380 |
|
|
"REGRESSION+HOST+REGR_FIFO_MEDIUM_ARTISAN+WB_DECODE_MEDIUM+PCI_DECODE_MED+WB_DECODE_MED+PCI33+WB_CLK66+ACTIVE_LOW_OE+REGISTER_WBM_OUTPUTS+REGISTER_WBS_OUTPUTS+ADDR_TRAN_IMPL+WB_RETRY_MAX+PCI_IMAGE0+PCI_IMAGE2+PCI_IMAGE3+PCI_IMAGE4+PCI_IMAGE5+WB_IMAGE2+WB_IMAGE5"
|
381 |
|
|
"REGRESSION+HOST+REGR_FIFO_LARGE_GENERIC+WB_DECODE_SLOW+PCI_DECODE_MIN+WB_DECODE_MAX+PCI66+WB_CLK66+ACTIVE_LOW_OE+REGISTER_WBM_OUTPUTS+REGISTER_WBS_OUTPUTS+WB_IMAGE5"
|
382 |
|
|
"REGRESSION+GUEST+REGR_FIFO_SMALL_XILINX+WB_DECODE_SLOW+PCI_DECODE_MED+WB_DECODE_MIN+PCI66+WB_CLK100+ACTIVE_LOW_OE+REGISTER_WBM_OUTPUTS+REGISTER_WBS_OUTPUTS+WB_RETRY_MAX+PCI_IMAGE0+PCI_IMAGE5+WB_IMAGE4"
|
383 |
|
|
"REGRESSION+GUEST+REGR_FIFO_MEDIUM_ARTISAN+WB_DECODE_FAST+PCI_DECODE_MIN+WB_DECODE_MAX+PCI33+WB_CLK100+ACTIVE_LOW_OE+REGISTER_WBM_OUTPUTS+REGISTER_WBS_OUTPUTS+ADDR_TRAN_IMPL+PCI_IMAGE0+WB_IMAGE2+WB_IMAGE3+WB_IMAGE4"
|
384 |
|
|
"REGRESSION+GUEST+REGR_FIFO_LARGE_GENERIC+WB_DECODE_MEDIUM+PCI_DECODE_MAX+WB_DECODE_MED+PCI66+WB_CLK10+ACTIVE_LOW_OE+REGISTER_WBM_OUTPUTS+REGISTER_WBS_OUTPUTS+ADDR_TRAN_IMPL"
|
385 |
|
|
"REGRESSION+HOST+REGR_FIFO_SMALL_XILINX+WB_DECODE_FAST+PCI_DECODE_MAX+WB_DECODE_MIN+PCI66+WB_CLK100+ACTIVE_HIGH_OE+WB_CNF_BASE_ZERO+NO_CNF_IMAGE+PCI_IMAGE0+PCI_IMAGE4"
|
386 |
|
|
"REGRESSION+HOST+REGR_FIFO_MEDIUM_ARTISAN+WB_DECODE_MEDIUM+PCI_DECODE_MED+WB_DECODE_MED+PCI66+WB_CLK10+ACTIVE_HIGH_OE+WB_CNF_BASE_ZERO+NO_CNF_IMAGE+PCI_IMAGE0+PCI_IMAGE2+PCI_IMAGE3+PCI_IMAGE4+PCI_IMAGE5+WB_IMAGE2+WB_IMAGE3+WB_IMAGE4+WB_IMAGE5"
|
387 |
|
|
"REGRESSION+HOST+REGR_FIFO_LARGE_GENERIC+WB_DECODE_SLOW+PCI_DECODE_MIN+WB_DECODE_MAX+PCI33+WB_CLK100+ACTIVE_HIGH_OE+ADDR_TRAN_IMPL+WB_RETRY_MAX+WB_CNF_BASE_ZERO+NO_CNF_IMAGE+WB_IMAGE3"
|
388 |
|
|
"REGRESSION+GUEST+REGR_FIFO_SMALL_XILINX+WB_DECODE_SLOW+PCI_DECODE_MED+WB_DECODE_MIN+PCI33+WB_CLK66+ACTIVE_HIGH_OE+ADDR_TRAN_IMPL+WB_CNF_BASE_ZERO+NO_CNF_IMAGE+PCI_IMAGE0+PCI_IMAGE3"
|
389 |
|
|
"REGRESSION+GUEST+REGR_FIFO_MEDIUM_ARTISAN+WB_DECODE_FAST+PCI_DECODE_MIN+WB_DECODE_MAX+PCI66+WB_CLK66+ACTIVE_HIGH_OE+WB_RETRY_MAX+WB_CNF_BASE_ZERO+NO_CNF_IMAGE+PCI_IMAGE0+PCI_IMAGE2+PCI_IMAGE3+PCI_IMAGE4+PCI_IMAGE5+WB_IMAGE2"
|
390 |
|
|
"REGRESSION+GUEST+REGR_FIFO_LARGE_GENERIC+WB_DECODE_MEDIUM+PCI_DECODE_MAX+WB_DECODE_MED+PCI33+WB_CLK10+ACTIVE_HIGH_OE+WB_RETRY_MAX+WB_CNF_BASE_ZERO+NO_CNF_IMAGE+WB_IMAGE2+WB_IMAGE3+WB_IMAGE4+WB_IMAGE5"
|
391 |
|
|
""
|
392 |
|
|
|
393 |
|
|
=========================================================================================
|
394 |
|
|
*/
|
395 |
|
|
|
396 |
|
|
|
397 |
|
|
|
398 |
|
|
|
399 |
|
|
|
400 |
|
|
|
401 |
|
|
|
402 |
|
|
|
403 |
|
|
|
404 |
|
|
|
405 |
|
|
|
406 |
|
|
|
407 |
|
|
|