Ignore:
Timestamp:
Oct 7, 2013, 5:31:08 PM (11 years ago)
Author:
meunier
Message:

Rajout du Sim Helper dans la plateforme tsar_generic_xbar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba/source/src/tsar_xbar_cluster.cpp

    r512 r547  
    5959         size_t                             tgtid_chbuf,
    6060         size_t                             tgtid_bdev,
     61         size_t                             tgtid_simh,
    6162         size_t                             memc_ways,
    6263         size_t                             memc_sets,
     
    222223    {
    223224        nb_direct_initiators         = nb_procs + 3;
    224         nb_direct_targets            = 9;
     225        nb_direct_targets            = 10;
    225226    }
    226227
     
    357358
    358359        /////////////////////////////////////////////
    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);
    369376
    370377        wt_mnic = new VciDspinTargetWrapper<vci_param_int,
     
    414421                     "wt_mtty",
    415422                     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);
    416434    }
    417435
     
    479497        xbar_cmd_d->p_local_out[tgtid_mnic]      (signal_dspin_cmd_mnic_t);
    480498        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);
    481500
    482501        xbar_cmd_d->p_local_in[nb_procs + 1]     (signal_dspin_cmd_bdev_i);
     
    509528        xbar_rsp_d->p_local_in[tgtid_mnic]       (signal_dspin_rsp_mnic_t);
    510529        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);
    511531
    512532        xbar_rsp_d->p_local_out[nb_procs + 1]    (signal_dspin_rsp_bdev_i);
     
    706726        for (size_t i = 0; i < nic_channels; i++)
    707727        {
    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]);
    710730        }
    711731
     
    774794        wt_mtty->p_dspin_rsp           (signal_dspin_rsp_mtty_t);
    775795        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);
    776809
    777810        std::cout << "  - MTTY connected" << std::endl;
     
    831864        delete mtty;
    832865        delete wt_mtty;
     866        delete simhelper;
     867        delete wt_simhelper;
    833868    }
    834869}
Note: See TracChangeset for help on using the changeset viewer.