source: soft/giet_vm/map.xml @ 181

Last change on this file since 181 was 181, checked in by karaoui, 12 years ago

new version of map.xml supporting the routage and the coproc.
the xml_parser/xml_driver are also updated aproprietly.

File size: 18.7 KB
Line 
1<?xml version="1.0"?>
2
3<mapping_info   signature = "0xdeadbeef" 
4                name     = "c1_v2_G12"
5                clusters = "1"
6                psegs    = "9"
7                ttys     = "8"
8                fbs      = "1"
9                vspaces  = "4" 
10                globals  = "13" >
11
12        <clusterset>
13                <cluster index  = "0" >
14                        <pseg    name   = "PSEG_ROM" 
15                                 type   = "ROM"
16                                 base   = "0xbfc00000" 
17                                 length = "0x00010000" />
18
19                        <pseg    name   = "PSEG_RAU" 
20                                 type   = "RAM"
21                                 base   = "0x00000000" 
22                                 length = "0x01000000" />
23
24                        <pseg    name   = "PSEG_RAK" 
25                                 type   = "RAM"
26                                 base   = "0x80000000" 
27                                 length = "0x00100000" />
28
29                        <pseg    name   = "PSEG_TTY"
30                                 type   = "PERI"
31                                 base   = "0x90000000" 
32                                 length = "0x00001000" />
33
34                        <pseg    name   = "PSEG_TIM" 
35                                 type   = "PERI"
36                                 base   = "0x91000000" 
37                                 length = "0x00001000" />
38
39                        <pseg    name   = "PSEG_IOC" 
40                                 type   = "PERI"
41                                 base   = "0x92000000" 
42                                 length = "0x00001000" />
43
44                        <pseg    name   = "PSEG_DMA" 
45                                 type   = "PERI"
46                                 base   = "0x93000000" 
47                                 length = "0x00001000" />
48
49                        <pseg    name   = "PSEG_FBF" 
50                                 type   = "PERI"
51                                 base   = "0x96000000" 
52                                 length = "0x00004000" />
53
54                        <pseg    name   = "PSEG_ICU" 
55                                 type   = "PERI"
56                                 base   = "0x9F000000" 
57                                 length = "0x00001000" />
58                         <proc    index  = "0" >
59                         </proc>
60                         <proc    index  = "1" >
61                         </proc>
62                         <proc    index  = "2" >
63                         </proc>
64                         <proc    index  = "3" >
65                         </proc>
66                </cluster>
67        </clusterset>
68
69        <globalset> 
70                <vseg   name      = "seg_boot_code_data" 
71                        vbase     = "0xbfc00000" 
72                        mode      = "CX__" 
73                                                clusterid = "0"
74                        psegname  = "PSEG_ROM" 
75                        ident     = "1" >
76                                            <vobj   name        = "seg_boot"
77                                                        type    = "ELF"
78                                                        length  = "0x00008000" 
79                                                        binpath = "build/boot.elf" />
80                                </vseg>
81
82                <vseg   name      = "seg_boot_stack"
83                        vbase     = "0xbfc08000" 
84                        mode      = "C_W_"
85                                                clusterid = "0"
86                        psegname  = "PSEG_ROM"
87                        ident     = "1" >
88                                        <vobj   name    = "boot_stack"
89                                                        type    = "BUFFER"
90                                                        length  = "0x00004000" />
91                                </vseg>
92
93                <vseg   name      = "seg_boot_mapping"
94                        vbase     = "0xbfc0c000" 
95                        mode      = "C_W_"
96                                                clusterid = "0"
97                        psegname  = "PSEG_ROM"
98                        ident     = "1" >
99                                        <vobj   name    = "seg_mapping"
100                                                        type    = "BLOB"
101                                                        length  = "0x00004000" 
102                                                        binpath = "map.bin" />
103                                </vseg>
104
105                <vseg   name      = "seg_kernel_code"
106                        vbase     = "0x80000000" 
107                        mode      = "CX__" 
108                                                clusterid = "0"
109                        psegname  = "PSEG_RAU"
110                        ident     = "0" >
111                                        <vobj   name    = "seg_kernel_code"
112                                                        type    = "ELF"
113                                                        length  = "0x00010000" 
114                                                        binpath = "build/sys.elf"
115                                                        />
116                                </vseg>
117
118                <vseg   name      = "seg_kernel_data"
119                        vbase     = "0x80010000" 
120                        mode      = "C_W_" 
121                                                clusterid = "0"
122                        psegname  = "PSEG_RAU"
123                        ident     = "O" >
124                                        <vobj   name    = "seg_kernel_data"
125                                                        type    = "ELF"
126                                                        length  = "0x00040000" 
127                                                        binpath = "build/sys.elf" />
128                                </vseg>
129
130                <vseg   name      = "seg_kernel_uncdata"
131                        vbase     = "0x80080000" 
132                        mode      = "__W_"
133                                                clusterid = "0"
134                        psegname  = "PSEG_RAU"
135                        ident     = "0" >
136                                            <vobj   name        = "seg_kernel_uncdata"
137                                                        type    = "ELF"
138                                                            length  = "0x00010000" 
139                                                        binpath = "build/sys.elf" />
140                                </vseg>
141
142                <vseg   name      = "seg_kernel_init"
143                        vbase     = "0x80090000" 
144                        mode      = "CX__"
145                                                clusterid = "0"
146                        psegname  = "PSEG_RAU"
147                        ident     = "0" >
148                                        <vobj   name    = "seg_kernel_init"
149                                                        type    = "ELF"
150                                                        length  = "0x00010000" 
151                                                        binpath = "build/sys.elf" />
152                                </vseg>
153
154
155                <vseg   name      = "seg_tty"
156                        vbase     = "0x90000000" 
157                        mode      = "__W_"
158                                                clusterid = "0"
159                        psegname  = "PSEG_TTY"
160                        ident     = "1" >
161                                        <vobj   name    = "tty"
162                                                        type    = "PERI"
163                                                        length  = "0x00001000" />
164                                </vseg>
165
166                <vseg   name      = "seg_timer"
167                        vbase     = "0x91000000" 
168                        mode      = "__W_"
169                                                clusterid = "0"
170                        psegname  = "PSEG_TIM"
171                        ident     = "1" >
172                                        <vobj   name    = "timer"
173                                                        type    = "PERI"
174                                                        length  = "0x00001000" />
175                                </vseg>
176
177                <vseg   name      = "seg_ioc"
178                        vbase     = "0x92000000" 
179                        mode      = "__W_"
180                                                clusterid = "0"
181                        psegname  = "PSEG_IOC"
182                        ident     = "1" >
183                                        <vobj   name    = "ioc"
184                                                        type    = "PERI"
185                                                        length  = "0x00000020" />
186                                </vseg>
187
188                <vseg   name      = "seg_dma"
189                        vbase     = "0x93000000" 
190                        mode      = "__W_"
191                                                clusterid = "0"
192                        psegname  = "PSEG_DMA"
193                        ident     = "1" >
194                                        <vobj   name    = "dma"
195                                                        type    = "PERI"
196                                                        length  = "0x00001000" />
197                                </vseg>
198
199                <vseg   name      = "seg_fb"
200                        vbase     = "0x96000000" 
201                        mode      = "__W_"
202                                                clusterid = "0"
203                        psegname  = "PSEG_FBF"
204                        ident     = "1" >
205                                        <vobj   name    = "fb"
206                                                        type    = "PERI"
207                                                        length  = "0x00004000" />
208                                </vseg>
209
210                <vseg   name      = "seg_icu"
211                        vbase     = "0x9F000000" 
212                        mode      = "__W_"
213                                                clusterid = "0"
214                        psegname  = "PSEG_ICU"
215                        ident     = "1" >
216                                        <vobj   name    = "icu"
217                                                        type    = "PERI"
218                                                        length  = "0x00000100" />
219                                </vseg>
220          </globalset> 
221
222          <vspaceset>
223                <vspace name      = "router"
224                        startname = "seg_data_router" >
225
226                        <vseg   name      = "seg_data_router"
227                                vbase     = "0x00800000" 
228                                mode      = "__WU"
229                                                                clusterid = "0"
230                                psegname  = "PSEG_RAU" >
231                                                            <vobj   name        = "seg_data_router"
232                                                                        type    = "ELF"
233                                                                        length  = "0x00010000" 
234                                        binpath = "build/router.elf" />
235                                                </vseg>
236
237                        <vseg   name      = "seg_code_router"
238                                vbase     = "0x00400000" 
239                                mode      = "CX_U"
240                                                                clusterid = "0"
241                                psegname  = "PSEG_RAU" >
242                                                            <vobj   name        = "seg_code_router"
243                                                                        type    = "ELF"
244                                                                            length  = "0x00010000" 
245                                        binpath = "build/router.elf" />
246                                                </vseg>
247
248                        <vseg   name      = "seg_ptab"
249                                vbase     = "0x00300000" 
250                                mode      = "C___"
251                                                                clusterid = "0"
252                                psegname  = "PSEG_RAU" >
253                                <vobj   name    = "ptab_router"
254                                        type    = "PTAB"
255                                        length  = "0x00012000" 
256                                        align   = "13" />
257                        </vseg>
258
259                        <vseg   name      = "seg_stack_producer"
260                                                vbase     = "0x00010000" 
261                                mode      = "C_WU"
262                                                                clusterid = "0"
263                                psegname  = "PSEG_RAU" >
264                                                            <vobj   name        = "stack_producer"
265                                                                        type    = "BUFFER"
266                                                                            length  = "0x00010000" />
267                                                </vseg>
268
269                        <vseg   name      = "seg_stack_consumer"
270                                                vbase     = "0x00020000" 
271                                mode      = "C_WU"
272                                                                clusterid = "0"
273                                psegname  = "PSEG_RAU" >
274                                                            <vobj   name        = "stack_consumer"
275                                                                        type    = "BUFFER"
276                                                                            length  = "0x00010000" />
277                                                </vseg>
278
279                        <vseg   name      = "seg_stack_router_A"
280                                                vbase     = "0x00030000" 
281                                mode      = "C_WU"
282                                                                clusterid = "0"
283                                psegname  = "PSEG_RAU" >
284                                                            <vobj   name        = "stack_router_A"
285                                                                        type    = "BUFFER"
286                                                                            length  = "0x00010000" />
287                                                </vseg>
288
289                        <vseg   name      = "seg_stack_router_B"
290                                                vbase     = "0x00040000" 
291                                mode      = "C_WU"
292                                                                clusterid = "0"
293                                psegname  = "PSEG_RAU" >
294                                                            <vobj   name        = "stack_router_B"
295                                                                        type    = "BUFFER"
296                                                                            length  = "0x00010000" />
297                                                </vseg>
298
299                        <vseg   name      = "seg_mwmr_channels"
300                                vbase     = "0x00050000"
301                                mode      = "__WU"
302                                                                clusterid = "0"
303                                psegname  = "PSEG_RAU" >
304                                                            <vobj   name        = "mwmr_in"
305                                                                        type    = "MWMR"
306                                                                            length  = "0x00000020" 
307                                                                            init    = "1" />
308                                                            <vobj   name        = "mwmr_out"
309                                                                        type    = "MWMR"
310                                                                            length  = "0x00000020" 
311                                                                            init    = "1" />
312                                                </vseg>
313
314                        <task   name      = "producer"
315                                clusterid = "0"
316                                proclocid = "0"
317                                stackname = "stack_producer"
318                                startid   = "0"
319                                usetty    = "1" />
320
321                        <task   name      = "consumer"
322                                clusterid = "0"
323                                proclocid = "1"
324                                stackname = "stack_consumer"
325                                startid   = "1" 
326                                usetty    = "1" />
327
328                        <task   name      = "router_A"
329                                clusterid = "0"
330                                proclocid = "2"
331                                stackname = "stack_router_A"
332                                startid   = "2"
333                                usetty    = "1" />
334
335                        <task   name      = "router_B"
336                                clusterid = "0"
337                                proclocid = "3"
338                                stackname = "stack_router_B"
339                                startid   = "2"
340                                usetty    = "1" />
341                </vspace>
342
343                <vspace name      = "hello" 
344                        startname = "seg_data_hello" >
345
346                        <vseg   name      = "seg_data_hello"
347                                vbase     = "0x00800000" 
348                                mode      = "C_WU"
349                                                                clusterid = "0"
350                                psegname  = "PSEG_RAU" >
351                                                            <vobj   name        = "seg_data_hello"
352                                                                        type    = "ELF"
353                                                                            length    = "0x00010000" 
354                                        binpath = "build/hello.elf" />
355                                                </vseg>
356
357                        <vseg   name      = "seg_code_hello"
358                                vbase     = "0x00400000" 
359                                mode      = "CX_U"
360                                                                clusterid = "0"
361                                psegname  = "PSEG_RAU" >
362                                                            <vobj   name        = "seg_code_hello"
363                                                                        type    = "ELF"
364                                                                            length    = "0x00010000" 
365                                        binpath = "build/hello.elf" />
366                                                </vseg>
367
368                        <vseg   name      = "seg_ptab"
369                                vbase     = "0x00300000" 
370                                mode      = "C___"
371                                                                clusterid = "0"
372                                psegname  = "PSEG_RAU" >
373                                <vobj   name    = "ptab"
374                                        type    = "PTAB"
375                                        length  = "0x00012000" 
376                                        align   = "13" />
377                        </vseg>
378
379                        <vseg   name      = "seg_stack"
380                                vbase     = "0x00000000" 
381                                mode      = "C_WU"
382                                                                clusterid = "0"
383                                psegname  = "PSEG_RAU" >
384                                                            <vobj   name        = "stack"
385                                                                        type    = "BUFFER"
386                                                                            length  = "0x00010000" />
387                                                </vseg>
388
389
390                        <task   name      = "main_hello"
391                                clusterid = "0"
392                                proclocid = "2"
393                                stackname = "stack"
394                                startid   = "0" 
395                                usetty    = "1" />
396                </vspace>
397
398                <vspace name      = "pgcd" 
399                        startname = "seg_data_pgcd" >
400
401                        <vseg   name      = "seg_data_pgcd"
402                                vbase     = "0x00800000" 
403                                mode      = "C_WU"
404                                                                clusterid = "0"
405                                psegname  = "PSEG_RAU" >
406                                                            <vobj   name        = "seg_data_pgcd"
407                                                                        type    = "ELF"
408                                                                            length  = "0x00010000" 
409                                        binpath = "build/pgcd.elf" />
410                                                </vseg>
411
412                        <vseg   name      = "seg_ptab"
413                                vbase     = "0x00300000" 
414                                mode      = "C___"
415                                                                clusterid = "0"
416                                psegname  = "PSEG_RAU" >
417                                <vobj   name    = "ptab"
418                                        type    = "PTAB"
419                                        length  = "0x00012000" 
420                                        align   = "13" />
421                        </vseg>
422
423                        <vseg   name      = "seg_code_pgcd"
424                                vbase     = "0x00400000" 
425                                mode      = "CX_U"
426                                                                clusterid = "0"
427                                psegname  = "PSEG_RAU" >
428                                                            <vobj   name        = "seg_code_pgcd"
429                                                                        type    = "ELF"
430                                                                            length  = "0x00010000" 
431                                        binpath = "build/pgcd.elf" />
432                                                </vseg>
433
434                        <vseg   name      = "seg_stack"
435                                vbase     = "0x00000000" 
436                                mode      = "C_WU"
437                                                                clusterid = "0"
438                                psegname  = "PSEG_RAU" >
439                                                            <vobj   name        = "stack"
440                                                                        type    = "BUFFER"
441                                                                            length  = "0x00010000" />
442                                                </vseg>
443
444                        <task   name      = "main_pgcd"
445                                clusterid = "0"
446                                proclocid = "3"
447                                stackname = "stack"
448                                startid   = "0" 
449                                usetty    = "1" />
450                </vspace>
451
452                <vspace name      = "display" 
453                        startname = "seg_data_display" >
454
455                        <vseg   name      = "seg_data_display"
456                                vbase     = "0x00800000" 
457                                mode      = "C_WU"
458                                                                clusterid = "0"
459                                psegname  = "PSEG_RAU" >
460                                                            <vobj   name        = "seg_data_display"
461                                                                        type    = "ELF"
462                                                                            length  = "0x00010000" 
463                                        binpath = "build/display.elf" />
464                                                </vseg>
465
466                        <vseg   name      = "seg_ptab_display"
467                                vbase     = "0x00300000" 
468                                mode      = "C___"
469                                                                clusterid = "0"
470                                psegname  = "PSEG_RAU" >
471                                <vobj   name    = "ptab"
472                                        type    = "PTAB"
473                                        length  = "0x00012000" 
474                                        align   = "13" />
475                        </vseg>
476
477                        <vseg   name      = "seg_code_display"
478                                vbase     = "0x00400000" 
479                                mode      = "CX_U"
480                                                                clusterid = "0"
481                                psegname  = "PSEG_RAU" >
482                                                            <vobj   name        = "seg_code_display"
483                                                                        type    = "ELF"
484                                                                            length  = "0x00010000" 
485                                        binpath = "build/display.elf" />
486                                                </vseg>
487
488                        <vseg   name      = "seg_stack_display"
489                                vbase     = "0x00000000" 
490                                mode      = "C_WU"
491                                                                clusterid = "0"
492                                psegname  = "PSEG_RAU" >
493                                                            <vobj   name        = "stack_display"
494                                                                        type    = "BUFFER"
495                                                                            length  = "0x00010000" />
496                                                </vseg>
497
498                        <task   name      = "main_display"
499                                clusterid = "0"
500                                proclocid = "3"
501                                stackname = "stack_display"
502                                startid   = "0" 
503                                usetty    = "1"
504                                usefb     = "1" />
505                </vspace>
506
507          </vspaceset>
508</mapping_info>
Note: See TracBrowser for help on using the repository browser.