Changeset 934


Ignore:
Timestamp:
Jan 27, 2015, 5:58:09 PM (10 years ago)
Author:
cfuguet
Message:

reconf: add unitary test for the segment migration mechanism in the
dspin router.

Location:
branches/reconfiguration/modules/dspin_router
Files:
4 added
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/modules/dspin_router/caba/source/include/dspin_router.h

    r931 r934  
    5757: public soclib::caba::BaseModule
    5858{
    59     // Port indexing
    60     enum
    61     {
    62         REQ_NORTH   = 0,
    63         REQ_SOUTH   = 1,
    64         REQ_EAST    = 2,
    65         REQ_WEST    = 3,
    66         REQ_LOCAL   = 4,
    67         REQ_NOP     = 5,
    68     };
    69 
    7059    // Input Port FSM
    7160    enum
  • branches/reconfiguration/modules/dspin_router/caba/source/src/dspin_router.cpp

    r931 r934  
    195195        if (need_reroute(xdest, ydest, bhpos)) {
    196196            int recovery_direction = (p_recovery_cfg->read() >> 4) & 0xF;
     197
     198#if SOCLIB_MODULE_DEBUG
     199        std::cout << "<" << name() << "> reroute request to DIR = "
     200                  << recovery_direction << std::endl;
     201#endif
     202
    197203            return recovery_direction;
    198204        }
  • branches/reconfiguration/modules/dspin_router/caba/test/simple_recovery_routing_test/test.sh

    r887 r934  
    99export SOCLIB_TTY=FILES
    1010export SOCLIB_FB=HEADLESS
    11 export SOCLIB_GDB=
     11#export SOCLIB_GDB=
    1212export DISTRIBUTED_BOOT=1
    1313PLATFORM=../../../../../platforms/tsar_generic_iob
    1414SIMULATOR=$PLATFORM/simul.x
    15 $SIMULATOR -SOFT $SOFT -DISK /dev/null -FAULTY_ROUTER 0x11 2> /dev/null >> output/log
     15$SIMULATOR -DSOFT $SOFT -DISK /dev/null -FAULTY_ROUTER 0 1 1 2> /dev/null >> output/log
    1616soclib-cleanup-terms &> /dev/null
    1717mv term0 output/term
  • branches/reconfiguration/modules/dspin_router/caba/test/simple_segment_recovery_test/test.sh

    r933 r934  
    99export SOCLIB_TTY=FILES
    1010export SOCLIB_FB=HEADLESS
    11 export SOCLIB_GDB=
     11#export SOCLIB_GDB=
    1212export DISTRIBUTED_BOOT=1
    1313PLATFORM=../../../../../platforms/tsar_generic_iob
    1414SIMULATOR=$PLATFORM/simul.x
    15 $SIMULATOR -SOFT $SOFT -DISK /dev/null -FAULTY_ROUTER 0x11 2> /dev/null >> output/log
     15$SIMULATOR -DSOFT $SOFT -DISK /dev/null -FAULTY_ROUTER 0 1 1 2> /dev/null >> output/log
    1616soclib-cleanup-terms &> /dev/null
    1717mv term0 output/term
  • branches/reconfiguration/modules/dspin_router/include/soclib/dspin_router_config.h

    r886 r934  
    2727#define DSPIN_ROUTER_CONFIG_H
    2828
     29// Port indexing
     30enum
     31{
     32    REQ_NORTH   = 0,
     33    REQ_SOUTH   = 1,
     34    REQ_EAST    = 2,
     35    REQ_WEST    = 3,
     36    REQ_LOCAL   = 4,
     37    REQ_NOP     = 5,
     38};
     39
    2940// Black-Hole position
    3041enum
Note: See TracChangeset for help on using the changeset viewer.