Changeset 224 for trunk/modules


Ignore:
Timestamp:
Mar 30, 2012, 3:58:32 PM (13 years ago)
Author:
bouyer
Message:

Normalize trace message: address, data and byte enable in hex, everything else
(or almost) in dec.

File:
1 edited

Legend:

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

    r223 r224  
    799799if( m_debug_tgt_cmd_fsm )
    800800{
    801     std::cout << "  <MEMC.TGT_CMD_IDLE> Receive command from srcid " << p_vci_tgt.srcid.read()
    802               << " / for address " << p_vci_tgt.address.read() << std::endl;
     801    std::cout << "  <MEMC.TGT_CMD_IDLE> Receive command from srcid " << std::dec << p_vci_tgt.srcid.read()
     802              << " / for address " << std::hex << p_vci_tgt.address.read() << std::endl;
    803803}
    804804#endif
     
    849849    std::cout << "  <MEMC.TGT_CMD_READ> Push into read_fifo:"
    850850              << " address = " << std::hex << p_vci_tgt.address.read()
    851               << " srcid = " << p_vci_tgt.srcid.read()
     851              << " srcid = " << std::dec << p_vci_tgt.srcid.read()
    852852              << " trdid = " << p_vci_tgt.trdid.read()
    853               << " plen = " << p_vci_tgt.plen.read() << std::endl;
     853              << " plen = " << std::dec << p_vci_tgt.plen.read() << std::endl;
    854854}
    855855#endif
     
    871871    std::cout << "  <MEMC.TGT_CMD_WRITE> Push into write_fifo:"
    872872              << " address = " << std::hex << p_vci_tgt.address.read()
    873               << " srcid = " << p_vci_tgt.srcid.read()
     873              << " srcid = " << std::dec << p_vci_tgt.srcid.read()
    874874              << " trdid = " << p_vci_tgt.trdid.read()
    875               << " wdata = " << p_vci_tgt.wdata.read()
     875              << " wdata = " << std::hex << p_vci_tgt.wdata.read()
    876876              << " be = " << p_vci_tgt.be.read()
    877               << " plen = " << p_vci_tgt.plen.read() << std::endl;
     877              << " plen = " << std::dec << p_vci_tgt.plen.read() << std::endl;
    878878}
    879879#endif
     
    901901    std::cout << "  <MEMC.TGT_CMD_ATOMIC> Pushing command into cmd_sc_fifo:"
    902902              << " address = " << std::hex << p_vci_tgt.address.read()
    903               << " srcid = " << p_vci_tgt.srcid.read()
     903              << " srcid = " << std::dec << p_vci_tgt.srcid.read()
    904904              << " trdid = " << p_vci_tgt.trdid.read()
    905               << " wdata = " << p_vci_tgt.wdata.read()
     905              << " wdata = " << std::hex << p_vci_tgt.wdata.read()
    906906              << " be = " << p_vci_tgt.be.read()
    907               << " plen = " << p_vci_tgt.plen.read() << std::endl;
     907              << " plen = " << std::dec << p_vci_tgt.plen.read() << std::endl;
    908908}
    909909#endif
     
    956956                              << " INIT_RSP_IDLE state" << std::endl
    957957                              << "index too large for UPT: "
    958                               << " / rtrdid = " << p_vci_ini.rtrdid.read()
    959                               << " / UPT size = " << m_update_tab.size() << std::endl;
     958                              << " / rtrdid = " << std::dec << p_vci_ini.rtrdid.read()
     959                              << " / UPT size = " << std::dec << m_update_tab.size() << std::endl;
    960960                    exit(0);
    961961                }
     
    10921092{
    10931093    std::cout << "  <MEMC.READ_IDLE> Read request:"
    1094               << " srcid = " << std::hex << m_cmd_read_srcid_fifo.read()
    1095               << " / address = " << m_cmd_read_addr_fifo.read()
     1094              << " srcid = " << std::dec << m_cmd_read_srcid_fifo.read()
     1095              << " / address = " << std::hex << m_cmd_read_addr_fifo.read()
    10961096              << " / nwords = " << std::dec << m_cmd_read_length_fifo.read() << std::endl;
    10971097}
     
    11421142    std::cout << "  <MEMC.READ_DIR_LOCK> Accessing directory: "
    11431143              << " address = " << std::hex << m_cmd_read_addr_fifo.read()
    1144               << " / hit = " << entry.valid
     1144              << " / hit = " << std::dec << entry.valid
    11451145              << " / count = " <<std::dec << entry.count
    11461146              << " / is_cnt = " << entry.is_cnt << std::endl;
     
    14391439{
    14401440    std::cout << "  <MEMC.READ_RSP> Request the TGT_RSP FSM to return data:"
    1441               << " rsrcid = " << std::hex << m_cmd_read_srcid_fifo.read()
    1442               << " / address = " << m_cmd_read_addr_fifo.read()
     1441              << " rsrcid = " << std::dec << m_cmd_read_srcid_fifo.read()
     1442              << " / address = " << std::hex << m_cmd_read_addr_fifo.read()
    14431443              << " / nwords = " << std::dec << m_cmd_read_length_fifo.read() << std::endl;
    14441444}
     
    15031503{
    15041504    std::cout << "  <MEMC.READ_TRT_SET> Write in Transaction Table: " << std::hex
    1505               << " address = " << m_cmd_read_addr_fifo.read()
    1506               << " / srcid = " << m_cmd_read_srcid_fifo.read() << std::endl;
     1505              << " address = " << std::hex << m_cmd_read_addr_fifo.read()
     1506              << " / srcid = " << std::dec << m_cmd_read_srcid_fifo.read()
     1507              << std::endl;
    15071508}
    15081509#endif
     
    15271528{
    15281529    std::cout << "  <MEMC.READ_TRT_REQ> Request GET transaction for address "
    1529               << m_cmd_read_addr_fifo.read() << std::endl;
     1530              << std::hex << m_cmd_read_addr_fifo.read() << std::endl;
    15301531}
    15311532#endif
     
    16071608{
    16081609    std::cout << "  <MEMC.WRITE_IDLE> Write request "
    1609               << " srcid = " << std::hex << m_cmd_write_srcid_fifo.read()
    1610               << " / address = " << m_cmd_write_addr_fifo.read()
     1610              << " srcid = " << std::dec << m_cmd_write_srcid_fifo.read()
     1611              << " / address = " << std::hex << m_cmd_write_addr_fifo.read()
    16111612              << " / data = " << m_cmd_write_data_fifo.read() << std::endl;
    16121613}
     
    16961697    std::cout << "  <MEMC.WRITE_DIR_LOCK> Check the directory: "
    16971698              << " address = " << std::hex << r_write_address.read()
    1698               << " hit = " << entry.valid
    1699               << " count = " << std::dec << entry.count
     1699              << " hit = " << std::dec << entry.valid
     1700              << " count = " << entry.count
    17001701              << " is_cnt = " << entry.is_cnt << std::endl;
    17011702}
     
    19551956{
    19561957    std::cout << "  <MEMC.WRITE_UPT_REQ> Post first request to INIT_CMD FSM"
    1957               << " / srcid = " << r_write_copy.read()
    1958               << " / inst = "  << r_write_copy_inst.read() << std::endl;
     1958              << " / srcid = " << std::dec << r_write_copy.read()
     1959              << " / inst = "  << std::dec << r_write_copy_inst.read() << std::endl;
    19591960    if ( r_write_count.read() == 1)
    19601961    std::cout << "         ... and this is the last" << std::endl;
     
    19971998    std::cout << "  <MEMC.WRITE_UPT_NEXT> Post another request to INIT_CMD FSM"
    19981999              << " / heap_index = " << std::dec << r_write_ptr.read()
    1999               << " / srcid = " << r_write_copy.read()
    2000               << " / inst = "  << r_write_copy_inst.read() << std::endl;
     2000              << " / srcid = " << std::dec << r_write_copy.read()
     2001              << " / inst = "  << std::dec << r_write_copy_inst.read() << std::endl;
    20012002    if( entry.next == r_write_ptr.read() )
    20022003    std::cout << "        ... and this is the last" << std::endl;
     
    20132014    std::cout << "  <MEMC.WRITE_UPT_NEXT> Skip one entry in heap matching the writer"
    20142015              << " / heap_index = " << std::dec << r_write_ptr.read()
    2015               << " / srcid = " << r_write_copy.read()
    2016               << " / inst = "  << r_write_copy_inst.read() << std::endl;
     2016              << " / srcid = " << std::dec << r_write_copy.read()
     2017              << " / inst = "  << std::dec << r_write_copy_inst.read() << std::endl;
    20172018    if( entry.next == r_write_ptr.read() )
    20182019    std::cout << "        ... and this is the last" << std::endl;
     
    21112112{
    21122113    std::cout << "  <MEMC.WRITE_RSP> Post a request to TGT_RSP FSM: rsrcid = "
    2113               << std::hex << r_write_srcid.read() << std::endl;
     2114              << std::dec << r_write_srcid.read() << std::endl;
    21142115    if ( m_cmd_write_addr_fifo.rok() )
    21152116    {
    21162117        std::cout << "                    New Write request: "
    2117               << " srcid = " << std::hex << m_cmd_write_srcid_fifo.read()
    2118               << " / address = " << m_cmd_write_addr_fifo.read()
     2118              << " srcid = " << std::dec << m_cmd_write_srcid_fifo.read()
     2119              << " / address = " << std::hex << m_cmd_write_addr_fifo.read()
    21192120              << " / data = " << m_cmd_write_data_fifo.read() << std::endl;
    21202121    }
     
    30443045{
    30453046    std::cout << "  <MEMC.XRAM_RSP_DIR_RSP> Request the TGT_RSP FSM to return data:"
    3046               << " rsrcid = " << std::hex << r_xram_rsp_trt_buf.srcid
    3047               << " / address = " << r_xram_rsp_trt_buf.nline*m_words*4
     3047              << " rsrcid = " << std::dec << r_xram_rsp_trt_buf.srcid
     3048              << " / address = " << std::hex << r_xram_rsp_trt_buf.nline*m_words*4
    30483049              << " / nwords = " << std::dec << r_xram_rsp_trt_buf.read_length << std::endl;
    30493050}
     
    31493150{
    31503151    std::cout << "  <MEMC.XRAM_RSP_HEAP_ERASE> Erase the list of copies:"
    3151               << " srcid = " << entry.owner.srcid
    3152               << " / inst = " << entry.owner.inst << std::endl;
     3152              << " srcid = " << std::dec << entry.owner.srcid
     3153              << " / inst = " << std::dec << entry.owner.inst << std::endl;
    31533154}
    31543155#endif
     
    32333234{
    32343235    std::cout << "  <MEMC.XRAM_RSP_ERROR_RSP> Request a response error to TGT_RSP FSM:"
    3235               << " srcid = " << r_xram_rsp_trt_buf.srcid << std::endl;
     3236              << " srcid = " << std::dec << r_xram_rsp_trt_buf.srcid << std::endl;
    32363237}
    32373238#endif
     
    37743775{
    37753776    std::cout << "  <MEMC.CLEANUP_WRITE_RSP> Send a response to a cleanup request:"
    3776               << " rsrcid = " << r_cleanup_write_srcid.read()
    3777               << " / rtrdid = " << r_cleanup_write_trdid.read() << std::endl;
     3777              << " rsrcid = " << std::dec << r_cleanup_write_srcid.read()
     3778              << " / rtrdid = " << std::dec << r_cleanup_write_trdid.read() << std::endl;
    37783779}
    37793780#endif
     
    37923793{
    37933794    std::cout << "  <MEMC.CLEANUP_RSP> Send the response to a cleanup request:"
    3794               << " rsrcid = " << r_cleanup_write_srcid.read()
     3795              << " rsrcid = " << std::dec << r_cleanup_write_srcid.read()
    37953796              << " / rtrdid = " << r_cleanup_write_trdid.read() << std::endl;
    37963797}
     
    38383839{
    38393840    std::cout << "  <MEMC.SC_IDLE> SC command: " << std::hex
    3840               << " srcid = " <<  m_cmd_sc_srcid_fifo.read()
    3841               << " addr = " << m_cmd_sc_addr_fifo.read()
     3841              << " srcid = " <<  std::dec << m_cmd_sc_srcid_fifo.read()
     3842              << " addr = " << std::hex << m_cmd_sc_addr_fifo.read()
    38423843              << " wdata = " << m_cmd_sc_wdata_fifo.read()
    3843               << " eop = " << m_cmd_sc_eop_fifo.read()
     3844              << " eop = " << std::dec << m_cmd_sc_eop_fifo.read()
    38443845              << " cpt  = " << std::dec << r_sc_cpt.read() << std::endl;
    38453846}
     
    39023903{
    39033904    std::cout << "  <MEMC.SC_DIR_LOCK> Directory acces"
    3904               << " / address = " << m_cmd_sc_addr_fifo.read()
    3905               << " / hit = " << entry.valid
     3905              << " / address = " << std::hex << m_cmd_sc_addr_fifo.read()
     3906              << " / hit = " << std::dec << entry.valid
    39063907              << " / count = " << entry.count
    39073908              << " / is_cnt = " << entry.is_cnt << std::endl;
     
    41694170              << " / address = " << std::hex << m_cmd_sc_addr_fifo.read()
    41704171              << " / wdata = " << std::hex << r_sc_wdata.read()
    4171               << " / srcid = " << std::hex << r_sc_copy.read()
    4172               << " / inst = " << r_sc_copy_inst.read() << std::endl;
     4172              << " / srcid = " << std::dec << r_sc_copy.read()
     4173              << " / inst = " << std::dec << r_sc_copy_inst.read() << std::endl;
    41734174}
    41744175#endif
     
    42094210              << " / address = " << std::hex << m_cmd_sc_addr_fifo.read()
    42104211              << " / wdata = " << std::hex << r_sc_wdata.read()
    4211               << " / srcid = " << std::hex << entry.owner.srcid
    4212               << " / inst = " << entry.owner.inst << std::endl;
     4212              << " / srcid = " << std::dec << entry.owner.srcid
     4213              << " / inst = " << std::dec << entry.owner.inst << std::endl;
    42134214}
    42144215#endif
     
    50085009{
    50095010    std::cout << "  <MEMC.TGT_RSP_READ> Read response"
    5010               << " / rsrcid = " << std::hex << r_read_to_tgt_rsp_srcid.read()
     5011              << " / rsrcid = " << std::dec << r_read_to_tgt_rsp_srcid.read()
    50115012              << " / rtrdid = " << r_read_to_tgt_rsp_trdid.read()
    5012               << " / rdata = " << r_read_to_tgt_rsp_data[r_tgt_rsp_cpt.read()].read()
     5013              << " / rdata = " << std::hex << r_read_to_tgt_rsp_data[r_tgt_rsp_cpt.read()].read()
    50135014              << " / cpt = " << std::dec << r_tgt_rsp_cpt.read() << std::endl;
    50145015}
     
    50365037{
    50375038    std::cout << "  <MEMC.TGT_RSP_WRITE> Write response"
    5038               << " / rsrcid = " << r_write_to_tgt_rsp_srcid.read()
     5039              << " / rsrcid = " << std::dec << r_write_to_tgt_rsp_srcid.read()
    50395040              << " / rtrdid = " << r_write_to_tgt_rsp_trdid.read() << std::endl;
    50405041}
     
    50555056{
    50565057    std::cout << "  <MEMC.TGT_RSP_CLEANUP> Cleanup response"
    5057               << " / rsrcid = " << r_cleanup_to_tgt_rsp_srcid.read()
     5058              << " / rsrcid = " << std::dec << r_cleanup_to_tgt_rsp_srcid.read()
    50585059              << " / rtrdid = " << r_cleanup_to_tgt_rsp_trdid.read() << std::endl;
    50595060}
     
    50745075{
    50755076    std::cout << "  <MEMC.TGT_RSP_SC> SC response"
    5076               << " / rsrcid = " << r_sc_to_tgt_rsp_srcid.read()
     5077              << " / rsrcid = " << std::dec << r_sc_to_tgt_rsp_srcid.read()
    50775078              << " / rtrdid = " << r_sc_to_tgt_rsp_trdid.read() << std::endl;
    50785079}
     
    50945095{
    50955096    std::cout << "  <MEMC.TGT_RSP_XRAM> Response following XRAM access"
    5096               << " / rsrcid = " << r_xram_rsp_to_tgt_rsp_srcid.read()
     5097              << " / rsrcid = " << std::dec << r_xram_rsp_to_tgt_rsp_srcid.read()
    50975098              << " / rtrdid = " << r_xram_rsp_to_tgt_rsp_trdid.read()
    5098               << " / rdata = " << r_xram_rsp_to_tgt_rsp_data[r_tgt_rsp_cpt.read()].read()
    5099               << " / cpt = " << r_tgt_rsp_cpt.read() << std::endl;
     5099              << " / rdata = " << std::hex << r_xram_rsp_to_tgt_rsp_data[r_tgt_rsp_cpt.read()].read()
     5100              << " / cpt = " << std::dec << r_tgt_rsp_cpt.read() << std::endl;
    51005101}
    51015102#endif
     
    51245125{
    51255126    std::cout << "  <MEMC.TGT_RSP_INIT> Write response after coherence transaction"
    5126               << " / rsrcid = " << r_init_rsp_to_tgt_rsp_srcid.read()
     5127              << " / rsrcid = " << std::dec << r_init_rsp_to_tgt_rsp_srcid.read()
    51275128              << " / rtrdid = " << r_init_rsp_to_tgt_rsp_trdid.read() << std::endl;
    51285129}
Note: See TracChangeset for help on using the changeset viewer.