- Timestamp:
- Jun 12, 2015, 3:22:12 PM (10 years ago)
- Location:
- branches/reconfiguration/modules/vci_xicu/caba/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/modules/vci_xicu/caba/source/include/vci_xicu.h
r881 r999 62 62 uint32_t *r_cfg_reg; 63 63 64 size_t m_faulty_wti_reg; 65 int m_faulty_wti_msk; 64 66 uint32_t m_clock_cycles; 65 67 … … 101 103 size_t cfg_count = 0 ); 102 104 105 inline void set_faulty_wti(const int index, const int mask) 106 { 107 m_faulty_wti_reg = index; 108 m_faulty_wti_msk = mask; 109 } 110 103 111 soclib_static_assert(vci_param::B == 4); 104 112 }; -
branches/reconfiguration/modules/vci_xicu/caba/source/src/vci_xicu.cpp
r990 r999 72 72 case XICU_WTI_REG: 73 73 CHECK_BOUNDS(wti); 74 if (idx == m_faulty_wti_reg) { 75 data &= m_faulty_wti_msk; 76 } 77 r_wti_pending |= 1<<idx; 74 78 r_wti_reg[idx] = data; 75 r_wti_pending |= 1<<idx;76 79 77 80 #if SOCLIB_MODULE_DEBUG … … 510 513 r_pti_val(new uint32_t[pti_count]), 511 514 r_wti_reg(new uint32_t[wti_count]), 515 m_faulty_wti_reg(0xFFFFFFFF), 516 m_faulty_wti_msk(0x00000000), 512 517 m_clock_cycles(0), 513 518 p_clk("clk"),
Note: See TracChangeset
for help on using the changeset viewer.