Ignore:
Timestamp:
Aug 16, 2012, 2:41:27 PM (12 years ago)
Author:
meunier
Message:

Added the display of the name of the component in the vci_cc_vcache_v4 and
the vci_mem_cache_v4 in the debug traces.

File:
1 edited

Legend:

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

    r251 r253  
    20422042if ( m_debug_dcache_fsm )
    20432043{
    2044     std::cout << "  <PROC.DCACHE_IDLE> Cache update in P2 stage" << std::dec
     2044    std::cout << "  <PROC " << name() << ".DCACHE_IDLE> Cache update in P2 stage" << std::dec
    20452045              << " / WAY = " << way
    20462046              << " / SET = " << set
     
    24902490if ( m_debug_dcache_fsm )
    24912491{
    2492     std::cout << "  <PROC.DCACHE_IDLE> HIT in dtlb, but privilege violation" << std::endl;
     2492    std::cout << "  <PROC " << name() << ".DCACHE_IDLE> HIT in dtlb, but privilege violation" << std::endl;
    24932493}
    24942494#endif
     
    25062506if ( m_debug_dcache_fsm )
    25072507{
    2508     std::cout << "  <PROC.DCACHE_IDLE> HIT in dtlb, but writable violation" << std::endl;
     2508    std::cout << "  <PROC " << name() << ".DCACHE_IDLE> HIT in dtlb, but writable violation" << std::endl;
    25092509}
    25102510#endif
     
    25552555if ( m_debug_dcache_fsm )
    25562556{
    2557     std::cout << "  <PROC.DCACHE_IDLE> Speculative access miss" << std::endl;
     2557    std::cout << "  <PROC " << name() << ".DCACHE_IDLE> Speculative access miss" << std::endl;
    25582558}
    25592559#endif
     
    25892589if ( m_debug_dcache_fsm )
    25902590{
    2591     std::cout << "  <PROC.DCACHE_IDLE> HIT in dcache" << std::endl;
     2591    std::cout << "  <PROC " << name() << ".DCACHE_IDLE> HIT in dcache" << std::endl;
    25922592}
    25932593#endif
     
    27772777    if ( r_dcache_tlb_ins.read() )
    27782778    {
    2779         std::cout << "  <PROC.DCACHE_TLB_MISS> ITLB miss";
     2779        std::cout << "  <PROC " << name() << ".DCACHE_TLB_MISS> ITLB miss";
    27802780    }
    27812781    else
    27822782    {                           
    2783         std::cout << "  <PROC.DCACHE_TLB_MISS> DTLB miss";
     2783        std::cout << "  <PROC " << name() << ".DCACHE_TLB_MISS> DTLB miss";
    27842784    }
    27852785    std::cout << " / VADDR = " << std::hex << r_dcache_tlb_vaddr.read()
     
    28312831if ( m_debug_dcache_fsm )
    28322832{
    2833     std::cout << "  <PROC.DCACHE_TLB_PTE1_GET> HIT in dcache, but unmapped"
     2833    std::cout << "  <PROC " << name() << ".DCACHE_TLB_PTE1_GET> HIT in dcache, but unmapped"
    28342834              << std::hex << " / paddr = " << r_dcache_tlb_paddr.read()
    28352835              << std::dec << " / way = " << way
     
    28662866if ( m_debug_dcache_fsm )
    28672867{
    2868     std::cout << "  <PROC.DCACHE_TLB_PTE1_GET> HIT in dcache"
     2868    std::cout << "  <PROC " << name() << ".DCACHE_TLB_PTE1_GET> HIT in dcache"
    28692869              << std::hex << " / paddr = " << r_dcache_tlb_paddr.read()
    28702870              << std::dec << " / way = " << way
     
    28872887if ( m_debug_dcache_fsm )
    28882888{
    2889     std::cout << "  <PROC.DCACHE_TLB_PTE1_GET> HIT in dcache"
     2889    std::cout << "  <PROC " << name() << ".DCACHE_TLB_PTE1_GET> HIT in dcache"
    28902890              << std::hex << " / paddr = " << r_dcache_tlb_paddr.read()
    28912891              << std::dec << " / way = " << way
     
    29072907if ( m_debug_dcache_fsm )
    29082908{
    2909     std::cout << "  <PROC.DCACHE_TLB_PTE1_GET> MISS in dcache:"
     2909    std::cout << "  <PROC " << name() << ".DCACHE_TLB_PTE1_GET> MISS in dcache:"
    29102910              << " PTE1 address = " << std::hex << r_dcache_tlb_paddr.read() << std::endl;
    29112911}
     
    29482948{
    29492949    if ( r_dcache_tlb_ins.read() )
    2950         std::cout << "  <PROC.DCACHE_TLB_PTE1_SELECT> Select a slot in ITLB:";
     2950        std::cout << "  <PROC " << name() << ".DCACHE_TLB_PTE1_SELECT> Select a slot in ITLB:";
    29512951    else                           
    2952         std::cout << "  <PROC.DCACHE_TLB_PTE1_SELECT> Select a slot in DTLB:";
     2952        std::cout << "  <PROC " << name() << ".DCACHE_TLB_PTE1_SELECT> Select a slot in DTLB:";
    29532953        std::cout << " way = " << std::dec << way
    29542954                  << " / set = " << set << std::endl;
     
    30333033    if ( r_dcache_tlb_ins.read() )
    30343034    {
    3035         std::cout << "  <PROC.DCACHE_TLB_PTE1_UPDT> write PTE1 in ITLB";
     3035        std::cout << "  <PROC " << name() << ".DCACHE_TLB_PTE1_UPDT> write PTE1 in ITLB";
    30363036        std::cout << " / set = " << std::dec << r_dcache_tlb_set.read()
    30373037                  << " / way = " << r_dcache_tlb_way.read() << std::endl;
     
    30403040    else                           
    30413041    {
    3042         std::cout << "  <PROC.DCACHE_TLB_PTE1_UPDT> write PTE1 in DTLB";
     3042        std::cout << "  <PROC " << name() << ".DCACHE_TLB_PTE1_UPDT> write PTE1 in DTLB";
    30433043        std::cout << " / set = " << std::dec << r_dcache_tlb_set.read()
    30443044                  << " / way = " << r_dcache_tlb_way.read() << std::endl;
     
    30923092if ( m_debug_dcache_fsm )
    30933093{
    3094     std::cout << "  <PROC.DCACHE_TLB_PTE2_GET> HIT in dcache, but PTE is unmapped"
     3094    std::cout << "  <PROC " << name() << ".DCACHE_TLB_PTE2_GET> HIT in dcache, but PTE is unmapped"
    30953095              << " PTE_FLAGS = " << std::hex << pte_flags
    30963096              << " PTE_PPN = " << std::hex << pte_ppn << std::endl;
     
    31113111if ( m_debug_dcache_fsm )
    31123112{
    3113     std::cout << "  <PROC.DCACHE_TLB_PTE2_GET> HIT in dcache:"
     3113    std::cout << "  <PROC " << name() << ".DCACHE_TLB_PTE2_GET> HIT in dcache:"
    31143114              << " PTE_FLAGS = " << std::hex << pte_flags
    31153115              << " PTE_PPN = " << std::hex << pte_ppn << std::endl;
     
    31283128if ( m_debug_dcache_fsm )
    31293129{
    3130     std::cout << "  <PROC.DCACHE_TLB_PTE2_GET> MISS in dcache:"
     3130    std::cout << "  <PROC " << name() << ".DCACHE_TLB_PTE2_GET> MISS in dcache:"
    31313131              << " PTE address = " << std::hex << r_dcache_tlb_paddr.read() << std::endl;
    31323132}
     
    31663166{
    31673167    if ( r_dcache_tlb_ins.read() )
    3168         std::cout << "  <PROC.DCACHE_TLB_PTE2_SELECT> Select a slot in ITLB:";
     3168        std::cout << "  <PROC " << name() << ".DCACHE_TLB_PTE2_SELECT> Select a slot in ITLB:";
    31693169    else                           
    3170         std::cout << "  <PROC.DCACHE_TLB_PTE2_SELECT> Select a slot in DTLB:";
     3170        std::cout << "  <PROC " << name() << ".DCACHE_TLB_PTE2_SELECT> Select a slot in DTLB:";
    31713171        std::cout << " way = " << std::dec << way
    31723172                  << " / set = " << set << std::endl;
     
    32523252    if ( r_dcache_tlb_ins.read() )
    32533253    {
    3254         std::cout << "  <PROC.DCACHE_TLB_PTE2_UPDT> write PTE2 in ITLB";
     3254        std::cout << "  <PROC " << name() << ".DCACHE_TLB_PTE2_UPDT> write PTE2 in ITLB";
    32553255        std::cout << " / set = " << std::dec << r_dcache_tlb_set.read()
    32563256                  << " / way = " << r_dcache_tlb_way.read() << std::endl;
     
    32593259    else                           
    32603260    {
    3261         std::cout << "  <PROC.DCACHE_TLB_PTE2_UPDT> write PTE2 in DTLB";
     3261        std::cout << "  <PROC " << name() << ".DCACHE_TLB_PTE2_UPDT> write PTE2 in DTLB";
    32623262        std::cout << " / set = " << std::dec << r_dcache_tlb_set.read()
    32633263                  << " / way = " << r_dcache_tlb_way.read() << std::endl;
     
    32783278if ( m_debug_dcache_fsm )
    32793279{
    3280     std::cout << "  <PROC.DCACHE_TLB_LR_UPDT> Update dcache: (L/R) bit" << std::endl;
     3280    std::cout << "  <PROC " << name() << ".DCACHE_TLB_LR_UPDT> Update dcache: (L/R) bit" << std::endl;
    32813281}
    32823282#endif
     
    33233323if ( m_debug_dcache_fsm )
    33243324{
    3325     std::cout << "  <PROC.DCACHE_TLB_LR_WAIT> SC response received" << std::endl;
     3325    std::cout << "  <PROC " << name() << ".DCACHE_TLB_LR_WAIT> SC response received" << std::endl;
    33263326}
    33273327#endif
     
    33373337if ( m_debug_dcache_fsm )
    33383338{
    3339     std::cout << "  <PROC.DCACHE_TLB_RETURN> TLB MISS completed" << std::endl;
     3339    std::cout << "  <PROC " << name() << ".DCACHE_TLB_RETURN> TLB MISS completed" << std::endl;
    33403340}
    33413341#endif
     
    34923492if ( m_debug_dcache_fsm )
    34933493{
    3494     std::cout << "  <PROC.DCACHE_XTN_DC_INVAL_VA> Compute physical address" << std::hex
     3494    std::cout << "  <PROC " << name() << ".DCACHE_XTN_DC_INVAL_VA> Compute physical address" << std::hex
    34953495              << " / VADDR = " << r_dcache_p0_wdata.read()
    34963496              << " / PADDR = " << paddr << std::endl;
     
    35333533if ( m_debug_dcache_fsm )
    35343534{
    3535     std::cout << "  <PROC.DCACHE_XTN_DC_INVAL_PA> Test hit in dcache" << std::hex
     3535    std::cout << "  <PROC " << name() << ".DCACHE_XTN_DC_INVAL_PA> Test hit in dcache" << std::hex
    35363536              << " / PADDR = " << r_dcache_p0_paddr.read() << std::dec
    35373537              << " / HIT = " << hit
     
    35893589if ( m_debug_dcache_fsm )
    35903590{
    3591     std::cout << "  <PROC.DCACHE_XTN_DC_INVAL_GO> Actual dcache inval" << std::hex
     3591    std::cout << "  <PROC " << name() << ".DCACHE_XTN_DC_INVAL_GO> Actual dcache inval" << std::hex
    35923592              << " / NLINE = " << nline << std::endl;
    35933593}
     
    36383638if ( m_debug_dcache_fsm )
    36393639{
    3640     std::cout << "  <PROC.DCACHE_MISS_VICTIM> Select a slot:" << std::dec
     3640    std::cout << "  <PROC " << name() << ".DCACHE_MISS_VICTIM> Select a slot:" << std::dec
    36413641              << " / WAY = "   << way
    36423642              << " / SET = "   << set
     
    36663666if ( m_debug_dcache_fsm )
    36673667{
    3668     std::cout << "  <PROC.DCACHE_MISS_INVAL> inval line:" << std::dec
     3668    std::cout << "  <PROC " << name() << ".DCACHE_MISS_INVAL> inval line:" << std::dec
    36693669              << " / way = "   << way
    36703670              << " / set = "   << set
     
    38443844        if ( r_dcache_miss_word.read() < m_dcache_words-1 )
    38453845        {
    3846             std::cout << "  <PROC.DCACHE_MISS_UPDT> Matching coherence request:"
     3846            std::cout << "  <PROC " << name() << ".DCACHE_MISS_UPDT> Matching coherence request:"
    38473847                      << "  pop the FIFO, don't update the cache" << std::endl;
    38483848        }
    38493849        else
    38503850        {
    3851             std::cout << "  <PROC.DCACHE_MISS_UPDT> Matching coherence request:"
     3851            std::cout << "  <PROC " << name() << ".DCACHE_MISS_UPDT> Matching coherence request:"
    38523852                      << " last word : send a cleanup request " << std::endl;
    38533853        }
     
    38553855    else
    38563856    {
    3857         std::cout << "  <PROC.DCACHE_MISS_UPDT> Write one word:"
     3857        std::cout << "  <PROC " << name() << ".DCACHE_MISS_UPDT> Write one word:"
    38583858                  << " address = " << std::hex << r_dcache_vci_paddr.read()
    38593859                  << " / data = "  << r_vci_rsp_fifo_dcache.read()
     
    39773977if ( m_debug_dcache_fsm )
    39783978{
    3979     std::cout << "  <PROC.DCACHE_DIRTY_GET_PTE> Get PTE in dcache" << std::hex
     3979    std::cout << "  <PROC " << name() << ".DCACHE_DIRTY_GET_PTE> Get PTE in dcache" << std::hex
    39803980              << " / PTE_PADDR = " << r_dcache_dirty_paddr.read()
    39813981              << " / PTE_VALUE = " << pte << std::dec
     
    40164016if ( m_debug_dcache_fsm )
    40174017{
    4018     std::cout << "  <PROC.DCACHE_DIRTY_SC_WAIT> Dirty bit successfully set"
     4018    std::cout << "  <PROC " << name() << ".DCACHE_DIRTY_SC_WAIT> Dirty bit successfully set"
    40194019              << std::endl;
    40204020}
     
    40274027if ( m_debug_dcache_fsm )
    40284028{
    4029     std::cout << "  <PROC.DCACHE_DIRTY_SC_WAIT> PTE modified : Inval cache line & TLBs"
     4029    std::cout << "  <PROC " << name() << ".DCACHE_DIRTY_SC_WAIT> PTE modified : Inval cache line & TLBs"
    40304030              << std::endl;
    40314031}
     
    40934093if ( m_debug_dcache_fsm )
    40944094{
    4095     std::cout << "  <PROC.DCACHE_CC_CHECK> Coherence request matching a pending miss:"
     4095    std::cout << "  <PROC " << name() << ".DCACHE_CC_CHECK> Coherence request matching a pending miss:"
    40964096              << " address = " << std::hex << paddr << std::endl;
    40974097}
     
    41384138{
    41394139   
    4140     std::cout << "  <PROC.DCACHE_CC_CHECK> Coherence request received :"
     4140    std::cout << "  <PROC " << name() << ".DCACHE_CC_CHECK> Coherence request received :"
    41414141              << " address = " << std::hex << paddr << std::dec;
    41424142    if ( hit )
     
    41894189if ( m_debug_dcache_fsm )
    41904190{
    4191     std::cout << "  <PROC.DCACHE_CC_INVAL> Invalidate cache line" << std::dec
     4191    std::cout << "  <PROC " << name() << ".DCACHE_CC_INVAL> Invalidate cache line" << std::dec
    41924192              << " / WAY = " << way
    41934193              << " / SET = " << set << std::endl;
     
    42384238if ( m_debug_dcache_fsm )
    42394239{
    4240     std::cout << "  <PROC.DCACHE_CC_UPDT> Update one word" << std::dec
     4240    std::cout << "  <PROC " << name() << ".DCACHE_CC_UPDT> Update one word" << std::dec
    42414241              << " / WAY = " << way
    42424242              << " / SET = " << set
     
    42834283if ( m_debug_dcache_fsm and ok )
    42844284{
    4285     std::cout << "  <PROC.DCACHE_INVAL_TLB_SCAN> Invalidate ITLB entry:" << std::hex
     4285    std::cout << "  <PROC " << name() << ".DCACHE_INVAL_TLB_SCAN> Invalidate ITLB entry:" << std::hex
    42864286              << " line = " << line << std::dec
    42874287              << " / set = " << set
     
    42964296if ( m_debug_dcache_fsm and ok )
    42974297{
    4298     std::cout << "  <PROC.DCACHE_INVAL_TLB_SCAN> Invalidate DTLB entry:" << std::hex
     4298    std::cout << "  <PROC " << name() << ".DCACHE_INVAL_TLB_SCAN> Invalidate DTLB entry:" << std::hex
    42994299              << " line = " << line << std::dec
    43004300              << " / set = " << set
     
    43284328            std::cout << std::dec << "ERROR in CC_VCACHE_WRAPPER " << name() << std::endl
    43294329                      << " stop at cycle " << m_cpt_total_cycles << std::endl
    4330                       << " frozen since cycle " << m_cpt_total_cycles - m_max_frozen_cycles
    4331                       << std::endl;
     4330                      << " frozen since cycle " << m_cpt_total_cycles - m_max_frozen_cycles << std::endl;
     4331                      r_iss.dump();
    43324332            exit(1);
    43334333        }
     
    47674767if ( m_debug_cleanup_fsm )
    47684768{
    4769     std::cout << "  <PROC.CLEANUP_DATA_GO> Cleanup request for icache:" << std::hex
     4769    std::cout << "  <PROC " << name() << ".CLEANUP_DATA_GO> Cleanup request for icache:" << std::hex
    47704770              << " address = " << (r_dcache_cleanup_line.read()*m_dcache_words*4)
    47714771              << " / trdid = " << std::dec << r_cleanup_trdid.read() << std::endl;
     
    47864786if ( m_debug_cleanup_fsm )
    47874787{
    4788     std::cout << "  <PROC.CLEANUP_INS_GO> Cleanup request for dcache:" << std::hex
     4788    std::cout << "  <PROC " << name() << ".CLEANUP_INS_GO> Cleanup request for dcache:" << std::hex
    47894789              << " address = " << (r_icache_cleanup_line.read()*m_icache_words*4)
    47904790              << " / trdid = " << std::dec << r_cleanup_trdid.read() << std::endl;
Note: See TracChangeset for help on using the changeset viewer.