1. A data storage system comprising: a memory circuit; and a control circuit to receive data bits provided for storage in memory cells of the memory circuit, wherein the control circuit compares each of the data bits provided for storage in a corresponding one of the memory cells having a stuck-at fault to a value of the stuck-at fault, wherein the control circuit inverts each of the data bits having a different value than the value of the stuck-at fault of the corresponding one of the memory cells to generate encoded data bits, and wherein the control circuit generates redundant bits that indicate the encoded data bits to invert to regenerate the data bits.