[240] | 1 | |
---|
| 2 | # -*- python -*- |
---|
| 3 | |
---|
| 4 | __id__ = "$Id: vci_io_bridge.sd 20 2012-6-11 $" |
---|
| 5 | |
---|
| 6 | Module('caba:vci_io_bridge', |
---|
[715] | 7 | classname = 'soclib::caba::VciIoBridge', |
---|
[434] | 8 | |
---|
[715] | 9 | tmpl_parameters = [ |
---|
[434] | 10 | parameter.Module('vci_param_int', |
---|
| 11 | default = 'caba:vci_param', |
---|
| 12 | cell_size = parameter.Reference('iob_cell_size_int')), |
---|
[715] | 13 | parameter.Module('vci_param_ext', |
---|
[434] | 14 | default = 'caba:vci_param', |
---|
| 15 | cell_size = parameter.Reference('iob_cell_size_ext')), |
---|
[240] | 16 | ], |
---|
[434] | 17 | |
---|
[715] | 18 | header_files = [ |
---|
[434] | 19 | '../source/include/vci_io_bridge.h', |
---|
[715] | 20 | '../source/include/transaction_tab_io.h' |
---|
[434] | 21 | ], |
---|
| 22 | |
---|
[715] | 23 | implementation_files = [ '../source/src/vci_io_bridge.cpp' ], |
---|
[434] | 24 | |
---|
[715] | 25 | uses = [ Uses('caba:base_module'), |
---|
| 26 | Uses('common:mapping_table'), |
---|
| 27 | Uses('caba:generic_fifo'), |
---|
| 28 | Uses('caba:generic_tlb', |
---|
| 29 | addr_t = parameter.StringExt('sc_dt::sc_uint<%d> ', |
---|
[434] | 30 | parameter.Reference('addr_size'))), |
---|
[715] | 31 | Uses('common:address_decoding_table', |
---|
[434] | 32 | input_t = 'unsigned long', |
---|
| 33 | output_t = 'bool'), |
---|
[715] | 34 | Uses('common:address_decoding_table', |
---|
[434] | 35 | input_t = 'unsigned long', |
---|
| 36 | output_t = 'int'), |
---|
| 37 | ], |
---|
| 38 | |
---|
[715] | 39 | ports = [ |
---|
| 40 | Port('caba:vci_initiator', 'p_vci_ini_ram'), |
---|
| 41 | Port('caba:vci_target', 'p_vci_tgt_iox'), |
---|
| 42 | Port('caba:vci_initiator', 'p_vci_ini_iox'), |
---|
| 43 | Port('caba:vci_target', 'p_vci_tgt_int'), |
---|
| 44 | Port('caba:vci_initiator', 'p_vci_ini_int'), |
---|
| 45 | Port('caba:bit_in','p_irq', 32), |
---|
| 46 | Port('caba:bit_in', 'p_resetn', auto = 'resetn'), |
---|
| 47 | Port('caba:clock_in', 'p_clk', auto = 'clock'), |
---|
[434] | 48 | ], |
---|
[240] | 49 | |
---|
[715] | 50 | instance_parameters = [ |
---|
[434] | 51 | parameter.Module('mt_ext', 'common:mapping_table'), |
---|
| 52 | parameter.Module('mt_int', 'common:mapping_table'), |
---|
| 53 | parameter.Module('mt_iox', 'common:mapping_table'), |
---|
| 54 | parameter.IntTab('int_tgtid'), |
---|
| 55 | parameter.IntTab('int_srcid'), |
---|
| 56 | parameter.IntTab('iox_tgtid'), |
---|
| 57 | parameter.IntTab('iox_srcid'), |
---|
| 58 | parameter.IntTab('ext_srcid'), |
---|
| 59 | parameter.Int('dcache_words'), |
---|
| 60 | parameter.Int('iotlb_ways'), |
---|
| 61 | parameter.Int('iotlb_sets'), |
---|
| 62 | parameter.Int('debug_start_cycle'), |
---|
| 63 | parameter.Bool('debug_ok'), |
---|
| 64 | ], |
---|
[240] | 65 | ) |
---|
| 66 | |
---|