Zane Shelley | 88eb202 | 2022-01-20 14:25:14 -0600 | [diff] [blame^] | 1 | #include "simulator.hpp" |
| 2 | |
| 3 | START_TEST_CASE(tod_fault) |
| 4 | |
| 5 | CHIP(proc0, P10_20) |
| 6 | |
| 7 | START_ITERATION |
| 8 | |
| 9 | REG_SCOM(proc0, 0x570F001C, 0x4000000000000000) // GLOBAL_CS_FIR[1] |
| 10 | REG_SCOM(proc0, 0x570F001B, 0x4000000000000000) // GLOBAL_RE_FIR[1] |
| 11 | REG_SCOM(proc0, 0x01040000, 0x0800000000000000) // TP_CHIPLET_CS_FIR[4] |
| 12 | REG_SCOM(proc0, 0x01040001, 0x0800000000000000) // TP_CHIPLET_RE_FIR[4] |
| 13 | REG_SCOM(proc0, 0x01040100, 0x0000007000000000) // TP_LOCAL_FIR[25:27] |
| 14 | REG_SCOM(proc0, 0x01040103, 0x0000001000000000) // TP_LOCAL_FIR_MASK |
| 15 | REG_SCOM(proc0, 0x01040107, 0x0000002000000000) // TP_LOCAL_FIR_ACT1 |
| 16 | |
| 17 | REG_SCOM(proc0, 0x00040030, 0xf000000000000000) // TOD_ERROR |
| 18 | REG_SCOM(proc0, 0x00040032, 0xc000000000000000) // TOD_ERROR_MASK |
| 19 | REG_SCOM(proc0, 0x00040033, 0xa000000000000000) // TOD_ERROR_ROUTING |
| 20 | |
| 21 | EXP_SIG(proc0, 0x7d9b, 0, 3, CHECKSTOP) |
| 22 | EXP_SIG(proc0, 0xdf2a, 0, 26, RECOVERABLE) |
| 23 | |
| 24 | END_ITERATION |
| 25 | |
| 26 | END_TEST_CASE |