source: trunk/platforms/almos-tsarv3-platforms/multi-clusters/config.h @ 259

Last change on this file since 259 was 259, checked in by almaless, 12 years ago

Introduce ALMOS used platforms for TSAR.
See the package's README file for more information.

File size: 4.7 KB
Line 
1#ifndef _TSAR_CONFIG_H_
2#define _TSAR_CONFIG_H_
3
4#define yes 1
5#define no  0
6
7///////////////////////////////////////////////////
8//                Memory system         
9///////////////////////////////////////////////////
10
11#define USE_MEMCACHE_V3                       yes
12#define USE_MEMCACHE_V4                       no
13
14#define CONFIG_MEMC_UPDATE_TAB_LINES          4
15#define CONFIG_MEMC_TRANSACTION_TAB_LINES     4
16
17#define MEMC_WAYS                             16
18#define MEMC_SETS                             256
19
20#define L1_IWAYS                              4
21#define L1_ISETS                              64
22
23#define L1_DWAYS                              4
24#define L1_DSETS                              64
25
26#define TLB_IWAYS                             4
27#define TLB_ISETS                             16
28
29#define TLB_DWAYS                             4
30#define TLB_DSETS                             16
31
32#define CONFIG_XRAM_LATENCY                   0
33
34///////////////////////////////////////////////////
35//              Operating System
36///////////////////////////////////////////////////
37
38#define USE_ALMOS                yes
39
40
41///////////////////////////////////////////////////
42//              Peripheral Devices
43///////////////////////////////////////////////////
44
45#define USE_FRAME_BUFFER         no
46
47#define SECTOR_SIZE              4096
48#define BDEV_IMAGE_NAME          "hdd-img.bin"
49#define BDEV_NAME_LEN            128
50
51#define N_TTYS                   4
52
53///////////////////////////////////////////////////
54//               Parallelisation
55///////////////////////////////////////////////////
56#define USE_OPENMP               yes
57
58///////////////////////////////////////////////////
59//               Local-Interconnect
60//////////////////////////////////////////////////
61#define USE_LOCAL_RING           no
62
63///////////////////////////////////////////////////
64//               Global-Interconnect
65///////////////////////////////////////////////////
66#define VDSPIN_CMD_IN_LEN         4
67#define VDSPIN_CMD_OUT_LEN        4
68#define VDSPIN_RSP_IN_LEN         4
69#define VDSPIN_RSP_OUT_LEN        4
70
71///////////////////////////////////////////////////
72//               Profiling & Debug
73///////////////////////////////////////////////////
74
75#define USE_LOGGER_ON_CPUs           no
76#define USE_LOGGER_ON_DMA            no
77#define USE_PROFILER_ON_CPUs         yes
78#define USE_GDBSERVER                no
79
80#define VCI_LOGGER_ON_ROM            no
81#define VCI_LOGGER_ON_MC_IO          no
82#define VCI_LOGGER_ON_MC0_D          no
83#define VCI_LOGGER_ON_MC2_D          no
84#define VCI_LOGGER_ON_BDEV           no
85
86#define CONFIG_LOGGER_START_CYCLE    6000000
87
88#define CONFIG_RING_IDEBUG           no
89#define CONFIG_RING_HIDEBUG          no
90#define CONFIG_RING_TDEBUG           no
91#define CONFIG_RING_HTDEBUG          no
92
93
94///////////////////////////////////////////////////
95//        Physical Address Sapce         
96///////////////////////////////////////////////////
97// segments definition in direct space.
98// There is 16 Mbytes address space per cluster.
99// The 8 MSB bits define the cluster index (x,y),
100// even if the number of clusters is less than 256.
101// Each memory cache contains up to 12 Mbytes.
102// There is one MEMC segment and one XICU segment
103// per cluster. The peripherals BDEV, FBUF, MTTY,
104// CDMA and the boot BROM are mapped in cluster
105// containing address 0xBFC00000
106///////////////////////////////////////////////////
107
108#define MEMC_BASE                0x00000000     
109#define MEMC_SIZE                0x00C00000
110
111#define BROM_BASE                0xBFC00000     
112#define BROM_SIZE                0x00100000
113
114#define FBUF_BASE                0xBFD00000     
115#define FBUF_SIZE                0x00200000
116
117#define XICU_BASE                0x00F00000     
118#define XICU_SIZE                0x00002000
119
120#define BDEV_BASE                0xBFF10000     
121#define BDEV_SIZE                0x00000100
122
123#define MTTY_BASE                0xBFF20000     
124#define MTTY_SIZE                0x00000100
125
126#define CDMA_BASE                0xBFF30000     
127#define CDMA_SIZE                0x00000100
128
129
130////////////////////////////////////////////////////////////////////
131//     TGTID & SRCID definition in direct space
132// For all components:  global TGTID = global SRCID = cluster_index
133// For processors, the local SRCID is between 0 & nprocs-1
134////////////////////////////////////////////////////////////////////
135
136#define MEMC_TGTID               0
137#define XICU_TGTID               1
138#define FBUF_TGTID               2
139#define MTTY_TGTID               3
140#define BROM_TGTID               4
141#define BDEV_TGTID               5
142#define CDMA_TGTID               6
143
144#define PROC_SRCID               0
145#define BDEV_SRCID               nprocs
146#define CDMA_SRCID               (nprocs+1)
147
148#define CONFIG_ADDRESS_WIDTH     32
149
150#endif  /* _TSAR_CONFIG_H_ */
Note: See TracBrowser for help on using the repository browser.