Changeset 599 for trunk/modules/vci_mem_cache/caba
- Timestamp:
- Dec 11, 2013, 6:08:30 PM (11 years ago)
- Location:
- trunk/modules/vci_mem_cache/caba/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_mem_cache/caba/source/include/vci_mem_cache.h
r597 r599 499 499 const soclib::common::IntTab &srcid_x, // global index RAM network 500 500 const soclib::common::IntTab &tgtid_d, // global index INT network 501 const size_t x_self, // self X coordinate502 const size_t y_self, // self Y coordinate503 501 const size_t x_width, // X width in platform 504 502 const size_t y_width, // Y width in platform … … 543 541 const size_t m_sets; // Number of cache sets 544 542 const size_t m_words; // Number of words in a line 545 const size_tm_x_self; // X self coordinate546 const size_tm_y_self; // Y self coordinate543 size_t m_x_self; // X self coordinate 544 size_t m_y_self; // Y self coordinate 547 545 const size_t m_x_width; // number of x bits in platform 548 546 const size_t m_y_width; // number of y bits in platform -
trunk/modules/vci_mem_cache/caba/source/src/vci_mem_cache.cpp
r597 r599 334 334 const IntTab &srcid_x, // global index on external network 335 335 const IntTab &tgtid_d, // global index on direct network 336 const size_t x_self, // self x coordinate337 const size_t y_self, // self y coordinate338 336 const size_t x_width, // number of x bits in platform 339 337 const size_t y_width, // number of x bits in platform … … 367 365 m_sets(nsets), 368 366 m_words(nwords), 369 m_x_self(x_self),370 m_y_self(y_self),371 367 m_x_width(x_width), 372 368 m_y_width(y_width), … … 529 525 } 530 526 527 assert( (m_nseg > 0) and 528 "MEMC ERROR : At least one segment must be mapped to this component"); 529 531 530 m_seg = new soclib::common::Segment*[m_nseg]; 532 531 … … 537 536 i++; 538 537 } 538 539 addr_t gid = m_seg[0]->baseAddress() >> (vci_param_int::N - x_width - y_width); 540 m_x_self = (gid >> m_y_width) & ((1 << m_x_width) - 1); 541 m_y_self = gid & ((1 << m_y_width) - 1); 539 542 540 543 // Allocation for IXR_RSP FSM
Note: See TracChangeset
for help on using the changeset viewer.