Changeset 1019 for branches/reconfiguration/modules/vci_mem_cache
- Timestamp:
- Oct 13, 2015, 4:21:06 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/modules/vci_mem_cache/caba/source/src/vci_mem_cache.cpp
r1014 r1019 697 697 { 698 698 const uint32_t srcid_width = vci_param_int::S; 699 700 uint8_t req_x = (req_srcid >> (srcid_width - m_x_width)); 701 uint8_t req_y = (req_srcid >> (srcid_width - m_x_width - m_y_width)) & ((1 << m_y_width) - 1); 702 703 return abs(m_x_self - req_x) + abs(m_y_self - req_y) + 1; 699 int req_x = (req_srcid >> (srcid_width - m_x_width)); 700 int req_y = (req_srcid >> (srcid_width - m_x_width - m_y_width)) & ((1 << m_y_width) - 1); 701 702 return abs((int)m_x_self - req_x) + abs((int)m_y_self - req_y) + 1; 704 703 } 705 704
Note: See TracChangeset
for help on using the changeset viewer.