- Timestamp:
- Jun 8, 2010, 5:04:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_cc_xcache_wrapper_multi/caba/source/include/vci_cc_xcache_wrapper_multi.h
r2 r45 65 65 DCACHE_MISS_UPDT, 66 66 DCACHE_UNC_WAIT, 67 DCACHE_UNC_GO, 67 68 DCACHE_INVAL, 68 69 DCACHE_SYNC, … … 80 81 ICACHE_MISS_UPDT, 81 82 ICACHE_UNC_WAIT, 83 ICACHE_UNC_GO, 82 84 ICACHE_ERROR, 83 85 ICACHE_CC_CHECK, … … 117 119 118 120 enum cleanup_fsm_state_e { 119 CLEANUP_ CMD,120 CLEANUP_DCACHE _RSP,121 CLEANUP_ICACHE _RSP,121 CLEANUP_IDLE, 122 CLEANUP_DCACHE, 123 CLEANUP_ICACHE, 122 124 }; 123 125 … … 148 150 const uint32_t m_srcid_c; 149 151 150 const size_t m_wbuf_nlines;151 152 const size_t m_dcache_ways; 152 153 const size_t m_dcache_words; … … 233 234 uint32_t m_cpt_icache_dir_write; // ICACHE DIR WRITE 234 235 235 uint32_t m_cpt_cc_update; // number of coherence update packets 236 uint32_t m_cpt_cc_inval; // number of coherence inval packets 236 uint32_t m_cpt_cc_broadcast; // number of coherence broadcast packets 237 uint32_t m_cpt_cc_update_data; // number of coherence data update packets 238 uint32_t m_cpt_cc_update_ins; // number of coherence instruction update packets 239 uint32_t m_cpt_cc_inval_data; // number of coherence data inval packets 240 uint32_t m_cpt_cc_inval_ins; // number of coherence instruction inval packets 241 uint32_t m_cpt_cc_cleanup_data; // number of coherence data cleanup packets 242 uint32_t m_cpt_cc_cleanup_ins; // number of coherence instruction cleanup packets 237 243 238 244 uint32_t m_cpt_frz_cycles; // number of cycles where the cpu is frozen 239 245 uint32_t m_cpt_total_cycles; // total number of cycles 240 246 241 uint32_t m_cpt_read; // total number of read instructions 242 uint32_t m_cpt_write; // total number of write instructions 247 uint32_t m_cpt_read; // total number of read requests 248 uint32_t m_cpt_write; // total number of write requests 249 uint32_t m_cpt_write_cached; // number of cached write requests 250 uint32_t m_cpt_data_unc; // number of uncachable data requests 251 uint32_t m_cpt_ins_unc; // number of uncachable instruction requests 252 uint32_t m_cpt_ll; // number of ll requests 253 uint32_t m_cpt_sc; // number of sc requests 243 254 uint32_t m_cpt_data_miss; // number of read miss 244 255 uint32_t m_cpt_ins_miss; // number of instruction miss 245 uint32_t m_cpt_unc_read; // number of read uncached246 uint32_t m_cpt_write_cached; // number of cached write247 256 248 257 uint32_t m_cost_write_frz; // number of frozen cycles related to write buffer 249 258 uint32_t m_cost_data_miss_frz; // number of frozen cycles related to data miss 250 uint32_t m_cost_unc_ read_frz;// number of frozen cycles related to uncached read259 uint32_t m_cost_unc_frz; // number of frozen cycles related to uncached read 251 260 uint32_t m_cost_ins_miss_frz; // number of frozen cycles related to ins miss 252 261 253 262 uint32_t m_cpt_imiss_transaction; // number of VCI instruction miss transactions 254 263 uint32_t m_cpt_dmiss_transaction; // number of VCI data miss transactions 255 uint32_t m_cpt_unc_transaction; // number of VCI uncached read transactions 264 uint32_t m_cpt_data_unc_transaction; // number of VCI instruction uncached transactions 265 uint32_t m_cpt_ins_unc_transaction; // number of VCI data uncached transactions 256 266 uint32_t m_cpt_write_transaction; // number of VCI write transactions 257 267 … … 278 288 size_t dcache_words, 279 289 size_t wbuf_nwords, 280 size_t wbuf_nlines ); 290 size_t wbuf_nlines, 291 size_t wbuf_timeout); 281 292 282 293 ~VciCcXCacheWrapperMulti(); 283 294 284 void print _cpi();285 void print _stats();295 void printTrace(size_t mode); 296 void printStatistics(); 286 297 287 298 private: … … 290 301 void genMoore(); 291 302 292 s oclib_static_assert((int)iss_t::SC_ATOMIC == (int)vci_param::STORE_COND_ATOMIC);293 s oclib_static_assert((int)iss_t::SC_NOT_ATOMIC == (int)vci_param::STORE_COND_NOT_ATOMIC);303 static_assert((int)iss_t::SC_ATOMIC == (int)vci_param::STORE_COND_ATOMIC); 304 static_assert((int)iss_t::SC_NOT_ATOMIC == (int)vci_param::STORE_COND_NOT_ATOMIC); 294 305 }; 295 306
Note: See TracChangeset
for help on using the changeset viewer.