- Timestamp:
- May 29, 2015, 5:51:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.