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

Subversion Repositories mips_enhanced

[/] [mips_enhanced/] [trunk/] [grlib-gpl-1.0.19-b3188/] [designs/] [leon3-gr-pci-xc5v/] [config.vhd] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 dimamali
-----------------------------------------------------------------------------
2
-- LEON3 Demonstration design test bench configuration
3
-- Copyright (C) 2004 Jiri Gaisler, Gaisler Research
4
--
5
-- This program is free software; you can redistribute it and/or modify
6
-- it under the terms of the GNU General Public License as published by
7
-- the Free Software Foundation; either version 2 of the License, or
8
-- (at your option) any later version.
9
--
10
-- This program is distributed in the hope that it will be useful,
11
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
-- GNU General Public License for more details.
14
------------------------------------------------------------------------------
15
 
16
 
17
library techmap;
18
use techmap.gencomp.all;
19
 
20
package config is
21
 
22
 
23
-- Technology and synthesis options
24
  constant CFG_FABTECH : integer := virtex5;
25
  constant CFG_MEMTECH : integer := virtex5;
26
  constant CFG_PADTECH : integer := virtex5;
27
  constant CFG_NOASYNC : integer := 0;
28
  constant CFG_SCAN : integer := 0;
29
 
30
-- Clock generator
31
  constant CFG_CLKTECH : integer := virtex5;
32
  constant CFG_CLKMUL : integer := (13);
33
  constant CFG_CLKDIV : integer := (10);
34
  constant CFG_OCLKDIV : integer := 2;
35
  constant CFG_PCIDLL : integer := 0;
36
  constant CFG_PCISYSCLK: integer := 0;
37
  constant CFG_CLK_NOFB : integer := 0;
38
 
39
-- LEON3 processor core
40
  constant CFG_LEON3 : integer := 1;
41
  constant CFG_NCPU : integer := (1);
42
  constant CFG_NWIN : integer := (8);
43
  constant CFG_V8 : integer := 2;
44
  constant CFG_MAC : integer := 0;
45
  constant CFG_SVT : integer := 1;
46
  constant CFG_RSTADDR : integer := 16#00000#;
47
  constant CFG_LDDEL : integer := (1);
48
  constant CFG_NWP : integer := (2);
49
  constant CFG_PWD : integer := 1*2;
50
  constant CFG_FPU : integer := 0 + 16*0;
51
  constant CFG_GRFPUSH : integer := 0;
52
  constant CFG_ICEN : integer := 1;
53
  constant CFG_ISETS : integer := 2;
54
  constant CFG_ISETSZ : integer := 8;
55
  constant CFG_ILINE : integer := 8;
56
  constant CFG_IREPL : integer := 1;
57
  constant CFG_ILOCK : integer := 0;
58
  constant CFG_ILRAMEN : integer := 0;
59
  constant CFG_ILRAMADDR: integer := 16#8E#;
60
  constant CFG_ILRAMSZ : integer := 1;
61
  constant CFG_DCEN : integer := 1;
62
  constant CFG_DSETS : integer := 2;
63
  constant CFG_DSETSZ : integer := 4;
64
  constant CFG_DLINE : integer := 4;
65
  constant CFG_DREPL : integer := 1;
66
  constant CFG_DLOCK : integer := 0;
67
  constant CFG_DSNOOP : integer := 1 + 0 + 4*0;
68
  constant CFG_DFIXED : integer := 16#0#;
69
  constant CFG_DLRAMEN : integer := 0;
70
  constant CFG_DLRAMADDR: integer := 16#8F#;
71
  constant CFG_DLRAMSZ : integer := 1;
72
  constant CFG_MMUEN : integer := 1;
73
  constant CFG_ITLBNUM : integer := 8;
74
  constant CFG_DTLBNUM : integer := 8;
75
  constant CFG_TLB_TYPE : integer := 0 + 1*2;
76
  constant CFG_TLB_REP : integer := 0;
77
  constant CFG_DSU : integer := 1;
78
  constant CFG_ITBSZ : integer := 2;
79
  constant CFG_ATBSZ : integer := 2;
80
  constant CFG_LEON3FT_EN : integer := 0;
81
  constant CFG_IUFT_EN : integer := 0;
82
  constant CFG_FPUFT_EN : integer := 0;
83
  constant CFG_RF_ERRINJ : integer := 0;
84
  constant CFG_CACHE_FT_EN : integer := 0;
85
  constant CFG_CACHE_ERRINJ : integer := 0;
86
  constant CFG_LEON3_NETLIST: integer := 0;
87
  constant CFG_DISAS : integer := 0 + 0;
88
  constant CFG_PCLOW : integer := 2;
89
 
90
-- AMBA settings
91
  constant CFG_DEFMST : integer := (0);
92
  constant CFG_RROBIN : integer := 1;
93
  constant CFG_SPLIT : integer := 0;
94
  constant CFG_AHBIO : integer := 16#FFF#;
95
  constant CFG_APBADDR : integer := 16#800#;
96
  constant CFG_AHB_MON : integer := 0;
