Changeset 924 for branches/reconfiguration/modules
- Timestamp:
- Jan 13, 2015, 9:42:55 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/modules/vci_cc_vcache_wrapper/caba/source/src/vci_cc_vcache_wrapper.cpp
r923 r924 2256 2256 m_drsp.rdata = 0; 2257 2257 2258 // watchdog timeout default value2259 bool dcache_watchdog_timeout = false;2258 // watchdog timeout signal 2259 bool dcache_watchdog_timeout = (r_dcache_wdt.read() == r_dcache_wdt_max.read()); 2260 2260 2261 2261 switch (r_dcache_fsm.read()) … … 4183 4183 // increment watchdog timer for black-hole detection 4184 4184 r_dcache_wdt = r_dcache_wdt.read() + 1; 4185 if (r_dcache_wdt.read() == r_dcache_wdt_max.read()) 4186 { 4187 dcache_watchdog_timeout = true; 4185 if (dcache_watchdog_timeout) 4186 { 4187 r_mmu_detr = MMU_WDT_TIMEOUT; 4188 m_drsp.valid = true; 4189 m_drsp.error = true; 4190 r_dcache_fsm = DCACHE_IDLE; 4188 4191 4189 4192 // TODO: send the TRDID in the coherence packet to detect an early … … 4203 4206 } 4204 4207 #endif 4208 break; 4205 4209 } 4206 4210 4207 4211 // wait the CC_TEST request to finish 4208 if (not r_dcache_to_cc_test_req.read() or dcache_watchdog_timeout) 4209 { 4210 if (dcache_watchdog_timeout) 4211 { 4212 r_mmu_detr = MMU_WDT_TIMEOUT; 4213 m_drsp.error = true; 4214 } 4212 if (not r_dcache_to_cc_test_req.read()) 4213 { 4215 4214 m_drsp.valid = true; 4216 4217 4215 r_dcache_fsm = DCACHE_IDLE; 4216 4218 4217 #if DEBUG_DCACHE 4219 4218 if (m_debug_dcache_fsm) … … 4223 4222 << std::hex 4224 4223 << " / DEST = " << r_dcache_to_cc_test_dest.read() 4225 << " / TIMEOUT = " << dcache_watchdog_timeout4226 4224 << std::dec << std::endl; 4227 4225 } … … 4415 4413 // increment watchdog timer for black-hole detection 4416 4414 r_dcache_wdt = r_dcache_wdt.read() + 1; 4417 if ( r_dcache_wdt.read() == r_dcache_wdt_max.read())4415 if (dcache_watchdog_timeout) 4418 4416 { 4419 4417 r_mmu_detr = MMU_WDT_TIMEOUT; … … 4659 4657 // increment watchdog timer for black-hole detection 4660 4658 r_dcache_wdt = r_dcache_wdt.read() + 1; 4661 if ( r_dcache_wdt.read() == r_dcache_wdt_max.read())4659 if (dcache_watchdog_timeout) 4662 4660 { 4663 4661 r_mmu_detr = MMU_WDT_TIMEOUT;
Note: See TracChangeset
for help on using the changeset viewer.