- Timestamp:
- Dec 11, 2014, 4:52:15 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/onerun.py
r902 r904 21 21 compileonly -- stops after platform's compilation 22 22 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) 24 24 faultymask -- a mask of disabled routers' interfaces 25 25 faultycore -- a list containing faulty cores' coordinates (x, y, l) … … 103 103 command.extend(["-FAULTY_MASK", str(args.faultymask)]) 104 104 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])]) 106 106 107 107 if args.debug != None: … … 112 112 else: 113 113 # 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; 115 115 command.extend(["-NCYCLES", str(maxcycles)]) 116 116 … … 158 158 159 159 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') 162 162 163 163 parser.add_argument( -
branches/reconfiguration/platforms/tsar_generic_iob/scripts/random_faulty_core_router.py
r902 r904 84 84 SIM_FAULTFREE = False 85 85 SIM_FAULTCORES = False 86 SIM_FAULTROUTERS = False87 SIM_FAULTMIXED = True86 SIM_FAULTROUTERS = True 87 SIM_FAULTMIXED = False 88 88 89 89 # probability of faulty router (for mixed simul) 90 90 SIM_FAULTMIXED_PROBROUTER = 0.05 # 5% 91 92 # NoC index for faulty routers 93 CMD = 0 94 RSP = 1 91 95 92 96 for xsize, ysize in [(4, 4), (4, 8), (8, 8), (8, 16), (16, 16)]: … … 135 139 cx = random.randint(0, args.xmax) 136 140 cy = random.randint(0, args.ymax) 137 if args.add_faultyrouter(( cx, cy)): n += 1141 if args.add_faultyrouter((CMD, cx, cy)): n += 1 138 142 139 143 onerun.run(args) … … 159 163 # add faulty router 160 164 fr += 1 161 while not args.add_faultyrouter(( cx, cy)):165 while not args.add_faultyrouter((CMD, cx, cy)): 162 166 cx = random.randint(0, args.xmax) 163 167 cy = random.randint(0, args.ymax)
Note: See TracChangeset
for help on using the changeset viewer.