- Timestamp:
- Jan 20, 2015, 4:06:49 PM (10 years ago)
- Location:
- branches/reconfiguration/platforms/tsar_generic_iob/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/platforms/tsar_generic_iob/scripts/arch.py
r907 r926 101 101 mmc_size = 0x1000 # 4 Kbytes 102 102 103 rom_base = 0x00BFC00000104 rom_size = 0x8000# 32 Kbytes103 drom_base = 0x00BFC00000 104 drom_size = 0x8000 # 32 Kbytes 105 105 106 106 offset_io = pmsb(X_IO, Y_IO) << (PADDR_WIDTH - X_WIDTH - Y_WIDTH) … … 129 129 iob_base = 0x00BE000000 + offset_io 130 130 iob_size = 0x1000 # 4 kbytes 131 132 rom_base = 0x00BA000000 133 rom_size = 0x8000 # 32 Kbytes 131 134 132 135 # create mapping … … 170 173 ptype='SIM') 171 174 175 mapping.addPeriph('ROM', base=rom_base, size=rom_size, 176 ptype='ROM') 177 172 178 pic = mapping.addPeriph('PIC', base=pic_base, size=pic_size, 173 179 ptype='PIC', channels=32) … … 196 202 ptype='MMC') 197 203 198 mapping.addPeriph(' ROM', base=rom_base + offset, size=rom_size,199 ptype=' ROM')204 mapping.addPeriph('DROM', base=drom_base + offset, size=drom_size, 205 ptype='DROM') 200 206 201 207 dma = mapping.addPeriph('DMA', base=dma_base + offset, … … 336 342 337 343 # for the Giet-VM is not necessary to map the replicated ROMs 338 mapping.addGlobal('seg_rom', rom_base,rom_size, 'CX__', vtype='PERI',344 mapping.addGlobal('seg_rom', drom_base, drom_size, 'CX__', vtype='PERI', 339 345 x=X_IO, y=Y_IO, pseg='ROM', local=False, big=True) 340 346 -
branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py
r919 r926 69 69 os.unlink(dst) 70 70 71 os.symlink(os.path.join(basedir, "soft/config/boot_config.h"), dst) 72 73 # stop after compiling the platform when the compile-only option is activated 74 if args.compileonly == True: 75 exit(0) 71 os.symlink(os.path.join(basedir, "soft/test/config/boot_config.h"), dst) 76 72 77 73 print "[ run.py ] compiling distributed boot procedure" … … 82 78 subprocess.call(command, stdout=logfile, stderr=logfile) 83 79 80 # stop after compiling when the compile-only option is activated 81 if args.compileonly == True: 82 exit(0) 83 84 84 # 5. execute simulator 85 85 os.environ["DISTRIBUTED_BOOT"] = "1" … … 88 88 os.environ["SOCLIB_TTY"] = "FILES" 89 89 90 ompthreads = (args.x * args.y) / 491 cpucount = multiprocessing.cpu_count()92 if ompthreads > cpucount: ompthreads = cpucount93 94 90 print "[ run.py ] starting simulation" 95 91 command = [] 96 92 command.extend([os.path.join(basedir, "simul.x")]) 97 command.extend(["-SOFT", os.path.join(basedir, "soft/build/soft.elf")]) 98 command.extend(["-DISK", "/dev/null"]) 99 command.extend(["-THREADS", str(ompthreads)]) 93 command.extend(["-DSOFT", os.path.join(basedir, "soft/build/soft.elf")]) 94 command.extend(["-SOFT", os.path.join(basedir, 95 "soft/loader/build/loader.elf")]) 96 command.extend(["-DISK", "file.dmg"]) 100 97 101 98 if args.faultyrouter != None: … … 104 101 command.extend(["-FAULTY_ROUTER", str(f[0]), str(f[1]), str(f[2])]) 105 102 103 ompthreads = 1 106 104 if args.debug != None: 107 105 command.extend(["-DEBUG", str(args.debug[0])]); … … 109 107 command.extend(["-PROCID", str(args.debug[2])]); 110 108 command.extend(["-MEMCID", str(args.debug[3])]); 109 111 110 elif os.environ.get('SOCLIB_GDB') == None: 111 ompthreads = (args.x * args.y) / 4 112 cpucount = multiprocessing.cpu_count() 113 if ompthreads > cpucount: 114 ompthreads = cpucount 115 112 116 # the procedure grows linearly with the diameter of the mesh. 113 maxcycles = 400000 + (args.x + args.y) * 20000;117 maxcycles = 1500000 + (args.x + args.y) * 20000 114 118 command.extend(["-NCYCLES", str(maxcycles)]) 119 120 command.extend(["-THREADS", str(ompthreads)]) 115 121 116 122 logfile.write("Execute: {0}\n".format(" ".join(command)))
Note: See TracChangeset
for help on using the changeset viewer.