- Timestamp:
- Jan 27, 2015, 5:58:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/modules/dspin_router/caba/source/include/dspin_router.h
r886 r931 94 94 DspinInput<flit_width> *p_in; 95 95 DspinOutput<flit_width> *p_out; 96 sc_in<uint32_t> *p_blackhole_pos; 96 97 // reconfiguration port 98 sc_in<uint32_t> *p_recovery_cfg; 97 99 98 100 // constructor / destructor … … 104 106 const size_t in_fifo_depth, 105 107 const size_t out_fifo_depth, 106 const bool broadcast_supported = false, 107 const bool reconfigurable = false ); 108 const bool broadcast_supported = false ); 108 109 109 110 ~DspinRouter(); … … 146 147 void genMoore(); 147 148 int xfirst_route( size_t xdest, size_t ydest ); 148 int recovery_route( size_t xdest, size_t ydest );149 149 int route( sc_uint<flit_width> data ); 150 150 int broadcast_route( int iter, int source, sc_uint<flit_width> data ); 151 151 bool is_broadcast( sc_uint<flit_width> data ); 152 152 153 // fault-recovery methods 154 bool need_reroute( size_t xdest, size_t ydest, int bhpos ); 155 int recovery_route( size_t xdest, size_t ydest ); 156 153 157 public: 154 158 155 void set_disable_mask( int mask )159 inline void set_disable_mask( int mask ) 156 160 { 157 161 m_disable_mask = mask; 158 162 } 163 164 void bind_recovery_port( sc_core::sc_signal<uint32_t> &s ); 159 165 160 166 void print_trace();
Note: See TracChangeset
for help on using the changeset viewer.