Ignore:
Timestamp:
Apr 19, 2015, 5:19:36 PM (9 years ago)
Author:
cfuguet
Message:

reconf: some improvements on tsar_generic_iob platform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py

    r978 r986  
    44
    55import os
     6import shutil
    67import subprocess
    78import arch
     
    2627    faultymask   -- a mask of disabled routers' interfaces
    2728    faultycore   -- a list containing faulty cores' coordinates (x, y, l)
    28     debug        -- a list with debug's start cycle, stop cycle, PID and MID
     29    debug        -- a list with debug's start cycle, PID and MID
    2930    threads      -- number of OpenMP threads
    3031    firmdebug    -- activate the DEBUG compilation mode on software
     
    132133        command.extend(["-PROCID", str(args.debug[1])]);
    133134        command.extend(["-MEMCID", str(args.debug[2])]);
     135        command.extend(["-IOB", "1"]);
    134136
    135137    if args.ncycles > 0:
     
    153155    command.extend(["-THREADS", str(ompthreads)])
    154156
    155 
    156157    logfile.write("Execute: {0}\n".format(" ".join(command)))
    157158    logfile.flush()
     
    163164    # 6. move simulation terminal output into the target config dir
    164165    if os.path.lexists("term0"):
    165         os.rename("term0", os.path.join(outdir, "term"))
     166        shutil.copy2("term0", os.path.join(outdir, "term"))
    166167
    167168# get command-line arguments
     
    210211
    211212    parser.add_argument(
    212         '--debug', '-g', dest='debug', nargs=4,
    213         help='needs four arguments: from, to, procid, memcid')
     213        '--debug', '-g', dest='debug', nargs=3,
     214        help='needs four arguments: from, procid, memcid')
    214215
    215216    parser.add_argument(
Note: See TracChangeset for help on using the changeset viewer.