1 | # -*- python -*- |
---|
2 | |
---|
3 | Module('caba:reconf:dspin_local_crossbar', |
---|
4 | classname = 'soclib::caba::DspinLocalCrossbar', |
---|
5 | |
---|
6 | tmpl_parameters = [ parameter.Int('flit_width'), ], |
---|
7 | |
---|
8 | header_files = ['../source/include/dspin_local_crossbar.h',], |
---|
9 | implementation_files = ['../source/src/dspin_local_crossbar.cpp',], |
---|
10 | ports = [ |
---|
11 | Port('caba:bit_in', 'p_resetn', auto = 'resetn'), |
---|
12 | Port('caba:clock_in', 'p_clk', auto = 'clock'), |
---|
13 | Port('caba:dspin_output', 'p_out', 5, |
---|
14 | dspin_data_size = parameter.Reference('flit_width')), |
---|
15 | Port('caba:dspin_input', 'p_in', 5, |
---|
16 | dspin_data_size = parameter.Reference('flit_width')), |
---|
17 | ], |
---|
18 | instance_parameters = [ |
---|
19 | parameter.Module('mt', typename = 'common:mapping_table'), |
---|
20 | parameter.Int('x'), |
---|
21 | parameter.Int('y'), |
---|
22 | parameter.Int('x_width'), |
---|
23 | parameter.Int('y_width'), |
---|
24 | parameter.Int('l_width'), |
---|
25 | parameter.Int('nb_local_inputs'), |
---|
26 | parameter.Int('nb_local_outputs'), |
---|
27 | parameter.Int('in_fifo_depth'), |
---|
28 | parameter.Int('out_fifo_depth'), |
---|
29 | parameter.Bool('use_routing_table'), |
---|
30 | parameter.Bool('broadcast_supported'), |
---|
31 | |
---|
32 | ], |
---|
33 | uses = [ |
---|
34 | Uses('caba:base_module'), |
---|
35 | Uses('common:mapping_table'), |
---|
36 | Uses('caba:generic_fifo',), |
---|
37 | ], |
---|
38 | ) |
---|