- Timestamp:
- Nov 10, 2014, 12:16:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/modules/dspin_router/caba/source/include/dspin_router.h
r854 r873 84 84 }; 85 85 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 86 100 protected: 87 101 SC_HAS_PROCESS(DspinRouter); … … 137 151 bool m_broadcast_supported; 138 152 int m_disable_mask; 153 int m_blackhole_pos; 139 154 140 155 // methods 141 156 void transition(); 142 157 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 ); 144 161 int broadcast_route( int iter, int source, sc_uint<flit_width> data ); 145 162 bool is_broadcast( sc_uint<flit_width> data ); … … 147 164 public: 148 165 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(); 151 177 }; 152 178
Note: See TracChangeset
for help on using the changeset viewer.