- Timestamp:
- Feb 12, 2015, 2:59:18 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py
r929 r940 26 26 faultycore -- a list containing faulty cores' coordinates (x, y, l) 27 27 debug -- a list with debug's start cycle, stop cycle, PID and MID 28 threads -- number of OpenMP threads 29 firmdebug -- activate the DEBUG compilation mode on software 30 diskimage -- relative or absolute path to the disk image 28 31 """ 29 32 … … 76 79 command.extend(['-C', os.path.join(basedir, "soft")]) 77 80 command.extend(["CONFIG=" + outdir]) 81 command.extend(["DEBUG=" + str(args.firmdebug)]) 78 82 subprocess.call(command, stdout=logfile, stderr=logfile) 79 83 … … 91 95 command = [] 92 96 command.extend([os.path.join(basedir, "simul.x")]) 93 command.extend(["-DSOFT", os.path.join(basedir, "soft/build/boot.elf")])94 command.extend(["-SOFT", os.path.join(basedir, "soft/build/loader.elf")])95 command.extend(["-DISK", "file.dmg"])97 command.extend(["-DSOFT", "soft/build/boot.elf"]) 98 command.extend(["-SOFT", "soft/build/loader.elf"]) 99 command.extend(["-DISK", args.diskimage]) 96 100 97 101 if args.faultyrouter != None: … … 190 194 help='number of OpenMP threads') 191 195 196 parser.add_argument( 197 '--firmware-debug', '-fg', dest='firmdebug', default=0, 198 help='activate the DEBUG compilation mode on software') 199 200 parser.add_argument( 201 '--disk-image', '-di', dest='diskimage', default="./file.dmg", 202 help='relative or absolute path to the external firmware') 203 192 204 run(parser.parse_args()) 193 205
Note: See TracChangeset
for help on using the changeset viewer.