Changeset 129 for trunk/modules


Ignore:
Timestamp:
Jan 18, 2011, 7:04:09 PM (14 years ago)
Author:
alain
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_synthetic_initator/caba/sources/src/vci_synthetic_initiator.cpp

    r128 r129  
    319319      fifo_put = true ;
    320320      fifo_bc  = true;
    321       if (r_date_fifo.wok())   r_nb_bc = r_nb_bc.read() + 1;
     321      if (r_date_fifo.wok())   
     322      {
     323        r_nb_bc = r_nb_bc.read() + 1;
     324        r_cpt_period = 0;
     325      }
    322326    }
    323327    else if( ( (uint64_t)(m_rho*r_cpt_cycles.read()) > (uint64_t)(m_length*r_nb_single.read()*1000)) )
     
    327331      if (r_date_fifo.wok())   r_nb_single = r_nb_single.read() + 1;
    328332    }
     333
     334    if ( m_bc_period && (r_cpt_period.read() > m_bc_period) && r_data_fifo.wok() )
     335      m_cpt_period = 0;
     336    else
     337      m_cpt_period = m_cpt_period.read() + 1;
    329338
    330339    ////////////////////////
     
    350359    ///////////////////////////
    351360    r_cpt_cycles = r_cpt_cycles.read() + 1;
    352     r_cpt_period = r_cpt_period.read() + 1;
    353361
    354362    return;
Note: See TracChangeset for help on using the changeset viewer.