source: soft/giet_vm/mappings/4c_1p_sort.xml @ 287

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

Modification on giet_xml parser and driver:

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