1 | |
---|
2 | # -*- python -*- |
---|
3 | |
---|
4 | __id__ = "$Id: vci_cc_vcache_wrapper_v1.sd 917 2009-03-12 10:10:06Z nipo $" |
---|
5 | __version__ = "$Revision: 917 $" |
---|
6 | |
---|
7 | Module('caba:vci_cc_vcache_wrapper_v1', |
---|
8 | classname = 'soclib::caba::VciCcVCacheWrapperV1', |
---|
9 | tmpl_parameters = [ |
---|
10 | parameter.Module('vci_param', default = 'caba:vci_param'), |
---|
11 | parameter.Module('iss_t'), |
---|
12 | ], |
---|
13 | header_files = [ |
---|
14 | '../source/include/vci_cc_vcache_wrapper_v1.h', |
---|
15 | ], |
---|
16 | implementation_files = [ |
---|
17 | '../source/src/vci_cc_vcache_wrapper_v1.cpp', |
---|
18 | ], |
---|
19 | uses = [ |
---|
20 | Uses('caba:base_module'), |
---|
21 | Uses('caba:write_buffer'), |
---|
22 | Uses('caba:generic_tlb', addr_t = parameter.StringExt('sc_dt::sc_uint<%d> ', parameter.Reference('addr_size'))), |
---|
23 | Uses('caba:generic_cache', addr_t = parameter.StringExt('sc_dt::sc_uint<%d> ', parameter.Reference('addr_size'))), |
---|
24 | Uses('common:address_masking_table', data_t = parameter.StringExt('sc_dt::sc_uint<%d> ', parameter.Reference('addr_size'))), |
---|
25 | Uses('common:iss2'), |
---|
26 | Uses('common:mapping_table'), |
---|
27 | ], |
---|
28 | ports = [ |
---|
29 | Port('caba:vci_initiator', 'p_vci_ini_rw'), |
---|
30 | Port('caba:vci_initiator', 'p_vci_ini_c'), |
---|
31 | Port('caba:vci_target', 'p_vci_tgt'), |
---|
32 | Port('caba:bit_in','p_irq', parameter.Constant('n_irq')), |
---|
33 | Port('caba:bit_in', 'p_resetn', auto = 'resetn'), |
---|
34 | Port('caba:clock_in', 'p_clk', auto = 'clock'), |
---|
35 | ], |
---|
36 | instance_parameters = [ |
---|
37 | parameter.Int('proc_id'), |
---|
38 | parameter.Module('mt', 'common:mapping_table', auto='env:mapping_table'), |
---|
39 | parameter.Module('mc', 'common:mapping_table', auto='env:mapping_table'), |
---|
40 | parameter.IntTab('initiator_rw_index'), |
---|
41 | parameter.IntTab('initiator_c_index'), |
---|
42 | parameter.IntTab('target_index'), |
---|
43 | parameter.Int('itlb_ways'), |
---|
44 | parameter.Int('itlb_sets'), |
---|
45 | parameter.Int('dtlb_ways'), |
---|
46 | parameter.Int('dtlb_sets'), |
---|
47 | parameter.Int('icache_ways'), |
---|
48 | parameter.Int('icache_sets'), |
---|
49 | parameter.Int('icache_words'), |
---|
50 | parameter.Int('dcache_ways'), |
---|
51 | parameter.Int('dcache_sets'), |
---|
52 | parameter.Int('dcache_words'), |
---|
53 | parameter.Int('write_buf_size'), |
---|
54 | ], |
---|
55 | extensions = [ |
---|
56 | 'dsx:get_ident=initiator_index:p_vci_ini_rw', |
---|
57 | 'dsx:cpu=wrapper:iss_t', |
---|
58 | 'dsx:mapping_type=processor:proc_id', |
---|
59 | ], |
---|
60 | ) |
---|
61 | |
---|