[957] | 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_fpga_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 | |
---|
| 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_block_device_tsar', |
---|
| 48 | cell_size = vci_cell_size_int), |
---|
| 49 | |
---|
| 50 | Uses('caba:vci_multi_tty', |
---|
| 51 | cell_size = vci_cell_size_int), |
---|
| 52 | |
---|
| 53 | Uses('common:elf_file_loader'), |
---|
| 54 | |
---|
| 55 | Uses('common:plain_file_loader'), |
---|
| 56 | ], |
---|
| 57 | |
---|
| 58 | # default VCI parameters (global variables) |
---|
| 59 | cell_size = vci_cell_size_int, |
---|
| 60 | plen_size = vci_plen_size, |
---|
| 61 | addr_size = vci_addr_size, |
---|
| 62 | rerror_size = vci_rerror_size, |
---|
| 63 | clen_size = vci_clen_size, |
---|
| 64 | rflag_size = vci_rflag_size, |
---|
| 65 | srcid_size = vci_srcid_size, |
---|
| 66 | pktid_size = vci_pktid_size, |
---|
| 67 | trdid_size = vci_trdid_size, |
---|
| 68 | wrplen_size = vci_wrplen_size, |
---|
| 69 | ) |
---|