[621] | 1 | |
---|
| 2 | # -*- python -*- |
---|
| 3 | |
---|
| 4 | # internal VCI parameters values |
---|
| 5 | vci_cell_size_int = 4 |
---|
| 6 | vci_cell_size_ext = 8 |
---|
| 7 | |
---|
| 8 | vci_plen_size = 8 |
---|
| 9 | vci_addr_size = 40 |
---|
| 10 | vci_rerror_size = 1 |
---|
| 11 | vci_clen_size = 1 |
---|
| 12 | vci_rflag_size = 1 |
---|
| 13 | vci_srcid_size = 14 |
---|
| 14 | vci_pktid_size = 4 |
---|
| 15 | vci_trdid_size = 4 |
---|
| 16 | vci_wrplen_size = 1 |
---|
| 17 | |
---|
| 18 | # DSPIN network parameters values |
---|
| 19 | dspin_cmd_flit_size = 39 |
---|
| 20 | dspin_rsp_flit_size = 32 |
---|
| 21 | |
---|
| 22 | todo = Platform('caba', 'top.cpp', |
---|
| 23 | |
---|
| 24 | uses = [ |
---|
| 25 | Uses('caba:tsar_leti_cluster', |
---|
| 26 | vci_data_width_int = vci_cell_size_int, |
---|
| 27 | vci_data_width_ext = vci_cell_size_ext, |
---|
| 28 | dspin_cmd_width = dspin_cmd_flit_size, |
---|
| 29 | dspin_rsp_width = dspin_rsp_flit_size), |
---|
| 30 | |
---|
[628] | 31 | Uses('caba:vci_dspin_target_wrapper', |
---|
| 32 | cell_size = vci_cell_size_int, |
---|
| 33 | dspin_cmd_width = dspin_cmd_flit_size, |
---|
| 34 | dspin_rsp_width = dspin_rsp_flit_size), |
---|
| 35 | |
---|
| 36 | Uses('caba:vci_dspin_initiator_wrapper', |
---|
| 37 | cell_size = vci_cell_size_int, |
---|
| 38 | dspin_cmd_width = dspin_cmd_flit_size, |
---|
| 39 | dspin_rsp_width = dspin_rsp_flit_size), |
---|
| 40 | |
---|
| 41 | Uses('caba:vci_local_crossbar', |
---|
| 42 | cell_size = vci_cell_size_int), |
---|
| 43 | |
---|
| 44 | Uses('caba:vci_framebuffer', |
---|
| 45 | cell_size = vci_cell_size_int), |
---|
| 46 | |
---|
| 47 | Uses('caba:vci_multi_nic', |
---|
| 48 | cell_size = vci_cell_size_int), |
---|
| 49 | |
---|
| 50 | Uses('caba:vci_chbuf_dma', |
---|
| 51 | cell_size = vci_cell_size_int), |
---|
| 52 | |
---|
| 53 | Uses('caba:vci_block_device_tsar', |
---|
| 54 | cell_size = vci_cell_size_int), |
---|
| 55 | |
---|
| 56 | Uses('caba:vci_multi_tty', |
---|
| 57 | cell_size = vci_cell_size_int), |
---|
| 58 | |
---|
| 59 | Uses('caba:vci_iopic', |
---|
| 60 | cell_size = vci_cell_size_int), |
---|
| 61 | |
---|
[621] | 62 | Uses('common:elf_file_loader'), |
---|
[628] | 63 | |
---|
[621] | 64 | Uses('common:plain_file_loader'), |
---|
| 65 | ], |
---|
| 66 | |
---|
| 67 | # default VCI parameters (global variables) |
---|
| 68 | cell_size = vci_cell_size_int, |
---|
| 69 | plen_size = vci_plen_size, |
---|
| 70 | addr_size = vci_addr_size, |
---|
| 71 | rerror_size = vci_rerror_size, |
---|
| 72 | clen_size = vci_clen_size, |
---|
| 73 | rflag_size = vci_rflag_size, |
---|
| 74 | srcid_size = vci_srcid_size, |
---|
| 75 | pktid_size = vci_pktid_size, |
---|
| 76 | trdid_size = vci_trdid_size, |
---|
| 77 | wrplen_size = vci_wrplen_size, |
---|
| 78 | ) |
---|