1 | |
---|
2 | # -*- python -*- |
---|
3 | |
---|
4 | Module('caba:vci_simple_rom', |
---|
5 | classname = 'soclib::caba::VciSimpleRom', |
---|
6 | |
---|
7 | tmpl_parameters = [ |
---|
8 | parameter.Module('vci_param', default = 'caba:vci_param'), |
---|
9 | ], |
---|
10 | |
---|
11 | header_files = [ |
---|
12 | '../source/include/vci_simple_rom.h', |
---|
13 | ], |
---|
14 | |
---|
15 | implementation_files = [ |
---|
16 | '../source/src/vci_simple_rom.cpp', |
---|
17 | ], |
---|
18 | |
---|
19 | ports = [ |
---|
20 | Port('caba:vci_target', 'p_vci'), |
---|
21 | Port('caba:bit_in', 'p_resetn', auto = 'resetn'), |
---|
22 | Port('caba:clock_in', 'p_clk', auto = 'clock'), |
---|
23 | ], |
---|
24 | |
---|
25 | uses = [ |
---|
26 | Uses('caba:base_module'), |
---|
27 | Uses('common:loader'), |
---|
28 | Uses('common:mapping_table'), |
---|
29 | ], |
---|
30 | |
---|
31 | instance_parameters = [ |
---|
32 | parameter.IntTab('ident'), |
---|
33 | parameter.Module('mt', 'common:mapping_table'), |
---|
34 | parameter.Module('loader', 'common:loader', auto='env:loader'), |
---|
35 | ], |
---|
36 | extensions = [ |
---|
37 | 'dsx:addressable=ident', |
---|
38 | 'dsx:get_ident=ident:p_vci:mt', |
---|
39 | 'dsx:obtain_ident_method=param:ident', |
---|
40 | 'dsx:mapping_type=memory', |
---|
41 | ], |
---|
42 | ) |
---|