Changeset 663 for trunk/modules/vci_mem_cache/caba/source/src
- Timestamp:
- Mar 19, 2014, 11:29:23 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_mem_cache/caba/source/src/vci_mem_cache.cpp
r649 r663 31 31 * alexandre.joannou@lip6.fr 32 32 */ 33 33 34 34 35 #include "../include/vci_mem_cache.h" … … 799 800 } 800 801 802 803 ///////////////////////////////////////// 804 tmpl(void)::reset_counters() 805 ///////////////////////////////////////// 806 { 807 m_cpt_reset_count = m_cpt_cycles; 808 m_cpt_read_local = 0; 809 m_cpt_read_remote = 0; 810 m_cpt_read_cost = 0; 811 m_cpt_write_local = 0; 812 m_cpt_write_remote = 0; 813 m_cpt_write_flits_local = 0; 814 m_cpt_write_flits_remote = 0; 815 m_cpt_write_cost = 0; 816 m_cpt_ll_local = 0; 817 m_cpt_ll_remote = 0; 818 m_cpt_ll_cost = 0; 819 m_cpt_sc_local = 0; 820 m_cpt_sc_remote = 0; 821 m_cpt_sc_cost = 0; 822 m_cpt_cas_local = 0; 823 m_cpt_cas_remote = 0; 824 m_cpt_cas_cost = 0; 825 m_cpt_update = 0; 826 m_cpt_update_local = 0; 827 m_cpt_update_remote = 0; 828 m_cpt_update_cost = 0; 829 m_cpt_minval = 0; 830 m_cpt_minval_local = 0; 831 m_cpt_minval_remote = 0; 832 m_cpt_minval_cost = 0; 833 m_cpt_binval = 0; 834 m_cpt_cleanup_local = 0; 835 m_cpt_cleanup_remote = 0; 836 m_cpt_cleanup_cost = 0; 837 m_cpt_read_miss = 0; 838 m_cpt_write_miss = 0; 839 m_cpt_write_dirty = 0; 840 m_cpt_trt_rb = 0; 841 m_cpt_trt_full = 0; 842 m_cpt_get = 0; 843 m_cpt_put = 0; 844 } 801 845 802 846 ///////////////////////////////////////// … … 812 856 std::cout << "----------------------------------" << std::dec << std::endl; 813 857 std::cout 858 << "[000] COUNTERS RESET AT CYCLE = " << m_cpt_reset_count << std::endl 814 859 << "[001] NUMBER OF CYCLES = " << m_cpt_cycles << std::endl 815 860 << std::endl … … 941 986 delete [] m_debug_data; 942 987 943 print_stats();988 //print_stats(); 944 989 } 945 990 … … 1068 1113 // Activity counters 1069 1114 m_cpt_cycles = 0; 1115 m_cpt_reset_count = 0; 1070 1116 m_cpt_read_local = 0; 1071 1117 m_cpt_read_remote = 0; … … 1206 1252 if (p_vci_tgt.cmdval) 1207 1253 { 1208 1209 1254 #if DEBUG_MEMC_TGT_CMD 1210 1255 if (m_debug) … … 3705 3750 "MEMC ERROR in WRITE_BC_DIR_READ state: Bad DIR allocation"); 3706 3751 3707 m_cpt_write_broadcast++;3708 3709 3752 // write enable signal for data buffer. 3710 3753 r_write_bc_data_we = true; … … 5509 5552 << " address = " << std::hex << r_cleanup_nline.read()*m_words*4 5510 5553 << " / way = " << std::dec << r_cleanup_way.read() 5511 << " / srcid = " << std:: dec<< r_cleanup_srcid.read()5554 << " / srcid = " << std::hex << r_cleanup_srcid.read() 5512 5555 << std::endl; 5513 5556 #endif … … 6639 6682 // <Activity Counters> 6640 6683 m_cpt_binval++; 6684 m_cpt_write_broadcast++; 6641 6685 // </Activity Counters> 6642 6686
Note: See TracChangeset
for help on using the changeset viewer.