Changeset 942 for branches/reconfiguration/modules/dspin_router/caba/test/simple_recovery_routing_test
- Timestamp:
- Feb 12, 2015, 2:59:20 PM (10 years ago)
- Location:
- branches/reconfiguration/modules/dspin_router/caba/test/simple_recovery_routing_test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/modules/dspin_router/caba/test/simple_recovery_routing_test/main.c
r887 r942 30 30 */ 31 31 printf("router(0, 2): configuring as NW\n"); 32 assert(xcu_get_ config(0, 2, 0) == BH_NONE);33 xcu_set_ config(0, 2, 0, BH_NW); /* configure NW */32 assert(xcu_get_register(0, 2, XICU_CFG_REG, 0) == BH_NONE); 33 xcu_set_register(0, 2, XICU_CFG_REG, 0, BH_NW); /* configure NW */ 34 34 35 35 printf("router(0, 1): configuring as W\n"); 36 assert(xcu_get_ config(0, 1, 0) == BH_NONE);37 xcu_set_ config(0, 1, 0, BH_W); /* configure W */36 assert(xcu_get_register(0, 1, XICU_CFG_REG, 0) == BH_NONE); 37 xcu_set_register(0, 1, XICU_CFG_REG, 0, BH_W); /* configure W */ 38 38 39 39 printf("router(0, 0): configuring as SW\n"); 40 assert(xcu_get_ config(0, 0, 0) == BH_NONE);41 xcu_set_ config(0, 0, 0, BH_SW); /* configure SW */40 assert(xcu_get_register(0, 0, XICU_CFG_REG, 0) == BH_NONE); 41 xcu_set_register(0, 0, XICU_CFG_REG, 0, BH_SW); /* configure SW */ 42 42 43 43 printf("router(1, 2): configuring as N\n"); 44 assert(xcu_get_ config(1, 2, 0) == BH_NONE);45 xcu_set_ config(1, 2, 0, BH_N); /* configure N */44 assert(xcu_get_register(1, 2, XICU_CFG_REG, 0) == BH_NONE); 45 xcu_set_register(1, 2, XICU_CFG_REG, 0, BH_N); /* configure N */ 46 46 47 47 printf("router(2, 2): configuring as NE\n"); 48 assert(xcu_get_ config(2, 2, 0) == BH_NONE);49 xcu_set_ config(2, 2, 0, BH_NE); /* configure NE */48 assert(xcu_get_register(2, 2, XICU_CFG_REG, 0) == BH_NONE); 49 xcu_set_register(2, 2, XICU_CFG_REG, 0, BH_NE); /* configure NE */ 50 50 51 51 printf("router(2, 1): configuring as E\n"); 52 assert(xcu_get_ config(2, 1, 0) == BH_NONE);53 xcu_set_ config(2, 1, 0, BH_E); /* configure E */52 assert(xcu_get_register(2, 1, XICU_CFG_REG, 0) == BH_NONE); 53 xcu_set_register(2, 1, XICU_CFG_REG, 0, BH_E); /* configure E */ 54 54 55 55 printf("router(2, 0): configuring as SE\n"); 56 assert(xcu_get_ config(2, 0, 0) == BH_NONE);57 xcu_set_ config(2, 0, 0, BH_SE); /* configure SE */56 assert(xcu_get_register(2, 0, XICU_CFG_REG, 0) == BH_NONE); 57 xcu_set_register(2, 0, XICU_CFG_REG, 0, BH_SE); /* configure SE */ 58 58 59 59 printf("router(1, 0): configuring as S\n"); 60 assert(xcu_get_ config(1, 0, 0) == BH_NONE);61 xcu_set_ config(1, 0, 0, BH_S); /* configure S */60 assert(xcu_get_register(1, 0, XICU_CFG_REG, 0) == BH_NONE); 61 xcu_set_register(1, 0, XICU_CFG_REG, 0, BH_S); /* configure S */ 62 62 63 assert(xcu_get_ config(0, 2, 0) == BH_NW);64 assert(xcu_get_ config(0, 1, 0) == BH_W);65 assert(xcu_get_ config(0, 0, 0) == BH_SW);66 assert(xcu_get_ config(1, 2, 0) == BH_N);67 assert(xcu_get_ config(2, 2, 0) == BH_NE);68 assert(xcu_get_ config(2, 1, 0) == BH_E);69 assert(xcu_get_ config(2, 0, 0) == BH_SE);70 assert(xcu_get_ config(1, 0, 0) == BH_S);63 assert(xcu_get_register(0, 2, XICU_CFG_REG, 0) == BH_NW); 64 assert(xcu_get_register(0, 1, XICU_CFG_REG, 0) == BH_W); 65 assert(xcu_get_register(0, 0, XICU_CFG_REG, 0) == BH_SW); 66 assert(xcu_get_register(1, 2, XICU_CFG_REG, 0) == BH_N); 67 assert(xcu_get_register(2, 2, XICU_CFG_REG, 0) == BH_NE); 68 assert(xcu_get_register(2, 1, XICU_CFG_REG, 0) == BH_E); 69 assert(xcu_get_register(2, 0, XICU_CFG_REG, 0) == BH_SE); 70 assert(xcu_get_register(1, 0, XICU_CFG_REG, 0) == BH_S); 71 71 72 72 #if 0 … … 78 78 * between them. 79 79 */ 80 assert(xcu_get_ config(1, 1, 0) == BH_NONE);80 assert(xcu_get_register(1, 1, XICU_CFG_REG, 0) == BH_NONE); 81 81 #endif 82 82 -
branches/reconfiguration/modules/dspin_router/caba/test/simple_recovery_routing_test/test.sh
r934 r942 13 13 PLATFORM=../../../../../platforms/tsar_generic_iob 14 14 SIMULATOR=$PLATFORM/simul.x 15 $SIMULATOR -DSOFT $SOFT -DISK /dev/null -FAULTY_ROUTER 0 1 1 2> /dev/null >> output/log15 $SIMULATOR -DSOFT $SOFT -DISK /dev/null -FAULTY_ROUTER 0 1 1 > output/log 2>&1 16 16 soclib-cleanup-terms &> /dev/null 17 17 mv term0 output/term
Note: See TracChangeset
for help on using the changeset viewer.