- Timestamp:
- Apr 8, 2010, 8:51:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/vci_ring_initiator/caba/source/include/vci_ring_initiator.h
r11 r15 71 71 #include <systemc.h> 72 72 73 #define I_DEBUG74 #define IR_DEBUG73 //#define I_DEBUG 74 //#define IR_DEBUG 75 75 //#define I_DEBUG_FSM 76 76 … … 222 222 223 223 #ifdef I_DEBUG_FSM 224 std::cout << "--------------------------------------------" << std::endl; 225 std::cout << " vci cmd fsm = " << vci_cmd_fsm_state_str_i[r_vci_cmd_fsm] << std::endl 226 << " vci rsp fsm = " << vci_rsp_fsm_state_str_i[r_vci_rsp_fsm] << std::endl 227 << " ring cmd fsm = " << ring_cmd_fsm_state_str_i[r_ring_cmd_fsm] << std::endl 228 << " ring rsp fsm = " << ring_rsp_fsm_state_str_i[r_ring_rsp_fsm] << std::endl; 224 if( trace(sc_time_stamp())) 225 std::cout << sc_time_stamp() << " - " << m_name 226 << " - vci cmd = " << vci_cmd_fsm_state_str_i[r_vci_cmd_fsm] 227 << " - vci rsp = " << vci_rsp_fsm_state_str_i[r_vci_rsp_fsm] 228 << " - ring cmd = " << ring_cmd_fsm_state_str_i[r_ring_cmd_fsm] 229 << " - ring rsp = " << ring_rsp_fsm_state_str_i[r_ring_rsp_fsm] 230 << std::endl; 229 231 #endif 230 232 //////////// VCI CMD FSM ///////////////////////// … … 256 258 if ((p_vci.address.read() & 0x3) == 0x3) 257 259 { 258 #ifdef I_DEBUG 259 if( trace(sc_time_stamp())) 260 std::cout << sc_time_stamp() << " -- " << m_name << " -- " << " broadcast " << std::endl; 261 #endif 260 262 261 cmd_fifo_data = cmd_fifo_data | ((uint64_t) 0x1) | 263 (((uint64_t) 0x 0F0F) << 1) |264 (((uint64_t) p_vci.srcid.read()) << 2 1) |265 (((uint64_t) (p_vci.trdid.read() & 0xF)) << 1 7);262 (((uint64_t) 0x5) << 1) | 263 (((uint64_t) p_vci.srcid.read()) << 20) | 264 (((uint64_t) (p_vci.trdid.read() & 0xF)) << 16); 266 265 267 266 r_vci_cmd_fsm = WDATA; … … 281 280 case CMD_SECOND_HEADER: 282 281 283 284 if ( p_vci.cmdval.read() && m_cmd_fifo.wok() )285 {286 282 #ifdef I_DEBUG 287 283 if( trace(sc_time_stamp())) … … 294 290 << std::endl; 295 291 #endif 292 if ( p_vci.cmdval.read() && m_cmd_fifo.wok() ) 293 { 294 296 295 cmd_fifo_put = true; 297 296 cmd_fifo_data = (((uint64_t) p_vci.srcid.read()) << 20)| … … 318 317 case WDATA: 319 318 320 321 if ( p_vci.cmdval.read() && m_cmd_fifo.wok() ) 322 { 323 #ifdef I_DEBUG 319 #ifdef I_DEBUG 324 320 if( trace(sc_time_stamp())) 325 321 std::cout << sc_time_stamp() << " -- " << m_name … … 331 327 << " -- vci_eop : " << p_vci.eop.read() 332 328 << std::endl; 333 #endif 329 #endif 330 if ( p_vci.cmdval.read() && m_cmd_fifo.wok() ) 331 { 332 334 333 335 334 … … 373 372 374 373 case RSP_DATA: 375 376 if ( p_vci.rspack.read() && m_rsp_fifo.rok() )377 {378 374 #ifdef I_DEBUG 379 375 if( trace(sc_time_stamp())) 380 std::cout << sc_time_stamp() << " -- " << m_name 376 std::cout << sc_time_stamp() << " -- " << m_name 381 377 << " -- r_vci_rsp_fsm -- RSP_DATA " 378 << " -- fifo rok : " << m_rsp_fifo.rok() 379 << " -- rspack : " << p_vci.rspack.read() 382 380 << " -- rsrcid : " << std::hex << r_srcid_save.read() 383 381 << " -- rdata : " << m_rsp_fifo.read() … … 385 383 << std::endl; 386 384 #endif 385 if ( p_vci.rspack.read() && m_rsp_fifo.rok() ) 386 { 387 387 388 rsp_fifo_get = true; 388 389 if(((m_rsp_fifo.read() >> 32) & 0x1) == 0x1)
Note: See TracChangeset
for help on using the changeset viewer.