Changeset 909 for branches/RWT/modules/vci_mem_cache/caba/source
- Timestamp:
- Dec 19, 2014, 4:34:04 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RWT/modules/vci_mem_cache/caba/source/src/vci_mem_cache.cpp
r901 r909 1784 1784 cmd_write_fifo_put = true; 1785 1785 // <Activity counters> 1786 if (p_vci_tgt.cmd.read() == vci_param_int::CMD_NOP) 1787 { 1788 // (2 (CMD) + 1 (RSP)) flits VCI => 4 + (1 (success) || 2 (failure)) flits dspin 1789 m_cpt_sc_cost += 5 * req_distance(p_vci_tgt.srcid.read()); 1790 } 1791 else { 1786 if (p_vci_tgt.cmd.read() != vci_param_int::CMD_NOP) 1787 { 1792 1788 if (is_local_req(p_vci_tgt.srcid.read())) 1793 1789 { … … 1798 1794 m_cpt_write_flits_remote++; 1799 1795 } 1800 // (burst_size (CMD) + 1 (RSP) flits VCI => 2 + burst_size + 1 flits dspin1801 m_cpt_write_cost += (3 + (plen >> 2)) * req_distance(p_vci_tgt.srcid.read());1802 1796 } 1803 1797 // </Activity counters> … … 1808 1802 if (p_vci_tgt.cmd.read() == vci_param_int::CMD_NOP) 1809 1803 { 1804 // SC 1805 // (2 (CMD) + 1 (RSP)) flits VCI => 4 + (1 (success) || 2 (failure)) flits dspin 1806 m_cpt_sc_cost += 5 * req_distance(p_vci_tgt.srcid.read()); 1810 1807 if (is_local_req(p_vci_tgt.srcid.read())) 1811 1808 { … … 1818 1815 } 1819 1816 else { 1817 // Writes 1818 // (burst_size + 1 (CMD) + 1 (RSP)) flits VCI => 2 + burst_size + 1 flits dspin 1819 m_cpt_write_cost += (3 + (plen >> 2)) * req_distance(p_vci_tgt.srcid.read()); 1820 1820 1821 if (is_local_req(p_vci_tgt.srcid.read())) 1821 1822 {
Note: See TracChangeset
for help on using the changeset viewer.