Ignore:
Timestamp:
May 13, 2015, 10:28:06 AM (9 years ago)
Author:
cfuguet
Message:

reconf: introducing a mechanism to deactivate the watchdog timer on
the vci_cc_vcache_wrapper component.

File:
1 edited

Legend:

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

    r970 r988  
    842842        r_dcache_clack_req         = false;
    843843
    844         // Reset watchdog timer threshold to max value
    845         r_dcache_wdt_max           = std::numeric_limits<uint32_t>::max();
     844        // Reset watchdog timer (watchdog mechanism is deactivated)
     845        r_dcache_wdt_max           = 0;
    846846        r_dcache_wdt_timeout       = 0;
    847847
     
    22512251
    22522252    // watchdog timeout signal
    2253     bool dcache_watchdog_timeout = (r_dcache_wdt.read() == r_dcache_wdt_max.read());
     2253    // when wdt_max is zero, the watchdog mechanism is deactivated.
     2254    bool dcache_watchdog_timeout = (r_dcache_wdt_max.read() > 0) &&
     2255                                   (r_dcache_wdt.read() == r_dcache_wdt_max.read());
    22542256
    22552257    switch (r_dcache_fsm.read())
Note: See TracChangeset for help on using the changeset viewer.