Ignore:
Timestamp:
May 29, 2015, 5:51:07 PM (9 years ago)
Author:
cfuguet
Message:

reconf: introduce scripts to get transactions latency in the synthetic
platform.

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  
    2929        }
    3030}
     31
    3132#   Parse the number of received broadcast packets
    3233/broadcast received packets +=/ {
  • branches/reconfiguration/modules/dspin_router/caba/test/synthetic_test/run_broadcast_check.sh

    r995 r996  
    1313                                echo "./simul.x $ARGS ($LOGFILE)"
    1414                                ./simul.x $ARGS > $LOGFILE 2>/dev/null;
    15                                 ./check_broadcast.sh $LOGFILE
     15                                ./broadcast_check.sh $LOGFILE
    1616                                if [[ $? == 1 ]]; then
    1717                                        echo "FAILURE";
  • branches/reconfiguration/modules/dspin_router/caba/test/synthetic_test/top.cpp

    r994 r996  
    8383    /* number of simulation cycles */
    8484    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) {
    8690        if ((strcmp(argv[n], "-X") == 0) && ((n + 1) < argc)) {
    8791            xSize = strtol(argv[n + 1], NULL, 0);
     
    113117            continue;
    114118        }
    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)) {
    116125            debug = true;
    117126            continue;
     
    146155
    147156            int broadcast_period = 0;
    148             int load = 0;
     157            int ld = 0;
    149158            const int SRCID = cluster(x,y);
    150             bool all = (xSrc == -1) && (ySrc == -1);
     159            bool all = (xSrc == -1) || (ySrc == -1);
    151160            if (all || (cluster(x,y) == cluster(xSrc,ySrc))) {
    152161               broadcast_period = BROADCAST_PERIOD;
    153                load = LOAD;
     162               ld = load;
    154163            }
    155164            std::ostringstream generatorStr;
     
    158167                new DspinGeneratorType(generatorStr.str().c_str(),
    159168                                       SRCID, NFLITS,
    160                                        load, FIFO_DEPTH,
     169                                       ld, FIFO_DEPTH,
    161170                                       broadcast_period);
    162171        }
     
    202211            dspinRouter[x][y]->p_out[4](sDspinL[x][y][1]);
    203212
     213            if ((xFaulty < 0) || (yFaulty < 0)) {
     214                dspinRouter[x][y]->bind_recovery_port(sConfigNONE);
     215                continue;
     216            }
     217
    204218            if (x == (xFaulty + 1)) {
    205219                if (y == (yFaulty + 1)) {
Note: See TracChangeset for help on using the changeset viewer.