97
  constant CFG_AHB_MONERR : integer := 0;
98
  constant CFG_AHB_MONWAR : integer := 0;
99
 
100
-- DSU UART
101
  constant CFG_AHB_UART : integer := 1;
102
 
103
-- JTAG based DSU interface
104
  constant CFG_AHB_JTAG : integer := 1;
105
 
106
-- USB DSU
107
  constant CFG_GRUSB_DCL : integer := 0;
108
  constant CFG_GRUSB_DCL_UIFACE : integer := 1;
109
  constant CFG_GRUSB_DCL_DW : integer := 8;
110
 
111
-- Ethernet DSU
112
  constant CFG_DSU_ETH : integer := 1 + 0;
113
  constant CFG_ETH_BUF : integer := 2;
114
  constant CFG_ETH_IPM : integer := 16#C0A8#;
115
  constant CFG_ETH_IPL : integer := 16#0033#;
116
  constant CFG_ETH_ENM : integer := 16#00007A#;
117
  constant CFG_ETH_ENL : integer := 16#CC0901#;
118
 
119
-- LEON2 memory controller
120
  constant CFG_MCTRL_LEON2 : integer := 1;
121
  constant CFG_MCTRL_RAM8BIT : integer := 0;
122
  constant CFG_MCTRL_RAM16BIT : integer := 0;
123
  constant CFG_MCTRL_5CS : integer := 0;
124
  constant CFG_MCTRL_SDEN : integer := 1;
125
  constant CFG_MCTRL_SEPBUS : integer := 1;
126
  constant CFG_MCTRL_INVCLK : integer := 0;
127
  constant CFG_MCTRL_SD64 : integer := 1;
128
  constant CFG_MCTRL_PAGE : integer := 0 + 0;
129
 
130
-- AHB status register
131
  constant CFG_AHBSTAT : integer := 0;
132
  constant CFG_AHBSTATN : integer := 1;
133
 
134
-- AHB RAM
135
  constant CFG_AHBRAMEN : integer := 0;
136
  constant CFG_AHBRSZ : integer := 1;
137
  constant CFG_AHBRADDR : integer := 16#A00#;
138
 
139
-- Gaisler Ethernet core
140
  constant CFG_GRETH : integer := 1;
141
  constant CFG_GRETH1G : integer := 0;
142
  constant CFG_ETH_FIFO : integer := 32;
143
 
144
-- CAN 2.0 interface
145
  constant CFG_CAN : integer := 0;
146
  constant CFG_CAN_NUM : integer := 1;
147
  constant CFG_CANIO : integer := 16#0#;
148
  constant CFG_CANIRQ : integer := 0;
149
  constant CFG_CANSEPIRQ: integer := 0;
150
  constant CFG_CAN_SYNCRST : integer := 0;
151
  constant CFG_CANFT : integer := 0;
152
 
153
-- Spacewire interface
154
  constant CFG_SPW_EN : integer := 0;
155
  constant CFG_SPW_NUM : integer := 1;
156
  constant CFG_SPW_AHBFIFO : integer := 4;
157
  constant CFG_SPW_RXFIFO : integer := 16;
158
  constant CFG_SPW_RMAP : integer := 0;
159
  constant CFG_SPW_RMAPBUF : integer := 4;
160
  constant CFG_SPW_RMAPCRC : integer := 0;
161
  constant CFG_SPW_NETLIST : integer := 0;
162
  constant CFG_SPW_FT : integer := 0;
163
  constant CFG_SPW_GRSPW : integer := 2;
164
 
165
-- PCI interface
166
  constant CFG_PCI : integer := 1;
167
  constant CFG_PCIVID : integer := 16#16E3#;
168
  constant CFG_PCIDID : integer := 16#0210#;
169
  constant CFG_PCIDEPTH : integer := 8;
170
  constant CFG_PCI_MTF : integer := 1;
171
 
172
-- PCI arbiter
173
  constant CFG_PCI_ARB : integer := 0;
174
  constant CFG_PCI_ARBAPB : integer := 0;
175
  constant CFG_PCI_ARB_NGNT : integer := 4;
176
 
177
-- PCI trace buffer
178
  constant CFG_PCITBUFEN: integer := 1;
179
  constant CFG_PCITBUF : integer := 512;
180
 
181
-- USB Host Controller
182
  constant CFG_GRUSBHC : integer := 0;
183
  constant CFG_GRUSBHC_NPORTS : integer := 1;
184
  constant CFG_GRUSBHC_EHC : integer := 0;
185
  constant CFG_GRUSBHC_UHC : integer := 0;
186
  constant CFG_GRUSBHC_NCC : integer := 1;
187
  constant CFG_GRUSBHC_NPCC : integer := 1;
188
  constant CFG_GRUSBHC_PRR : integer := 0;
189
  constant CFG_GRUSBHC_PR1 : integer := 0*2**26 + 0*2**22 + 0*2**18 + 0*2**14 + 0*2**10 + 0*2**6 + 0*2**2 + (1/4);
