1 | <?xml version="1.0"?> |
---|
2 | |
---|
3 | <mapping_info signature = "0xdeadbeef" |
---|
4 | name = "4c_1p_sort_chiplet" |
---|
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 = "0x0004000000" /> |
---|
22 | <pseg name = "PSEG_XCU" type = "PERI" base = "0x00B0000000" length = "0x0000002000" /> |
---|
23 | <pseg name = "PSEG_MMC" type = "PERI" base = "0x00A2000000" length = "0x0000001000" /> |
---|
24 | |
---|
25 | *** Non replicated peripherals (including the ROM containing the preloader code) |
---|
26 | |
---|
27 | <pseg name = "PSEG_IOC" type = "PERI" base = "0x00B3000000" length = "0x0000001000" /> |
---|
28 | <pseg name = "PSEG_TTY" type = "PERI" base = "0x00B4000000" length = "0x0000001000" /> |
---|
29 | <pseg name = "PSEG_ROM" type = "PERI" base = "0x00BFC00000" length = "0x0000008000" /> |
---|
30 | |
---|
31 | <proc index = "0" > |
---|
32 | <irq type = "SOFT" icuid = "0" isr = "ISR_WAKUP" /> |
---|
33 | <irq type = "TIME" icuid = "1" isr = "ISR_SWITCH" /> |
---|
34 | <irq type = "HARD" icuid = "31" isr = "ISR_IOC" /> |
---|
35 | </proc> |
---|
36 | |
---|
37 | <periph type = "XCU" psegname = "PSEG_XCU" channels = "1" /> |
---|
38 | <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> |
---|
39 | <periph type = "IOC" psegname = "PSEG_IOC" channels = "1" /> |
---|
40 | <periph type = "TTY" psegname = "PSEG_TTY" channels = "1" /> |
---|
41 | <periph type = "ROM" psegname = "PSEG_ROM" channels = "1" /> |
---|
42 | |
---|
43 | </cluster> |
---|
44 | |
---|
45 | <cluster x = "0" y = "1" > |
---|
46 | <pseg name = "PSEG_RAM" type = "RAM" base = "0x0100000000" length = "0x0001000000" /> |
---|
47 | <pseg name = "PSEG_XCU" type = "PERI" base = "0x01B0000000" length = "0x0000002000" /> |
---|
48 | <pseg name = "PSEG_MMC" type = "PERI" base = "0x01A2000000" length = "0x0000001000" /> |
---|
49 | |
---|
50 | <proc index = "0" > |
---|
51 | <irq type = "SOFT" icuid = "0" isr = "ISR_WAKUP" /> |
---|
52 | <irq type = "TIME" icuid = "1" isr = "ISR_SWITCH" /> |
---|
53 | </proc> |
---|
54 | |
---|
55 | <periph type = "XCU" psegname = "PSEG_XCU" channels = "1" /> |
---|
56 | <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> |
---|
57 | </cluster> |
---|
58 | |
---|
59 | <cluster x = "1" y = "0" > |
---|
60 | <pseg name = "PSEG_RAM" type = "RAM" base = "0x1000000000" length = "0x0001000000" /> |
---|
61 | <pseg name = "PSEG_XCU" type = "PERI" base = "0x10B0000000" length = "0x0000002000" /> |
---|
62 | <pseg name = "PSEG_MMC" type = "PERI" base = "0x10A2000000" length = "0x0000001000" /> |
---|
63 | |
---|
64 | <proc index = "0" > |
---|
65 | <irq type = "SOFT" icuid = "0" isr = "ISR_WAKUP" /> |
---|
66 | <irq type = "TIME" icuid = "1" isr = "ISR_SWITCH" /> |
---|
67 | </proc> |
---|
68 | |
---|
69 | <periph type = "XCU" psegname = "PSEG_XCU" channels = "1" /> |
---|
70 | <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> |
---|
71 | </cluster> |
---|
72 | |
---|
73 | <cluster x = "1" y = "1" > |
---|
74 | <pseg name = "PSEG_RAM" type = "RAM" base = "0x1100000000" length = "0x0001000000" /> |
---|
75 | <pseg name = "PSEG_XCU" type = "PERI" base = "0x11B0000000" length = "0x0000002000" /> |
---|
76 | <pseg name = "PSEG_MMC" type = "PERI" base = "0x11A2000000" length = "0x0000001000" /> |
---|
77 | |
---|
78 | <proc index = "0" > |
---|
79 | <irq type = "SOFT" icuid = "0" isr = "ISR_WAKUP" /> |
---|
80 | <irq type = "TIME" icuid = "1" isr = "ISR_SWITCH" /> |
---|
81 | </proc> |
---|
82 | |
---|
83 | <periph type = "XCU" psegname = "PSEG_XCU" channels = "1" /> |
---|
84 | <periph type = "MMC" psegname = "PSEG_MMC" channels = "1" /> |
---|
85 | </cluster> |
---|
86 | </clusterset> |
---|
87 | |
---|
88 | <globalset> |
---|
89 | |
---|
90 | *** Segments used by the boot code / A[31:28] = 0x0 / Identity mapping |
---|
91 | - seg_boot_mapping is loaded by the boot-loader. It contains the mapping info. The content is reused by the kernel. |
---|
92 | - 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. |
---|
93 | - seg_boot_stack is contains the stacks used by all processors during reset and boot. The content is not reused by the Kernel. |
---|
94 | - seg_boot_buffer is used by the boot-loader. It can contain a complete .elf file. The content is not reused by the kernel. |
---|
95 | |
---|
96 | <vseg name = "seg_boot_mapping" vbase = "0x00000000" mode = "C_W_" x = "0" y = "0" psegname = "PSEG_RAM" ident = "1" > |
---|
97 | <vobj name = "boot_mapping" type = "BLOB" length = "0x00010000" binpath = "map.bin" /> |
---|
98 | </vseg> |
---|
99 | <vseg name = "seg_boot_code" vbase = "0x00010000" mode = "CXW_" x = "0" y = "0" psegname = "PSEG_RAM" ident = "1" > |
---|
100 | <vobj name = "boot_code" type = "BUFFER" length = "0x00020000" /> |
---|
101 | </vseg> |
---|
102 | <vseg name = "seg_boot_data" vbase = "0x00030000" mode = "C_W_" x = "0" y = "0" psegname = "PSEG_RAM" ident = "1" > |
---|
103 | <vobj name = "boot_data" type = "BUFFER" length = "0x00010000" /> |
---|
104 | </vseg> |
---|
105 | <vseg name = "seg_boot_buffer" vbase = "0x00040000" mode = "C_W_" x = "0" y = "0" psegname = "PSEG_RAM" ident = "1" > |
---|
106 | <vobj name = "boot_buffer" type = "BUFFER" length = "0x00020000" /> |
---|
107 | </vseg> |
---|
108 | <vseg name = "seg_boot_stack" vbase = "0x00060000" mode = "C_W_" x = "0" y = "0" psegname = "PSEG_RAM" ident = "1" > |
---|
109 | <vobj name = "boot_stack" type = "BUFFER" length = "0x00090000" /> |
---|
110 | </vseg> |
---|
111 | |
---|
112 | *** Segments used by the kernel / A[31:28] = 0x8 |
---|
113 | |
---|
114 | <vseg name = "seg_kernel_code" vbase = "0x80000000" mode = "CXW_" x = "0" y = "0" psegname = "PSEG_RAM" > |
---|
115 | <vobj name = "kernel_code" type = "ELF" length = "0x00020000" binpath = "build/kernel/kernel.elf" /> |
---|
116 | </vseg> |
---|
117 | <vseg name = "seg_kernel_data" vbase = "0x80020000" mode = "C_W_" x = "0" y = "0" psegname = "PSEG_RAM" > |
---|
118 | <vobj name = "kernel_data" type = "ELF" length = "0x00060000" binpath = "build/kernel/kernel.elf" /> |
---|
119 | </vseg> |
---|
120 | <vseg name = "seg_kernel_uncdata" vbase = "0x80080000" mode = "__W_" x = "0" y = "0" psegname = "PSEG_RAM" > |
---|
121 | <vobj name = "kernel_uncdata" type = "ELF" length = "0x00040000" binpath = "build/kernel/kernel.elf" /> |
---|
122 | </vseg> |
---|
123 | <vseg name = "seg_kernel_init" vbase = "0x800C0000" mode = "CXW_" x = "0" y = "0" psegname = "PSEG_RAM" > |
---|
124 | <vobj name = "kernel_init" type = "ELF" length = "0x00010000" binpath = "build/kernel/kernel.elf" /> |
---|
125 | </vseg> |
---|
126 | |
---|
127 | *** Segments for non replicated peripherals / A[31:28] = 0xB / Identity mapping |
---|
128 | |
---|
129 | <vseg name = "seg_ioc" vbase = "0xB3000000" mode = "__W_" x = "0" y = "0" psegname = "PSEG_IOC" ident = "1" > |
---|
130 | <vobj name = "ioc" type = "PERI" length = "0x00001000" /> |
---|
131 | </vseg> |
---|
132 | <vseg name = "seg_tty" vbase = "0xB4000000" mode = "__W_" x = "0" y = "0" psegname = "PSEG_TTY" ident = "1" > |
---|
133 | <vobj name = "tty" type = "PERI" length = "0x00001000" /> |
---|
134 | </vseg> |
---|
135 | <vseg name = "seg_rom" vbase = "0xBFC00000" mode = "CXW_" x = "0" y = "0" psegname = "PSEG_ROM" ident = "1" > |
---|
136 | <vobj name = "rom" type = "PERI" length = "0x00004000" /> |
---|
137 | </vseg> |
---|
138 | |
---|
139 | *** Segments for replicated ICUS / A[31:24] = 0xB0 / Increment = 0x10000 / Identity mapping in cluster 0 |
---|
140 | |
---|
141 | <vseg name = "seg_icu_0" vbase = "0xB0000000" mode = "__W_" x = "0" y = "0" psegname = "PSEG_XCU" ident = "1" > |
---|
142 | <vobj name = "icu_0" type = "PERI" length = "0x00001000" /> |
---|
143 | </vseg> |
---|
144 | <vseg name = "seg_icu_1" vbase = "0xB0010000" mode = "__W_" x = "0" y = "1" psegname = "PSEG_XCU" > |
---|
145 | <vobj name = "icu_1" type = "PERI" length = "0x00001000" /> |
---|
146 | </vseg> |
---|
147 | <vseg name = "seg_icu_2" vbase = "0xB0100000" mode = "__W_" x = "1" y = "0" psegname = "PSEG_XCU" > |
---|
148 | <vobj name = "icu_2" type = "PERI" length = "0x00001000" /> |
---|
149 | </vseg> |
---|
150 | <vseg name = "seg_icu_3" vbase = "0xB0110000" mode = "__W_" x = "1" y = "1" psegname = "PSEG_XCU" > |
---|
151 | <vobj name = "icu_3" type = "PERI" length = "0x00001000" /> |
---|
152 | </vseg> |
---|
153 | |
---|
154 | *** segments for replicated MMC / A[31:24] = 0xB8 / Increment = 0x10000 / Identity mapping in cluster 0 |
---|
155 | *** The peripheral type must be entirely defined by the 8 virtual address MSB bits (mask_type = 0xFF000000) |
---|
156 | *** The cluster id must be encoded in the next 8 virtual address bits (cluster_mask = 0x00FF0000) |
---|
157 | |
---|
158 | <vseg name = "seg_memc_0" vbase = "0xA2000000" mode = "__W_" x = "0" y = "0" psegname = "PSEG_MMC" ident = "1" > |
---|
159 | <vobj name = "memc_0" type = "PERI" length = "0x00001000" /> |
---|
160 | </vseg> |
---|
161 | <vseg name = "seg_memc_1" vbase = "0xA2010000" mode = "__W_" x = "0" y = "1" psegname = "PSEG_MMC" > |
---|
162 | <vobj name = "memc_1" type = "PERI" length = "0x00001000" /> |
---|
163 | </vseg> |
---|
164 | <vseg name = "seg_memc_2" vbase = "0xA2100000" mode = "__W_" x = "1" y = "0" psegname = "PSEG_MMC" > |
---|
165 | <vobj name = "memc_2" type = "PERI" length = "0x00001000" /> |
---|
166 | </vseg> |
---|
167 | <vseg name = "seg_memc_3" vbase = "0xA2110000" mode = "__W_" x = "1" y = "1" psegname = "PSEG_MMC" > |
---|
168 | <vobj name = "memc_3" type = "PERI" length = "0x00001000" /> |
---|
169 | </vseg> |
---|
170 | |
---|
171 | *** segments for replicated schedulers / A[31:28] = 0xF / Increment = 0x10000 |
---|
172 | *** The type must be entirely defined by the 8 virtual address MSB bits (mask_type = 0xFF000000) |
---|
173 | *** The cluster id must be encoded in the next 8 virtual address bits (cluster_mask = 0x00FF0000) |
---|
174 | |
---|
175 | <vseg name = "seg_sched_0" vbase = "0xF0000000" mode = "C_W_" x = "0" y = "0" psegname = "PSEG_RAM" > |
---|
176 | <vobj name = "sched_0" type = "SCHED" length = "0x00008000" /> |
---|
177 | </vseg> |
---|
178 | <vseg name = "seg_sched_1" vbase = "0xF0010000" mode = "C_W_" x = "0" y = "1" psegname = "PSEG_RAM" > |
---|
179 | <vobj name = "sched_1" type = "SCHED" length = "0x00008000" /> |
---|
180 | </vseg> |
---|
181 | <vseg name = "seg_sched_2" vbase = "0xF0100000" mode = "C_W_" x = "1" y = "0" psegname = "PSEG_RAM" > |
---|
182 | <vobj name = "sched_2" type = "SCHED" length = "0x00008000" /> |
---|
183 | </vseg> |
---|
184 | <vseg name = "seg_sched_3" vbase = "0xF0110000" mode = "C_W_" x = "1" y = "1" psegname = "PSEG_RAM" > |
---|
185 | <vobj name = "sched_3" type = "SCHED" length = "0x00008000" /> |
---|
186 | </vseg> |
---|
187 | *** |
---|
188 | </globalset> |
---|
189 | |
---|
190 | <vspaceset> |
---|
191 | |
---|
192 | *** For each vspace, the startname field is the name of the vobj containing the start_vector (entry point array) |
---|
193 | *** For each task, the startid field define the task entry point as an index in the start_vector |
---|
194 | *** For each task, the clusterid and proclocid arguments define the task static placement |
---|
195 | *** For each task, the stackname field is the name of the vobj containing the task stack |
---|
196 | *** For each task, the heapname field is the name of the vobj containing the task heap |
---|
197 | |
---|
198 | <vspace name = "sort" startname = "sort_data" > |
---|
199 | <vseg name = "seg_sort_code" vbase = "0x00400000" mode = "CXWU" x = "1" y = "1" psegname = "PSEG_RAM" > |
---|
200 | <vobj name = "sort_code" type = "ELF" length = "0x00010000" binpath = "build/sort/sort.elf" /> |
---|
201 | </vseg> |
---|
202 | <vseg name = "seg_sort_data" vbase = "0x00500000" mode = "__WU" x = "1" y = "1" psegname = "PSEG_RAM" > |
---|
203 | <vobj name = "sort_data" type = "ELF" length = "0x00010000" binpath = "build/sort/sort.elf" /> |
---|
204 | </vseg> |
---|
205 | <vseg name = "seg_sort_ptab" vbase = "0x00600000" mode = "C_W_" x = "1" y = "1" psegname = "PSEG_RAM" > |
---|
206 | <vobj name = "sort_ptab" type = "PTAB" length = "0x00020000" align = "13" /> |
---|
207 | </vseg> |
---|
208 | <vseg name = "seg_sort_stack0" vbase = "0x00800000" mode = "C_WU" x = "0" y = "0" psegname = "PSEG_RAM" > |
---|
209 | <vobj name = "sort_stack0" type = "BUFFER" length = "0x00010000" /> |
---|
210 | <vobj name = "sort_stack1" type = "BUFFER" length = "0x00010000" /> |
---|
211 | <vobj name = "sort_heap0" type = "BUFFER" length = "0x00010000" /> |
---|
212 | </vseg> |
---|
213 | <vseg name = "seg_sort_stack1" vbase = "0x00A00000" mode = "C_WU" x = "0" y = "1" psegname = "PSEG_RAM" > |
---|
214 | <vobj name = "sort_stack2" type = "BUFFER" length = "0x00010000" /> |
---|
215 | <vobj name = "sort_stack3" type = "BUFFER" length = "0x00010000" /> |
---|
216 | <vobj name = "sort_heap1" type = "BUFFER" length = "0x00010000" /> |
---|
217 | </vseg> |
---|
218 | <vseg name = "seg_sort_stack2" vbase = "0x00C00000" mode = "C_WU" x = "1" y = "0" psegname = "PSEG_RAM" > |
---|
219 | <vobj name = "sort_stack4" type = "BUFFER" length = "0x00010000" /> |
---|
220 | <vobj name = "sort_stack5" type = "BUFFER" length = "0x00010000" /> |
---|
221 | <vobj name = "sort_heap2" type = "BUFFER" length = "0x00010000" /> |
---|
222 | </vseg> |
---|
223 | <vseg name = "seg_sort_stack3" vbase = "0x00E00000" mode = "C_WU" x = "1" y = "1" psegname = "PSEG_RAM" > |
---|
224 | <vobj name = "sort_stack6" type = "BUFFER" length = "0x00010000" /> |
---|
225 | <vobj name = "sort_stack7" type = "BUFFER" length = "0x00010000" /> |
---|
226 | <vobj name = "sort_heap3" type = "BUFFER" length = "0x00010000" /> |
---|
227 | </vseg> |
---|
228 | |
---|
229 | <task name = "sort_0" trdid = "0" x = "0" y = "0" proclocid = "0" stackname = "sort_stack0" heapname = "sort_heap0" startid = "0" usetty = "1" /> |
---|
230 | <task name = "sort_1" trdid = "1" x = "0" y = "0" proclocid = "0" stackname = "sort_stack1" heapname = "sort_heap0" startid = "0" usetty = "1" /> |
---|
231 | <task name = "sort_2" trdid = "2" x = "0" y = "1" proclocid = "0" stackname = "sort_stack2" heapname = "sort_heap1" startid = "0" usetty = "1" /> |
---|
232 | <task name = "sort_3" trdid = "3" x = "0" y = "1" proclocid = "0" stackname = "sort_stack3" heapname = "sort_heap1" startid = "0" usetty = "1" /> |
---|
233 | <task name = "sort_4" trdid = "4" x = "1" y = "0" proclocid = "0" stackname = "sort_stack4" heapname = "sort_heap2" startid = "0" usetty = "1" /> |
---|
234 | <task name = "sort_5" trdid = "5" x = "1" y = "0" proclocid = "0" stackname = "sort_stack5" heapname = "sort_heap2" startid = "0" usetty = "1" /> |
---|
235 | <task name = "sort_6" trdid = "6" x = "1" y = "1" proclocid = "0" stackname = "sort_stack6" heapname = "sort_heap3" startid = "0" usetty = "1" /> |
---|
236 | <task name = "sort_7" trdid = "7" x = "1" y = "1" proclocid = "0" stackname = "sort_stack7" heapname = "sort_heap3" startid = "0" usetty = "1" /> |
---|
237 | </vspace> |
---|
238 | </vspaceset> |
---|
239 | </mapping_info> |
---|