Ignore:
Timestamp:
Jul 4, 2014, 4:27:51 PM (10 years ago)
Author:
cfuguet
Message:

fault_tolerance/tsar_generic_iob:

  • Merging arch.py from trunk
  • Erasing compilation defined variable for activation of distributed boot. Using instead an environment variable: DISTRIBUTED_BOOT.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/fault_tolerance/platforms/tsar_generic_iob/arch.py

    r736 r738  
    1212#  physical space segmentation) and the mapping of all kernel objects (global vsegs).
    1313#  This platform includes 6 external peripherals, accessible through two IO_Bridge
    14 # components located in cluster [0,0] and cluster [x_size-1, y_size-1].
    15 # Available peripherals are: TTY, BDV, FBF, ROM, NIC, CMA.
     14#  components located in cluster [0,0] and cluster [x_size-1, y_size-1].
     15#  Available peripherals are: TTY, BDV, FBF, ROM, NIC, CMA.
    1616#
    1717#  The "constructor" parameters are:
     
    4141    ### define architecture constants
    4242
    43     distptabs      = 1
    44     nb_ttys        = 1
    45     nb_nics        = 2
    46     fbf_width      = 1024
    47     x_io           = 0
    48     y_io           = 0
    49     x_width        = 4
    50     y_width        = 4
    51     paddr_width    = 40
    52     irq_per_proc   = 4
    53     use_ramdisk    = False
    54     peri_increment = 0x10000
     43    nb_ttys           = 1
     44    nb_nics           = 2
     45    fbf_width         = 1024
     46    x_io              = 0
     47    y_io              = 0
     48    x_width           = 4
     49    y_width           = 4
     50    paddr_width       = 40
     51    irq_per_proc      = 4
     52    use_ramdisk       = False
     53    peri_increment    = 0x10000
     54    distributed_ptabs = True
    5555
    5656    ### parameters checking
     
    161161                       x_io           = x_io,
    162162                       y_io           = y_io,
    163                        peri_increment = peri_increment )
     163                       peri_increment = peri_increment,
     164                       ram_base       = ram_base,
     165                       ram_size       = ram_size )
    164166
    165167    ###  external peripherals (accessible in cluster[0,0] only for this mapping)
     
    241243    ### global vsegs for kernel
    242244
    243     if distptabs:
     245    if distributed_ptabs:
    244246        for x in xrange( x_size ):
    245247            for y in xrange( y_size ):
     
    291293                       vtype = 'PERI', x = 0, y = 0, pseg = 'PIC', identity = True )
    292294
    293     ### Global vsegs for replicated peripherals, and for schedulers
    294     ### name is indexed by (x,y), base address is incremented by (cluster_xy * peri_increment)
     295    ### global vsegs for internal peripherals, and for schedulers
     296    ### name is indexed by (x,y) / vbase address is incremented by (cluster_xy * peri_increment)
    295297
    296298    for x in xrange( x_size ):
     
    322324if __name__ == '__main__':
    323325
    324     mapping = genmap( x_size    = 2,
    325                       y_size    = 2,
    326                       nb_procs  = 2,
    327                       nb_ttys   = 1,
    328                       nb_nics   = 2,
    329                       fbf_width = 128,
    330                       x_io      = 0,
    331                       y_io      = 0 )
     326    mapping = arch( x_size    = 2,
     327                    y_size    = 2,
     328                    nb_procs  = 2 )
    332329
    333330#   print mapping.netbsd_dts()
Note: See TracChangeset for help on using the changeset viewer.