190
  constant CFG_GRUSBHC_PR2 : integer := 0*2**26 + 0*2**22 + 0*2**18 + 0*2**14 + 0*2**10 + 0*2**6 + 0*2**2 + (1 mod 4);
191
  constant CFG_GRUSBHC_ENDIAN : integer := 1;
192
  constant CFG_GRUSBHC_BEREGS : integer := 0;
193
  constant CFG_GRUSBHC_BEDESC : integer := 0;
194
  constant CFG_GRUSBHC_BLO : integer := 3;
195
  constant CFG_GRUSBHC_BWRD : integer := 16;
196
  constant CFG_GRUSBHC_UTM : integer := 2;
197
  constant CFG_GRUSBHC_VBUSCONF : integer := 1;
198
 
199
-- GR USB 2.0 Device Controller
200
  constant CFG_GRUSBDC : integer := 0;
201
  constant CFG_GRUSBDC_AIFACE : integer := 0;
202
  constant CFG_GRUSBDC_UIFACE : integer := 1;
203
  constant CFG_GRUSBDC_DW : integer := 8;
204
  constant CFG_GRUSBDC_NEPI : integer := 1;
205
  constant CFG_GRUSBDC_NEPO : integer := 1;
206
  constant CFG_GRUSBDC_I0 : integer := 1024;
207
  constant CFG_GRUSBDC_I1 : integer := 1024;
208
  constant CFG_GRUSBDC_I2 : integer := 1024;
209
  constant CFG_GRUSBDC_I3 : integer := 1024;
210
  constant CFG_GRUSBDC_I4 : integer := 1024;
211
  constant CFG_GRUSBDC_I5 : integer := 1024;
212
  constant CFG_GRUSBDC_I6 : integer := 1024;
213
  constant CFG_GRUSBDC_I7 : integer := 1024;
214
  constant CFG_GRUSBDC_I8 : integer := 1024;
215
  constant CFG_GRUSBDC_I9 : integer := 1024;
216
  constant CFG_GRUSBDC_I10 : integer := 1024;
217
  constant CFG_GRUSBDC_I11 : integer := 1024;
218
  constant CFG_GRUSBDC_I12 : integer := 1024;
219
  constant CFG_GRUSBDC_I13 : integer := 1024;
220
  constant CFG_GRUSBDC_I14 : integer := 1024;
221
  constant CFG_GRUSBDC_I15 : integer := 1024;
222
  constant CFG_GRUSBDC_O0 : integer := 1024;
223
  constant CFG_GRUSBDC_O1 : integer := 1024;
224
  constant CFG_GRUSBDC_O2 : integer := 1024;
225
  constant CFG_GRUSBDC_O3 : integer := 1024;
226
  constant CFG_GRUSBDC_O4 : integer := 1024;
227
  constant CFG_GRUSBDC_O5 : integer := 1024;
228
  constant CFG_GRUSBDC_O6 : integer := 1024;
229
  constant CFG_GRUSBDC_O7 : integer := 1024;
230
  constant CFG_GRUSBDC_O8 : integer := 1024;
231
  constant CFG_GRUSBDC_O9 : integer := 1024;
232
  constant CFG_GRUSBDC_O10 : integer := 1024;
233
  constant CFG_GRUSBDC_O11 : integer := 1024;
234
  constant CFG_GRUSBDC_O12 : integer := 1024;
235
  constant CFG_GRUSBDC_O13 : integer := 1024;
236
  constant CFG_GRUSBDC_O14 : integer := 1024;
237
  constant CFG_GRUSBDC_O15 : integer := 1024;
238
-- UART 1
239
  constant CFG_UART1_ENABLE : integer := 1;
240
  constant CFG_UART1_FIFO : integer := 4;
241
 
242
-- UART 2
243
  constant CFG_UART2_ENABLE : integer := 1;
244
  constant CFG_UART2_FIFO : integer := 4;
245
 
246
-- LEON3 interrupt controller
247
  constant CFG_IRQ3_ENABLE : integer := 1;
248
  constant CFG_IRQ3_NSEC : integer := 0;
249
 
250
-- Modular timer
251
  constant CFG_GPT_ENABLE : integer := 1;
252
  constant CFG_GPT_NTIM : integer := (2);
253
  constant CFG_GPT_SW : integer := (16);
254
  constant CFG_GPT_TW : integer := (32);
255
  constant CFG_GPT_IRQ : integer := (8);
256
  constant CFG_GPT_SEPIRQ : integer := 1;
257
  constant CFG_GPT_WDOGEN : integer := 0;
258
  constant CFG_GPT_WDOG : integer := 16#0#;
259
 
260
-- GPIO port
261
  constant CFG_GRGPIO_ENABLE : integer := 1;
262
  constant CFG_GRGPIO_IMASK : integer := 16#fe#;
263
  constant CFG_GRGPIO_WIDTH : integer := (8);
264
 
265
-- GRLIB debugging
266
  constant CFG_DUART : integer := 0;
267
 
268
 
269
 
270
end;

powered by: WebSVN 2.1.0

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