- Timestamp:
- Jan 11, 2011, 4:09:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_synthetic_initator/caba/sources/src/vci_synthetic_initiator.cpp
r124 r125 148 148 << " Number of packets sent : " << std::dec << m_npackets << " " << m_id_to_send << std::endl; 149 149 for(int i = 0; i < (1<<vci_param::T) ; i++){ 150 std::cout << "ID : " << i << " " << ( r_req_id[i][0].read()) << " " << (r_req_id[i][0].read()) << std::endl;150 std::cout << "ID : " << i << " " << (uint64_t)(r_req_id[i][0].read()) << " " << (uint64_t)(r_req_id[i][1].read()) << std::endl; 151 151 } 152 152 } … … 202 202 r_req_id[i][0] = 0; 203 203 r_req_id[i][1] = 0; 204 //std::cout << "bla bla" << std::endl;204 std::cout << "bla bla" << std::endl; 205 205 } 206 206 … … 227 227 if(r_req_id[i][0].read() == 0){ 228 228 m_id_to_send = i; 229 r_req_id[i][0] = m_date_fifo.read();230 r_req_id[i][1] = m_cpt_cycles;229 //r_req_id[i][0] = m_date_fifo.read(); 230 //r_req_id[i][1] = m_cpt_cycles; 231 231 break; 232 232 } … … 254 254 if (m_count == m_length-1) { 255 255 //r_req_id[m_id_to_send][0] = (uint64_t)(m_date_fifo.read()); 256 //r_req_id[m_id_to_send][0] = m_date_fifo.read();257 //r_req_id[m_id_to_send][1] = m_cpt_cycles;256 r_req_id[m_id_to_send][0] = m_date_fifo.read(); 257 r_req_id[m_id_to_send][1] = m_cpt_cycles; 258 258 //std::cout << name () << " FIFO " << m_date_fifo.read() << std::endl; 259 259 date_fifo_get = true; 260 m_npackets++; 260 261 r_cmd_fsm = VCI_IDLE ; 261 262 } else { … … 313 314 m_latency1 = m_latency1 + (m_cpt_cycles - r_req_id[(int)(p_vci.rtrdid.read())][0].read()); 314 315 m_latency2 = m_latency2 + (m_cpt_cycles - r_req_id[(int)(p_vci.rtrdid.read())][1].read()); 315 m_npackets++;316 //m_npackets++; 316 317 r_req_id[(int)(p_vci.rtrdid.read())][0] = 0; 317 318 r_req_id[(int)(p_vci.rtrdid.read())][1] = 0;
Note: See TracChangeset
for help on using the changeset viewer.