source: soft/giet_vm/mappings/exemple.xml @ 214

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

groupping all xml files in the directory mappings

File size: 26.6 KB
Line 
1<?xml version="1.0"?>
2
3<mapping_info   signature = "0xdeadbeef" 
4                name     = "1C_4P_FOUR"
5                clusters = "1"
6                vspaces  = "4" >
7
8        <clusterset>
9                <cluster index  = "0" >
10                         <pseg    name   = "PSEG_ROM" 
11                                  type   = "ROM"
12                                  base   = "0xbfc00000" 
13                                  length = "0x00010000" />
14
15                         <pseg    name   = "PSEG_RAM" 
16                                  type   = "RAM"
17                                  base   = "0x01000000" 
18                                  length = "0x01000000" />
19
20                         <pseg    name   = "PSEG_TTY"
21                                  type   = "PERI"
22                                  base   = "0x90000000" 
23                                  length = "0x00001000" />
24
25                         <pseg    name   = "PSEG_TIM" 
26                                  type   = "PERI"
27                                  base   = "0x90100000" 
28                                  length = "0x00001000" />
29
30                         <pseg    name   = "PSEG_IOC" 
31                                  type   = "PERI"
32                                  base   = "0x90200000" 
33                                  length = "0x00001000" />
34
35                         <pseg    name   = "PSEG_DMA" 
36                                  type   = "PERI"
37                                  base   = "0x90300000" 
38                                  length = "0x00001000" />
39
40                         <pseg    name   = "PSEG_FBF" 
41                                  type   = "PERI"
42                                  base   = "0x90600000" 
43                                  length = "0x00004000" />
44
45                         <pseg    name   = "PSEG_ICU" 
46                                  type   = "PERI"
47                                  base   = "0x90700000" 
48                                  length = "0x00001000" />
49
50                         <pseg    name   = "PSEG_COP" 
51                                  type   = "PERI"
52                                  base   = "0x90800000" 
53                                  length = "0x00001000" />
54
55                         <proc    index  = "0" >
56                                  <irq   type    = "HARD"
57                                         icuid   = "0"
58                                         isr     = "ISR_SWITCH" />
59
60                                  <irq   type    = "HARD"
61                                         icuid   = "8"
62                                         isr     = "ISR_DMA"
63                                         channel = "0" />
64
65                                  <irq   type    = "HARD"
66                                         icuid   = "9"
67                                         isr     = "ISR_DMA"
68                                         channel = "1" />
69
70                                  <irq   type    = "HARD"
71                                         icuid   = "10"
72                                         isr     = "ISR_DMA"
73                                         channel = "2" />
74
75                                  <irq   type    = "HARD"
76                                         icuid   = "11"
77                                         isr     = "ISR_DMA"
78                                         channel = "3" />
79
80                                  <irq   type    = "HARD"
81                                         icuid   = "12"
82                                         isr     = "ISR_DMA"
83                                         channel = "4" />
84
85                                  <irq   type    = "HARD"
86                                         icuid   = "13"
87                                         isr     = "ISR_DMA"
88                                         channel = "5" />
89
90                                  <irq   type    = "HARD"
91                                         icuid   = "14"
92                                         isr     = "ISR_DMA"
93                                         channel = "6" />
94
95                                  <irq   type    = "HARD"
96                                         icuid   = "15"
97                                         isr     = "ISR_DMA"
98                                         channel = "7" />
99
100                                  <irq   type    = "HARD"
101                                         icuid   = "16"
102                                         isr     = "ISR_TTY"
103                                         channel = "0" />
104
105                                  <irq   type    = "HARD"
106                                         icuid   = "17"
107                                         isr     = "ISR_TTY"
108                                         channel = "1" />
109
110                                  <irq   type    = "HARD"
111                                         icuid   = "18"
112                                         isr     = "ISR_TTY"
113                                         channel = "2" />
114
115                                  <irq   type    = "HARD"
116                                         icuid   = "19"
117                                         isr     = "ISR_TTY"
118                                         channel = "3" />
119
120                                  <irq   type    = "HARD"
121                                         icuid   = "20"
122                                         isr     = "ISR_TTY"
123                                         channel = "4" />
124
125                                  <irq   type    = "HARD"
126                                         icuid   = "21"
127                                         isr     = "ISR_TTY"
128                                         channel = "5" />
129
130                                  <irq   type    = "HARD"
131                                         icuid   = "22"
132                                         isr     = "ISR_TTY"
133                                         channel = "6" />
134
135                                  <irq   type    = "HARD"
136                                         icuid   = "23"
137                                         isr     = "ISR_TTY"
138                                         channel = "7" />
139
140                                  <irq   type    = "HARD"
141                                         icuid   = "24"
142                                         isr     = "ISR_TTY"
143                                         channel = "8" />
144
145                                  <irq   type    = "HARD"
146                                         icuid   = "25"
147                                         isr     = "ISR_TTY"
148                                         channel = "9" />
149
150                                  <irq   type    = "HARD"
151                                         icuid   = "26"
152                                         isr     = "ISR_TTY"
153                                         channel = "10" />
154
155                                  <irq   type    = "HARD"
156                                         icuid   = "27"
157                                         isr     = "ISR_TTY"
158                                         channel = "11" />
159
160                                  <irq   type    = "HARD"
161                                         icuid   = "28"
162                                         isr     = "ISR_TTY"
163                                         channel = "12" />
164
165                                  <irq   type    = "HARD"
166                                         icuid   = "29"
167                                         isr     = "ISR_TTY"
168                                         channel = "13" />
169
170                                  <irq   type    = "HARD"
171                                         icuid   = "30"
172                                         isr     = "ISR_TTY"
173                                         channel = "14" />
174
175                                  <irq   type    = "HARD"
176                                         icuid   = "31"
177                                         isr     = "ISR_IOC" />
178                         </proc>
179
180                         <proc    index  = "1" >
181                                  <irq   type    = "HARD"
182                                         icuid   = "1"
183                                         isr     = "ISR_SWITCH" />
184                         </proc>
185
186                         <proc    index  = "2" >
187                                  <irq   type    = "HARD"
188                                         icuid   = "2"
189                                         isr     = "ISR_SWITCH" />
190                         </proc>
191
192                         <proc    index  = "3" >
193                                  <irq   type    = "HARD"
194                                         icuid   = "3"
195                                         isr     = "ISR_SWITCH" />
196                         </proc>
197
198                         <periph  type      = "IOC" 
199                                  psegname  = "PSEG_IOC"
200                                  channels  = "1" />
201
202                         <periph  type      = "TTY" 
203                                  psegname  = "PSEG_TTY"
204                                  channels  = "2" />
205   
206                         <periph  type      = "DMA" 
207                                  psegname  = "PSEG_DMA"
208                                  channels  = "1" />
209   
210                         <periph  type      = "TIM"
211                                  psegname  = "PSEG_TIM"
212                                  channels  = "8" />
213
214                         <periph  type      = "FBF"
215                                  psegname  = "PSEG_FBF" />
216
217                         <coproc  name     = "COP0" 
218                                  psegname = "PSEG_COP" >
219
220                                  <port    direction  = "TO_COPROC"
221                                           vspacename = "router"
222                                           vobjname   = "mwmr_in" />
223
224                                  <port    direction  = "FROM_COPROC"
225                                           vspacename = "router"
226                                           vobjname   = "mwmr_out" />
227                         </coproc>
228                </cluster>
229        </clusterset>
230
231        <globalset> 
232                <vseg   name      = "seg_boot_code_data" 
233                        vbase     = "0xbfc00000" 
234                        mode      = "CXW_" 
235                        clusterid = "0"
236                        psegname  = "PSEG_ROM" 
237                        ident     = "1" >
238                                            <vobj   name        = "seg_boot"
239                                                        type    = "ELF"
240                                                        length  = "0x00008000" 
241                                                        binpath = "build/boot/boot.elf" />
242                                </vseg>
243
244                <vseg   name      = "seg_boot_stack"
245                        vbase     = "0xbfc08000" 
246                        mode      = "C_W_"
247                        clusterid = "0"
248                        psegname  = "PSEG_ROM"
249                        ident     = "1" >
250                                        <vobj   name    = "boot_stack"
251                                                        type    = "BUFFER"
252                                                        length  = "0x00004000" />
253                                </vseg>
254
255                <vseg   name      = "seg_boot_mapping"
256                        vbase     = "0xbfc0c000" 
257                        mode      = "C_W_"
258                        clusterid = "0"
259                        psegname  = "PSEG_ROM"
260                        ident     = "1" >
261                                        <vobj   name    = "seg_mapping"
262                                                        type    = "BLOB"
263                                                        length  = "0x00004000" 
264                                                        binpath = "map.bin" />
265                                </vseg>
266
267                <vseg   name      = "seg_kernel_code"
268                        vbase     = "0x80000000" 
269                        mode      = "CX__" 
270                        clusterid = "0"
271                        psegname  = "PSEG_RAM" >
272                                            <vobj   name        = "seg_kernel_code"
273                                                        type    = "ELF"
274                                                            length  = "0x00010000" 
275                                                            binpath     = "build/sys/sys.elf" />
276                                </vseg>
277
278                <vseg   name      = "seg_kernel_data"
279                        vbase     = "0x80010000" 
280                        mode      = "C_W_" 
281                        clusterid = "0"
282                        psegname  = "PSEG_RAM" >
283                                        <vobj   name    = "seg_kernel_data"
284                                                        type    = "ELF"
285                                                        length  = "0x00040000" 
286                                                        binpath = "build/sys/sys.elf" />
287                                </vseg>
288
289                <vseg   name      = "seg_kernel_uncdata"
290                        vbase     = "0x80080000" 
291                        mode      = "__W_"
292                        clusterid = "0"
293                        psegname  = "PSEG_RAM" >
294                                            <vobj   name        = "seg_kernel_uncdata"
295                                                        type    = "ELF"
296                                                            length  = "0x00010000" 
297                                                        binpath = "build/sys/sys.elf" />
298                                </vseg>
299
300                <vseg   name      = "seg_kernel_init"
301                        vbase     = "0x80090000" 
302                        mode      = "CX__"
303                        clusterid = "0"
304                        psegname  = "PSEG_RAM" >
305                                        <vobj   name    = "seg_kernel_init"
306                                                        type    = "ELF"
307                                                        length  = "0x00010000" 
308                                                        binpath = "build/sys/sys.elf" />
309                                </vseg>
310
311
312                <vseg   name      = "seg_tty"
313                        vbase     = "0x90000000" 
314                        mode      = "__W_"
315                        clusterid = "0"
316                        psegname  = "PSEG_TTY" >
317                                        <vobj   name    = "tty"
318                                                        type    = "PERI"
319                                                        length  = "0x00001000" />
320                                </vseg>
321
322                <vseg   name      = "seg_timer"
323                        vbase     = "0x91000000" 
324                        mode      = "__W_"
325                        clusterid = "0"
326                        psegname  = "PSEG_TIM" >
327                                        <vobj   name    = "timer"
328                                                        type    = "PERI"
329                                                        length  = "0x00001000" />
330                                </vseg>
331
332                <vseg   name      = "seg_ioc"
333                        vbase     = "0x92000000" 
334                        mode      = "__W_"
335                        clusterid = "0"
336                        psegname  = "PSEG_IOC" >
337                                        <vobj   name    = "ioc"
338                                                        type    = "PERI"
339                                                        length  = "0x00000020" />
340                                </vseg>
341
342                <vseg   name      = "seg_dma"
343                        vbase     = "0x93000000" 
344                        mode      = "__W_"
345                        clusterid = "0"
346                        psegname  = "PSEG_DMA" >
347                                        <vobj   name    = "dma"
348                                                        type    = "PERI"
349                                                        length  = "0x00001000" />
350                                </vseg>
351
352                <vseg   name      = "seg_fb"
353                        vbase     = "0x96000000" 
354                        mode      = "__W_"
355                        clusterid = "0"
356                        psegname  = "PSEG_FBF" >
357                                        <vobj   name    = "fb"
358                                                        type    = "PERI"
359                                                        length  = "0x00004000" />
360                                </vseg>
361
362                <vseg   name      = "seg_icu"
363                        vbase     = "0x9F000000" 
364                        mode      = "__W_"
365                        clusterid = "0"
366                        psegname  = "PSEG_ICU" >
367                                        <vobj   name    = "icu"
368                                                        type    = "PERI"
369                                                        length  = "0x00000100" />
370                                </vseg>
371          </globalset> 
372
373          <vspaceset>
374                <vspace name      = "router"
375                        startname = "seg_data_router" >
376
377                        <vseg   name      = "seg_data_router"
378                                vbase     = "0x00800000" 
379                                mode      = "__WU"
380                                clusterid = "0"
381                                psegname  = "PSEG_RAM" >
382                                                            <vobj   name        = "seg_data_router"
383                                                                        type    = "ELF"
384                                                                        length  = "0x00010000" 
385                                        binpath = "build/router/router.elf" />
386                                                </vseg>
387
388                        <vseg   name      = "seg_code_router"
389                                vbase     = "0x00400000" 
390                                mode      = "CX_U"
391                                clusterid = "0"
392                                psegname  = "PSEG_RAM" >
393                                                            <vobj   name        = "seg_code_router"
394                                                                        type    = "ELF"
395                                                                            length  = "0x00010000" 
396                                        binpath = "build/router/router.elf" />
397                                                </vseg>
398
399                        <vseg   name      = "seg_ptab"
400                                vbase     = "0x00300000" 
401                                mode      = "C___"
402                                clusterid = "0"
403                                psegname  = "PSEG_RAM" >
404                                <vobj   name    = "ptab_router"
405                                        type    = "PTAB"
406                                        length  = "0x00012000" 
407                                        align   = "13" />
408                        </vseg>
409
410                        <vseg   name      = "seg_stack_producer"
411                                                vbase     = "0x00010000" 
412                                mode      = "C_WU"
413                                clusterid = "0"
414                                psegname  = "PSEG_RAM" >
415                                                            <vobj   name        = "stack_producer"
416                                                                        type    = "BUFFER"
417                                                                            length  = "0x00010000" />
418                                                </vseg>
419
420                        <vseg   name      = "seg_stack_consumer"
421                                                vbase     = "0x00020000" 
422                                mode      = "C_WU"
423                                clusterid = "0"
424                                psegname  = "PSEG_RAM" >
425                                                            <vobj   name        = "stack_consumer"
426                                                                        type    = "BUFFER"
427                                                                            length  = "0x00010000" />
428                                                </vseg>
429
430                        <vseg   name      = "seg_stack_router_A"
431                                                vbase     = "0x00030000" 
432                                mode      = "C_WU"
433                                clusterid = "0"
434                                psegname  = "PSEG_RAM" >
435                                                            <vobj   name        = "stack_router_A"
436                                                                        type    = "BUFFER"
437                                                                            length  = "0x00010000" />
438                                                </vseg>
439
440                        <vseg   name      = "seg_stack_router_B"
441                                                vbase     = "0x00040000" 
442                                mode      = "C_WU"
443                                clusterid = "0"
444                                psegname  = "PSEG_RAM" >
445                                                            <vobj   name        = "stack_router_B"
446                                                                        type    = "BUFFER"
447                                                                            length  = "0x00010000" />
448                                                </vseg>
449
450                        <vseg   name      = "seg_mwmr_channels"
451                                vbase     = "0x00050000"
452                                mode      = "__WU"
453                                clusterid = "0"
454                                psegname  = "PSEG_RAM" >
455                                                            <vobj   name        = "mwmr_in"
456                                                                        type    = "MWMR"
457                                                                            length  = "0x00000020"
458                                        init    = "1" />
459                                                            <vobj   name        = "mwmr_out"
460                                                                        type    = "MWMR"
461                                                                            length  = "0x00000020"
462                                        init    = "1" />
463                                                </vseg>
464
465                        <task   name      = "producer"
466                                clusterid = "0"
467                                proclocid = "0"
468                                stackname = "stack_producer"
469                                startid   = "0"
470                                usetty    = "1" />
471
472                        <task   name      = "consumer"
473                                clusterid = "0"
474                                proclocid = "1"
475                                stackname = "stack_consumer"
476                                startid   = "1" 
477                                usetty    = "1" />
478
479                        <task   name      = "router_A"
480                                clusterid = "0"
481                                proclocid = "2"
482                                stackname = "stack_router_A"
483                                startid   = "2"
484                                usetty    = "1" />
485
486                        <task   name      = "router_B"
487                                clusterid = "0"
488                                proclocid = "3"
489                                stackname = "stack_router_B"
490                                startid   = "2"
491                                usetty    = "1" />
492                </vspace>
493
494                <vspace name      = "hello" 
495                        startname = "seg_data_hello" >
496
497                        <vseg   name      = "seg_data_hello"
498                                vbase     = "0x00800000" 
499                                mode      = "C_WU"
500                                clusterid = "0"
501                                psegname  = "PSEG_RAM" >
502                                                            <vobj   name        = "seg_data_hello"
503                                                                        type    = "ELF"
504                                                                            length    = "0x00010000" 
505                                        binpath = "build/hello/hello.elf" />
506                                                </vseg>
507
508                        <vseg   name      = "seg_code_hello"
509                                vbase     = "0x00400000" 
510                                mode      = "CX_U"
511                                clusterid = "0"
512                                psegname  = "PSEG_RAM" >
513                                                            <vobj   name        = "seg_code_hello"
514                                                                        type    = "ELF"
515                                                                            length    = "0x00010000" 
516                                        binpath = "build/hello/hello.elf" />
517                                                </vseg>
518
519                        <vseg   name      = "seg_ptab"
520                                vbase     = "0x00300000" 
521                                mode      = "C___"
522                                clusterid = "0"
523                                psegname  = "PSEG_RAM" >
524                                <vobj   name    = "ptab"
525                                        type    = "PTAB"
526                                        length  = "0x00012000" 
527                                        align   = "13" />
528                        </vseg>
529
530                        <vseg   name      = "seg_stack"
531                                vbase     = "0x00000000" 
532                                mode      = "C_WU"
533                                clusterid = "0"
534                                psegname  = "PSEG_RAM" >
535                                                            <vobj   name        = "stack"
536                                                                        type    = "BUFFER"
537                                                                            length  = "0x00010000" />
538                                                </vseg>
539
540
541                        <task   name      = "main_hello"
542                                clusterid = "0"
543                                proclocid = "2"
544                                stackname = "stack"
545                                startid   = "0" 
546                                usetty    = "1" />
547                </vspace>
548
549                <vspace name      = "pgcd" 
550                        startname = "seg_data_pgcd" >
551
552                        <vseg   name      = "seg_data_pgcd"
553                                vbase     = "0x00800000" 
554                                mode      = "C_WU"
555                                clusterid = "0"
556                                psegname  = "PSEG_RAM" >
557                                                            <vobj   name        = "seg_data_pgcd"
558                                                                        type    = "ELF"
559                                                                            length  = "0x00010000" 
560                                        binpath = "build/pgcd/pgcd.elf" />
561                                                </vseg>
562
563                        <vseg   name      = "seg_ptab"
564                                vbase     = "0x00300000" 
565                                mode      = "C___"
566                                clusterid = "0"
567                                psegname  = "PSEG_RAM" >
568                                <vobj   name    = "ptab"
569                                        type    = "PTAB"
570                                        length  = "0x00012000" 
571                                        align   = "13" />
572                        </vseg>
573
574                        <vseg   name      = "seg_code_pgcd"
575                                vbase     = "0x00400000" 
576                                mode      = "CX_U"
577                                clusterid = "0"
578                                psegname  = "PSEG_RAM" >
579                                                            <vobj   name        = "seg_code_pgcd"
580                                                                        type    = "ELF"
581                                                                            length  = "0x00010000" 
582                                        binpath = "build/pgcd/pgcd.elf" />
583                                                </vseg>
584
585                        <vseg   name      = "seg_stack"
586                                vbase     = "0x00000000" 
587                                mode      = "C_WU"
588                                clusterid = "0"
589                                psegname  = "PSEG_RAM" >
590                                                            <vobj   name        = "stack"
591                                                                        type    = "BUFFER"
592                                                                            length  = "0x00010000" />
593                                                </vseg>
594
595                        <task   name      = "main_pgcd"
596                                clusterid = "0"
597                                proclocid = "3"
598                                stackname = "stack"
599                                startid   = "0" 
600                                usetty    = "1" />
601                </vspace>
602
603                <vspace name      = "display" 
604                        startname = "seg_data_display" >
605
606                        <vseg   name      = "seg_data_display"
607                                vbase     = "0x00800000" 
608                                mode      = "C_WU"
609                                clusterid = "0"
610                                psegname  = "PSEG_RAM" >
611                                                            <vobj   name        = "seg_data_display"
612                                                                        type    = "ELF"
613                                                                            length  = "0x00010000" 
614                                        binpath = "build/display/display.elf" />
615                                                </vseg>
616
617                        <vseg   name      = "seg_ptab_display"
618                                vbase     = "0x00300000" 
619                                mode      = "C___"
620                                clusterid = "0"
621                                psegname  = "PSEG_RAM" >
622                                <vobj   name    = "ptab"
623                                        type    = "PTAB"
624                                        length  = "0x00012000" 
625                                        align   = "13" />
626                        </vseg>
627
628                        <vseg   name      = "seg_code_display"
629                                vbase     = "0x00400000" 
630                                mode      = "CX_U"
631                                clusterid = "0"
632                                psegname  = "PSEG_RAM" >
633                                                            <vobj   name        = "seg_code_display"
634                                                                        type    = "ELF"
635                                                                            length  = "0x00010000" 
636                                        binpath = "build/display/display.elf" />
637                                                </vseg>
638
639                        <vseg   name      = "seg_stack_display"
640                                vbase     = "0x00000000" 
641                                mode      = "C_WU"
642                                clusterid = "0"
643                                psegname  = "PSEG_RAM" >
644                                                            <vobj   name        = "stack_display"
645                                                                        type    = "BUFFER"
646                                                                            length  = "0x00010000" />
647                                                </vseg>
648
649                        <task   name      = "main_display"
650                                clusterid = "0"
651                                proclocid = "3"
652                                stackname = "stack_display"
653                                startid   = "0" 
654                                usetty    = "1"
655                                usefbdma  = "1" />
656                </vspace>
657
658          </vspaceset>
659</mapping_info>
Note: See TracBrowser for help on using the repository browser.