Ignore:
Timestamp:
Nov 10, 2014, 12:16:07 PM (10 years ago)
Author:
cfuguet
Message:

reconf: introducing recovery_route function in the dspin_router

  • For now, this function defines a recovery routing function for single-faulty router topologies as defined by Zhen Zhang work.
  • TODO: support segment migration.
  • TODO: support multi-faulty router topologies.
File:
1 edited

Legend:

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

    r854 r873  
    8484    };
    8585
     86    // Black-Hole position
     87    enum
     88    {
     89        BH_NONE,
     90        BH_N,
     91        BH_NE,
     92        BH_E,
     93        BH_SE,
     94        BH_S,
     95        BH_SW,
     96        BH_W,
     97        BH_NW
     98    };
     99
    86100    protected:
    87101    SC_HAS_PROCESS(DspinRouter);
     
    137151    bool                        m_broadcast_supported;
    138152    int                         m_disable_mask;
     153    int                         m_blackhole_pos;
    139154
    140155    // methods
    141156    void    transition();
    142157    void    genMoore();
    143     int     xfirst_route( sc_uint<flit_width> data );
     158    int     xfirst_route( size_t xdest, size_t ydest );
     159    int     recovery_route( size_t xdest, size_t ydest );
     160    int     route( sc_uint<flit_width> data );
    144161    int     broadcast_route( int iter, int source, sc_uint<flit_width> data );
    145162    bool    is_broadcast( sc_uint<flit_width> data );
     
    147164    public:
    148165
    149     void    set_disable_mask( int mask );
    150     void    print_trace();
     166    void set_disable_mask( int mask )
     167    {
     168        m_disable_mask = mask;
     169    }
     170
     171    void set_blackhole_pos( int pos )
     172    {
     173        m_blackhole_pos = pos;
     174    }
     175
     176    void print_trace();
    151177};
    152178
Note: See TracChangeset for help on using the changeset viewer.