1 | |
---|
2 | # -*- python -*- |
---|
3 | |
---|
4 | Module('caba:vci_synthetic_target', |
---|
5 | classname = 'soclib::caba::VciSyntheticTarget', |
---|
6 | tmpl_parameters = [ |
---|
7 | parameter.Module('vci_param', default = 'caba:vci_param'), |
---|
8 | ], |
---|
9 | header_files = ['../source/include/vci_synthetic_target.h',], |
---|
10 | implementation_files = ['../source/src/vci_synthetic_target.cpp',], |
---|
11 | ports = [ |
---|
12 | Port('caba:vci_target', 'p_vci'), |
---|
13 | Port('caba:bit_in', 'p_resetn', auto = 'resetn'), |
---|
14 | Port('caba:clock_in', 'p_clk', auto = 'clock'), |
---|
15 | ], |
---|
16 | uses = [ |
---|
17 | Uses('caba:base_module'), |
---|
18 | Uses('common:linked_access_buffer', |
---|
19 | addr_t = parameter.StringExt('sc_dt::sc_uint<%d>', parameter.Reference('addr_size')), |
---|
20 | id_t = parameter.StringExt('sc_dt::sc_uint<%d>', parameter.Reference('srcid_size'))), |
---|
21 | Uses('common:loader'), |
---|
22 | Uses('common:mapping_table'), |
---|
23 | ], |
---|
24 | instance_parameters = [ |
---|
25 | parameter.IntTab('ident'), |
---|
26 | parameter.Module('mt', 'common:mapping_table'), |
---|
27 | parameter.Module('loader', 'common:loader', auto='env:loader'), |
---|
28 | parameter.Int('latency'), |
---|
29 | ], |
---|
30 | extensions = [ |
---|
31 | 'dsx:addressable=ident', |
---|
32 | 'dsx:get_ident=ident:p_vci:mt', |
---|
33 | 'dsx:obtain_ident_method=param:ident', |
---|
34 | 'dsx:mapping_type=memory', |
---|
35 | ], |
---|
36 | ) |
---|