- Timestamp:
- Jul 4, 2014, 4:27:51 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fault_tolerance/platforms/tsar_generic_iob/arch.py
r736 r738 12 12 # physical space segmentation) and the mapping of all kernel objects (global vsegs). 13 13 # 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. 16 16 # 17 17 # The "constructor" parameters are: … … 41 41 ### define architecture constants 42 42 43 distptabs= 144 nb_ ttys = 145 nb_nics = 246 fbf_width = 102447 x_io= 048 y_io = 049 x_width= 450 y_width = 451 paddr_width = 4052 irq_per_proc = 453 use_ramdisk = False54 peri_increment = 0x1000043 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 55 55 56 56 ### parameters checking … … 161 161 x_io = x_io, 162 162 y_io = y_io, 163 peri_increment = peri_increment ) 163 peri_increment = peri_increment, 164 ram_base = ram_base, 165 ram_size = ram_size ) 164 166 165 167 ### external peripherals (accessible in cluster[0,0] only for this mapping) … … 241 243 ### global vsegs for kernel 242 244 243 if dist ptabs:245 if distributed_ptabs: 244 246 for x in xrange( x_size ): 245 247 for y in xrange( y_size ): … … 291 293 vtype = 'PERI', x = 0, y = 0, pseg = 'PIC', identity = True ) 292 294 293 ### Global vsegs for replicatedperipherals, and for schedulers294 ### 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) 295 297 296 298 for x in xrange( x_size ): … … 322 324 if __name__ == '__main__': 323 325 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 ) 332 329 333 330 # print mapping.netbsd_dts()
Note: See TracChangeset
for help on using the changeset viewer.