1 | |
---|
2 | # -*- python -*- |
---|
3 | |
---|
4 | # VCI parameters |
---|
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 | # internal DSPIN network parameters |
---|
19 | int_dspin_cmd_flit_size = 39 |
---|
20 | int_dspin_rsp_flit_size = 32 |
---|
21 | |
---|
22 | # external DSPIN network parameters |
---|
23 | ram_dspin_cmd_flit_size = 64 |
---|
24 | ram_dspin_rsp_flit_size = 64 |
---|
25 | |
---|
26 | todo = Platform('caba', 'top.cpp', |
---|
27 | |
---|
28 | uses = [ |
---|
29 | # cluster |
---|
30 | Uses('caba:reconfiguration:tsar_iob_cluster', |
---|
31 | vci_data_width_int = vci_cell_size_int, |
---|
32 | vci_data_width_ext = vci_cell_size_ext, |
---|
33 | dspin_int_cmd_width = int_dspin_cmd_flit_size, |
---|
34 | dspin_int_rsp_width = int_dspin_rsp_flit_size, |
---|
35 | dspin_ram_cmd_width = ram_dspin_cmd_flit_size, |
---|
36 | dspin_ram_rsp_width = ram_dspin_rsp_flit_size), |
---|
37 | |
---|
38 | # IOX Network |
---|
39 | Uses('caba:vci_iox_network', |
---|
40 | cell_size = vci_cell_size_ext), |
---|
41 | |
---|
42 | # Frame Buffer |
---|
43 | Uses('caba:vci_framebuffer', |
---|
44 | cell_size = vci_cell_size_ext), |
---|
45 | |
---|
46 | # Block Device |
---|
47 | Uses('caba:vci_block_device_tsar', |
---|
48 | cell_size = vci_cell_size_ext), |
---|
49 | |
---|
50 | # NIC |
---|
51 | Uses('caba:vci_multi_nic', |
---|
52 | cell_size = vci_cell_size_ext), |
---|
53 | |
---|
54 | # ERROR |
---|
55 | Uses('caba:vci_target_error', |
---|
56 | cell_size = vci_cell_size_ext), |
---|
57 | |
---|
58 | # Chained DMA |
---|
59 | Uses('caba:vci_chbuf_dma', |
---|
60 | cell_size = vci_cell_size_ext), |
---|
61 | |
---|
62 | # TTY |
---|
63 | Uses('caba:vci_multi_tty', |
---|
64 | cell_size = vci_cell_size_ext), |
---|
65 | |
---|
66 | # IOPIC |
---|
67 | Uses('caba:vci_iopic', |
---|
68 | cell_size = vci_cell_size_ext), |
---|
69 | |
---|
70 | # SIMHELPER |
---|
71 | Uses('caba:vci_simhelper', |
---|
72 | cell_size = vci_cell_size_ext), |
---|
73 | |
---|
74 | # ROM |
---|
75 | Uses('caba:vci_simple_rom', |
---|
76 | cell_size = vci_cell_size_ext), |
---|
77 | |
---|
78 | Uses('common:elf_file_loader'), |
---|
79 | Uses('common:plain_file_loader'), |
---|
80 | ], |
---|
81 | |
---|
82 | # default VCI parameters (global variables) |
---|
83 | cell_size = vci_cell_size_int, |
---|
84 | plen_size = vci_plen_size, |
---|
85 | addr_size = vci_addr_size, |
---|
86 | rerror_size = vci_rerror_size, |
---|
87 | clen_size = vci_clen_size, |
---|
88 | rflag_size = vci_rflag_size, |
---|
89 | srcid_size = vci_srcid_size, |
---|
90 | pktid_size = vci_pktid_size, |
---|
91 | trdid_size = vci_trdid_size, |
---|
92 | wrplen_size = vci_wrplen_size, |
---|
93 | |
---|
94 | ) |
---|