source: branch/giet_vm_ioc_drivers/mappings/4c_1p_iob_sort.xml @ 283

Last change on this file since 283 was 283, checked in by cfuguet, 10 years ago

Introducing branch to test ioc drivers before merging on trunk

File size: 20.3 KB
Line 
1<?xml version="1.0"?>
2
3<mapping_info signature    = "0xdeadbeef" 
4              name         = "4c_1p_sort" 
5              x_size       = "2" 
6              y_size       = "2" 
7              x_width      = "4"
8              y_width      = "4"
9              vspaces      = "1"
10              increment    = "0x10000" >
11
12*** The "increment" parameter is the virtual address cluster increment
13*** The physical address cluster increment is 0x10000000000 / NB_CLUSTERS
14
15*** This first section describes an instance of the "tsar_generic_iob" architecture
16*** with 4 clusters, 1 processor per cluster and 40 bits physical address.
17
18    <clusterset>
19
20        <cluster x = "0" y = "0" >
21            <pseg name = "PSEG_RAM"  type = "RAM"  base = "0x0000000000" length = "0x0010000000" />
22            <pseg name = "PSEG_XCU"  type = "PERI" base = "0x00B0000000" length = "0x0000002000" />
23            <pseg name = "PSEG_DMA"  type = "PERI" base = "0x00B1000000" length = "0x0000008000" />
24            <pseg name = "PSEG_MMC"  type = "PERI" base = "0x00B2000000" length = "0x0000001000" />
25
26*** Non replicated peripherals (including the ROM containing the preloader code)
27
28            <pseg name = "PSEG_IOC"  type = "PERI" base = "0x00B3000000" length = "0x0000001000" /> 
29            <pseg name = "PSEG_TTY"  type = "PERI" base = "0x00B4000000" length = "0x0000001000" /> 
30            <pseg name = "PSEG_NIC"  type = "PERI" base = "0x00B5000000" length = "0x0000080000" />
31            <pseg name = "PSEG_CMA"  type = "PERI" base = "0x00B6000000" length = "0x0000008000" />
32            <pseg name = "PSEG_FBF"  type = "PERI" base = "0x00B7000000" length = "0x0000004000" /> 
33            <pseg name = "PSEG_IOB"  type = "PERI" base = "0x00BE000000" length = "0x0000100000" />
34            <pseg name = "PSEG_ROM"  type = "PERI" base = "0x00BFC00000" length = "0x0000004000" />
35
36            <proc index  = "0" >
37                <irq type = "SOFT" icuid = "0"  isr = "ISR_WAKUP" /> 
38                <irq type = "TIME" icuid = "1"  isr = "ISR_SWITCH" /> 
39
40                <irq type = "HARD" icuid = "8"  isr = "ISR_DEFAULT" channel = "0" />   *** should become NIC_RX
41                <irq type = "HARD" icuid = "9"  isr = "ISR_DEFAULT" channel = "1" /> 
42
43                <irq type = "HARD" icuid = "10" isr = "ISR_DEFAULT" channel = "0" />   *** should become NIC_TX
44                <irq type = "HARD" icuid = "11" isr = "ISR_DEFAULT" channel = "1" /> 
45
46                <irq type = "HARD" icuid = "12" isr = "ISR_DEFAULT" channel = "0" />   *** should become CDMA
47                <irq type = "HARD" icuid = "13" isr = "ISR_DEFAULT" channel = "1" /> 
48                <irq type = "HARD" icuid = "14" isr = "ISR_DEFAULT" channel = "2" /> 
49                <irq type = "HARD" icuid = "15" isr = "ISR_DEFAULT" channel = "3" /> 
50
51                <irq type = "HARD" icuid = "16" isr = "ISR_TTY"     channel = "0" /> 
52                <irq type = "HARD" icuid = "17" isr = "ISR_TTY"     channel = "1" /> 
53                <irq type = "HARD" icuid = "18" isr = "ISR_TTY"     channel = "2" /> 
54                <irq type = "HARD" icuid = "19" isr = "ISR_TTY"     channel = "3" /> 
55                <irq type = "HARD" icuid = "20" isr = "ISR_TTY"     channel = "4" /> 
56                <irq type = "HARD" icuid = "21" isr = "ISR_TTY"     channel = "5" /> 
57                <irq type = "HARD" icuid = "22" isr = "ISR_TTY"     channel = "6" /> 
58                <irq type = "HARD" icuid = "23" isr = "ISR_TTY"     channel = "7" /> 
59                <irq type = "HARD" icuid = "24" isr = "ISR_TTY"     channel = "8" /> 
60                <irq type = "HARD" icuid = "25" isr = "ISR_TTY"     channel = "9" />
61                <irq type = "HARD" icuid = "26" isr = "ISR_TTY"     channel = "10" /> 
62                <irq type = "HARD" icuid = "27" isr = "ISR_TTY"     channel = "11" /> 
63                <irq type = "HARD" icuid = "28" isr = "ISR_TTY"     channel = "12" /> 
64                <irq type = "HARD" icuid = "29" isr = "ISR_TTY"     channel = "13" /> 
65                <irq type = "HARD" icuid = "30" isr = "ISR_TTY"     channel = "14" /> 
66
67                <irq type = "HARD" icuid = "31" isr = "ISR_IOC" /> 
68            </proc> 
69
70            <periph type = "DMA"  psegname = "PSEG_DMA"  channels = "1"  /> 
71            <periph type = "XCU"  psegname = "PSEG_XCU"  channels = "1"  />
72            <periph type = "MMC"  psegname = "PSEG_MMC"  channels = "1"  />
73            <periph type = "IOC"  psegname = "PSEG_IOC"  channels = "1"  subtype = "BDV" /> 
74            <periph type = "TTY"  psegname = "PSEG_TTY"  channels = "5"  /> 
75            <periph type = "NIC"  psegname = "PSEG_NIC"  channels = "2"  />
76            <periph type = "CMA"  psegname = "PSEG_CMA"  channels = "4"  />
77            <periph type = "FBF"  psegname = "PSEG_FBF"  channels = "1"  />
78            <periph type = "IOB"  psegname = "PSEG_IOB"  channels = "1"  />
79            <periph type = "ROM"  psegname = "PSEG_ROM"  channels = "1"  />
80
81        </cluster>
82
83        <cluster x = "0" y = "1" >
84            <pseg name = "PSEG_RAM"  type = "RAM"  base = "0x0100000000" length = "0x0010000000" />
85            <pseg name = "PSEG_XCU"  type = "PERI" base = "0x01B0000000" length = "0x0000002000" />
86            <pseg name = "PSEG_DMA"  type = "PERI" base = "0x01B1000000" length = "0x0000008000" />
87            <pseg name = "PSEG_MMC"  type = "PERI" base = "0x01B2000000" length = "0x0000001000" />
88
89            <proc index = "0" >
90                <irq type = "SOFT" icuid = "0" isr = "ISR_WAKUP" />
91                <irq type = "TIME" icuid = "1" isr = "ISR_SWITCH" />
92            </proc>
93
94            <periph type = "DMA"  psegname = "PSEG_DMA"  channels = "4" />
95            <periph type = "XCU"  psegname = "PSEG_XCU"  channels = "1" />
96            <periph type = "MMC"  psegname = "PSEG_MMC"  channels = "1" />
97        </cluster>
98
99        <cluster x = "1" y = "0" >
100            <pseg name = "PSEG_RAM"  type = "RAM"  base = "0x1000000000" length = "0x0010000000" />
101            <pseg name = "PSEG_XCU"  type = "PERI" base = "0x10B0000000" length = "0x0000002000" />
102            <pseg name = "PSEG_DMA"  type = "PERI" base = "0x10B1000000" length = "0x0000008000" />
103            <pseg name = "PSEG_MMC"  type = "PERI" base = "0x10B2000000" length = "0x0000001000" />
104
105            <proc index = "0" >
106                <irq type = "SOFT" icuid = "0" isr = "ISR_WAKUP" />
107                <irq type = "TIME" icuid = "1" isr = "ISR_SWITCH" />
108            </proc>
109
110            <periph type = "DMA"  psegname = "PSEG_DMA"  channels = "4" />
111            <periph type = "XCU"  psegname = "PSEG_XCU"  channels = "1" />
112            <periph type = "MMC"  psegname = "PSEG_MMC"  channels = "1" />
113        </cluster>
114
115        <cluster x = "1" y = "1" >
116            <pseg name = "PSEG_RAM"  type = "RAM"  base = "0x1100000000" length = "0x0010000000" />
117            <pseg name = "PSEG_XCU"  type = "PERI" base = "0x11B0000000" length = "0x0000002000" />
118            <pseg name = "PSEG_DMA"  type = "PERI" base = "0x11B1000000" length = "0x0000008000" />
119            <pseg name = "PSEG_MMC"  type = "PERI" base = "0x11B2000000" length = "0x0000001000" />
120
121            <proc index = "0" >
122                <irq type = "SOFT" icuid = "0" isr = "ISR_WAKUP" />
123                <irq type = "TIME" icuid = "1" isr = "ISR_SWITCH" />
124            </proc>
125
126            <periph type = "DMA"  psegname = "PSEG_DMA"  channels = "4" />
127            <periph type = "XCU"  psegname = "PSEG_XCU"  channels = "1" />
128            <periph type = "MMC"  psegname = "PSEG_MMC"  channels = "1" />
129        </cluster>
130    </clusterset>
131
132    <globalset> 
133
134*** Segments used by the boot code / A[31:28] = 0x0 / Identity mapping
135- seg_boot_mapping is loaded by the boot-loader. It contains the mapping info. The content is reused by the kernel.
136- seg_boot_code and seg_boot data are loaded by the preloader, used by the boot-loader The content is not reused by the kernel.
137- seg_boot_stack is contains the stacks used by all processors during reset and boot. The content is not reused by the Kernel.
138- seg_boot_buffer is used by the boot-loader. It can contain a complete .elf file. The content is not reused by the kernel.
139
140        <vseg name = "seg_boot_mapping"   vbase = "0x00000000" mode = "C_W_" x = "0" y = "0" psegname = "PSEG_RAM" ident = "1" >
141            <vobj name = "boot_mapping"   type = "BLOB"   length = "0x00010000" binpath = "map.bin" />
142        </vseg>
143        <vseg name = "seg_boot_code"      vbase = "0x00010000" mode = "CXW_" x = "0" y = "0" psegname = "PSEG_RAM" ident = "1" >
144            <vobj name = "boot_code"      type = "BUFFER" length = "0x00020000" />
145        </vseg>
146        <vseg name = "seg_boot_data"      vbase = "0x00030000" mode = "C_W_" x = "0" y = "0" psegname = "PSEG_RAM" ident = "1" >
147            <vobj name = "boot_data"      type = "BUFFER" length = "0x00010000" />
148        </vseg>
149        <vseg name = "seg_boot_buffer"    vbase = "0x00040000" mode = "C_W_" x = "0" y = "0" psegname = "PSEG_RAM" ident = "1" >
150            <vobj name = "boot_buffer"    type = "BUFFER" length = "0x00020000" />
151        </vseg>
152        <vseg name = "seg_boot_stack"     vbase = "0x00060000" mode = "C_W_" x = "0" y = "0" psegname = "PSEG_RAM" ident = "1" >
153            <vobj name = "boot_stack"     type = "BUFFER" length = "0x00090000" />
154        </vseg>
155
156*** Segments used by the kernel / A[31:28] = 0x8
157 
158        <vseg name = "seg_kernel_code"    vbase = "0x80000000" mode = "CXW_" x = "0" y = "0" psegname = "PSEG_RAM" > 
159            <vobj name = "kernel_code"    type = "ELF" length = "0x00020000" binpath = "build/kernel/kernel.elf" />
160        </vseg>
161        <vseg name = "seg_kernel_data"    vbase = "0x80020000" mode = "C_W_" x = "0" y = "0" psegname = "PSEG_RAM" > 
162            <vobj name = "kernel_data"    type = "ELF" length = "0x00060000" binpath = "build/kernel/kernel.elf" />
163                </vseg>
164        <vseg name = "seg_kernel_uncdata" vbase = "0x80080000" mode = "__W_" x = "0" y = "0" psegname = "PSEG_RAM" ident = '1'> 
165            <vobj name = "kernel_uncdata" type = "ELF" length = "0x00040000" binpath = "build/kernel/kernel.elf" />
166        </vseg>
167        <vseg name = "seg_kernel_init"    vbase = "0x800C0000" mode = "CXW_" x = "0" y = "0" psegname = "PSEG_RAM" > 
168            <vobj name = "kernel_init"    type = "ELF" length = "0x00010000" binpath = "build/kernel/kernel.elf" />
169        </vseg>
170
171*** Segments for non replicated peripherals / A[31:28] = 0xB / Identity mapping
172
173        <vseg name = "seg_iob"            vbase = "0xBE000000" mode = "__W_" x = "0" y = "0" psegname = "PSEG_IOB" ident = "1" >
174            <vobj name = "iob"            type = "PERI" length  = "0x00001000" /> 
175        </vseg>
176        <vseg name = "seg_ioc"            vbase = "0xB3000000" mode = "__W_" x = "0" y = "0" psegname = "PSEG_IOC" ident = "1" >
177            <vobj name = "ioc"            type = "PERI" length  = "0x00001000" /> 
178        </vseg>
179        <vseg name = "seg_tty"            vbase = "0xB4000000" mode = "__W_" x = "0" y = "0" psegname = "PSEG_TTY" ident = "1" >
180                        <vobj name = "tty"            type = "PERI" length  = "0x00001000" />
181        </vseg>
182        <vseg name = "seg_nic"            vbase = "0xB5000000" mode = "__W_" x = "0" y = "0" psegname = "PSEG_NIC" ident = "1" >
183            <vobj name = "nic"            type = "PERI" length  = "0x00080000" /> 
184        </vseg>
185        <vseg name = "seg_cma"            vbase = "0xB6000000" mode = "__W_" x = "0" y = "0" psegname = "PSEG_CMA" ident = "1" >
186            <vobj name = "cma"            type = "PERI" length  = "0x00008000" /> 
187        </vseg>
188        <vseg name = "seg_fbf"            vbase = "0xB7000000" mode = "__W_" x = "0" y = "0" psegname = "PSEG_FBF" ident = "1" >
189            <vobj name = "fbf"            type = "PERI" length  = "0x00004000" /> 
190        </vseg>
191        <vseg name = "seg_rom"            vbase = "0xBFC00000" mode = "CXW_" x = "0" y = "0" psegname = "PSEG_ROM" ident = "1" >
192            <vobj name = "rom"            type = "PERI" length  = "0x00004000" /> 
193        </vseg>
194
195*** Segments for replicated ICUS / A[31:24] = 0xB0 / Increment = 0x10000 / Identity mapping in cluster 0           
196
197        <vseg name = "seg_icu_0"          vbase = "0xB0000000" mode = "__W_" x = "0" y = "0" psegname = "PSEG_XCU" ident = "1" > 
198            <vobj name = "icu_0"          type = "PERI" length  = "0x00001000" /> 
199        </vseg>
200        <vseg name = "seg_icu_1"          vbase = "0xB0010000" mode = "__W_" x = "0" y = "1" psegname = "PSEG_XCU" > 
201            <vobj name = "icu_1"          type = "PERI" length  = "0x00001000" /> 
202        </vseg>
203        <vseg name = "seg_icu_2"          vbase = "0xB0100000" mode = "__W_" x = "1" y = "0" psegname = "PSEG_XCU" > 
204            <vobj name = "icu_2"          type = "PERI" length  = "0x00001000" /> 
205        </vseg>
206        <vseg name = "seg_icu_3"          vbase = "0xB0110000" mode = "__W_" x = "1" y = "1" psegname = "PSEG_XCU" > 
207            <vobj name = "icu_3"          type = "PERI" length  = "0x00001000" /> 
208        </vseg>
209
210*** segments for replicated DMAs / A[31:24] = 0xB1 / Increment = 0x10000 / Tdentity mapping in cluster 0
211*** The peripheral type must be entirely defined by the 8 virtual address MSB bits (mask_type = 0xFF000000)
212*** The cluster id must be encoded in the next 8 virtual address bits (cluster_mask = 0x00FF0000)
213
214        <vseg name = "seg_dma_0"          vbase = "0xB1000000" mode = "__W_" x = "0" y = "0" psegname = "PSEG_DMA" ident = "1" >
215            <vobj name = "dma_0"          type = "PERI" length  = "0x00008000" />
216        </vseg>
217        <vseg name = "seg_dma_1"          vbase = "0xB1010000" mode = "__W_" x = "0" y = "1" psegname = "PSEG_DMA" >
218            <vobj name = "dma_1"          type = "PERI" length  = "0x00008000" />
219        </vseg>
220        <vseg name = "seg_dma_2"          vbase = "0xB1100000" mode = "__W_" x = "1" y = "0" psegname = "PSEG_DMA" >
221            <vobj name = "dma_2"          type = "PERI" length  = "0x00008000" />
222        </vseg>
223        <vseg name = "seg_dma_3"          vbase = "0xB1110000" mode = "__W_" x = "1" y = "1" psegname = "PSEG_DMA" >
224            <vobj name = "dma_3"          type = "PERI" length  = "0x00008000" />
225        </vseg>
226
227*** segments for replicated MMC / A[31:24] = 0xB2 / Increment = 0x10000 / Identity mapping in cluster 0
228*** The peripheral type must be entirely defined by the 8 virtual address MSB bits (mask_type = 0xFF000000)
229*** The cluster id must be encoded in the next 8 virtual address bits (cluster_mask = 0x00FF0000)
230
231        <vseg name = "seg_memc_0"         vbase = "0xB2000000" mode = "__W_" x = "0" y = "0" psegname = "PSEG_MMC" ident = "1" >
232            <vobj name = "memc_0"         type = "PERI" length  = "0x00001000" />
233        </vseg>
234        <vseg name = "seg_memc_1"         vbase = "0xB2010000" mode = "__W_" x = "0" y = "1" psegname = "PSEG_MMC" >
235            <vobj name = "memc_1"         type = "PERI" length  = "0x00001000" />
236        </vseg>
237        <vseg name = "seg_memc_2"         vbase = "0xB2100000" mode = "__W_" x = "1" y = "0" psegname = "PSEG_MMC" >
238            <vobj name = "memc_2"         type = "PERI" length  = "0x00001000" />
239        </vseg>
240        <vseg name = "seg_memc_3"         vbase = "0xB2110000" mode = "__W_" x = "1" y = "1" psegname = "PSEG_MMC" >
241            <vobj name = "memc_3"         type = "PERI" length  = "0x00001000" />
242        </vseg>
243
244*** segments for replicated schedulers / A[31:28] = 0xF / Increment = 0x10000
245*** The type must be entirely defined by the 8 virtual address MSB bits (mask_type = 0xFF000000)
246*** The cluster id must be encoded in the next 8 virtual address bits (cluster_mask = 0x00FF0000)
247
248        <vseg name = "seg_sched_0"        vbase = "0xF0000000" mode = "C_W_" x = "0" y = "0" psegname = "PSEG_RAM" >
249            <vobj name = "sched_0"        type = "SCHED" length  = "0x00008000" />
250        </vseg>
251        <vseg name = "seg_sched_1"        vbase = "0xF0010000" mode = "C_W_" x = "0" y = "1" psegname = "PSEG_RAM" >
252            <vobj name = "sched_1"        type = "SCHED" length  = "0x00008000" />
253        </vseg>
254        <vseg name = "seg_sched_2"        vbase = "0xF0100000" mode = "C_W_" x = "1" y = "0" psegname = "PSEG_RAM" >
255            <vobj name = "sched_2"        type = "SCHED" length  = "0x00008000" />
256        </vseg>
257        <vseg name = "seg_sched_3"        vbase = "0xF0110000" mode = "C_W_" x = "1" y = "1" psegname = "PSEG_RAM" >
258            <vobj name = "sched_3"        type = "SCHED" length  = "0x00008000" />
259        </vseg>
260
261    </globalset> 
262
263    <vspaceset>
264
265*** For each vspace, the startname field is the name of the vobj containing the start_vector (entry point array)
266*** For each task, the startid field define the task entry point as an index in the start_vector
267*** For each task, the clusterid and proclocid arguments define the task static placement
268*** For each task, the stackname field is the name of the vobj containing the task stack
269*** For each task, the heapname field is the name of the vobj containing the task heap
270
271        <vspace name = "sort" startname = "sort_data" > 
272            <vseg name = "seg_sort_code"   vbase = "0x00400000" mode = "CXWU" x = "1" y = "1" psegname = "PSEG_RAM" > 
273                <vobj name = "sort_code"   type  = "ELF" length = "0x00010000" binpath = "build/sort/sort.elf" /> 
274            </vseg>
275            <vseg name = "seg_sort_data"   vbase = "0x00500000" mode = "__WU" x = "1" y = "1" psegname = "PSEG_RAM" >
276                <vobj name = "sort_data"   type  = "ELF" length = "0x00010000" binpath = "build/sort/sort.elf" />
277            </vseg>
278            <vseg name = "seg_sort_ptab"   vbase = "0x00600000" mode = "C_W_" x = "1" y = "1" psegname = "PSEG_RAM" > 
279                <vobj name = "sort_ptab"   type  = "PTAB" length  = "0x00020000" align   = "13" />
280            </vseg>
281            <vseg name = "seg_sort_stack0" vbase = "0x00800000" mode = "C_WU" x = "0" y = "0" psegname = "PSEG_RAM" >
282                <vobj name = "sort_stack0" type  = "BUFFER" length = "0x00010000" /> 
283                <vobj name = "sort_stack1" type  = "BUFFER" length = "0x00010000" /> 
284                <vobj name = "sort_heap0"  type  = "BUFFER" length = "0x00010000" /> 
285            </vseg>
286            <vseg name = "seg_sort_stack1" vbase = "0x00A00000" mode = "C_WU" x = "0" y = "1" psegname = "PSEG_RAM" >
287                <vobj name = "sort_stack2" type  = "BUFFER" length = "0x00010000" /> 
288                <vobj name = "sort_stack3" type  = "BUFFER" length = "0x00010000" /> 
289                <vobj name = "sort_heap1"  type  = "BUFFER" length = "0x00010000" /> 
290            </vseg>
291            <vseg name = "seg_sort_stack2" vbase = "0x00C00000" mode = "C_WU" x = "1" y = "0" psegname = "PSEG_RAM" >
292                <vobj name = "sort_stack4" type  = "BUFFER" length = "0x00010000" /> 
293                <vobj name = "sort_stack5" type  = "BUFFER" length = "0x00010000" /> 
294                <vobj name = "sort_heap2"  type  = "BUFFER" length = "0x00010000" /> 
295            </vseg>
296            <vseg name = "seg_sort_stack3" vbase = "0x00E00000" mode = "C_WU" x = "1" y = "1" psegname = "PSEG_RAM" >
297                <vobj name = "sort_stack6" type  = "BUFFER" length = "0x00010000" /> 
298                <vobj name = "sort_stack7" type  = "BUFFER" length = "0x00010000" /> 
299                <vobj name = "sort_heap3"  type  = "BUFFER" length = "0x00010000" /> 
300            </vseg>
301
302            <task name = "sort_0" trdid = "0" x = "0" y = "0" proclocid = "0" stackname = "sort_stack0" heapname = "sort_heap0" startid = "0" usetty = "1" />
303            <task name = "sort_1" trdid = "1" x = "0" y = "0" proclocid = "0" stackname = "sort_stack1" heapname = "sort_heap0" startid = "0" usetty = "1" />
304            <task name = "sort_2" trdid = "2" x = "0" y = "1" proclocid = "0" stackname = "sort_stack2" heapname = "sort_heap1" startid = "0" usetty = "1" />
305            <task name = "sort_3" trdid = "3" x = "0" y = "1" proclocid = "0" stackname = "sort_stack3" heapname = "sort_heap1" startid = "0" usetty = "1" />
306            <task name = "sort_4" trdid = "4" x = "1" y = "0" proclocid = "0" stackname = "sort_stack4" heapname = "sort_heap2" startid = "0" usetty = "1" />
307            <task name = "sort_5" trdid = "5" x = "1" y = "0" proclocid = "0" stackname = "sort_stack5" heapname = "sort_heap2" startid = "0" usetty = "1" />
308            <task name = "sort_6" trdid = "6" x = "1" y = "1" proclocid = "0" stackname = "sort_stack6" heapname = "sort_heap3" startid = "0" usetty = "1" />
309            <task name = "sort_7" trdid = "7" x = "1" y = "1" proclocid = "0" stackname = "sort_stack7" heapname = "sort_heap3" startid = "0" usetty = "1" />
310        </vspace>
311    </vspaceset>
312</mapping_info>
Note: See TracBrowser for help on using the repository browser.