[2] | 1 | |
---|
| 2 | # -*- python -*- |
---|
| 3 | |
---|
| 4 | __id__ = "$Id: vci_mem_cache.sd 295 2013-02-14 15:05:05Z cfuguet $" |
---|
| 5 | __version__ = "$Revision: 295 $" |
---|
| 6 | |
---|
[295] | 7 | Module('caba:vci_mem_cache', |
---|
| 8 | classname = 'soclib::caba::VciMemCache', |
---|
[273] | 9 | |
---|
| 10 | tmpl_parameters = [ parameter.Module('vci_param', default = 'caba:vci_param') ], |
---|
| 11 | |
---|
| 12 | header_files = [ |
---|
[295] | 13 | '../source/include/vci_mem_cache.h', |
---|
| 14 | '../source/include/xram_transaction.h', |
---|
| 15 | '../source/include/mem_cache_directory.h', |
---|
| 16 | '../source/include/update_tab.h' |
---|
[273] | 17 | ], |
---|
| 18 | |
---|
[295] | 19 | implementation_files = [ '../source/src/vci_mem_cache.cpp' ], |
---|
[273] | 20 | |
---|
| 21 | uses = [ |
---|
| 22 | Uses('caba:base_module'), |
---|
| 23 | Uses('common:loader'), |
---|
| 24 | Uses('common:mapping_table'), |
---|
| 25 | Uses('caba:generic_fifo'), |
---|
[291] | 26 | Uses('caba:generic_llsc_global_table'), |
---|
[273] | 27 | ], |
---|
| 28 | |
---|
| 29 | ports = [ |
---|
| 30 | Port( 'caba:vci_target' , 'p_vci_tgt' ), |
---|
| 31 | Port( 'caba:vci_target' , 'p_vci_tgt_cleanup' ), |
---|
| 32 | Port( 'caba:vci_initiator', 'p_vci_ini' ), |
---|
| 33 | Port( 'caba:vci_initiator', 'p_vci_ixr' ), |
---|
| 34 | Port( 'caba:bit_in' , 'p_resetn' , auto = 'resetn' ), |
---|
| 35 | Port( 'caba:clock_in' , 'p_clk' , auto = 'clock' ), |
---|
| 36 | ], |
---|
| 37 | |
---|
| 38 | instance_parameters = [ |
---|
| 39 | parameter.Module( 'mtp', 'common:mapping_table' ), |
---|
| 40 | parameter.Module( 'mtc', 'common:mapping_table' ), |
---|
| 41 | parameter.Module( 'mtx', 'common:mapping_table' ), |
---|
| 42 | parameter.IntTab( 'vci_ixr_index' ), |
---|
| 43 | parameter.IntTab( 'vci_ini_index' ), |
---|
| 44 | parameter.IntTab( 'vci_tgt_index' ), |
---|
| 45 | parameter.IntTab( 'vci_tgt_index_cleanup '), |
---|
| 46 | parameter.Int ( 'nways' ), |
---|
| 47 | parameter.Int ( 'nsets' ), |
---|
| 48 | parameter.Int ( 'nwords' ), |
---|
| 49 | parameter.Int ( 'heap_size' ), |
---|
| 50 | ], |
---|
| 51 | |
---|
| 52 | extensions = [ |
---|
| 53 | 'dsx:get_ident=' |
---|
| 54 | 'vci_ini_index:p_vci_ini:mtc,' |
---|
| 55 | 'vci_tgt_index_cleanup:p_vci_tgt_cleanup:mtc,' |
---|
| 56 | 'vci_tgt_index:p_vci_tgt:mtp,' |
---|
| 57 | 'vci_ixr_index:p_vci_ixr:mtx', |
---|
| 58 | 'dsx:addressable=vci_tgt_index,vci_tgt_index_cleanup', |
---|
| 59 | ], |
---|
[2] | 60 | ) |
---|