Coding for Memory with Stuck-at Defects

Yongjune Kim, B. V. K. Vijaya KumarICC 2013

Abstract

As non-volatile memory technologies like Flash and Phase-Change Memory (PCM) scale down, they become increasingly susceptible to permanent "stuck-at" defects. This paper introduces a practical "two-step" encoding scheme for Partitioned Linear Block Codes (PLBC) to mitigate these hard errors. By leveraging linear algebra to replace exponential-complexity optimization, the proposed method achieves high reliability and provides tight analytical bounds for failure probabilities, which is critical for storage systems requiring extremely low error rates.

Introduction: The Challenge of Hard Errors

Scaling down memory cells introduces two primary reliability threats: intermittent soft errors (noise) and permanent hard errors (stuck-at defects). A stuck-at defect occurs when a cell is physically fixed at a value of 0 or 1, regardless of the data written to it.

Partitioned Linear Block Codes (PLBC) are a common approach to handling these defects. The encoder's task is to "mask" defects by selecting a codeword that matches the stuck-at values at defective locations. However, finding an optimal codeword is an NP-hard optimization problem once the number of defects exceeds the code's minimum distance ($d_0$). Existing solutions often struggle with high computational complexity or lack the rigorous mathematical guarantees needed for high-reliability storage environments.

The Two-Step Encoding Scheme

The authors propose a Two-Step Encoding Scheme designed to balance computational efficiency with error-masking performance:

  1. Step 1: Gaussian Elimination Phase: The encoder first attempts to mask all current defects by solving a system of linear equations using Gaussian Elimination. Even when the number of defects $u$ exceeds the minimum distance $d_0$, a solution often exists if the equations are linearly independent.
  2. Step 2: Safety Net Phase: If Step 1 fails due to linear dependence, the encoder reverts to a guaranteed fallback strategy: masking a specific subset of $(d_0 - 1)$ defects. For Partitioned BCH (PBCH) codes, the authors prioritize masking higher-degree elements to minimize error propagation during the subsequent decoding process.

This approach reduces computational complexity from exponential to $O(u^3)$, making it feasible for real-time hardware implementation in memory controllers.

Performance and Analytical Bounds

The effectiveness of the two-step scheme is evaluated using numerical simulations of PBCH codes under a stochastic channel model for binary memories with defects and random noise.

Comparison of decoding failure probabilities for different schemes across varying code rates. The two-step PBCH scheme significantly outperforms standard and one-step methods.

A key contribution of this work is the derivation of a tight analytical upper bound for the probability of masking failure based on the code's weight distribution. In the context of data storage, where target Bit Error Rates (BER) can be as low as $10^{-15}$, traditional simulations are impractical. The analytical bound provides a reliable mathematical tool to predict performance at these extremes.

Simulated masking failure probability versus the derived analytical upper bound, demonstrating the tightness of the theoretical results.

The results demonstrate that the success of masking is fundamentally tied to the rank of the sub-matrix formed by defect locations. Failure occurs only when defect locations align with the support of a codeword in the dual code.

Conclusion and Future Directions

The proposed two-step encoding scheme offers a significant performance boost over traditional erasure decoding and one-step masking schemes. While the current analysis focuses primarily on binary cases and assumes perfect knowledge of defect locations, the tight analytical bounds established here provide a foundation for future code optimization. Subsequent research may focus on designing codes with weight distributions specifically tailored to minimize these failure bounds or extending the model to handle imperfect defect sensing.

Summary updated

BibTeX
@inproceedings{kim2013coding,
  author = {Yongjune Kim and B. V. K. Vijaya Kumar},
  title = {{Coding for Memory with Stuck-at Defects}},
  booktitle = {ICC},
  year = {2013},
  doi = {10.1109/icc.2013.6655249},
}
Figure