Changeset 547 for trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba
- Timestamp:
- Oct 7, 2013, 5:31:08 PM (11 years ago)
- Location:
- trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba/metadata/tsar_xbar_cluster.sd
r475 r547 4 4 Module('caba:tsar_xbar_cluster', 5 5 classname = 'soclib::caba::TsarXbarCluster', 6 7 8 6 tmpl_parameters = [ 7 parameter.Int('dspin_cmd_width'), 8 parameter.Int('dspin_rsp_width'), 9 9 parameter.Module('vci_param_int', default = 'caba:vci_param', 10 10 cell_size = parameter.Reference('vci_data_width_int')), … … 13 13 ], 14 14 15 15 header_files = [ '../source/include/tsar_xbar_cluster.h', 16 16 ], 17 17 18 18 implementation_files = [ '../source/src/tsar_xbar_cluster.cpp', 19 19 ], 20 20 21 22 23 24 21 uses = [ 22 Uses('caba:base_module'), 23 Uses('common:mapping_table'), 24 Uses('common:iss2'), 25 25 26 26 Uses('caba:vci_cc_vcache_wrapper', 27 27 cell_size = parameter.Reference('vci_data_width_int'), 28 28 dspin_in_width = parameter.Reference('dspin_cmd_width'), … … 31 31 gdb_iss_t = 'common:mips32el'), 32 32 33 33 Uses('caba:vci_mem_cache', 34 34 memc_cell_size_int = parameter.Reference('vci_data_width_int'), 35 35 memc_cell_size_ext = parameter.Reference('vci_data_width_ext'), … … 37 37 dspin_out_width = parameter.Reference('dspin_cmd_width')), 38 38 39 39 Uses('caba:vci_simple_rom', 40 40 cell_size = parameter.Reference('vci_data_width_int')), 41 41 42 42 Uses('caba:vci_simple_ram', 43 43 cell_size = parameter.Reference('vci_data_width_ext')), 44 44 45 Uses('caba:vci_xicu',45 Uses('caba:vci_simple_ram', 46 46 cell_size = parameter.Reference('vci_data_width_int')), 47 47 48 Uses('caba:dspin_local_crossbar', 48 Uses('caba:vci_xicu', 49 cell_size = parameter.Reference('vci_data_width_int')), 50 51 Uses('caba:dspin_local_crossbar', 49 52 flit_width = parameter.Reference('dspin_cmd_width')), 50 53 51 54 Uses('caba:dspin_local_crossbar', 52 55 flit_width = parameter.Reference('dspin_rsp_width')), 53 56 54 57 Uses('caba:virtual_dspin_router', 55 58 flit_width = parameter.Reference('dspin_cmd_width')), 56 59 57 60 Uses('caba:virtual_dspin_router', 58 61 flit_width = parameter.Reference('dspin_rsp_width')), 59 62 60 63 Uses('caba:vci_multi_tty', 61 64 cell_size = parameter.Reference('vci_data_width_int')), 62 65 63 66 Uses('caba:vci_framebuffer', 64 67 cell_size = parameter.Reference('vci_data_width_int')), 65 68 66 69 Uses('caba:vci_multi_nic', 67 70 cell_size = parameter.Reference('vci_data_width_int')), 68 71 69 72 Uses('caba:vci_chbuf_dma', 70 73 cell_size = parameter.Reference('vci_data_width_int')), 71 74 72 75 Uses('caba:vci_block_device_tsar', 73 76 cell_size = parameter.Reference('vci_data_width_int')), 74 77 75 78 Uses('caba:vci_multi_dma', 76 79 cell_size = parameter.Reference('vci_data_width_int')), 77 80 78 81 Uses('caba:vci_dspin_target_wrapper', 79 82 cell_size = parameter.Reference('vci_data_width_int')), 80 83 81 84 Uses('caba:vci_dspin_initiator_wrapper', 82 85 cell_size = parameter.Reference('vci_data_width_int')), 83 86 84 Uses('common:elf_file_loader'),85 ],87 Uses('caba:vci_simhelper', 88 cell_size = parameter.Reference('vci_data_width_int')), 86 89 87 ports = [ 88 Port('caba:bit_in', 'p_resetn', auto = 'resetn'), 89 Port('caba:clock_in', 'p_clk', auto = 'clock'), 90 Port('caba:dspin_output', 'p_cmd_out', [4, 3], 90 Uses('common:elf_file_loader'), 91 ], 92 93 ports = [ 94 Port('caba:bit_in', 'p_resetn', auto = 'resetn'), 95 Port('caba:clock_in', 'p_clk', auto = 'clock'), 96 Port('caba:dspin_output', 'p_cmd_out', [4, 3], 91 97 dspin_data_size = parameter.Reference('dspin_cmd_width')), 92 98 Port('caba:dspin_input', 'p_cmd_in', [4, 3], 93 99 dspin_data_size = parameter.Reference('dspin_cmd_width')), 94 100 Port('caba:dspin_output', 'p_rsp_out', [4, 2], 95 101 dspin_data_size = parameter.Reference('dspin_rsp_width')), 96 102 Port('caba:dspin_input', 'p_rsp_in', [4, 2], 97 103 dspin_data_size = parameter.Reference('dspin_rsp_width')), 98 104 ], 99 105 ) 100 106 -
trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba/source/include/tsar_xbar_cluster.h
r508 r547 35 35 #include "vci_mem_cache.h" 36 36 #include "vci_cc_vcache_wrapper.h" 37 #include "vci_simhelper.h" 37 38 38 39 namespace soclib { namespace caba { … … 96 97 VciSignals<vci_param_int> signal_vci_tgt_mnic; 97 98 VciSignals<vci_param_int> signal_vci_tgt_chbuf; 99 VciSignals<vci_param_int> signal_vci_tgt_simh; 98 100 99 101 // Direct DSPIN signals to local crossbars … … 125 127 DspinSignals<dspin_cmd_width> signal_dspin_cmd_chbuf_t; 126 128 DspinSignals<dspin_rsp_width> signal_dspin_rsp_chbuf_t; 129 DspinSignals<dspin_cmd_width> signal_dspin_cmd_simh_t; 130 DspinSignals<dspin_rsp_width> signal_dspin_rsp_simh_t; 127 131 128 132 // Coherence DSPIN signals to local crossbar … … 187 191 dspin_rsp_width>* wt_mtty; 188 192 193 VciSimhelper<vci_param_int>* simhelper; 194 195 VciDspinTargetWrapper<vci_param_int, 196 dspin_cmd_width, 197 dspin_rsp_width>* wt_simhelper; 198 199 189 200 VciFrameBuffer<vci_param_int>* fbuf; 190 201 … … 193 204 dspin_rsp_width>* wt_fbuf; 194 205 195 VciMultiNic<vci_param_int>* mnic; 206 // for almos 207 VciSimpleRom<vci_param_int>* mnic; 196 208 197 209 VciDspinTargetWrapper<vci_param_int, … … 249 261 size_t tgtid_chbuf, 250 262 size_t tgtid_bdev, 263 size_t tgtid_simh, 251 264 size_t memc_ways, 252 265 size_t memc_sets, -
trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba/source/src/tsar_xbar_cluster.cpp
r512 r547 59 59 size_t tgtid_chbuf, 60 60 size_t tgtid_bdev, 61 size_t tgtid_simh, 61 62 size_t memc_ways, 62 63 size_t memc_sets, … … 222 223 { 223 224 nb_direct_initiators = nb_procs + 3; 224 nb_direct_targets = 9;225 nb_direct_targets = 10; 225 226 } 226 227 … … 357 358 358 359 ///////////////////////////////////////////// 359 int mac = 0xBEEF0000; 360 mnic = new VciMultiNic<vci_param_int>( 361 "mnic", 362 IntTab(cluster_id, tgtid_mnic), 363 mtd, 364 nic_channels, 365 nic_rx_name, 366 nic_tx_name, 367 mac, // mac_4 address 368 0xBABE ); // mac_2 address 360 // Commented for almos; we don't want the nic; replaced by a rom 361 //int mac = 0xBEEF0000; 362 //mnic = new VciMultiNic<vci_param_int>( 363 // "mnic", 364 // IntTab(cluster_id, tgtid_mnic), 365 // mtd, 366 // nic_channels, 367 // nic_rx_name, 368 // nic_tx_name, 369 // mac, // mac_4 address 370 // 0xBABE ); // mac_2 address 371 mnic = new VciSimpleRom<vci_param_int>( 372 "mnic", 373 IntTab(cluster_id, tgtid_mnic), 374 mtd, 375 loader); 369 376 370 377 wt_mnic = new VciDspinTargetWrapper<vci_param_int, … … 414 421 "wt_mtty", 415 422 x_width + y_width + l_width); 423 424 simhelper = new VciSimhelper<vci_param_int>( 425 "sim_helper", 426 IntTab(cluster_id, tgtid_simh), 427 mtd); 428 429 wt_simhelper = new VciDspinTargetWrapper<vci_param_int, 430 dspin_cmd_width, 431 dspin_rsp_width>( 432 "wt_simhelper", 433 x_width + y_width + l_width); 416 434 } 417 435 … … 479 497 xbar_cmd_d->p_local_out[tgtid_mnic] (signal_dspin_cmd_mnic_t); 480 498 xbar_cmd_d->p_local_out[tgtid_chbuf] (signal_dspin_cmd_chbuf_t); 499 xbar_cmd_d->p_local_out[tgtid_simh] (signal_dspin_cmd_simh_t); 481 500 482 501 xbar_cmd_d->p_local_in[nb_procs + 1] (signal_dspin_cmd_bdev_i); … … 509 528 xbar_rsp_d->p_local_in[tgtid_mnic] (signal_dspin_rsp_mnic_t); 510 529 xbar_rsp_d->p_local_in[tgtid_chbuf] (signal_dspin_rsp_chbuf_t); 530 xbar_rsp_d->p_local_in[tgtid_simh] (signal_dspin_rsp_simh_t); 511 531 512 532 xbar_rsp_d->p_local_out[nb_procs + 1] (signal_dspin_rsp_bdev_i); … … 706 726 for (size_t i = 0; i < nic_channels; i++) 707 727 { 708 mnic->p_rx_irq[i] (signal_irq_mnic_rx[i]);709 mnic->p_tx_irq[i] (signal_irq_mnic_tx[i]);728 //mnic->p_rx_irq[i] (signal_irq_mnic_rx[i]); 729 //mnic->p_tx_irq[i] (signal_irq_mnic_tx[i]); 710 730 } 711 731 … … 774 794 wt_mtty->p_dspin_rsp (signal_dspin_rsp_mtty_t); 775 795 wt_mtty->p_vci (signal_vci_tgt_mtty); 796 797 798 // Sim Helper 799 simhelper->p_clk (this->p_clk); 800 simhelper->p_resetn (this->p_resetn); 801 simhelper->p_vci (signal_vci_tgt_simh); 802 803 // wrapper tgt Sim Helper 804 wt_simhelper->p_clk (this->p_clk); 805 wt_simhelper->p_resetn (this->p_resetn); 806 wt_simhelper->p_dspin_cmd (signal_dspin_cmd_simh_t); 807 wt_simhelper->p_dspin_rsp (signal_dspin_rsp_simh_t); 808 wt_simhelper->p_vci (signal_vci_tgt_simh); 776 809 777 810 std::cout << " - MTTY connected" << std::endl; … … 831 864 delete mtty; 832 865 delete wt_mtty; 866 delete simhelper; 867 delete wt_simhelper; 833 868 } 834 869 }
Note: See TracChangeset
for help on using the changeset viewer.