Ignore:
Timestamp:
Dec 8, 2014, 6:16:47 PM (10 years ago)
Author:
cfuguet
Message:

reconf: bugfix in vci_cc_vcache_wrapper concerning the watchdog timer

  • The TRDID sent with the UNC_READ transactions was erroneous. It should contain the timeout count (in order to allow the debug of late responses).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/modules/vci_cc_vcache_wrapper/caba/source/src/vci_cc_vcache_wrapper.cpp

    r888 r903  
    54355435            {
    54365436                // debug: verify that the available response concerns the current transaction.
    5437                 assert(r_dcache_wdt_timeout.read() == p_vci.rtrdid.read());
     5437                if (r_dcache_wdt_timeout.read() != p_vci.rtrdid.read())
     5438                {
     5439                    std::cout << name() << ": Late response received after TIMEOUT "
     5440                              << std::dec << "(cycle " << m_cpt_total_cycles << ")"
     5441                              << std::endl;
     5442
     5443                    exit(1);
     5444                }
    54385445
    54395446                r_vci_rsp_fsm = RSP_DATA_UNC;
     
    54425449            {
    54435450                // debug: verify that the available response concerns the current transaction.
    5444                 assert(r_dcache_wdt_timeout.read() == p_vci.rtrdid.read());
     5451                if (r_dcache_wdt_timeout.read() != p_vci.rtrdid.read())
     5452                {
     5453                    std::cout << name() << ": Late response received after TIMEOUT "
     5454                              << std::dec << "(cycle " << m_cpt_total_cycles << ")"
     5455                              << std::endl;
     5456
     5457                    exit(1);
     5458                }
    54455459
    54465460                r_vci_rsp_fsm = RSP_DATA_MISS;
     
    61516165        p_vci.cmdval  = true;
    61526166        p_vci.address = r_dcache_vci_paddr.read() & ~0x3;
    6153         p_vci.wdata   = r_dcache_vci_wdt_trdid.read();
     6167        p_vci.wdata   = 0;
    61546168        p_vci.be      = r_dcache_vci_unc_be.read();
    6155         p_vci.trdid   = 0;
     6169        p_vci.trdid   = r_dcache_vci_wdt_trdid.read();
    61566170        p_vci.pktid   = TYPE_DATA_UNC;
    61576171        p_vci.plen    = 4;
Note: See TracChangeset for help on using the changeset viewer.