Ignore:
Timestamp:
Mar 27, 2015, 5:21:52 PM (9 years ago)
Author:
alain
Message:

Fix a bug in platform tsar_generic_iob to support more than 4 processors per cluster.
The hard_config.h file format has also been enriched.

Location:
trunk/platforms/tsar_generic_iob/tsar_iob_cluster/caba/source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/platforms/tsar_generic_iob/tsar_iob_cluster/caba/source/include/tsar_iob_cluster.h

    r802 r959  
    7070    // interrupt signals
    7171    sc_signal<bool>                       signal_false;
    72     sc_signal<bool>                       signal_proc_it[16];
     72    sc_signal<bool>                       signal_proc_it[32];
    7373    sc_signal<bool>                       signal_irq_mdma[8];
    7474    sc_signal<bool>                       signal_irq_memc;
     
    198198                    const soclib::common::MappingTable &mt_iox,
    199199
    200                     size_t                             x_width,       // x field  bits
    201                     size_t                             y_width,       // y field  bits
    202                     size_t                             l_width,       // l field  bits
    203                     size_t                             p_width,       // p field  bits
     200                    size_t                             x_width,   // x field  bits
     201                    size_t                             y_width,   // y field  bits
     202                    size_t                             l_width,   // l field  bits
     203                    size_t                             p_width,   // p field  bits
    204204
    205205                    size_t                             int_memc_tgt_id,
     
    226226                    size_t                             l1_d_sets,   
    227227                    size_t                             xram_latency,
    228                     size_t                             xcu_nb_inputs,
    229 
    230                     const Loader                       &loader,       // loader for XRAM
     228                    size_t                             xcu_nb_hwi,
     229                    size_t                             xcu_nb_pti,
     230                    size_t                             xcu_nb_wti,
     231                    size_t                             xcu_nb_irq,
     232
     233                    const Loader                       &loader,  // loader for XRAM
    231234
    232235                    uint32_t                           frozen_cycles,
  • trunk/platforms/tsar_generic_iob/tsar_iob_cluster/caba/source/src/tsar_iob_cluster.cpp

    r802 r959  
    7272                    size_t                             l1_d_sets,
    7373                    size_t                             xram_latency,
    74                     size_t                             xcu_nb_inputs,
     74                    size_t                             xcu_nb_hwi,
     75                    size_t                             xcu_nb_pti,
     76                    size_t                             xcu_nb_wti,
     77                    size_t                             xcu_nb_out,
    7578
    7679                    const Loader                      &loader,
     
    178181                     mt_int,                              // mapping table INT network
    179182                     IntTab(cluster_id, int_xicu_tgt_id), // TGTID direct space
    180                      xcu_nb_inputs,                       // number of timer IRQs
    181                      xcu_nb_inputs,                       // number of hard IRQs
    182                      xcu_nb_inputs,                       // number of soft IRQs
    183                      16);                                 // number of output IRQs
     183                     xcu_nb_pti,                          // number of timer IRQs
     184                     xcu_nb_hwi,                          // number of hard IRQs
     185                     xcu_nb_wti,                          // number of soft IRQs
     186                     xcu_nb_out);                         // number of output IRQs
    184187
    185188    ////////////  MDMA
     
    503506    xicu->p_resetn                               (this->p_resetn);
    504507    xicu->p_vci                                  (signal_int_vci_tgt_xicu);
    505     for ( size_t i=0 ; i < 16  ; i++)
     508    for ( size_t i=0 ; i < xcu_nb_out  ; i++)
    506509    {
    507510        xicu->p_irq[i]                           (signal_proc_it[i]);
    508511    }
    509     for ( size_t i=0 ; i < xcu_nb_inputs ; i++)
     512    for ( size_t i=0 ; i < xcu_nb_hwi ; i++)
    510513    {
    511514        if      ( i == 0 )       xicu->p_hwi[i]  (signal_irq_memc);
Note: See TracChangeset for help on using the changeset viewer.