Changeset 1021 for trunk/modules/vci_mem_cache/caba
- Timestamp:
- Oct 13, 2015, 4:21:08 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_mem_cache/caba/source/src/vci_mem_cache.cpp
r917 r1021 676 676 const uint32_t srcid_width = vci_param_int::S; 677 677 678 uint8_t req_x = (req_srcid >> (srcid_width - m_x_width));679 uint8_t req_y = (req_srcid >> (srcid_width - m_x_width - m_y_width)) & ((1 << m_y_width) - 1);680 681 return abs( m_x_self - req_x) + abs(m_y_self - req_y) + 1;678 int req_x = (req_srcid >> (srcid_width - m_x_width)); 679 int req_y = (req_srcid >> (srcid_width - m_x_width - m_y_width)) & ((1 << m_y_width) - 1); 680 681 return abs((int)m_x_self - req_x) + abs((int)m_y_self - req_y) + 1; 682 682 } 683 683
Note: See TracChangeset
for help on using the changeset viewer.