Changeset 886 for branches/reconfiguration/modules/dspin_router/caba
- Timestamp:
- Nov 16, 2014, 12:49:58 PM (10 years ago)
- Location:
- branches/reconfiguration/modules/dspin_router/caba
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/modules/dspin_router/caba/metadata/dspin_router.sd
r854 r886 2 2 3 3 Module('caba:reconf:dspin_router', 4 classname = 'soclib::caba::DspinRouter', 5 tmpl_parameters = [ parameter.Int('flit_width'), ], 6 header_files = ['../source/include/dspin_router.h',], 7 implementation_files = ['../source/src/dspin_router.cpp',], 8 ports = [ 9 Port('caba:bit_in', 'p_resetn', auto = 'resetn'), 10 Port('caba:clock_in', 'p_clk', auto = 'clock'), 11 Port('caba:dspin_output', 'p_out', 5, dspin_data_size = parameter.Reference('flit_width')), 12 Port('caba:dspin_input', 'p_in', 5, dspin_data_size = parameter.Reference('flit_width')), 13 ], 14 instance_parameters = [ 15 parameter.Int('x'), 16 parameter.Int('y'), 17 parameter.Int('x_width'), 18 parameter.Int('y_width'), 19 parameter.Int('in_fifo_depth'), 20 parameter.Int('out_fifo_depth'), 4 classname = 'soclib::caba::DspinRouter', 5 tmpl_parameters = [ parameter.Int('flit_width')], 6 header_files = ['../source/include/dspin_router.h'], 7 implementation_files = ['../source/src/dspin_router.cpp'], 8 interface_files = ['../../include/soclib/dspin_router_config.h'], 9 ports = [ 10 Port('caba:bit_in', 'p_resetn', auto = 'resetn'), 11 Port('caba:clock_in', 'p_clk', auto = 'clock'), 12 Port('caba:dspin_output', 'p_out', 5, dspin_data_size = parameter.Reference('flit_width')), 13 Port('caba:dspin_input', 'p_in', 5, dspin_data_size = parameter.Reference('flit_width')), 14 ], 15 instance_parameters = [ 16 parameter.Int('x'), 17 parameter.Int('y'), 18 parameter.Int('x_width'), 19 parameter.Int('y_width'), 20 parameter.Int('in_fifo_depth'), 21 parameter.Int('out_fifo_depth'), 21 22 parameter.Bool('broadcast_supported'), 22 23 24 25 26 23 ], 24 uses = [ 25 Uses('caba:base_module'), 26 Uses('caba:generic_fifo'), 27 ], 27 28 ) 29 30 # vim: ts=4 : sts=4 : sw=4 : et -
branches/reconfiguration/modules/dspin_router/caba/source/include/dspin_router.h
r883 r886 82 82 INFSM_REQ_FOURTH, 83 83 INFSM_ALLOC_FOURTH, 84 };85 86 // Black-Hole position87 enum88 {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_NW98 84 }; 99 85 -
branches/reconfiguration/modules/dspin_router/caba/source/src/dspin_router.cpp
r883 r886 41 41 42 42 #include "../include/dspin_router.h" 43 #include "dspin_router_config.h" 43 44 44 45 namespace soclib { namespace caba { … … 250 251 if ( p_blackhole_pos != NULL ) 251 252 { 252 if ( p_blackhole_pos->read() != BH_NONE)253 if ( p_blackhole_pos->read() != BH_NONE ) 253 254 { 254 255 return recovery_route(xdest, ydest);
Note: See TracChangeset
for help on using the changeset viewer.