Changeset 113 for trunk/modules


Ignore:
Timestamp:
Nov 6, 2010, 8:29:48 PM (14 years ago)
Author:
alain
Message:

Improving the print_trace() function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_cc_xcache_wrapper_v4/caba/source/src/vci_cc_xcache_wrapper_v4.cpp

    r109 r113  
    293293        m_iss.getRequests( ireq, dreq );
    294294
    295         std::cout << std::dec << "CC_XCACHE_WRAPPER " << m_srcid_rw << std::endl;
     295        std::cout << std::dec << "CC_XCACHE_WRAPPER " << name() << std::endl;
    296296        std::cout << " cache state : " << icache_fsm_state_str[r_icache_fsm] << " / "
    297297                                       << dcache_fsm_state_str[r_dcache_fsm] << " / "
     
    299299                                       << rsp_fsm_state_str[r_vci_rsp_fsm] << " / "
    300300                                       << tgt_fsm_state_str[r_vci_tgt_fsm] << std::endl;
    301         std::cout << " proc state : PC = " << std::hex << ireq.addr << " / AD = " << dreq.addr
     301        std::cout << " proc state  : PC = " << std::hex << ireq.addr << " / AD = " << dreq.addr
    302302                  << std::dec << " / V = " << dreq.valid << " / TYPE = " << dreq.type << std::endl;
    303303    }
     
    441441                    {
    442442                        std::cout << "error in component VCI_CC_XCACHE_WRAPPER " << name() << std::endl;
    443                         std::cout << "the received VCI command from " << std::dec << p_vci_tgt.srcid.read() << " is not a write" << std::endl;
     443                        std::cout << "coherence request is not a write" << std::endl;
     444                        std::cout << "oddress = " << std::hex << address << std::endl;
     445                        std::cout << "srcid   = " << std::hex << p_vci_tgt.srcid.read() << std::endl;
    444446                        exit(0);
    445447                    }
     
    449451                    {
    450452                        std::cout << "error in component VCI_CC_XCACHE_WRAPPER " << name() << std::endl;
    451                         std::cout << "out of segment VCI command received for a multi-updt or multi-inval request" << std::endl;
     453                        std::cout << "out of segment coherence request" << std::endl;
     454                        std::cout << "oddress = " << std::hex << address << std::endl;
     455                        std::cout << "srcid   = " << std::hex << p_vci_tgt.srcid.read() << std::endl;
    452456                        exit(0);
    453457                    }
Note: See TracChangeset for help on using the changeset viewer.