Changeset 222 for trunk/modules/vci_mem_cache_v4/caba
- Timestamp:
- Mar 29, 2012, 1:44:05 PM (13 years ago)
- Location:
- trunk/modules/vci_mem_cache_v4/caba/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_mem_cache_v4/caba/source/include/vci_mem_cache_v4.h
r215 r222 363 363 void transition(); 364 364 void genMoore(); 365 void check_monitor( vci_addr_t addr, data_t data);365 void check_monitor( const char *buf, vci_addr_t addr, data_t data); 366 366 367 367 // Component attributes -
trunk/modules/vci_mem_cache_v4/caba/source/src/vci_mem_cache_v4.cpp
r215 r222 461 461 462 462 /////////////////////////////////////////////////////////////////////// 463 tmpl(void)::check_monitor( vci_addr_t addr, data_t data )463 tmpl(void)::check_monitor( const char *buf, vci_addr_t addr, data_t data ) 464 464 /////////////////////////////////////////////////////////////////////// 465 465 { … … 467 467 (addr < m_monitor_base + m_monitor_length) ) 468 468 { 469 std::cout << " MEMC Write Monitor : Address = " << std::hex << addr469 std::cout << " MEMC Write Monitor : " << buf << " Address = " << std::hex << addr 470 470 << " / Data = " << data << std::endl; 471 471 } … … 1792 1792 { 1793 1793 vci_addr_t address = (r_write_address.read() & ~(vci_addr_t)0x3F) | i<<2; 1794 check_monitor( address, r_write_data[i].read() ); 1794 char buf[80]; 1795 snprintf(buf, 80, "WRITE_DIR_HIT srcid %d", r_write_srcid.read()); 1796 check_monitor( buf, address, r_write_data[i].read() ); 1795 1797 } 1796 1798 } … … 1865 1867 { 1866 1868 vci_addr_t address = (r_write_address.read() & ~(vci_addr_t)0x3F) | i<<2; 1867 check_monitor( address, r_write_data[i].read() ); 1869 char buf[80]; 1870 snprintf(buf, 80, "WRITE_UPT_LOCK srcid %d", srcid); 1871 check_monitor(buf, address, r_write_data[i].read() ); 1868 1872 } 1869 1873 } … … 2875 2879 { 2876 2880 vci_addr_t address = r_xram_rsp_trt_buf.nline<<6 | i<<2; 2877 check_monitor( address, r_write_data[i].read());2881 check_monitor("XRAM_RSP_DIR_UPDT", address, r_xram_rsp_trt_buf.wdata[i]); 2878 2882 } 2879 2883 } … … 3951 3955 { 3952 3956 vci_addr_t address = m_cmd_sc_addr_fifo.read(); 3953 check_monitor( address, r_sc_wdata.read() ); 3957 char buf[80]; 3958 snprintf(buf, 80, "SC_DIR_HIT_WRITE srcid %d", m_cmd_sc_srcid_fifo.read()); 3959 check_monitor( buf, address, r_sc_wdata.read() ); 3954 3960 if ( r_sc_cpt.read()==4 ) 3955 check_monitor( address+4, m_cmd_sc_wdata_fifo.read() );3961 check_monitor( buf, address+4, m_cmd_sc_wdata_fifo.read() ); 3956 3962 } 3957 3963
Note: See TracChangeset
for help on using the changeset viewer.