| 1 | |
|---|
| 2 | # -*- python -*- |
|---|
| 3 | |
|---|
| 4 | __id__ = "$Id: vci_cc_xcache_wrapper_v1.sd 26 2010-04-20 17:33:49Z guthmull $" |
|---|
| 5 | __version__ = "$Revision: 26 $" |
|---|
| 6 | |
|---|
| 7 | Module('caba:vci_cc_xcache_wrapper_v1', |
|---|
| 8 | classname = 'soclib::caba::VciCcXCacheWrapperV1', |
|---|
| 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_xcache_wrapper_v1.h', |
|---|
| 15 | ], |
|---|
| 16 | implementation_files = [ |
|---|
| 17 | '../source/src/vci_cc_xcache_wrapper_v1.cpp', |
|---|
| 18 | ], |
|---|
| 19 | uses = [ |
|---|
| 20 | Uses('caba:base_module'), |
|---|
| 21 | Uses('common:mapping_table'), |
|---|
| 22 | Uses('common:iss2'), |
|---|
| 23 | Uses('caba:write_buffer'), |
|---|
| 24 | Uses('caba:generic_cache', addr_t = 'uint32_t'), |
|---|
| 25 | ], |
|---|
| 26 | ports = [ |
|---|
| 27 | Port('caba:vci_initiator', 'p_vci_ini_rw'), |
|---|
| 28 | Port('caba:vci_initiator', 'p_vci_ini_c'), |
|---|
| 29 | Port('caba:vci_target', 'p_vci_tgt'), |
|---|
| 30 | Port('caba:bit_in', 'p_irq', parameter.Constant('n_irq')), |
|---|
| 31 | Port('caba:bit_in', 'p_resetn', auto = 'resetn'), |
|---|
| 32 | Port('caba:clock_in', 'p_clk', auto = 'clock'), |
|---|
| 33 | ], |
|---|
| 34 | instance_parameters = [ |
|---|
| 35 | parameter.Int('proc_id'), |
|---|
| 36 | parameter.Module('mtp'), |
|---|
| 37 | parameter.Module('mtc'), |
|---|
| 38 | parameter.IntTab('initiator_rw_index'), |
|---|
| 39 | parameter.IntTab('initiator_c_index'), |
|---|
| 40 | parameter.IntTab('target_index'), |
|---|
| 41 | parameter.Int('icache_ways'), |
|---|
| 42 | parameter.Int('icache_sets'), |
|---|
| 43 | parameter.Int('icache_words'), |
|---|
| 44 | parameter.Int('dcache_ways'), |
|---|
| 45 | parameter.Int('dcache_sets'), |
|---|
| 46 | parameter.Int('dcache_words'), |
|---|
| 47 | ], |
|---|
| 48 | extensions = [ |
|---|
| 49 | 'dsx:get_ident=' |
|---|
| 50 | 'initiator_rw_index:p_vci_ini_rw:mtp,' |
|---|
| 51 | 'initiator_c_index:p_vci_ini_c:mtc,' |
|---|
| 52 | 'target_index:p_vci_tgt:mtc', |
|---|
| 53 | 'dsx:cpu=wrapper:iss_t', |
|---|
| 54 | 'dsx:addressable=target_index', |
|---|
| 55 | 'dsx:on_segment=mc:add_index:initiator_rw_index', |
|---|
| 56 | 'dsx:mapping_type=processor:proc_id', |
|---|
| 57 | ], |
|---|
| 58 | ) |
|---|
| 59 | |
|---|
| 60 | |
|---|