- Timestamp:
- Sep 14, 2015, 9:42:16 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/modules/dspin_router/caba/source/include/dspin_router.h
r1010 r1016 29 29 /////////////////////////////////////////////////////////////////////////// 30 30 // Implementation Note : 31 // The xfirst_route(), broadcast_route() and is_broadcast() functions 32 // defined below are used to decode the DSPIN first flit format: 31 // DSPIN first flit format: 33 32 // - In case of a non-broadcast packet : 34 33 // | X | Y |---------------------------------------|BC | … … 36 35 // 37 36 // - In case of a broacast 38 // | XMIN | XMAX | YMIN | YMAX |---------------- ---|BC |39 // | 5 | 5 | 5 | 5 | flit_width - 2 2| 1 |37 // | XMIN | XMAX | YMIN | YMAX |----------------|SP|BC | 38 // | 5 | 5 | 5 | 5 | flit_width - 21| 1| 1 | 40 39 /////////////////////////////////////////////////////////////////////////// 41 40 … … 147 146 void genMoore(); 148 147 149 int xfirst_route( size_t xdest, size_t ydest);148 int route( sc_uint<flit_width> data ); 150 149 int recovery_route( size_t xdest, size_t ydest ); 151 int route( sc_uint<flit_width> data ); 150 int broadcast_route( int iter, int source, sc_uint<flit_width> data ); 151 int reallocation_route(); 152 152 153 int broadcast_route( int iter, int source, sc_uint<flit_width> data );154 153 bool is_broadcast( sc_uint<flit_width> data ); 155 sc_uint<flit_width>compute_broadcast_header( int source );154 internal_flit_t compute_broadcast_header( int source ); 156 155 157 bool is_destination_blackhole( size_t xdest, size_t ydest, int bhpos ); 156 bool is_reconfigurable(); 157 bool is_recovery_routing_enabled(); 158 bool is_reallocation_enabled(); 159 bool is_destination_blackhole( size_t xdest, size_t ydest ); 158 160 int blackhole_position(); 159 160 inline bool is_network_recovery_enable()161 {162 return (((p_recovery_cfg->read() >> 7) & 0x1) != 0);163 }164 165 inline int migration_route()166 {167 return ((p_recovery_cfg->read() >> 4) & 0x7);168 }169 170 inline bool is_reconfigurable()171 {172 return (p_recovery_cfg != NULL);173 }174 161 175 162 public:
Note: See TracChangeset
for help on using the changeset viewer.