A computer program for generating and inserting bit errors in data words that have been encoded in a forward error correction (FEC) system, the computer program being embodied on a computer-readable medium, the program comprising:
- a first code segment for generating bit sequences;
- a second code segment for FEC encoding the bit sequences to produce encoded N-bit sequences;
- a third code segment for generating bit errors and inserting the bit errors into the encoded N-bit sequences to produce encoded N-bit error sequences containing a number K of bit errors;
- a fourth code segment for FEC decoding the encoded bit error sequences and correcting errors in the decoded sequences;
- and
- a fifth code segment for analyzing the decoded sequences to determine whether bit errors exist in the decoded sequences that were not corrected,
- wherein the number K of bit errors is designed to maximize power consumption related to the FEC decoding, and
- wherein a determination is made during the analysis that one or more bit errors were not corrected by the fourth code segment causes the fifth code segment to detect a faulty design in a power distribution network.