Changeset 132


Ignore:
Timestamp:
Jan 21, 2011, 6:19:06 PM (13 years ago)
Author:
choichil
Message:

Synthetic Initiator with the latests bugs fixed

Location:
trunk/modules/vci_synthetic_initator/caba/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_synthetic_initator/caba/sources/include/vci_synthetic_initiator.h

    r131 r132  
    148148
    149149      // Broadcast FSM
    150       //sc_signal<bool>           r_bc_fsm;     // FSM state
    151       //sc_signal<uint64_t>             r_bc_date;      // broadcast transaction requested date
    152150      sc_signal<uint32_t>       r_bc_nrsp;      // Expected number of responses for a broadcast command
    153151       
  • trunk/modules/vci_synthetic_initator/caba/sources/src/vci_synthetic_initiator.cpp

    r131 r132  
    8888    r_cmd_count("r_cmd_count"),         
    8989    r_cmd_seed("r_cmd_seed"),   
    90     //r_bc_fsm("r_bc_fsm"),     
    91     //r_bc_date("r_bc_date"),   
    9290    r_bc_nrsp("r_bc_nrsp"),     
    9391    r_cpt_cycles("r_cpt_cycles"),               
     
    166164        std::cout << name() << " : "<< std::dec << r_cpt_cycles.read() << " cycles, " << r_nb_single.read() << " packets sent" << std::endl;
    167165        if(m_bc_period)
     166        {
     167          std::cout << "Number of broadcast sent and received : " << r_nb_bc.read() << std::endl;
    168168          std::cout << ((double)r_latency_bc.read()/(double)r_nb_bc.read()) << std::endl;
     169        }
    169170  }
    170171
     
    184185      // Initializing FSMs
    185186      r_cmd_fsm = VCI_IDLE;
    186       //r_bc_fsm = false;
    187187      for(size_t i=0 ; i<m_tab_size ; i++) r_pending_fsm[i] = false;
    188188
     
    276276          if (p_vci.cmdack.read())
    277277          {
    278             //r_bc_fsm = true;
    279278            r_bc_nrsp = (m_xmax - m_xmin) * (m_ymax - m_ymin) ;
    280             //r_bc_date = (uint64_t)(r_date_fifo.read());
    281279            r_pending_fsm[0] = true;
    282280            r_pending_date[0] = (uint64_t)(r_date_fifo.read());
     
    288286    } // end switch vci_fsm
    289287
    290     /////////////////////
    291     // BC_FSM
    292     /////////////////////
    293     //if ( r_pending_fsm[0].read() && p_vci.rspval.read() )
    294     //{
    295     //  if ( p_vci.rtrdid.read() == 0 ) r_bc_nrsp = r_bc_nrsp.read() - 1;
    296     //  if (r_bc_nrsp.read() == 1)
    297     //  {
    298     //    //r_bc_fsm = false;
    299     //    r_pending_fsm[0] = false ;
    300     //    r_latency_bc = r_latency_bc.read() + (r_cpt_cycles.read() - r_pending_date[0].read());
    301     //  }
    302     //}
    303 
     288   
    304289    ///////////////////
    305290    // PENDING FSMs
Note: See TracChangeset for help on using the changeset viewer.