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