Ignore:
Timestamp:
Oct 13, 2015, 4:21:08 PM (9 years ago)
Author:
cfuguet
Message:

reconf: improving dspin_router transition function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/modules/dspin_router/caba/source/src/dspin_router.cpp

    r1016 r1020  
    321321        const size_t ymax = (data >> (flit_width - 20)) & 0x1F;
    322322
    323         int bhpos = NORMAL;
    324         bool recovery = false;
    325         if (is_reconfigurable()) {
    326             bhpos    = blackhole_position();
    327             recovery = is_recovery_routing_enabled();
    328         }
    329 
    330         const bool is_n  = recovery and (bhpos == N_OF_X);
    331         const bool is_s  = recovery and (bhpos == S_OF_X);
    332         const bool is_w  = recovery and (bhpos == W_OF_X);
    333         const bool is_e  = recovery and (bhpos == E_OF_X);
    334         const bool is_nw = recovery and (bhpos == NW_OF_X);
    335         const bool is_ne = recovery and (bhpos == NE_OF_X);
    336         const bool is_sw = recovery and (bhpos == SW_OF_X);
    337         const bool is_se = recovery and (bhpos == SE_OF_X);
    338 
    339         const bool special = ((data & 0x2) != 0) and recovery;
     323        const int bhpos  = is_reconfigurable() ? blackhole_position() : NORMAL;
     324        const bool is_n  = (bhpos == N_OF_X);
     325        const bool is_s  = (bhpos == S_OF_X);
     326        const bool is_w  = (bhpos == W_OF_X);
     327        const bool is_e  = (bhpos == E_OF_X);
     328        const bool is_nw = (bhpos == NW_OF_X);
     329        const bool is_ne = (bhpos == NE_OF_X);
     330        const bool is_sw = (bhpos == SW_OF_X);
     331        const bool is_se = (bhpos == SE_OF_X);
     332
     333        const bool special = ((data & 0x2) != 0) and (bhpos != NORMAL);
    340334
    341335        int sel = REQ_NOP;
Note: See TracChangeset for help on using the changeset viewer.