Ignore:
Timestamp:
May 20, 2014, 2:43:42 PM (10 years ago)
Author:
haoliu
Message:

MESI: Adding the counters in the vci_mem_cache component to analyse the performance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/MESI/modules/vci_cc_vcache_wrapper/caba/source/src/vci_cc_vcache_wrapper.cpp

    r686 r700  
    23302330                                   &cache_way,
    23312331                                   &cache_set,
    2332                                    &cache_word );
     2332                                   &cache_word
     2333                                   );
    23332334
    23342335                r_dcache.write( r_dcache_save_cache_way.read(),
     
    29212922                            r_dcache_vci_miss_req    = true;
    29222923                            r_dcache_read_for_modify = true;
     2924                            r_dcache_getm_hit        = true;
    29232925                            r_dcache_miss_type       = PROC_MISS;
    29242926                            r_dcache_fsm             = DCACHE_MISS_WAIT;
     
    29472949                            r_dcache_fsm             = DCACHE_MISS_SELECT;
    29482950                            r_dcache_read_for_modify = true;
     2951                            r_dcache_getm_hit        = false;
    29492952                        }
    29502953                        else
     
    65436546        p_vci.trdid   = 0;
    65446547        if(r_dcache_read_for_modify.read())
    6545             p_vci.pktid   = TYPE_WRITE;
     6548        {
     6549            if(r_dcache_getm_hit.read())
     6550                p_vci.pktid   = TYPE_WRITE + 0x8;
     6551            else
     6552                p_vci.pktid   = TYPE_WRITE;
     6553               
     6554        }
    65466555        else
     6556        {
    65476557            p_vci.pktid   = TYPE_READ_DATA_MISS;
     6558        }
    65486559        p_vci.plen    = m_dcache_words << 2;
    65496560        p_vci.cmd     = vci_param::CMD_READ;
Note: See TracChangeset for help on using the changeset viewer.