Changes between Version 12 and Version 13 of DsxDocumentation


Ignore:
Timestamp:
Jan 28, 2008, 7:28:38 PM (17 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DsxDocumentation

    v12 v13  
    289289
    290290As an example we define a parameterized multi-processors architecture, called MultiProc, and containing
    291  a variable number of processors. The parameter(s) must be named, and the actual parameter value is defined when the architecture is instanciated. The parameter is referenced with the ''getParam()'' method:
    292 {{{
    293 ##########################
     291 a variable number of processors. The parameter(s) must be named, and the actual parameter value is defined when the architecture is instanciated. The parameter is referenced with the ''getParam()'' method, and it is possible to define a default value.
     292{{{
     293#################################
    294294# generic architecture definition
     295#################################
    295296class MultiProc(Architecture) :
    296297    defaults = { ’nbcpu’ : 2 }
     
    323324    self.setConfig(’mapping_table’, MappingTable() )
    324325
    325 ############################
     326####################################
    326327# generic architecture instanciation
     328####################################
    327329my_board = MultiProc( nbcpu = 4 ) 
    328330}}}