ParaNut SystemC Model
A SystemC Model of the ParaNut architecture
paranut-config.h
Go to the documentation of this file.
1
/*************************************************************************
2
3
This file is part of the ParaNut project.
4
5
Copyright (C) 2019-2022 Alexander Bahle <alexander.bahle@hs-augsburg.de>
6
Christian H. Meyer <christian.meyer@hs-augsburg.de>
7
Hochschule Augsburg, University of Applied Sciences
8
9
Description:
10
This file contains the configuration options for the ParaNut.
11
12
Redistribution and use in source and binary forms, with or without modification,
13
are permitted provided that the following conditions are met:
14
15
1. Redistributions of source code must retain the above copyright notice, this
16
list of conditions and the following disclaimer.
17
18
2. Redistributions in binary form must reproduce the above copyright notice,
19
this list of conditions and the following disclaimer in the documentation and/or
20
other materials provided with the distribution.
21
22
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
23
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
26
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
29
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
33
*************************************************************************/
34
35
#ifndef _CONFIG_
36
#define _CONFIG_
37
38
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
39
// Warning: Don't change this file manually!
40
// Use the "../../config" file located
41
// at the root of the project
42
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
43
49
54
58
#define CFG_NUT_SIM_CLK_SPEED 25000000
59
62
#define CFG_NUT_MTIMER_TIMEBASE_US 1000
63
66
#define CFG_NUT_MTIMER_ADDR 0x80000000
67
73
#define CFG_NUT_RESET_ADDR 0x10000000
74
78
#define CFG_NUT_SIM_MAX_PERIPHERY 5
79
83
84
89
92
#define CFG_NUT_MIMPID 16777352
93
96
#define CFG_NUT_CPU_CORES_LD 2
98
#define CFG_NUT_CPU_CORES (1 << CFG_NUT_CPU_CORES_LD)
100
#define CFG_NUT_CPU_GROUPS ((CFG_NUT_CPU_CORES-1)/32)
101
105
#define CFG_NUT_CPU_CAP1_CORES 0
106
110
#define CFG_NUT_CPU_CAP2_CORES (CFG_NUT_CPU_CORES - CFG_NUT_CPU_CAP1_CORES)
111
115
#define CFG_EXU_PNM2CAP ~(0xffffffff << CFG_NUT_CPU_CAP2_CORES)
116
121
#define CFG_NUT_MEM_SIZE (256 * MB)
122
125
#define CFG_NUT_EX_INT 2
126
130
131
136
141
#define CFG_EXU_M_EXTENSION 1
146
#define CFG_EXU_A_EXTENSION 1
147
153
#define CFG_PRIV_LEVELS 1
154
159
#define CFG_EXU_PERFCOUNT_ENABLE 1
163
#define CFG_EXU_PERFCOUNTER_BITS 40
167
#define CFG_EXU_PERFCOUNTERS_LD 3
169
#define CFG_EXU_PERFCOUNTERS (1 << CFG_EXU_PERFCOUNTERS_LD)
170
174
175
180
184
#define CFG_MEMU_CACHE_BANKS_LD 2
186
#define CFG_MEMU_CACHE_BANKS (1 << CFG_MEMU_CACHE_BANKS_LD)
187
191
#define CFG_MEMU_CACHE_SETS_LD 9
193
#define CFG_MEMU_CACHE_SETS (1 << CFG_MEMU_CACHE_SETS_LD)
194
201
#define CFG_MEMU_CACHE_WAYS_LD 2
203
#define CFG_MEMU_CACHE_WAYS (1 << CFG_MEMU_CACHE_WAYS_LD)
204
210
#define CFG_MEMU_BANK_RAM_PORTS 2
211
216
#define CFG_MEMU_CACHE_REPLACE_LRU 1
217
222
#define CFG_MEMU_ARBITER_METHOD 7
223
228
#define CFG_MEMU_BUSIF_WIDTH 32
229
231
#define CFG_MEMU_CACHE_SIZE (CFG_MEMU_CACHE_SETS * CFG_MEMU_CACHE_WAYS * CFG_MEMU_CACHE_BANKS * 4)
232
234
#define CFG_MEMU_WPORTS CFG_NUT_CPU_CORES
236
#define CFG_MEMU_RPORTS (2 * CFG_NUT_CPU_CORES)
237
241
242
247
252
#define CFG_MMU_TLB_ENABLE 0
253
256
#define CFG_MMU_TLB_ENTRIES_LD 2
258
#define CFG_MMU_TLB_ENTRIES (1 << CFG_MMU_TLB_ENTRIES_LD)
259
263
264
269
273
#define CFG_IFU_IBUF_SIZE_LD 2
275
#define CFG_IFU_IBUF_SIZE (1 << CFG_IFU_IBUF_SIZE_LD)
276
280
281
286
289
#define CFG_LSU_WBUF_SIZE_LD 2
291
#define CFG_LSU_WBUF_SIZE (1 << CFG_LSU_WBUF_SIZE_LD)
292
296
298
#endif
299
Generated by
1.9.1