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-cpci-ax/] [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 := axcel;
25
  constant CFG_MEMTECH : integer := axcel;
26
  constant CFG_PADTECH : integer := axcel;
27
  constant CFG_NOASYNC : integer := 0;
28
 
29
-- Clock generator
30
  constant CFG_CLKTECH : integer := axcel;
31
  constant CFG_CLKMUL : integer := 2;
32
  constant CFG_CLKDIV : integer := 2;
33
  constant CFG_PCIDLL : integer := 0;
34
  constant CFG_PCISYSCLK: integer := 0;
35
  constant CFG_CLK_NOFB : integer := 0;
36
 
37
-- LEON3 processor core
38
  constant CFG_LEON3 : integer := 1;
39
  constant CFG_NCPU : integer := (1);
40
  constant CFG_NWIN : integer := (8);
41
  constant CFG_V8 : integer := 0;
42
  constant CFG_MAC : integer := 0;
43
  constant CFG_SVT : integer := 0;
44
  constant CFG_RSTADDR : integer := 16#00000#;
45
  constant CFG_LDDEL : integer := (1);
46
  constant CFG_NWP : integer := (1);
47
  constant CFG_PWD : integer := 1*2;
48
  constant CFG_FPU : integer := 0 + 16*0;
49
  constant CFG_GRFPUSH : integer := 0;
50
  constant CFG_ICEN : integer := 1;
51
  constant CFG_ISETS : integer := 1;
52
  constant CFG_ISETSZ : integer := 8;
53
  constant CFG_ILINE : integer := 8;
54
  constant CFG_IREPL : integer := 0;
55
  constant CFG_ILOCK : integer := 0;
56
  constant CFG_ILRAMEN : integer := 0;
57
  constant CFG_ILRAMADDR: integer := 16#8E#;
58
  constant CFG_ILRAMSZ : integer := 1;
59
  constant CFG_DCEN : integer := 1;
60
  constant CFG_DSETS : integer := 1;
61
  constant CFG_DSETSZ : integer := 4;
62
  constant CFG_DLINE : integer := 8;
63
  constant CFG_DREPL : integer := 0;
64
  constant CFG_DLOCK : integer := 0;
65
  constant CFG_DSNOOP : integer := 0 + 0 + 4*0;
66
  constant CFG_DFIXED : integer := 16#0#;
67
  constant CFG_DLRAMEN : integer := 0;
68
  constant CFG_DLRAMADDR: integer := 16#8F#;
69
  constant CFG_DLRAMSZ : integer := 1;
70
  constant CFG_MMUEN : integer := 0;
71
  constant CFG_ITLBNUM : integer := 2;
72
  constant CFG_DTLBNUM : integer := 2;
73
  constant CFG_TLB_TYPE : integer := 1;
74
  constant CFG_TLB_REP : integer := 1;
75
  constant CFG_DSU : integer := 1;
76
  constant CFG_ITBSZ : integer := 2;
77
  constant CFG_ATBSZ : integer := 2;
78
  constant CFG_LEON3FT_EN : integer := 0;
79
  constant CFG_IUFT_EN : integer := 0;
80
  constant CFG_FPUFT_EN : integer := 0;
81
  constant CFG_RF_ERRINJ : integer := 0;
82
  constant CFG_CACHE_FT_EN : integer := 0;
83
  constant CFG_CACHE_ERRINJ : integer := 0;
84
  constant CFG_LEON3_NETLIST: integer := 0;
85
  constant CFG_DISAS : integer := 0 + 0;
86
  constant CFG_PCLOW : integer := 2;
87
 
88
-- AMBA settings
89
  constant CFG_DEFMST : integer := (0);
90
  constant CFG_RROBIN : integer := 1;
91
  constant CFG_SPLIT : integer := 0;
92
  constant CFG_AHBIO : integer := 16#FFF#;
93
  constant CFG_APBADDR : integer := 16#800#;
94
 
95
-- DSU UART
96
  constant CFG_AHB_UART : integer := 1;
97
 
98
-- PROM/SRAM controller
99
  constant CFG_SRCTRL : integer := 0;
100
  constant CFG_SRCTRL_PROMWS : integer := 0;
101
  constant CFG_SRCTRL_RAMWS : integer := 0;
102
  constant CFG_SRCTRL_IOWS : integer := 0;
103
  constant CFG_SRCTRL_RMW : integer := 0;
104
  constant CFG_SRCTRL_8BIT : integer := 0;
105
 
106
  constant CFG_SRCTRL_SRBANKS : integer := 1;
107
  constant CFG_SRCTRL_BANKSZ : integer := 0;
108
  constant CFG_SRCTRL_ROMASEL : integer := 0;
109
-- LEON2 memory controller
110
  constant CFG_MCTRL_LEON2 : integer := 1;
111
  constant CFG_MCTRL_RAM8BIT : integer := 0;
112
  constant CFG_MCTRL_RAM16BIT : integer := 0;
113
  constant CFG_MCTRL_5CS : integer := 0;
114
  constant CFG_MCTRL_SDEN : integer := 1;
115
  constant CFG_MCTRL_SEPBUS : integer := 1;
116
  constant CFG_MCTRL_INVCLK : integer := 0;
117
  constant CFG_MCTRL_SD64 : integer := 1;
118
  constant CFG_MCTRL_PAGE : integer := 0 + 0;
119
 
120
-- SDRAM controller
121
  constant CFG_SDCTRL : integer := 0;
122
  constant CFG_SDCTRL_INVCLK : integer := 0;
123
  constant CFG_SDCTRL_SD64 : integer := 0;
124
  constant CFG_SDCTRL_PAGE : integer := 0 + 0;
125
 
126
-- AHB RAM
127
  constant CFG_AHBRAMEN : integer := 0;
128
  constant CFG_AHBRSZ : integer := 1;
129
  constant CFG_AHBRADDR : integer := 16#A00#;
130
 
131
-- PCI interface
132
  constant CFG_PCI : integer := 1;
133
  constant CFG_PCIVID : integer := 16#16E3#;
134
  constant CFG_PCIDID : integer := 16#0210#;
135
  constant CFG_PCIDEPTH : integer := 8;
136
  constant CFG_PCI_MTF : integer := 1;
137
 
138
-- PCI arbiter
139
  constant CFG_PCI_ARB : integer := 0;
140
  constant CFG_PCI_ARBAPB : integer := 0;
141
  constant CFG_PCI_ARB_NGNT : integer := 4;
142
 
143
-- PCI trace buffer
144
  constant CFG_PCITBUFEN: integer := 0;
145
  constant CFG_PCITBUF : integer := 256;
146
 
147
-- UART 1
148
  constant CFG_UART1_ENABLE : integer := 1;
149
  constant CFG_UART1_FIFO : integer := 2;
150
 
151
-- UART 2
152
  constant CFG_UART2_ENABLE : integer := 1;
153
  constant CFG_UART2_FIFO : integer := 2;
154
 
155
-- LEON3 interrupt controller
156
  constant CFG_IRQ3_ENABLE : integer := 1;
157
 
158
-- Modular timer
159
  constant CFG_GPT_ENABLE : integer := 1;
160
  constant CFG_GPT_NTIM : integer := (3);
161
  constant CFG_GPT_SW : integer := (16);
162
  constant CFG_GPT_TW : integer := (32);
163
  constant CFG_GPT_IRQ : integer := (6);
164
  constant CFG_GPT_SEPIRQ : integer := 1;
165
  constant CFG_GPT_WDOGEN : integer := 1;
166
  constant CFG_GPT_WDOG : integer := 16#FFF#;
167
 
168
-- GPIO port
169
  constant CFG_GRGPIO_ENABLE : integer := 1;
170
  constant CFG_GRGPIO_IMASK : integer := 16#FFFE#;
171
  constant CFG_GRGPIO_WIDTH : integer := (16);
172
 
173
-- GRLIB debugging
174
  constant CFG_DUART : integer := 0;
175
 
176
 
177
  constant CFG_SDEN : integer := CFG_MCTRL_SDEN + CFG_SDCTRL;
178
  constant CFG_INVCLK : integer := CFG_MCTRL_INVCLK + CFG_SDCTRL_INVCLK;
179
end;

powered by: WebSVN 2.1.0

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