1 | # -*- python -*- |
---|
2 | |
---|
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'), |
---|
21 | parameter.Bool('broadcast_supported'), |
---|
22 | ], |
---|
23 | uses = [ |
---|
24 | Uses('caba:base_module'), |
---|
25 | Uses('caba:generic_fifo'), |
---|
26 | ], |
---|
27 | ) |
---|