Changes between Version 20 and Version 21 of DsxDocumentation
- Timestamp:
- Feb 20, 2008, 6:06:56 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DsxDocumentation
v20 v21 207 207 archi = soclib.Architecture() 208 208 209 # instanciation of a MIPS R3000 processor (MIPS ISS in a CABA wrapper), with CPUID = 0209 # instanciation of a MIPS R3000 processor (MIPS ISS in a CABA wrapper), with processorID = 0 210 210 my_proc = archi.create('caba:iss_wrapper', 'proc', iss_t = 'common:mipsel', ident = 0) 211 211 … … 226 226 }}} 227 227 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 lineof 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.228 Depending 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. 232 232 The following example describes asimple system with two processor and on e embedded memory: 233 233 {{{ … … 285 285 286 286 {{{ 287 ######################### ########287 ######################### 288 288 # generic architecture definition 289 ################################# 290 def MultiProc(nbcpu = 2): 291 289 290 def MultiProc(nbcpu = 2): # the argument value is the default value 291 archi = soclib.Architecture() 292 292 293 293 vgmn = archi.create('caba:vci_vgmn', 'vgmn' ) … … 312 312 my_vgmn.to_target.new() // my_ram.vci 313 313 314 ########################### #########314 ########################### 315 315 # generic architecture instanciation 316 #################################### 316 317 317 my_architecture = MultiProc( nbcpu = 4 ) 318 318 }}} … … 325 325 === E1) Mapper declaration === 326 326 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.327 As 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. 328 328 {{{ 329 329 my_mapper = Mapper( my_architecture, my_tcg )