主权项 |
1. A method of injecting errors into a codeword, comprising:
generating, by a bus master, a codeword, wherein the codeword includes data bits and one or more checkbits; injecting, by the bus master, one or more bit errors into the codeword by modifying at least one of the one or more checkbits; determining, by the bus master, whether the one or more checkbits are affected by the one or more bit errors that are to be injected into the codeword; and inverting, by the bus master, the one or more checkbits that are affected by only one of the one or more bit errors, wherein the bus master does not invert the one or more checkbits that are affected by only two of the one or more bit errors. |