Changeset 547 for trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba/source/src/tsar_xbar_cluster.cpp
- Timestamp:
- Oct 7, 2013, 5:31:08 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.