Ignore:
Timestamp:
Jul 18, 2013, 5:51:18 PM (11 years ago)
Author:
cfuguet
Message:

Modification in branches/v5/platforms/tsar_generic_xbar:

  • Adding a DSPIN router to the platform to allow the inter-cluster communication for the CLACK commands.

With this modification, the tsar_generic_xbar platform can be used
for multi-cluster simulations

File:
1 edited

Legend:

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

    r447 r448  
    8989    p_rsp_in        = alloc_elems<DspinInput<dspin_rsp_width> >("p_rsp_in", 2, 4);
    9090    p_rsp_out       = alloc_elems<DspinOutput<dspin_rsp_width> >("p_rsp_out", 2, 4);
     91    p_clack_in      = alloc_elems<DspinInput<dspin_cmd_width> >("p_clack_in", 4);
     92    p_clack_out     = alloc_elems<DspinOutput<dspin_cmd_width> >("p_clack_out", 4);
    9193
    9294    /////////////////////////////////////////////////////////////////////////////
     
    296298                     4,4);                         // input & output fifo depths
    297299
     300    /////////////////////////////////////////////////////////////////////////////
     301    router_clack = new DspinRouter<dspin_cmd_width>(
     302                     "router_clack",
     303                     x_id,y_id,                    // coordinates in mesh
     304                     x_width, y_width,             // x & y fields width
     305                     4,4);                         // input & output fifo depths
     306
    298307    // IO cluster components
    299308    if ( io )
     
    394403    router_rsp->p_clk                        (this->p_clk);
    395404    router_rsp->p_resetn                     (this->p_resetn);
     405    router_clack->p_clk                      (this->p_clk);
     406    router_clack->p_resetn                   (this->p_resetn);
     407
    396408    for (int x = 0; x < 2; x++)
    397409    {
     
    405417    }
    406418
     419    for(int x = 0; x < 4; x++)
     420    {
     421       router_clack->p_out[x]                (this->p_clack_out[x]);
     422       router_clack->p_in[x]                 (this->p_clack_in[x]);
     423    }
     424
    407425    router_cmd->p_out[0][4]                  (signal_dspin_cmd_g2l_d);
    408426    router_cmd->p_out[1][4]                  (signal_dspin_m2p_g2l_c);
     
    414432    router_rsp->p_in[0][4]                   (signal_dspin_rsp_l2g_d);
    415433    router_rsp->p_in[1][4]                   (signal_dspin_p2m_l2g_c);
     434
     435    router_clack->p_out[4]                   (signal_dspin_clack_g2l_c);
     436    router_clack->p_in[4]                    (signal_dspin_clack_l2g_c);
     437
    416438
    417439    std::cout << "  - CMD & RSP routers connected" << std::endl;
Note: See TracChangeset for help on using the changeset viewer.