Changes between Version 16 and Version 17 of mapping_info


Ignore:
Timestamp:
Oct 28, 2014, 11:34:55 AM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • mapping_info

    v16 v17  
    8080|| p      || physical memory bank size (bytes) ||
    8181
    82 The physical global processor index will be : ( ( x << y_width ) + y ) << p_width ) + p
     82The global processor index is : ( ( x << y_width ) + y ) << p_width ) + p
    8383
    8484=== 3. Physical memory bank ===
     
    137137
    138138The supported values for the ''mode'' argument, and for the ''vtype'' arguments are defined in the [source:soft/giet_vm/giet_python/mapping.py mapping.py] file.
    139 The ''x'', ''y'', and ''pseg'' arguments define actually the mapping.
     139
     140The (''x'', ''y'', ''pseg')' arguments define actually the vseg placement.
    140141
    141142=== 1. Boot vsegs ===
    142143
    143 There is 4 'vsegs for the GIET_VM bootloader:
     144There is 4  global vsegs for the GIET_VM bootloader:
    144145 * The '''seg_boot_mapping''' vseg contains the C binary structure defining the mapping. It is loaded from disk by the boot-loader.
    145146 * The '''seg_boot_code''' vseg contains the boot-loader code. It is loaded from disk by the preloader.
     
    150151=== 2. Kernel vsegs ===
    151152
    152 There is six types of vsegs for the GIET_VM kernel, but some vsegs are replicated in all clusters, to improve locality and minimize contention, as explained below:
     153There is six types of global vsegs for the GIET_VM kernel, but some vsegs are replicated in all clusters, to improve locality and minimize contention, as explained below:
    153154 * The '''seg_kernel_ptab_x_y''' vseg has type PTAB. It contains the page tables for all vspaces (one page table per vspace). There is one such vseg in each cluster (one set of page tables per cluster). Each PTAB vseg is mapped in one big physical page.
    154155 * The '''seg_kernel_code''' & '''seg_kernel_init''' have type ELF. They contain the kernel code. These two vsegs must be mapped in one big physical page. They are  replicated in each cluster. The ''local'' attribute must be set, because the same virtual address will be mapped on different physical address depending on the cluster.   
     
    168169
    169170There is several types of user vseg 
    170  * The '''code''' vseg can be optionally replicated in all clusters.
     171 * The '''code''' vseg can be (optionally) replicated in all clusters.
    171172 * The '''data''' vseg is not replicated. It must contain the ''start_vector'' defining the entry points of the application tasks.
    172173 * It must exist as many '''stack'''' vseg as the number of tasks.
    173  * One or several '''heap''' vseg(s), can be used by the malloc user library.
    174  * One or several '''mwmr''' vseg(s)
     174 * One or several '''heap''' vseg(s), can be used by the ''malloc'' user library.
     175 * One or several '''mwmr''' vseg(s) can be used by the ''mwmr'' user library.
    175176 
    176177=== 1. create the vspace ===
     
    178179The '''mapping.addvspace( )''' construct define a vspace. It has the following arguments:
    179180|| name        || vspace name == application name  ||
    180 || startname || name of              ||
     181|| startname || name of vseg containing the start_vector   ||
    181182
    182183===  2. vseg mapping ===
     
    198199
    199200The supported values for the ''mode'' argument, and for the ''vtype'' arguments are defined in the [source:soft/giet_vm/giet_python/mapping.py mapping.py] file.
    200 The ''x'', ''y'', and ''pseg'' arguments define actually the mapping.
     201
     202The (''x'', ''y'', ''pseg')' arguments define actually the vseg placement.
    201203
    202204=== 3. task mapping ===
     
    209211|| y                || destination cluster Y coordinate ||
    210212|| lpid            || destination processor local index ||
    211 || stackname || name of vseg containing stack ||
    212 || heapname  || name of vseg containing heap ||
     213|| stackname || name of vseg containing the task stack ||
     214|| heapname  || name of vseg containing the task heap ||
    213215|| startid        || index in start vector (defining the task entry point virtual address) ||
    214216