1 |
8 |
alfik |
/*
|
2 |
|
|
* system.h - SOPC Builder system and BSP software package information
|
3 |
|
|
*
|
4 |
|
|
* Machine generated for CPU 'nios2_qsys_0' in SOPC Builder design 'system'
|
5 |
|
|
* SOPC Builder design path: ../../system.sopcinfo
|
6 |
|
|
*
|
7 |
|
|
* Generated: Sun Aug 17 15:22:54 CEST 2014
|
8 |
|
|
*/
|
9 |
|
|
|
10 |
|
|
/*
|
11 |
|
|
* DO NOT MODIFY THIS FILE
|
12 |
|
|
*
|
13 |
|
|
* Changing this file will have subtle consequences
|
14 |
|
|
* which will almost certainly lead to a nonfunctioning
|
15 |
|
|
* system. If you do modify this file, be aware that your
|
16 |
|
|
* changes will be overwritten and lost when this file
|
17 |
|
|
* is generated again.
|
18 |
|
|
*
|
19 |
|
|
* DO NOT MODIFY THIS FILE
|
20 |
|
|
*/
|
21 |
|
|
|
22 |
|
|
/*
|
23 |
|
|
* License Agreement
|
24 |
|
|
*
|
25 |
|
|
* Copyright (c) 2008
|
26 |
|
|
* Altera Corporation, San Jose, California, USA.
|
27 |
|
|
* All rights reserved.
|
28 |
|
|
*
|
29 |
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
30 |
|
|
* copy of this software and associated documentation files (the "Software"),
|
31 |
|
|
* to deal in the Software without restriction, including without limitation
|
32 |
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
33 |
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
34 |
|
|
* Software is furnished to do so, subject to the following conditions:
|
35 |
|
|
*
|
36 |
|
|
* The above copyright notice and this permission notice shall be included in
|
37 |
|
|
* all copies or substantial portions of the Software.
|
38 |
|
|
*
|
39 |
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
40 |
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
41 |
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
42 |
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
43 |
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
44 |
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
45 |
|
|
* DEALINGS IN THE SOFTWARE.
|
46 |
|
|
*
|
47 |
|
|
* This agreement shall be governed in all respects by the laws of the State
|
48 |
|
|
* of California and by the laws of the United States of America.
|
49 |
|
|
*/
|
50 |
|
|
|
51 |
|
|
#ifndef __SYSTEM_H_
|
52 |
|
|
#define __SYSTEM_H_
|
53 |
|
|
|
54 |
|
|
/* Include definitions from linker script generator */
|
55 |
|
|
#include "linker.h"
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
/*
|
59 |
|
|
* CPU configuration
|
60 |
|
|
*
|
61 |
|
|
*/
|
62 |
|
|
|
63 |
|
|
#define ALT_CPU_ARCHITECTURE "altera_nios2_qsys"
|
64 |
|
|
#define ALT_CPU_BIG_ENDIAN 0
|
65 |
|
|
#define ALT_CPU_BREAK_ADDR 0x08010820
|
66 |
|
|
#define ALT_CPU_CPU_FREQ 50000000u
|
67 |
|
|
#define ALT_CPU_CPU_ID_SIZE 1
|
68 |
|
|
#define ALT_CPU_CPU_ID_VALUE 0x00000000
|
69 |
|
|
#define ALT_CPU_CPU_IMPLEMENTATION "tiny"
|
70 |
|
|
#define ALT_CPU_DATA_ADDR_WIDTH 0x1c
|
71 |
|
|
#define ALT_CPU_DCACHE_LINE_SIZE 0
|
72 |
|
|
#define ALT_CPU_DCACHE_LINE_SIZE_LOG2 0
|
73 |
|
|
#define ALT_CPU_DCACHE_SIZE 0
|
74 |
|
|
#define ALT_CPU_EXCEPTION_ADDR 0x08008020
|
75 |
|
|
#define ALT_CPU_FLUSHDA_SUPPORTED
|
76 |
|
|
#define ALT_CPU_FREQ 50000000
|
77 |
|
|
#define ALT_CPU_HARDWARE_DIVIDE_PRESENT 0
|
78 |
|
|
#define ALT_CPU_HARDWARE_MULTIPLY_PRESENT 0
|
79 |
|
|
#define ALT_CPU_HARDWARE_MULX_PRESENT 0
|
80 |
|
|
#define ALT_CPU_HAS_DEBUG_CORE 1
|
81 |
|
|
#define ALT_CPU_HAS_DEBUG_STUB
|
82 |
|
|
#define ALT_CPU_HAS_JMPI_INSTRUCTION
|
83 |
|
|
#define ALT_CPU_ICACHE_LINE_SIZE 0
|
84 |
|
|
#define ALT_CPU_ICACHE_LINE_SIZE_LOG2 0
|
85 |
|
|
#define ALT_CPU_ICACHE_SIZE 0
|
86 |
|
|
#define ALT_CPU_INST_ADDR_WIDTH 0x1c
|
87 |
|
|
#define ALT_CPU_NAME "nios2_qsys_0"
|
88 |
|
|
#define ALT_CPU_RESET_ADDR 0x08008000
|
89 |
|
|
|
90 |
|
|
|
91 |
|
|
/*
|
92 |
|
|
* CPU configuration (with legacy prefix - don't use these anymore)
|
93 |
|
|
*
|
94 |
|
|
*/
|
95 |
|
|
|
96 |
|
|
#define NIOS2_BIG_ENDIAN 0
|
97 |
|
|
#define NIOS2_BREAK_ADDR 0x08010820
|
98 |
|
|
#define NIOS2_CPU_FREQ 50000000u
|
99 |
|
|
#define NIOS2_CPU_ID_SIZE 1
|
100 |
|
|
#define NIOS2_CPU_ID_VALUE 0x00000000
|
101 |
|
|
#define NIOS2_CPU_IMPLEMENTATION "tiny"
|
102 |
|
|
#define NIOS2_DATA_ADDR_WIDTH 0x1c
|
103 |
|
|
#define NIOS2_DCACHE_LINE_SIZE 0
|
104 |
|
|
#define NIOS2_DCACHE_LINE_SIZE_LOG2 0
|
105 |
|
|
#define NIOS2_DCACHE_SIZE 0
|
106 |
|
|
#define NIOS2_EXCEPTION_ADDR 0x08008020
|
107 |
|
|
#define NIOS2_FLUSHDA_SUPPORTED
|
108 |
|
|
#define NIOS2_HARDWARE_DIVIDE_PRESENT 0
|
109 |
|
|
#define NIOS2_HARDWARE_MULTIPLY_PRESENT 0
|
110 |
|
|
#define NIOS2_HARDWARE_MULX_PRESENT 0
|
111 |
|
|
#define NIOS2_HAS_DEBUG_CORE 1
|
112 |
|
|
#define NIOS2_HAS_DEBUG_STUB
|
113 |
|
|
#define NIOS2_HAS_JMPI_INSTRUCTION
|
114 |
|
|
#define NIOS2_ICACHE_LINE_SIZE 0
|
115 |
|
|
#define NIOS2_ICACHE_LINE_SIZE_LOG2 0
|
116 |
|
|
#define NIOS2_ICACHE_SIZE 0
|
117 |
|
|
#define NIOS2_INST_ADDR_WIDTH 0x1c
|
118 |
|
|
#define NIOS2_RESET_ADDR 0x08008000
|
119 |
|
|
|
120 |
|
|
|
121 |
|
|
/*
|
122 |
|
|
* Define for each module class mastered by the CPU
|
123 |
|
|
*
|
124 |
|
|
*/
|
125 |
|
|
|
126 |
|
|
#define __ALTERA_AVALON_JTAG_UART
|
127 |
|
|
#define __ALTERA_AVALON_NEW_SDRAM_CONTROLLER
|
128 |
|
|
#define __ALTERA_AVALON_ONCHIP_MEMORY2
|
129 |
|
|
#define __ALTERA_NIOS2_QSYS
|
130 |
|
|
#define __DRIVER_SD
|
131 |
|
|
#define __SLOW_MEM
|
132 |
|
|
|
133 |
|
|
|
134 |
|
|
/*
|
135 |
|
|
* System configuration
|
136 |
|
|
*
|
137 |
|
|
*/
|
138 |
|
|
|
139 |
|
|
#define ALT_DEVICE_FAMILY "Cyclone IV E"
|
140 |
|
|
#define ALT_ENHANCED_INTERRUPT_API_PRESENT
|
141 |
|
|
#define ALT_IRQ_BASE NULL
|
142 |
|
|
#define ALT_LOG_PORT "/dev/null"
|
143 |
|
|
#define ALT_LOG_PORT_BASE 0x0
|
144 |
|
|
#define ALT_LOG_PORT_DEV null
|
145 |
|
|
#define ALT_LOG_PORT_TYPE ""
|
146 |
|
|
#define ALT_NUM_EXTERNAL_INTERRUPT_CONTROLLERS 0
|
147 |
|
|
#define ALT_NUM_INTERNAL_INTERRUPT_CONTROLLERS 1
|
148 |
|
|
#define ALT_NUM_INTERRUPT_CONTROLLERS 1
|
149 |
|
|
#define ALT_STDERR "/dev/jtag_uart"
|
150 |
|
|
#define ALT_STDERR_BASE 0x8011410
|
151 |
|
|
#define ALT_STDERR_DEV jtag_uart
|
152 |
|
|
#define ALT_STDERR_IS_JTAG_UART
|
153 |
|
|
#define ALT_STDERR_PRESENT
|
154 |
|
|
#define ALT_STDERR_TYPE "altera_avalon_jtag_uart"
|
155 |
|
|
#define ALT_STDIN "/dev/jtag_uart"
|
156 |
|
|
#define ALT_STDIN_BASE 0x8011410
|
157 |
|
|
#define ALT_STDIN_DEV jtag_uart
|
158 |
|
|
#define ALT_STDIN_IS_JTAG_UART
|
159 |
|
|
#define ALT_STDIN_PRESENT
|
160 |
|
|
#define ALT_STDIN_TYPE "altera_avalon_jtag_uart"
|
161 |
|
|
#define ALT_STDOUT "/dev/jtag_uart"
|
162 |
|
|
#define ALT_STDOUT_BASE 0x8011410
|
163 |
|
|
#define ALT_STDOUT_DEV jtag_uart
|
164 |
|
|
#define ALT_STDOUT_IS_JTAG_UART
|
165 |
|
|
#define ALT_STDOUT_PRESENT
|
166 |
|
|
#define ALT_STDOUT_TYPE "altera_avalon_jtag_uart"
|
167 |
|
|
#define ALT_SYSTEM_NAME "system"
|
168 |
|
|
|
169 |
|
|
|
170 |
|
|
/*
|
171 |
|
|
* driver_sd_0 configuration
|
172 |
|
|
*
|
173 |
|
|
*/
|
174 |
|
|
|
175 |
|
|
#define ALT_MODULE_CLASS_driver_sd_0 driver_sd
|
176 |
|
|
#define DRIVER_SD_0_BASE 0x8011400
|
177 |
|
|
#define DRIVER_SD_0_IRQ -1
|
178 |
|
|
#define DRIVER_SD_0_IRQ_INTERRUPT_CONTROLLER_ID -1
|
179 |
|
|
#define DRIVER_SD_0_NAME "/dev/driver_sd_0"
|
180 |
|
|
#define DRIVER_SD_0_SPAN 16
|
181 |
|
|
#define DRIVER_SD_0_TYPE "driver_sd"
|
182 |
|
|
|
183 |
|
|
|
184 |
|
|
/*
|
185 |
|
|
* hal configuration
|
186 |
|
|
*
|
187 |
|
|
*/
|
188 |
|
|
|
189 |
|
|
#define ALT_MAX_FD 32
|
190 |
|
|
#define ALT_SYS_CLK none
|
191 |
|
|
#define ALT_TIMESTAMP_CLK none
|
192 |
|
|
|
193 |
|
|
|
194 |
|
|
/*
|
195 |
|
|
* jtag_uart configuration
|
196 |
|
|
*
|
197 |
|
|
*/
|
198 |
|
|
|
199 |
|
|
#define ALT_MODULE_CLASS_jtag_uart altera_avalon_jtag_uart
|
200 |
|
|
#define JTAG_UART_BASE 0x8011410
|
201 |
|
|
#define JTAG_UART_IRQ 0
|
202 |
|
|
#define JTAG_UART_IRQ_INTERRUPT_CONTROLLER_ID 0
|
203 |
|
|
#define JTAG_UART_NAME "/dev/jtag_uart"
|
204 |
|
|
#define JTAG_UART_READ_DEPTH 64
|
205 |
|
|
#define JTAG_UART_READ_THRESHOLD 8
|
206 |
|
|
#define JTAG_UART_SPAN 8
|
207 |
|
|
#define JTAG_UART_TYPE "altera_avalon_jtag_uart"
|
208 |
|
|
#define JTAG_UART_WRITE_DEPTH 64
|
209 |
|
|
#define JTAG_UART_WRITE_THRESHOLD 8
|
210 |
|
|
|
211 |
|
|
|
212 |
|
|
/*
|
213 |
|
|
* onchip_memory2_0 configuration
|
214 |
|
|
*
|
215 |
|
|
*/
|
216 |
|
|
|
217 |
|
|
#define ALT_MODULE_CLASS_onchip_memory2_0 altera_avalon_onchip_memory2
|
218 |
|
|
#define ONCHIP_MEMORY2_0_ALLOW_IN_SYSTEM_MEMORY_CONTENT_EDITOR 0
|
219 |
|
|
#define ONCHIP_MEMORY2_0_ALLOW_MRAM_SIM_CONTENTS_ONLY_FILE 0
|
220 |
|
|
#define ONCHIP_MEMORY2_0_BASE 0x8008000
|
221 |
|
|
#define ONCHIP_MEMORY2_0_CONTENTS_INFO ""
|
222 |
|
|
#define ONCHIP_MEMORY2_0_DUAL_PORT 0
|
223 |
|
|
#define ONCHIP_MEMORY2_0_GUI_RAM_BLOCK_TYPE "AUTO"
|
224 |
|
|
#define ONCHIP_MEMORY2_0_INIT_CONTENTS_FILE "system_onchip_memory2_0"
|
225 |
|
|
#define ONCHIP_MEMORY2_0_INIT_MEM_CONTENT 1
|
226 |
|
|
#define ONCHIP_MEMORY2_0_INSTANCE_ID "NONE"
|
227 |
|
|
#define ONCHIP_MEMORY2_0_IRQ -1
|
228 |
|
|
#define ONCHIP_MEMORY2_0_IRQ_INTERRUPT_CONTROLLER_ID -1
|
229 |
|
|
#define ONCHIP_MEMORY2_0_NAME "/dev/onchip_memory2_0"
|
230 |
|
|
#define ONCHIP_MEMORY2_0_NON_DEFAULT_INIT_FILE_ENABLED 0
|
231 |
|
|
#define ONCHIP_MEMORY2_0_RAM_BLOCK_TYPE "AUTO"
|
232 |
|
|
#define ONCHIP_MEMORY2_0_READ_DURING_WRITE_MODE "DONT_CARE"
|
233 |
|
|
#define ONCHIP_MEMORY2_0_SINGLE_CLOCK_OP 0
|
234 |
|
|
#define ONCHIP_MEMORY2_0_SIZE_MULTIPLE 1
|
235 |
|
|
#define ONCHIP_MEMORY2_0_SIZE_VALUE 32768
|
236 |
|
|
#define ONCHIP_MEMORY2_0_SPAN 32768
|
237 |
|
|
#define ONCHIP_MEMORY2_0_TYPE "altera_avalon_onchip_memory2"
|
238 |
|
|
#define ONCHIP_MEMORY2_0_WRITABLE 1
|
239 |
|
|
|
240 |
|
|
|
241 |
|
|
/*
|
242 |
|
|
* sdram configuration
|
243 |
|
|
*
|
244 |
|
|
*/
|
245 |
|
|
|
246 |
|
|
#define ALT_MODULE_CLASS_sdram altera_avalon_new_sdram_controller
|
247 |
|
|
#define SDRAM_BASE 0x0
|
248 |
|
|
#define SDRAM_CAS_LATENCY 2
|
249 |
|
|
#define SDRAM_CONTENTS_INFO
|
250 |
|
|
#define SDRAM_INIT_NOP_DELAY 0.0
|
251 |
|
|
#define SDRAM_INIT_REFRESH_COMMANDS 2
|
252 |
|
|
#define SDRAM_IRQ -1
|
253 |
|
|
#define SDRAM_IRQ_INTERRUPT_CONTROLLER_ID -1
|
254 |
|
|
#define SDRAM_IS_INITIALIZED 1
|
255 |
|
|
#define SDRAM_NAME "/dev/sdram"
|
256 |
|
|
#define SDRAM_POWERUP_DELAY 100.0
|
257 |
|
|
#define SDRAM_REFRESH_PERIOD 15.625
|
258 |
|
|
#define SDRAM_REGISTER_DATA_IN 1
|
259 |
|
|
#define SDRAM_SDRAM_ADDR_WIDTH 0x19
|
260 |
|
|
#define SDRAM_SDRAM_BANK_WIDTH 2
|
261 |
|
|
#define SDRAM_SDRAM_COL_WIDTH 10
|
262 |
|
|
#define SDRAM_SDRAM_DATA_WIDTH 32
|
263 |
|
|
#define SDRAM_SDRAM_NUM_BANKS 4
|
264 |
|
|
#define SDRAM_SDRAM_NUM_CHIPSELECTS 1
|
265 |
|
|
#define SDRAM_SDRAM_ROW_WIDTH 13
|
266 |
|
|
#define SDRAM_SHARED_DATA 0
|
267 |
|
|
#define SDRAM_SIM_MODEL_BASE 0
|
268 |
|
|
#define SDRAM_SPAN 134217728
|
269 |
|
|
#define SDRAM_STARVATION_INDICATOR 0
|
270 |
|
|
#define SDRAM_TRISTATE_BRIDGE_SLAVE ""
|
271 |
|
|
#define SDRAM_TYPE "altera_avalon_new_sdram_controller"
|
272 |
|
|
#define SDRAM_T_AC 5.5
|
273 |
|
|
#define SDRAM_T_MRD 3
|
274 |
|
|
#define SDRAM_T_RCD 20.0
|
275 |
|
|
#define SDRAM_T_RFC 70.0
|
276 |
|
|
#define SDRAM_T_RP 20.0
|
277 |
|
|
#define SDRAM_T_WR 14.0
|
278 |
|
|
|
279 |
|
|
|
280 |
|
|
/*
|
281 |
|
|
* slow_mem_0 configuration
|
282 |
|
|
*
|
283 |
|
|
*/
|
284 |
|
|
|
285 |
|
|
#define ALT_MODULE_CLASS_slow_mem_0 slow_mem
|
286 |
|
|
#define SLOW_MEM_0_BASE 0x8011000
|
287 |
|
|
#define SLOW_MEM_0_IRQ -1
|
288 |
|
|
#define SLOW_MEM_0_IRQ_INTERRUPT_CONTROLLER_ID -1
|
289 |
|
|
#define SLOW_MEM_0_NAME "/dev/slow_mem_0"
|
290 |
|
|
#define SLOW_MEM_0_SPAN 1024
|
291 |
|
|
#define SLOW_MEM_0_TYPE "slow_mem"
|
292 |
|
|
|
293 |
|
|
#endif /* __SYSTEM_H_ */
|