Changeset 132 for trunk/modules/vci_synthetic_initator/caba/sources/src
- Timestamp:
- Jan 21, 2011, 6:19:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_synthetic_initator/caba/sources/src/vci_synthetic_initiator.cpp
r131 r132 88 88 r_cmd_count("r_cmd_count"), 89 89 r_cmd_seed("r_cmd_seed"), 90 //r_bc_fsm("r_bc_fsm"),91 //r_bc_date("r_bc_date"),92 90 r_bc_nrsp("r_bc_nrsp"), 93 91 r_cpt_cycles("r_cpt_cycles"), … … 166 164 std::cout << name() << " : "<< std::dec << r_cpt_cycles.read() << " cycles, " << r_nb_single.read() << " packets sent" << std::endl; 167 165 if(m_bc_period) 166 { 167 std::cout << "Number of broadcast sent and received : " << r_nb_bc.read() << std::endl; 168 168 std::cout << ((double)r_latency_bc.read()/(double)r_nb_bc.read()) << std::endl; 169 } 169 170 } 170 171 … … 184 185 // Initializing FSMs 185 186 r_cmd_fsm = VCI_IDLE; 186 //r_bc_fsm = false;187 187 for(size_t i=0 ; i<m_tab_size ; i++) r_pending_fsm[i] = false; 188 188 … … 276 276 if (p_vci.cmdack.read()) 277 277 { 278 //r_bc_fsm = true;279 278 r_bc_nrsp = (m_xmax - m_xmin) * (m_ymax - m_ymin) ; 280 //r_bc_date = (uint64_t)(r_date_fifo.read());281 279 r_pending_fsm[0] = true; 282 280 r_pending_date[0] = (uint64_t)(r_date_fifo.read()); … … 288 286 } // end switch vci_fsm 289 287 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 304 289 /////////////////// 305 290 // PENDING FSMs
Note: See TracChangeset
for help on using the changeset viewer.