Ignore:
Timestamp:
Dec 11, 2014, 4:52:15 PM (9 years ago)
Author:
cfuguet
Message:

reconf: any router in any NoC can be faulty. Moreover, each NoC has its
own config register in the XICU.

Location:
branches/reconfiguration/platforms/tsar_generic_iob/scripts
Files:
2 edited

Legend:

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

    r902 r904  
    2121    compileonly  -- stops after platform's compilation
    2222    batchmode    -- TTY and FB are only redirected to FILES
    23     faultyrouter -- a list containing faulty routers' coordinates (x, y)
     23    faultyrouter -- a list containing faulty routers' coordinates (t, x, y)
    2424    faultymask   -- a mask of disabled routers' interfaces
    2525    faultycore   -- a list containing faulty cores' coordinates (x, y, l)
     
    103103        command.extend(["-FAULTY_MASK", str(args.faultymask)])
    104104        for f in args.faultyrouter:
    105             command.extend(["-FAULTY_ROUTER", str(f[0]), str(f[1])])
     105            command.extend(["-FAULTY_ROUTER", str(f[0]), str(f[1]), str(f[2])])
    106106
    107107    if args.debug != None:
     
    112112    else:
    113113        # by observation, the procedure grows linearly with the diameter of the mesh.
    114         maxcycles = 150000 + (args.x + args.y) * 20000;
     114        maxcycles = 400000 + (args.x + args.y) * 20000;
    115115        command.extend(["-NCYCLES", str(maxcycles)])
    116116
     
    158158
    159159    parser.add_argument(
    160         '--faulty-router', '-fr', dest='faultyrouter', action='append', nargs=2,
    161         help='ID (X,Y) of faulty router')
     160        '--faulty-router', '-fr', dest='faultyrouter', action='append', nargs=3,
     161        help='ID (T,X,Y) of faulty router. The T is 0:CMD, 1:RSP')
    162162
    163163    parser.add_argument(
  • branches/reconfiguration/platforms/tsar_generic_iob/scripts/random_faulty_core_router.py

    r902 r904  
    8484SIM_FAULTFREE = False
    8585SIM_FAULTCORES = False
    86 SIM_FAULTROUTERS = False
    87 SIM_FAULTMIXED = True
     86SIM_FAULTROUTERS = True
     87SIM_FAULTMIXED = False
    8888
    8989# probability of faulty router (for mixed simul)
    9090SIM_FAULTMIXED_PROBROUTER = 0.05 # 5%
     91
     92# NoC index for faulty routers
     93CMD = 0
     94RSP = 1
    9195
    9296for xsize, ysize in [(4, 4), (4, 8), (8, 8), (8, 16), (16, 16)]:
     
    135139                cx = random.randint(0, args.xmax)
    136140                cy = random.randint(0, args.ymax)
    137                 if args.add_faultyrouter((cx, cy)): n += 1
     141                if args.add_faultyrouter((CMD, cx, cy)): n += 1
    138142
    139143            onerun.run(args)
     
    159163                    # add faulty router
    160164                    fr += 1
    161                     while not args.add_faultyrouter((cx, cy)):
     165                    while not args.add_faultyrouter((CMD, cx, cy)):
    162166                        cx = random.randint(0, args.xmax)
    163167                        cy = random.randint(0, args.ymax)
Note: See TracChangeset for help on using the changeset viewer.