Changeset 918 for branches/RWT/modules


Ignore:
Timestamp:
Jan 6, 2015, 4:40:18 PM (10 years ago)
Author:
haoliu
Message:

RWT
Bug fixed in vci_mem_cache:
considering the local cost for all the cost counters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/RWT/modules/vci_mem_cache/caba/source/src/vci_mem_cache.cpp

    r909 r918  
    692692        uint8_t req_y = (req_srcid >> (srcid_width - m_x_width - m_y_width)) & ((1 << m_y_width) - 1);
    693693
    694         return abs(m_x_self - req_x) + abs(m_y_self - req_y);
     694        return abs(m_x_self - req_x) + abs(m_y_self - req_y) + 1;
    695695    }
    696696
     
    700700    /////////////////////////////////////////////////////
    701701    {
    702         return req_distance(req_srcid) == 0;
     702        return req_distance(req_srcid) == 1;
    703703    }
    704704
Note: See TracChangeset for help on using the changeset viewer.