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