1 | # -*- python -*- |
---|
2 | |
---|
3 | # VCI parameters |
---|
4 | vci_cell_size_int = 4 |
---|
5 | vci_cell_size_ext = 8 |
---|
6 | |
---|
7 | vci_plen_size = 8 |
---|
8 | vci_addr_size = 40 |
---|
9 | vci_rerror_size = 1 |
---|
10 | vci_clen_size = 1 |
---|
11 | vci_rflag_size = 1 |
---|
12 | vci_srcid_size = 14 |
---|
13 | vci_pktid_size = 4 |
---|
14 | vci_trdid_size = 4 |
---|
15 | vci_wrplen_size = 1 |
---|
16 | |
---|
17 | # internal DSPIN network parameters |
---|
18 | int_dspin_cmd_flit_size = 39 |
---|
19 | int_dspin_rsp_flit_size = 32 |
---|
20 | |
---|
21 | # external DSPIN network parameters |
---|
22 | ram_dspin_cmd_flit_size = 64 |
---|
23 | ram_dspin_rsp_flit_size = 64 |
---|
24 | |
---|
25 | todo = Platform( |
---|
26 | 'caba', 'top.cpp', |
---|
27 | uses = [ |
---|
28 | Uses('caba:reconf:vci_mem_cache', |
---|
29 | memc_cell_size_int=vci_cell_size_int, |
---|
30 | memc_cell_size_ext=vci_cell_size_ext, |
---|
31 | memc_dspin_in_width=int_dspin_rsp_flit_size, |
---|
32 | memc_dspin_out_width=int_dspin_cmd_flit_size), |
---|
33 | |
---|
34 | Uses('caba:reconf:dspin_memcache_cc_test', |
---|
35 | M2P_WIDTH=int_dspin_cmd_flit_size, |
---|
36 | P2M_WIDTH=int_dspin_rsp_flit_size) |
---|
37 | ], |
---|
38 | |
---|
39 | # default VCI parameters (global variables) |
---|
40 | cell_size = vci_cell_size_int, |
---|
41 | plen_size = vci_plen_size, |
---|
42 | addr_size = vci_addr_size, |
---|
43 | rerror_size = vci_rerror_size, |
---|
44 | clen_size = vci_clen_size, |
---|
45 | rflag_size = vci_rflag_size, |
---|
46 | srcid_size = vci_srcid_size, |
---|
47 | pktid_size = vci_pktid_size, |
---|
48 | trdid_size = vci_trdid_size, |
---|
49 | wrplen_size = vci_wrplen_size) |
---|
50 | |
---|