[151] | 1 | |
---|
| 2 | # -*- python -*- |
---|
| 3 | |
---|
| 4 | Module('caba:vci_block_device_tsar_v4', |
---|
| 5 | classname = 'soclib::caba::VciBlockDeviceTsarV4', |
---|
| 6 | tmpl_parameters = [ parameter.Module('vci_param', default = 'caba:vci_param'), ], |
---|
| 7 | header_files = ['../source/include/vci_block_device_tsar_v4.h', ], |
---|
| 8 | interface_files = ['../../include/soclib/block_device_tsar_v4.h', ], |
---|
| 9 | implementation_files = ['../source/src/vci_block_device_tsar_v4.cpp',], |
---|
| 10 | ports = [ |
---|
| 11 | Port('caba:vci_target', 'p_vci_target'), |
---|
| 12 | Port('caba:vci_initiator', 'p_vci_initiator'), |
---|
| 13 | Port('caba:bit_out', 'p_irq'), |
---|
| 14 | Port('caba:bit_in', 'p_resetn', auto = 'resetn'), |
---|
| 15 | Port('caba:clock_in', 'p_clk', auto = 'clock'), |
---|
| 16 | ], |
---|
| 17 | uses = [ |
---|
| 18 | Uses('caba:base_module'), |
---|
| 19 | Uses('common:mapping_table'), |
---|
| 20 | ], |
---|
| 21 | instance_parameters = [ |
---|
| 22 | parameter.Module('mt', typename = 'common:mapping_table', auto = 'env:mapping_table'), |
---|
| 23 | parameter.IntTab('srcid'), |
---|
| 24 | parameter.IntTab('tgtid'), |
---|
| 25 | parameter.String('filename'), |
---|
| 26 | parameter.Int('block_size'), |
---|
| 27 | parameter.Int('burst_size'), |
---|
| 28 | parameter.Int('latency'), |
---|
| 29 | ], |
---|
| 30 | extensions = [ |
---|
| 31 | 'dsx:addressable=tgtid', |
---|
| 32 | 'dsx:max_segments=1', |
---|
| 33 | 'dsx:get_ident=tgtid:p_vci_target:mt,srcid:p_vci_initiator:mt', |
---|
| 34 | ], |
---|
| 35 | ) |
---|