Changeset 996 for branches/reconfiguration/modules/dspin_router/caba
- Timestamp:
- May 29, 2015, 5:51:07 PM (9 years ago)
- Location:
- branches/reconfiguration/modules/dspin_router/caba/test/synthetic_test
- Files:
-
- 2 added
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/modules/dspin_router/caba/test/synthetic_test/broadcast_check.sh
r995 r996 29 29 } 30 30 } 31 31 32 # Parse the number of received broadcast packets 32 33 /broadcast received packets +=/ { -
branches/reconfiguration/modules/dspin_router/caba/test/synthetic_test/run_broadcast_check.sh
r995 r996 13 13 echo "./simul.x $ARGS ($LOGFILE)" 14 14 ./simul.x $ARGS > $LOGFILE 2>/dev/null; 15 ./ check_broadcast.sh $LOGFILE15 ./broadcast_check.sh $LOGFILE 16 16 if [[ $? == 1 ]]; then 17 17 echo "FAILURE"; -
branches/reconfiguration/modules/dspin_router/caba/test/synthetic_test/top.cpp
r994 r996 83 83 /* number of simulation cycles */ 84 84 int simCycles = 100000; 85 for (int n = 1; n < argc; n = n + 2) { 85 86 /* synthetic generator load */ 87 int load = LOAD; 88 89 for (int n = 1; n < argc; n += 2) { 86 90 if ((strcmp(argv[n], "-X") == 0) && ((n + 1) < argc)) { 87 91 xSize = strtol(argv[n + 1], NULL, 0); … … 113 117 continue; 114 118 } 115 if ((strcmp(argv[n], "-DEBUG") == 0)) { 119 if ((strcmp(argv[n], "-L") == 0) && ((n + 1) < argc) ) { 120 load = strtol(argv[n + 1], NULL, 0); 121 assert(load > 0); 122 continue; 123 } 124 if ((strcmp(argv[n--], "-DEBUG") == 0)) { 116 125 debug = true; 117 126 continue; … … 146 155 147 156 int broadcast_period = 0; 148 int l oad = 0;157 int ld = 0; 149 158 const int SRCID = cluster(x,y); 150 bool all = (xSrc == -1) &&(ySrc == -1);159 bool all = (xSrc == -1) || (ySrc == -1); 151 160 if (all || (cluster(x,y) == cluster(xSrc,ySrc))) { 152 161 broadcast_period = BROADCAST_PERIOD; 153 l oad = LOAD;162 ld = load; 154 163 } 155 164 std::ostringstream generatorStr; … … 158 167 new DspinGeneratorType(generatorStr.str().c_str(), 159 168 SRCID, NFLITS, 160 l oad, FIFO_DEPTH,169 ld, FIFO_DEPTH, 161 170 broadcast_period); 162 171 } … … 202 211 dspinRouter[x][y]->p_out[4](sDspinL[x][y][1]); 203 212 213 if ((xFaulty < 0) || (yFaulty < 0)) { 214 dspinRouter[x][y]->bind_recovery_port(sConfigNONE); 215 continue; 216 } 217 204 218 if (x == (xFaulty + 1)) { 205 219 if (y == (yFaulty + 1)) {
Note: See TracChangeset
for help on using the changeset viewer.