1 | |
---|
2 | # -*- python -*- |
---|
3 | |
---|
4 | Module('caba:tsar_xbar_cluster', |
---|
5 | classname = 'soclib::caba::TsarXbarCluster', |
---|
6 | |
---|
7 | tmpl_parameters = [ |
---|
8 | parameter.Int('dspin_cmd_width'), |
---|
9 | parameter.Int('dspin_rsp_width'), |
---|
10 | parameter.Module('vci_param_int'), |
---|
11 | parameter.Module('vci_param_ext', |
---|
12 | cell_size = parameter.Reference('cell_size_ext') |
---|
13 | ), |
---|
14 | ], |
---|
15 | |
---|
16 | header_files = [ '../source/include/tsar_xbar_cluster.h', ], |
---|
17 | |
---|
18 | implementation_files = [ '../source/src/tsar_xbar_cluster.cpp', ], |
---|
19 | |
---|
20 | uses = [ |
---|
21 | Uses('caba:base_module'), |
---|
22 | Uses('common:mapping_table'), |
---|
23 | Uses('common:iss2'), |
---|
24 | |
---|
25 | Uses('caba:vci_cc_vcache_wrapper', |
---|
26 | vci_param = parameter.Reference('vci_param_int'), |
---|
27 | dspin_in_width = parameter.Reference('dspin_cmd_width'), |
---|
28 | dspin_out_width = parameter.Reference('dspin_rsp_width'), |
---|
29 | iss_t = 'common:gdb_iss', |
---|
30 | gdb_iss_t = 'common:mips32el' |
---|
31 | ), |
---|
32 | Uses('caba:vci_simple_ram', |
---|
33 | vci_param = parameter.Reference('vci_param_int') |
---|
34 | ), |
---|
35 | Uses('caba:vci_simple_ram', |
---|
36 | vci_param = parameter.Reference('vci_param_ext'), |
---|
37 | cell_size = parameter.Reference('cell_size_ext'), |
---|
38 | ), |
---|
39 | Uses('caba:vci_xicu', |
---|
40 | vci_param = parameter.Reference('vci_param_int') |
---|
41 | ), |
---|
42 | Uses('caba:dspin_local_crossbar', |
---|
43 | flit_width = parameter.Reference('dspin_cmd_width') |
---|
44 | ), |
---|
45 | Uses('caba:dspin_local_crossbar', |
---|
46 | flit_width = parameter.Reference('dspin_rsp_width') |
---|
47 | ), |
---|
48 | Uses('caba:virtual_dspin_router', |
---|
49 | flit_width = parameter.Reference('dspin_cmd_width') |
---|
50 | ), |
---|
51 | Uses('caba:virtual_dspin_router', |
---|
52 | flit_width = parameter.Reference('dspin_rsp_width') |
---|
53 | ), |
---|
54 | Uses('caba:vci_multi_tty', |
---|
55 | vci_param = parameter.Reference('vci_param_int') |
---|
56 | ), |
---|
57 | Uses('caba:vci_framebuffer', |
---|
58 | vci_param = parameter.Reference('vci_param_int') |
---|
59 | ), |
---|
60 | Uses('caba:vci_multi_nic', |
---|
61 | vci_param = parameter.Reference('vci_param_int') |
---|
62 | ), |
---|
63 | Uses('caba:vci_block_device_tsar', |
---|
64 | vci_param = parameter.Reference('vci_param_int') |
---|
65 | ), |
---|
66 | Uses('caba:vci_multi_dma', |
---|
67 | vci_param = parameter.Reference('vci_param_int') |
---|
68 | ), |
---|
69 | Uses('caba:vci_dspin_target_wrapper', |
---|
70 | vci_param = parameter.Reference('vci_param_int') |
---|
71 | ), |
---|
72 | Uses('caba:vci_dspin_initiator_wrapper', |
---|
73 | vci_param = parameter.Reference('vci_param_int') |
---|
74 | ), |
---|
75 | Uses('caba:vci_mem_cache', |
---|
76 | dspin_in_width = parameter.Reference('dspin_rsp_width'), |
---|
77 | dspin_out_width = parameter.Reference('dspin_cmd_width'), |
---|
78 | memc_cell_size_int = parameter.Reference('cell_size'), |
---|
79 | memc_cell_size_ext = parameter.Reference('cell_size_ext') |
---|
80 | ), |
---|
81 | |
---|
82 | Uses('common:elf_file_loader'), |
---|
83 | ], |
---|
84 | |
---|
85 | ports = [ |
---|
86 | Port('caba:bit_in', 'p_resetn', auto = 'resetn'), |
---|
87 | Port('caba:clock_in', 'p_clk', auto = 'clock'), |
---|
88 | |
---|
89 | Port('caba:dspin_output', 'p_cmd_out', [2, 4], |
---|
90 | dspin_data_size = parameter.Reference('dspin_cmd_width') |
---|
91 | ), |
---|
92 | Port('caba:dspin_input', 'p_cmd_in', [2, 4], |
---|
93 | dspin_data_size = parameter.Reference('dspin_cmd_width') |
---|
94 | ), |
---|
95 | Port('caba:dspin_output', 'p_rsp_out', [2, 4], |
---|
96 | dspin_data_size = parameter.Reference('dspin_rsp_width') |
---|
97 | ), |
---|
98 | Port('caba:dspin_input', 'p_rsp_in', [2, 4], |
---|
99 | dspin_data_size = parameter.Reference('dspin_rsp_width') |
---|
100 | ), |
---|
101 | ], |
---|
102 | ) |
---|
103 | |
---|