JAJSL83D August 2020 – September 2022 BQ79612-Q1 , BQ79614-Q1 , BQ79616-Q1
PRODUCTION DATA
ECC:
Register values for selected registers (0x0000 to 0x002F) are permanently stored in OTP. All registers also exist as volatile storage locations at the same addresses, referred to as shadow registers. The volatile registers are for reading, writing, and device control. For a list of registers included in the OTP, see Section 9.5.1.
During wakeup, the device first loads all shadow registers with hardware default values listed in Section 9.5.1. Then the device loads the registers conditionally with OTP contents from the results of the Error Check and Correct (ECC) evaluation of the OTP. The OTP is loaded to shadow registers in 64-bit blocks; each block has its own Error Check and Correct (ECC) value stored. The ECC detects a single-bit (Single-Error-Correction) or double-bit (Double-Error-Detection) changes in OTP stored data. The ECC is calculated for each block, individually.
Single-bit errors are corrected, double-bit errors are only detected, not corrected. A block with good ECC is loaded. A block with a single-bit error is corrected, and the FAULT_OTP[SEC_DET] bit is set to flag the corrected error event. Additionally, the DEBUG_OTP_SEC_BLK register is updated with the location of the error corrected block. This enables the host to keep track of potentially damaged memory. The block is loaded to shadow registers after the single-bit error correction. Because the evaluation is on a block-by-block basis, it is possible for multiple blocks to have a single-correctable error and still be loaded correctly. Multiple-bit errors can exist with full correction, as long as they are limited to a single error per block.
A block with a bad ECC comparison (two-bit errors in one block) is not loaded and the FAULT_OTP[DED_DET] bit is set to flag the failed bit-error event. Additionally, the DEBUG_OTP_DED_BLK register is updated with the block where the double error occurred. The hardware default value remains in the register. This allows some blocks to be loaded correctly (no fail or single-bit corrected value) and some blocks not to load. When the FAULT_OTP[SEC_DET] or FAULT_OTP[DED_DET] bit is set and the condition is not cleared by a device reset, the device is corrupted and must not be used.
The ECC engine uses the industry standard 72,64 SEC DEC ECC implementation. The OTP is protected by a (72, 64) Hamming code, providing single error correction, double error detection (SECDED). For each 64 bits of data stored in OTP, an additional 8 bits of parity information are stored. The parity bits are designated p0, p1, p2, p4, p8, p16, p32, and p64. Bit p0 covers the entire encoded 72-bit ECC block. The remaining seven parity bits are assigned according to the following rule:
Bit Position | 71 | 70 | 69 | 68 | 67 | 66 | 65 | 64 | 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | |
Encoded Bits | d63 | d62 | d61 | d60 | d59 | d58 | d57 | p64 | d56 | d55 | d54 | d53 | d52 | d51 | d50 | d49 | d48 | d47 | |
Parity Bit Coverage | p0 | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x |
p1 | x | x | x | x | x | x | x | x | x | ||||||||||
p2 | x | x | x | x | x | x | x | x | x | x | |||||||||
p4 | x | x | x | x | x | x | x | x | x | x | |||||||||
p8 | x | x | x | x | x | x | x | x | |||||||||||
p16 | x | x | x | x | x | x | x | x | x | x | |||||||||
p32 | x | x | x | x | x | x | x | x | x | x | |||||||||
p64 | x | x | x | x | x | x | x | x | |||||||||||
Bit Position | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | |
Encoded Bits | d46 | d45 | d44 | d43 | d42 | d41 | d40 | d39 | d38 | d37 | d36 | d35 | d34 | d33 | d32 | d31 | d30 | d29 | |
Parity Bit Coverage | p0 | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x |
p1 | x | x | x | x | x | x | x | x | x | ||||||||||
p2 | x | x | x | x | x | x | x | x | |||||||||||
p4 | x | x | x | x | x | x | x | x | x | x | |||||||||
p8 | x | x | x | x | x | x | x | x | |||||||||||
p16 | x | x | x | x | x | x | |||||||||||||
p32 | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | |
p64 | |||||||||||||||||||
Bit Position | 35 | 34 | 33 | 32 | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | |
Encoded Bits | d28 | d27 | d26 | p32 | d25 | d24 | d23 | d22 | d21 | d20 | d19 | d18 | d17 | d16 | d15 | d14 | d13 | d12 | |
Parity Bit Coverage | p0 | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x |
p1 | x | x | x | x | x | x | x | x | x | ||||||||||
p2 | x | x | x | x | x | x | x | x | x | x | |||||||||
p4 | x | x | x | x | x | x | x | x | |||||||||||
p8 | x | x | x | x | x | x | x | x | |||||||||||
p16 | x | x | x | x | x | x | x | x | x | x | x | x | x | x | |||||
p32 | x | x | x | x | |||||||||||||||
p64 | |||||||||||||||||||
Bit Position | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
Encoded Bits | d11 | p16 | d10 | d9 | d8 | d7 | d6 | d5 | d4 | p8 | d36 | d2 | d1 | p4 | d0 | p2 | p1 | p0 | |
Parity Bit Coverage | p0 | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x |
p1 | x | x | x | x | x | x | x | x | x | ||||||||||
p2 | x | x | x | x | x | x | x | x | |||||||||||
p4 | x | x | x | x | x | x | x | x | |||||||||||
p8 | x | x | x | x | x | x | x | x | |||||||||||
p16 | x | x | |||||||||||||||||
p32 | |||||||||||||||||||
p64 |
ENCODER | |||
DATA IN | Encoded Bits | DATA OUT | Bit Positions |
OTP_ECC_DATAIN 1 | d0 to d7 | OTP_ECC_DATAOUT 1 | 0 to 7 |
OTP_ECC_DATAIN 2 | d8 to d15 | OTP_ECC_ DATAOUT 2 | 8 to 15 |
OTP_ECC_DATAIN 3 | d16 to d23 | OTP_ECC_ DATAOUT 3 | 16 to 23 |
OTP_ECC_DATAIN 4 | d24 to d31 | OTP_ECC_ DATAOUT 4 | 24 to 31 |
OTP_ECC_DATAIN 5 | d32 to d39 | OTP_ECC_ DATAOUT 5 | 32 to 39 |
OTP_ECC_DATAIN 6 | d40 to d47 | OTP_ECC_ DATAOUT 6 | 40 to 47 |
OTP_ECC_DATAIN 7 | d48 to d55 | OTP_ECC_ DATAOUT 7 | 48 to 55 |
OTP_ECC_DATAIN 8 | d56 to d63 | OTP_ECC_ DATAOUT 8 | 56 to 63 |
OTP_ECC_ DATAOUT 9 | 64 to 71 | ||
DECODER | |||
DATA IN | Bit Positions | DATA IN | Encoded Bits |
OTP_ECC_DATAIN 1 | 0 to 7 | OTP_ECC_DATAOUT 1 | d0 to d7 |
OTP_ECC_DATAIN 2 | 8 to 15 | OTP_ECC_ DATAOUT 2 | d8 to d15 |
OTP_ECC_DATAIN 3 | 16 to 23 | OTP_ECC_ DATAOUT 3 | d16 to d23 |
OTP_ECC_DATAIN 4 | 24 to 31 | OTP_ECC_ DATAOUT 4 | d24 to d31 |
OTP_ECC_DATAIN 5 | 32 to 39 | OTP_ECC_ DATAOUT 5 | d32 to d39 |
OTP_ECC_DATAIN 6 | 40 to 47 | OTP_ECC_ DATAOUT 6 | d40 to d47 |
OTP_ECC_DATAIN 7 | 48 to 55 | OTP_ECC_ DATAOUT 7 | d48 to d55 |
OTP_ECC_DATAIN 8 | 56 to 63 | OTP_ECC_ DATAOUT 8 | d56 to d63 |
OTP_ECC_DATAIN 9 | 64 to 71 |
ECC Diagnostic Test: The device provides a diagnostic tool to test the ECC function. There are two modes that are available to run the diagnostic. The first, auto mode (OTP_ECC_TEST[MANUAL_AUTO] = 0), uses internal data to run the tests. In auto mode, the OTP_ECC_TEST[DED_SEC] bit selects the type of test that is to be performed and the OTP_ECC_TEST[ENC_DEC] bit determines if the encoder or decoder function is to be tested. The result of the ECC test is provided in the OTP_ECC_DATAOUT* registers within 1μs delay. The test steps and expected results from each test are shown below.
Automatic Decoding steps:
Automatic Encoding steps:
[DED_SEC] | [ENC_DEC] | [SEC_DET] | [DED_DET] | OTP_DATAOUT* |
---|---|---|---|---|
0 (SEC test) | 0 (Decoder test) | 1 | 0 | 0x18C3 FF8A 68A9 8069 |
0 (SEC test) | 1 (Encoder test) | N/A | N/A | 0xCD 3968 C140 2EA5 ED6D |
1 (DED test) | 0 (Decoder test) | 0 | 1 | 0x0000 0000 0000 0000 |
1 (DED test) | 1 (Encoder test) | N/A | N/A | 0xCD 3968 C140 2EA5 ED6D |