source: soft/giet_vm/mappings/4c_1p_sort_chiplet.xml @ 289

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

Modifications on GIET-VM IOC driver:

  • Introducing new layer on the IOC driver. Every call to ioc_read, ioc_write, ioc_get_block_size or ioc_init

functions will call the specific driver of the used IOC
controller. Supported IOC controllers are (for now) :

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