Changeset 222


Ignore:
Timestamp:
Mar 29, 2012, 1:44:05 PM (12 years ago)
Author:
bouyer
Message:

make the cache monitor function print the FSM state which does the update,
and print the srcid if it makes sense.
In the XRAM_RSP_DIR_UPDT, print the right data.

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  
    363363      void transition();
    364364      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);
    366366
    367367      // Component attributes
  • trunk/modules/vci_mem_cache_v4/caba/source/src/vci_mem_cache_v4.cpp

    r215 r222  
    461461
    462462///////////////////////////////////////////////////////////////////////
    463 tmpl(void)::check_monitor( vci_addr_t addr, data_t data )
     463tmpl(void)::check_monitor( const char *buf, vci_addr_t addr, data_t data )
    464464///////////////////////////////////////////////////////////////////////
    465465{
     
    467467         (addr < m_monitor_base + m_monitor_length) )
    468468    {
    469         std::cout << " MEMC Write Monitor : Address = " << std::hex << addr
     469        std::cout << " MEMC Write Monitor : " << buf << " Address = " << std::hex << addr
    470470                  << " / Data = " << data << std::endl;
    471471    }
     
    17921792                        {
    17931793                            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() );
    17951797                        }
    17961798                    }
     
    18651867                            {
    18661868                                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() );
    18681872                            }
    18691873                        }
     
    28752879                {
    28762880                    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]);
    28782882                }
    28792883            }
     
    39513955            {
    39523956                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() );
    39543960                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() );
    39563962            }
    39573963
Note: See TracChangeset for help on using the changeset viewer.