Ignore:
Timestamp:
Nov 10, 2010, 11:20:30 AM (14 years ago)
Author:
alain
Message:

Improving the print_trace() display.

File:
1 edited

Legend:

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

    r113 r114  
    285285        std::cout << "- WRITE LENGTH       = " << (float)m_length_write_transaction/m_cpt_write_transaction << std::endl;
    286286    }
    287     /////////////////////////
    288     tmpl(void)::print_trace()
    289     /////////////////////////
     287    ////////////////////////////////////
     288    tmpl(void)::print_trace(size_t mode)
     289    ////////////////////////////////////
    290290    {
    291291        typename iss_t::InstructionRequest  ireq;
     
    294294
    295295        std::cout << std::dec << "CC_XCACHE_WRAPPER " << name() << std::endl;
     296        std::cout << " proc state  : PC = " << std::hex << ireq.addr << " / AD = " << dreq.addr
     297                  << std::dec << " / V = " << dreq.valid << " / TYPE = " << dreq.type << std::endl;
    296298        std::cout << " cache state : " << icache_fsm_state_str[r_icache_fsm] << " / "
    297299                                       << dcache_fsm_state_str[r_dcache_fsm] << " / "
     
    299301                                       << rsp_fsm_state_str[r_vci_rsp_fsm] << " / "
    300302                                       << tgt_fsm_state_str[r_vci_tgt_fsm] << std::endl;
    301         std::cout << " proc state  : PC = " << std::hex << ireq.addr << " / AD = " << dreq.addr
    302                   << std::dec << " / V = " << dreq.valid << " / TYPE = " << dreq.type << std::endl;
     303        if( r_vci_tgt_fsm != TGT_IDLE )
     304        {
     305            std::cout << "    ... coherence request address = " << std::hex << r_tgt_addr.read() << std::endl;
     306        }
     307        if(mode & 0x1)
     308        {
     309            r_wbuf.printTrace();
     310        }
    303311    }
    304312    //////////////////////////
Note: See TracChangeset for help on using the changeset viewer.