Changes between Version 20 and Version 21 of DsxDocumentation


Ignore:
Timestamp:
Feb 20, 2008, 6:06:56 PM (16 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DsxDocumentation

    v20 v21  
    207207archi = soclib.Architecture()
    208208
    209 # instanciation of a MIPS R3000 processor (MIPS ISS in a CABA wrapper), with CPUID = 0
     209# instanciation of a MIPS R3000 processor (MIPS ISS in a CABA wrapper), with processorID = 0
    210210my_proc = archi.create('caba:iss_wrapper', 'proc', iss_t = 'common:mipsel', ident = 0)
    211211
     
    226226}}}
    227227
    228 Depending on the component type, the port designation can vary:
    229  * When the port is alone, the port is an attribute : My_Proc0.dcache define the data cache port of the processor.
    230  * When the number of ports is fixed, the ports are in a array : My_Proc0.irq[3] define the 4th irq line of the processor.
    231  * When the number of port in a port array is not fixed (typically for interconnect component), the ports are allocated through a dedicated method on the port array : the new() method on !Vgmn.from_initiator allocates a VCI target port.
     228Depending on the component type, the port designation can vary :
     229 * For a single port : My_Proc0.dcache define the data cache port of the processor.
     230 * For an array of ports : My_Proc0.irq[3] define the  irq line 0 of the processor.
     231 * When the number of port in a port array is not fixed (typically for interconnect component), the ports are allocated through the new() method on the port array.
    232232The following example describes asimple system with two processor and on e embedded memory:
    233233{{{
     
    285285
    286286{{{
    287 #################################
     287#########################
    288288# generic architecture definition
    289 #################################
    290 def MultiProc(nbcpu = 2):
    291     archi = soclib.Architecture()
     289
     290def MultiProc(nbcpu = 2):              # the argument value is the default value
     291archi = soclib.Architecture()
    292292
    293293    vgmn = archi.create('caba:vci_vgmn', 'vgmn' )
     
    312312    my_vgmn.to_target.new() // my_ram.vci
    313313
    314 ####################################
     314###########################
    315315# generic architecture instanciation
    316 ####################################
     316
    317317my_architecture = MultiProc( nbcpu = 4 ) 
    318318}}}
     
    325325=== E1) Mapper declaration ===
    326326
    327 As it is possible to define various mapping for a given TCG, and a given architecture, we must define a third object : this ''mapper'' will contain all the mapping directives defined by the system designer.
     327As it is possible to define various mapping for a given TCG, and a given architecture, we must define a ''mapper'' object. This ''mapper'' will contain all the mapping directives defined by the system designer for a given mapping.
    328328{{{
    329329my_mapper = Mapper( my_architecture, my_tcg )