Skip to content
DenseChip
Learn
PracticeCode labInterview

DenseChip

Navigate

Menu

LearnPracticeCode labInterview

Tools

All toolsSV editorCode repoResume
DenseChip

Practice, courses, and chip-design tools in one focused workspace.

LearnPracticeCode labInterviewToolsLearning paths

© 2026 DenseChip

AboutContactPrivacyTerms
Skip to lesson

Course contents

  • RTL Foundations36
  • Combinational Design25
  • Sequential Design27
  • FSM & Control27
  • Timing & Clocking39
  • Reset & CDC34
  • Memory & Buses57
    • SRAM and ROM
    • Register Files
    • Valid/Ready Handshake
    • AXI-Lite
    • AXI-Stream
    • Bus Integration
    • Synchronous FIFO
    • Register-Map and CSR RTL
    • Memory Reliability
      • Failure Model and Protection Choice
      • Parity Datapath
      • SECDED Encode and Syndrome
      • Correction and Reporting
      • Partial Writes and Scrubbing
      • Initialization, Injection, and Signoff
      • SECDED on a 32-bit Word, Worked
    • Peripheral RTL Integration
    • Full AXI4: RTL Roadmap
  • Advanced RTL28
  • Senior & Interview76
  • Glossary and Notation
Loading lesson

‹Memory Reliability
  1. Topics
  2. RTL Design
  3. Memory & Buses
  4. Memory Reliability
  5. Failure Model and Protection Choice

Part 7 · Memory & Buses · Intermediate

Failure Model and Protection Choice

Map transient and permanent faults to parity, ECC, duplication, retry, and repair mechanisms.

Why this matters

Choosing SECDED for every memory costs area and a cycle of latency, and choosing nothing leaves faults to accumulate. The right code follows from the failure model and from what the system must do after an error.

After this lesson you can: separate transient, permanent and latent faults, and pick parity, SECDED or another scheme from the availability requirement.

Mechanism

Detects

Corrects

Typical use

Parity

Odd number of flipped bits

No

Small control RAM with retry/fail-stop

SECDED

All 1- and 2-bit errors

One bit

Caches, SRAMs, safety state

Duplication + compare

Mismatch between copies

With trusted third source/reload

Small critical state

TMR

One bad replica

One replica

Very high availability control

CRC

Burst errors over blocks/links

Usually retry

Packets and stored blocks

Decision flow. Blocks or link packets lead to CRC with retry. For memory words, if correction is not required, parity. If correction is required, SECDED, unless the state is small and critical enough to need duplication with compare or TMR.
Choosing a protection scheme from the requirement: what is protected, whether correction is required, and whether a whole copy may fail

Read the flow from the top and stop at the first box that meets the requirement. Each step down costs more storage or logic.

  • Parity is enough when detection plus retry, reload or fail-stop meets the requirement.

  • SECDED is the step when single-bit errors must be corrected without software help.

  • Copies (duplication or TMR) are for small state where a whole bad replica must be survived.

The control SRAM first uses parity when reload is available, then adopts SECDED when the availability requirement changes to transparent single-bit correction. The storage and latency cost is justified by that requirement, not by a blanket preference for stronger codes.

  • Transient soft errors disappear after rewrite.

  • Permanent faults recur at the same cell and need repair, remap, or retirement.

  • Latent faults accumulate unless memory is read or scrubbed.

  • The safety requirement sets diagnostic coverage and reaction time; area alone does not choose protection.

Check yourself When is parity sufficient?

When detection plus retry, reload, or fail-stop meets the requirement and correction is unnecessary. If availability requires transparent single-bit correction, use SECDED or stronger protection.

Remember

  • Parity detects. SECDED corrects single bits and detects double bits.

  • A transient error clears on rewrite. A permanent fault recurs at the same cell and needs repair or retirement.

  • Latent faults accumulate until the word is read or scrubbed.

Rule of thumb: pick the weakest protection that meets the requirement on what happens after an error.

Keep going

  • Practice: ECC memory RTL design

  • Interview: run a mock interview on this topic

Related topics

  • Parity datapath

Previous

232 / 350

Next: Parity Datapath

Up next

Up nextParity Datapath

Sign in to save progress

Practice this lessonReport an error

See also

  • SECDED Encode and Syndrome
  • Correction and Reporting
  • Partial Writes and Scrubbing