Ignore:
Timestamp:
Dec 4, 2013, 7:49:03 PM (10 years ago)
Author:
alain
Message:

cosmetic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/platforms/tsar_generic_iob/tsar_iob_cluster/caba/source/src/tsar_iob_cluster.cpp

    r550 r584  
    206206                     mt_int,                            // mapping table INT network
    207207                     IntTab(cluster_id,xicu_int_tgtid), // TGTID direct space
    208                      nb_procs,                          // number of timer IRQs
     208                     32,                                // number of timer IRQs
    209209                     32,                                // number of hard IRQs
    210210                     32,                                // number of soft IRQs
     
    366366    std::ostringstream s_ram_router_cmd;
    367367    s_ram_router_cmd << "ram_router_cmd_" << x_id << "_" << y_id;
     368    size_t is_iob0 = (x_id == 0) and (y_id == 0);
     369    size_t is_iob1 = (x_id == (xmax-1)) and (y_id == (ymax-1));
    368370    ram_router_cmd = new DspinRouterTsar<dspin_ram_cmd_width>(
    369371                     s_ram_router_cmd.str().c_str(),
    370                      x_id, y_id,                  // router coordinates in mesh
    371                      x_width,                     // x field width in first flit
    372                      x_width,                     // y field width in first flit
    373                      4, 4,                        // input & output fifo depths
    374                      cluster_iob0,                // cluster containing IOB0
    375                      cluster_iob1,                // cluster containing IOB1
    376                      l_width,                     // local field width in first flit
    377                      iobx_ram_srcid );            // IOB local index
     372                     x_id, y_id,                     // router coordinates in mesh
     373                     x_width,                        // x field width in first flit
     374                     y_width,                        // y field width in first flit
     375                     4, 4,                           // input & output fifo depths
     376                     is_iob0,                        // cluster contains IOB0
     377                     is_iob1,                        // cluster contains IOB1
     378                     false,                          // not a response router
     379                     l_width);                       // local field width in first flit
    378380
    379381    std::ostringstream s_ram_router_rsp;
     
    381383    ram_router_rsp = new DspinRouterTsar<dspin_ram_rsp_width>(
    382384                     s_ram_router_rsp.str().c_str(),
    383                      x_id, y_id,                  // coordinates in mesh
    384                      x_width,                     // x field width in first flit
    385                      y_width,                     // y field width in first flit
    386                      4, 4,                        // input & output fifo depths
    387                      cluster_iob0,                // cluster containing IOB0
    388                      cluster_iob1,                // cluster containing IOB1
    389                      l_width,                     // local field width in first flit
    390                      iobx_ram_srcid );            // IOB local index
     385                     x_id, y_id,                     // coordinates in mesh
     386                     x_width,                        // x field width in first flit
     387                     y_width,                        // y field width in first flit
     388                     4, 4,                           // input & output fifo depths
     389                     is_iob0,                        // cluster contains IOB0
     390                     is_iob1,                        // cluster contains IOB1
     391                     true,                           // response router
     392                     l_width);                       // local field width in first flit
    391393
    392394
     
    460462    // on coherence network : local srcid[proc] in [0...nb_procs-1]
    461463    //                      : local srcid[memc] = nb_procs
    462 
     464    // In cluster_iob0, 32 HWI interrupts from external peripherals
     465    // are connected to the XICU ports p_hwi[0:31]
     466    // In other clusters, no HWI interrupts are connected to XICU
     467 
    463468    //////////////////////// internal CMD & RSP routers
    464469    int_router_cmd->p_clk                        (this->p_clk);
     
    594599        xicu->p_irq[p]                           (signal_proc_it[p]);
    595600    }
    596     for ( size_t i=0 ; i<4 ; i++)
    597     {
    598         xicu->p_hwi[i]                           (signal_irq_mdma[i]);
    599     }
    600     for ( size_t i=4 ; i<32 ; i++)
     601    for ( size_t i=0 ; i<32 ; i++)
    601602    {
    602603        if (cluster_id == cluster_iob0)
    603         xicu->p_hwi[i]                           (*(this->p_irq[i]));
     604            xicu->p_hwi[i]                       (*(this->p_irq[i]));
    604605        else 
    605         xicu->p_hwi[i]                           (signal_false);
     606            xicu->p_hwi[i]                       (signal_false);
    606607    }                     
    607608
Note: See TracChangeset for help on using the changeset viewer.