[226] | 1 | |
---|
| 2 | # -*- python -*- |
---|
| 3 | |
---|
| 4 | Module('caba:tsar_cluster_v1', |
---|
| 5 | classname = 'soclib::caba::TsarClusterV1', |
---|
| 6 | |
---|
| 7 | tmpl_parameters = [ |
---|
| 8 | parameter.Module('vci_param', default = 'caba:vci_param'), |
---|
| 9 | parameter.Int('cmd_width'), |
---|
| 10 | parameter.Int('rsp_width'), |
---|
| 11 | ], |
---|
| 12 | |
---|
| 13 | header_files = [ |
---|
| 14 | '../source/include/tsar_cluster_v1.h' |
---|
| 15 | ], |
---|
| 16 | |
---|
| 17 | implementation_files = [ |
---|
| 18 | '../source/src/tsar_cluster_v1.cpp' |
---|
| 19 | ], |
---|
| 20 | |
---|
| 21 | uses = [ |
---|
| 22 | Uses('caba:base_module'), |
---|
| 23 | Uses('common:loader'), |
---|
| 24 | Uses('common:elf_file_loader'), |
---|
| 25 | Uses('common:mapping_table'), |
---|
| 26 | Uses( |
---|
| 27 | 'caba:vci_cc_xcache_wrapper_v1', |
---|
| 28 | iss_t = 'common:gdb_iss', |
---|
| 29 | gdb_iss_t = 'common:mips32el' |
---|
| 30 | ), |
---|
| 31 | Uses('caba:vci_mem_cache_v1'), |
---|
| 32 | Uses('caba:vci_multi_tty'), |
---|
| 33 | Uses('caba:vci_xicu'), |
---|
| 34 | Uses( |
---|
| 35 | 'caba:vci_simple_ring_fast', |
---|
| 36 | ring_cmd_data_size = parameter.Reference('cmd_width'), |
---|
| 37 | ring_rsp_data_size = parameter.Reference('rsp_width') |
---|
| 38 | ) |
---|
| 39 | ], |
---|
| 40 | |
---|
| 41 | instance_parameters = [ |
---|
| 42 | parameter.Int('cluster_idx'), |
---|
| 43 | parameter.Int('infifo_depth'), |
---|
| 44 | parameter.Int('outfifo_depth'), |
---|
| 45 | parameter.Int('x_local'), |
---|
| 46 | parameter.Int('y_local'), |
---|
| 47 | parameter.Int('x_width'), |
---|
| 48 | parameter.Int('y_width'), |
---|
| 49 | parameter.Module('md', 'common:mapping_table'), |
---|
| 50 | parameter.Module('mc', 'common:mapping_table'), |
---|
| 51 | parameter.Module('mx', 'common:mapping_table'), |
---|
| 52 | parameter.Int('nprocs'), |
---|
| 53 | parameter.Int('max_nprocs'), |
---|
| 54 | parameter.Int('iwords'), |
---|
| 55 | parameter.Int('iways'), |
---|
| 56 | parameter.Int('isets'), |
---|
| 57 | parameter.Int('dwords'), |
---|
| 58 | parameter.Int('dways'), |
---|
| 59 | parameter.Int('dsets'), |
---|
| 60 | parameter.Int('mcwords'), |
---|
| 61 | parameter.Int('mcways'), |
---|
| 62 | parameter.Int('mcsets'), |
---|
| 63 | parameter.Int('is_io'), |
---|
| 64 | ], |
---|
| 65 | |
---|
| 66 | ports = [ |
---|
| 67 | Port('caba:clock_in' , 'p_clk' , auto = 'clock' ), |
---|
| 68 | Port('caba:bit_in' , 'p_resetn' , auto = 'resetn' ), |
---|
| 69 | |
---|
| 70 | Port('caba:vci_initiator', 'p_vci_ixr') |
---|
| 71 | ] |
---|
| 72 | ) |
---|
| 73 | |
---|
| 74 | # vim: filetype=python : tabstop=2 : shiftwidth=2 : expandtab |
---|