Changeset 167 for trunk/modules/vci_cc_xcache_wrapper_v4
- Timestamp:
- May 11, 2011, 6:53:01 PM (14 years ago)
- Location:
- trunk/modules/vci_cc_xcache_wrapper_v4/caba/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_cc_xcache_wrapper_v4/caba/source/include/vci_cc_xcache_wrapper_v4.h
r165 r167 119 119 typedef uint32_t be_t; 120 120 typedef typename vci_param::fast_addr_t vci_addr_t; 121 typedef enum122 {123 WRITE_THROUGH,124 RELEASE_WRITE_THROUGH125 } write_policy_t;126 121 127 122 enum dcache_fsm_state_e { … … 243 238 const uint32_t m_icache_words_shift; 244 239 const size_t m_icache_yzmask; 245 const write_policy_t m_write_policy;246 240 const size_t m_cache_words; // max between m_dcache_words and m_icache_words 247 241 … … 461 455 size_t dcache_words, 462 456 size_t wbuf_nwords, 463 size_t wbuf_nlines, 464 size_t wbuf_timeout, 465 write_policy_t write_policy=WRITE_THROUGH 457 size_t wbuf_nlines 466 458 ); 467 459 -
trunk/modules/vci_cc_xcache_wrapper_v4/caba/source/src/vci_cc_xcache_wrapper_v4.cpp
r166 r167 196 196 size_t dcache_words, 197 197 size_t wbuf_nwords, 198 size_t wbuf_nlines, 199 size_t wbuf_timeout, 200 write_policy_t write_policy 198 size_t wbuf_nlines 201 199 ) 202 200 : … … 230 228 m_icache_words_shift(uint32_log2(icache_words)+uint32_log2(sizeof(data_t))), 231 229 m_icache_yzmask((~0)<<m_icache_words_shift), 232 m_write_policy(write_policy),233 230 m_cache_words((dcache_words)?dcache_words:icache_words), 234 231 … … 466 463 size_t _wbuf_nwords = wbuf_nwords ; 467 464 size_t _wbuf_nlines = wbuf_nlines /m_nb_dcache; 468 size_t _wbuf_timeout = wbuf_timeout;469 465 470 466 r_icache = new GenericCache<vci_addr_t> * [m_nb_icache]; … … 479 475 { 480 476 r_dcache [num_cache] = new GenericCache<vci_addr_t> ("dcache", _dcache_ways, _dcache_sets, _dcache_words); 481 r_wbuf [num_cache] = new MultiWriteBuffer<addr_40> ("r_wbuf", _wbuf_nwords, _wbuf_nlines, _ wbuf_timeout, _dcache_words);477 r_wbuf [num_cache] = new MultiWriteBuffer<addr_40> ("r_wbuf", _wbuf_nwords, _wbuf_nlines, _dcache_words); 482 478 } 483 479 … … 575 571 << _wbuf_nlines << " " // nb_lines 576 572 << _wbuf_nwords << " " // nb_words 577 << _wbuf_timeout << " " // timeout578 573 << m_nb_cpu << " " // nb_cpu 579 574 << 32 << " " // size_data … … 3287 3282 ASSERT(p_vci_ini_c.reop and (p_vci_ini_c.rtrdid.read() == TYPE_DATA_CLEANUP), 3288 3283 "illegal response packet received for a cleanup transaction"); 3289 ASSERT( p_vci_ini_c.rerror.read()&1== vci_param::ERR_NORMAL,3284 ASSERT((p_vci_ini_c.rerror.read()&1) == vci_param::ERR_NORMAL, 3290 3285 "error signaled in a cleanup response" ); 3291 3286 ASSERT(p_vci_ini_c.rpktid.read() == (sc_dt::sc_uint<vci_param::P>)r_cleanup_num_cache, … … 3306 3301 ASSERT(p_vci_ini_c.reop and (p_vci_ini_c.rtrdid.read() == TYPE_INS_CLEANUP), 3307 3302 "illegal response packet received for a cleanup transaction"); 3308 ASSERT( p_vci_ini_c.rerror.read()&1== vci_param::ERR_NORMAL,3303 ASSERT((p_vci_ini_c.rerror.read()&1) == vci_param::ERR_NORMAL, 3309 3304 "error signaled in a cleanup response" ); 3310 3305
Note: See TracChangeset
for help on using the changeset viewer.