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 | 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'), |
---|
22 | parameter.Bool('broadcast_supported'), |
---|
23 | ], |
---|
24 | uses = [ |
---|
25 | Uses('caba:base_module'), |
---|
26 | Uses('caba:generic_fifo'), |
---|
27 | ], |
---|
28 | ) |
---|
29 | |
---|
30 | # vim: ts=4 : sts=4 : sw=4 : et |
---|