1 | |
---|
2 | # -*- python -*- |
---|
3 | |
---|
4 | Module('caba:simple_cluster', |
---|
5 | classname = 'soclib::caba::SimpleCluster', |
---|
6 | tmpl_parameters = [ |
---|
7 | parameter.Module('vci_param', default = 'caba:vci_param'), |
---|
8 | parameter.Int('cmd_width'), |
---|
9 | parameter.Int('rsp_width'), |
---|
10 | ], |
---|
11 | header_files = [ '../source/include/simple_cluster.h', ], |
---|
12 | implementation_files = [ '../source/src/simple_cluster.cpp', ], |
---|
13 | uses = [ |
---|
14 | Uses( 'caba:dspin_packet_generator', |
---|
15 | # cmd_width = parameter.Reference('cmd_width'), |
---|
16 | # rsp_width = parameter.Reference('rsp_width')), |
---|
17 | cmd_width = 40, rsp_width = 33), |
---|
18 | |
---|
19 | Uses('caba:base_module'), |
---|
20 | Uses('common:mapping_table'), |
---|
21 | Uses('caba:dspin_local_crossbar', |
---|
22 | flit_width = parameter.Reference('cmd_width')), |
---|
23 | Uses('caba:dspin_local_crossbar', |
---|
24 | flit_width = parameter.Reference('rsp_width')), |
---|
25 | Uses('caba:vci_dspin_initiator_wrapper', |
---|
26 | dspin_cmd_width = parameter.Reference('cmd_width'), |
---|
27 | dspin_rsp_width = parameter.Reference('rsp_width')), |
---|
28 | Uses('caba:vci_dspin_target_wrapper', |
---|
29 | dspin_cmd_width = parameter.Reference('cmd_width'), |
---|
30 | dspin_rsp_width = parameter.Reference('rsp_width')), |
---|
31 | Uses('caba:virtual_dspin_router', |
---|
32 | flit_width = parameter.Reference('cmd_width')), |
---|
33 | Uses('caba:virtual_dspin_router', |
---|
34 | flit_width = parameter.Reference('rsp_width')), |
---|
35 | Uses('caba:vci_synthetic_initiator'), |
---|
36 | Uses('caba:vci_synthetic_target'), |
---|
37 | |
---|
38 | Uses('caba:dspin_packet_generator', |
---|
39 | # cmd_width = parameter.Reference('rsp_width'), |
---|
40 | # rsp_width = parameter.Reference('cmd_width')), |
---|
41 | cmd_width = 33, rsp_width = 40), |
---|
42 | ], |
---|
43 | ports = [ |
---|
44 | Port('caba:bit_in', 'p_resetn', auto = 'resetn'), |
---|
45 | Port('caba:clock_in', 'p_clk', auto = 'clock'), |
---|
46 | Port('caba:dspin_output', 'p_cmd_out', [2, 4], |
---|
47 | dspin_data_size = parameter.Reference('cmd_width')), |
---|
48 | Port('caba:dspin_input', 'p_cmd_in', [2, 4], |
---|
49 | dspin_data_size = parameter.Reference('cmd_width')), |
---|
50 | Port('caba:dspin_output', 'p_rsp_out', [2, 4], |
---|
51 | dspin_data_size = parameter.Reference('rsp_width')), |
---|
52 | Port('caba:dspin_input', 'p_rsp_in', [2, 4], |
---|
53 | dspin_data_size = parameter.Reference('rsp_width')), |
---|
54 | ], |
---|
55 | ) |
---|
56 | |
---|
57 | |
---|