Skip to content
  • Consumer/Industrial NAND Flash Storage Manufacturer in China.
  • Flash Quote
  • Flash Info
  • Help & Guides
  • My account
  • Newsletter
    Yunze Technical features

    Sign up for Newsletter

    Signup for our newsletter to get notified about sales and new products.



    • Consumer/Industrial NAND Flash Storage Manufacturer in China.
    SZYUNZESZYUNZE
    • Product
      • Solid State Drive
        • P-Series
        • M-Series
        • H-Series
        • F-Series
      • Memory Module
        • DDR3
        • DDR4
        • DDR5
        • Server
      • Memory Card
        • SD/SDHC Card
        • SDXC Card
        • Micro SD card
        • CF Card
      • USB Flash Drive
        • Encrypted USB Drive
        • General USB Drive
        • OTG USB Drive
        • Custom USB Drive
    • Solutions
    • About
    • Blog
    • Contact
    • Inquiry

    How can YUNZE help you?

    Our team is always happy to help and specialize with all types of packaging including SSD, DDR Ram, Memory card, and USB Flash drives..

    Trending Search the

    Orders & Services

    • What is the manufacturing process of Nand Storage Products?

    General Products Knowledge

    • Why Do I choose YUNZE?
    • Unlocking NAND Flash technology – SLC, MLC, TLC, and pSLC
    • The Difference between SLC, MLC, TLC, QLC, and PLC
    • Principles, Advantages, and Applications of pSLC Flash Memory
    • What are Fixed BOM & Flexible BOM and How do choose?
    • Demystifying NAND Flash Program Erase-Cycles (P/E Cycle)
    • What is IOPS (Input/Output Operations Per Second)?
    • Your Data’s Guardian: Power Loss Protection
    • Unlocking Physical Destruction: A Complete Guide
    • Unveiling SSD Variances: Military, Enterprise, Consumer
    • What certification that YUNZE support?
    • What is the SMART in SSD?
    • What is AES256 in SSD?
    • Understanding Over-Provisioning in Yunze SSD Technology
    • ECC in Storage: Technical Analysis on Error-Correcting Code

    Solid State Drive

    • What is an SSD?
    • What size of SSDs do you mainly supply?
    • What is the difference between an SSD and an HDD?
    • What is it that makes an SSD so much faster than an HDD?
    • What are the types of SSDs?
    • How do I stall an SSD?
    • Why do smaller-capacity SSDs tend to be slow than higher-capacity drives?
    • Understanding SSD Wear Leveling: A Comprehensive Guide
    • What is the ‘S.M.A.R.T’?
    • How to keep the OS and data in my original drives when I purchase a new SSD?
    • What is ‘M.2’?
    • What is a ‘Garbage Collection’?
    • What is the relationship between TRIM and Garbage Collection?
    • Why is my performance benchmark different from the values expected?
    • How do I check if my computer is compatible to use M.2 PCIe SSD?
    • Does SSD require defragmentation?
    • Does modifying or tampering with my SSD drive void the warranty?
    • Does NVMe M.2 PCIe SSD drive work with any M.2 slot?
    • How is the SSD useful life span calculated?
    • Can I get the Mass Production Tool (Software/Program) related to ordered items?
    • Why do IDE SSDs have file opening delays? How to solve it?
    • Why does the file name or content of an SSD become garbled after it is opened?
    • What are the determinants of SSD speed?
    • Does SSD performance decline as capacity usage nears its limit?
    • Will X-ray scanners at airport security affect SSDs?
    • Do SSDs need to be defragmented?
    • Which file system is best for SSDs?
    • Do solid-state drives get slower and slower?
    • Exploring Shadow Systems: Hard Drive Risks?
    • Avoid SSD Damage: The Impact of Forced Shutdown Explained
    • Boost SSD Performance: 6 Hidden Optimization Tips
    • How to Check if SSD is 4K Aligned?
    • Trouble with SSD? Time for Replacement!
    • Upgrade Your Laptop: Choosing the Right Hard Drive Interface

    Memory Module

    • What is RAM?
    • How to physically distinguish Memory Modules by Voltage?
    • How to visually distinguish DDR, DDR2, DDR3, and DDR4?
    • What do you supply for RAMs?
    • What is CL or CAS Latency?
    • What is the difference between RAM and SDRAM?
    • What are the Form Factors of RAM?
    • What does DDR mean?
    • What are RAM Jagons? (Speed/Latency/Timing/Mores?)
    • How do I check how much RAM I have?
    • Can my computer run out of memory?
    • What is the Video Memory or VRAM?
    • What the RAM is best for PC gaming?
    • DDR4 vs DDR5 Gaming Performance & Purchase Suggestion
    • Is Virtual Memory Necessary for Ample Memory?

    Memory Card

    • What is a memory card?
    • What memory cards do you supply?
    • What types of devices need memory cards?
    • What are the different types of memory cards available?
    • How safe is the data stored on memory cards?
    • How do I transfer data from my memory card to my computer?
    • Secure Digital (SD) Secure Digital High Capacity (SDHC) Secure Digital Extended Capacity (SDXC)
    • How much can I fit on a memory card?

    USB Flash Drive

    • What is the USB?
    • What’s the USB Working Principle?
    • What can you do with a USB Flash Drive?
    • Are USB drives waterproof?
    • What is the largest drive available today?
    • What are some other common names for flash drives?
    • What are the parts of a USB Flash Drive?
    • What does the controller do?
    • What is the difference between SLC and MLC memory?
    • What is the difference between USB 1.1, USB 2.0, and USB 3.0?
    • What sizes of USB drives are available?
    • What is the life expectancy of a USB drive?
    • What are the Read/Write speeds of a USB drive?
    • Is USB 3.0 backward compatible?
    • What are some advantages of USB drives?
    • What are some disadvantages of USB drives?
    • Which Operating Systems support USB Flash Drives?
    • Can I get a custom-shaped USB drive made somewhere?
    • What materials do I have to choose from?
    • How much does it cost to get a customized flash drive?
    • Can my USB Flash Drive get a virus?
    • Can I protect the contents of my USB drive from being deleted?
    • Differences between U disk formats FAT32, NTFS, and exFAT
    • UEFI vs. Legacy: Differences in USB Boot Disk Making
    • What’s the difference between USB 3.0 and USB 3.1?
    • Safely Accessing a Virus-Infected USB Drive

    Tech Tips

    • Master PC Troubleshooting: Decode BIOS Beep Codes
    • Troubleshoot Computer Boot Problems Easily at Home
    • When to Buy New or Used PC Components?
    • Expert Tips to Maintain Laptop Batteries
    • Beginner’s Guide: Common Myths in PC Building
    • Computer Reset vs. OS Reinstall: Key Differences
    • 20 Essential Signals for Chip-Level Computer Repair
    View Categories
    • Home
    • Support
    • General Products Knowledge
    • ECC in Storage: Technical Analysis on Error-Correcting Code

    ECC in Storage: Technical Analysis on Error-Correcting Code

    5 min read

    Like any electronic system, errors in the storage subsystem may occur due to design faults/defects in any component or electrical noise. These errors can be classified as hard errors (caused by design failures) or soft errors (caused by system noise or storage array bit flips caused by alpha particles, etc.).

    To handle these memory errors at runtime, the memory subsystem must have advanced RAS (Reliability, Availability, and Serviceability) functionality to prolong the normal operation of the entire system in the presence of memory errors. Without RAS functionality, the system is likely to crash due to memory errors. However, RAS functionality allows the system to continue running in the presence of correctable errors while recording detailed information about uncorrectable errors for future debugging.

    One of the most popular RAS schemes used in the memory subsystem is Error-Correcting Code (ECC) memory. By generating ECC SECDED (Single Error Correction Double Error Detection) codes for actual data and storing them in separate DRAM storage, the DDR controller can correct single-bit errors and detect double-bit errors from received data.

    The ECC code is generated by the controller based on the actual WR (WRITE) data. The memory stores both the WR data and ECC codes. During RD (READ) operations, the controller reads data and the corresponding ECC code from memory. The controller regenerates ECC codes from the received data and compares them with the received ECC codes.

    If a match exists, no errors occur. If a mismatch exists, the ECC SECDED mechanism allows the controller to correct any single-bit error and detect two-bit errors. This ECC scheme provides end-to-end protection against single-bit errors that can occur at any position within the memory subsystem between the controller and memory.

    Based on the actual storage of ECC codes, ECC schemes can be of two types: Chip-ECC or On-Die ECC. In Chip-ECC, ECC codes are stored in separate DRAM, while in On-Die ECC, codes are stored alongside the actual data in the same DRAM.

    Since DDR5 and LPDDR5 support data rates much higher than their predecessors, they support additional ECC features to enhance the robustness of the memory subsystem. On-die ECC in DDR5 and Link-ECC in LPDDR5 are two such RAS schemes that can further enhance the RAS functionality of the memory subsystem.

    01

    Sideband ECC #

    Sideband ECC schemes are typically implemented in applications using standard DDR memory (such as DDR4 and DDR5). As the name suggests, ECC codes are sent to memory as sideband data along with the actual data. For example, for a 64-bit data width, 8 additional bits are used for ECC storage. Therefore, DDR4 ECC DIMMs commonly used in today’s enterprise servers and data centers have a width of 72 bits. These DIMMs have two additional x4 DRAMs or one x8 DRAM for an extra 8-bit ECC storage. In sideband ECC, the controller writes and reads ECC codes along with the actual data. This ECC scheme does not require additional WR or RD overhead commands.

    02

    Cascaded ECC #

    Cascaded ECC schemes are typically implemented in applications using LPDDR memory. Due to the fixed channel width of LPDDR DRAM (16 bits for LPDDR5 / 4 / 4X channels), using sideband ECC with these memories becomes an expensive solution. For instance, for a 16-bit data width, an extra 16-bit LPDDR channel needs to be allocated for a 7-bit or 8-bit ECC code word in sideband ECC. Additionally, the 7-bit or 8-bit ECC code word only partially fills the 16-bit extra channel, leading to inefficient storage and adding extra load to the address and command channels, potentially limiting performance. Therefore, inline ECC becomes a better solution for LPDDR memory.

    In inline ECC, the controller doesn’t need to provide an additional channel for ECC storage; instead, ECC codes are stored in the same DRAM channel that stores the actual data. Thus, the total data width of the storage channel remains the same as the actual data width. In cascaded ECC, the 16-bit channel memory is partitioned to allocate a dedicated portion of memory for ECC code storage. When ECC codes aren’t sent along with WR and RD data, the controller generates separate overhead WR and RD commands for ECC codes. As a result, each WR and RD command for actual data is accompanied by an overhead WR and RD command for ECC data. High-performance controllers reduce the cost of such overhead ECC commands by packaging ECC data for several consecutive addresses in a single overhead ECC WR command. Similarly, the controller reads ECC data for several consecutive addresses from memory in a single overhead ECC RD command and applies the read ECC data to the actual data from consecutive addresses. Therefore, with such ECC overhead commands, the delay loss is minimized for more continuous traffic patterns.

    03

    On-Die ECC #

    With each generation of DDR, an increase in DRAM capacity is common. DRAM vendors often shrink their manufacturing technology to achieve higher speeds and better economies of scale. With higher capacities, speeds, and smaller manufacturing technology, the likelihood of single errors on the DRAM storage array increases. To further enhance memory channels, DDR5 DRAM has additional storage dedicated to ECC storage. On-die ECC is an advanced RAS feature that DDR5 systems use to achieve higher speeds. For every 128 bits of data, DDR5 DRAM has 8 additional bits reserved for ECC storage.

    Inside the DRAM, ECC is computed for WR data, and ECC codes are stored in the additional storage. During read operations, the DRAM reads both the actual data and the ECC codes, and it can correct any single-bit error on the read data bits. Thus, On-Die ECC provides further protection against single errors within the DDR5 memory array. As this scheme doesn’t offer protection against errors occurring on the DDR channel, combining On-Die ECC with Sideband ECC is used to enhance end-to-end RAS on the memory subsystem.

    04

    Link-ECC #

    The Link-ECC scheme is a feature of LPDDR5 that prevents single-bit errors on the LPDDR5 link or channel. The memory controller calculates ECC for WR data and sends ECC along with the data on specific bits. The DRAM generates ECC on received data, compares it with the received ECC data, and corrects all single errors. For read operations, the roles of the controller and DRAM are reversed. Note that Link-ECC cannot provide any protection against single errors on the memory array. However, combining On-Die ECC with Link-ECC provides end-to-end protection against single-bit errors, enhancing the robustness of the LPDDR5 channel.

    One widely used memory RAS feature is the Error-Correcting Code (ECC) scheme. Applications using standard DDR memory often implement Sideband ECC, while applications using LPDDR memory typically implement Embedded ECC. With higher speeds, DDR5 and LPDDR5 channels have significant signal integrity (SI) impacts. Now, even in the forms of On-Die ECC and Link-ECC, ECC is supported on DDR5 and LPDDR5 DRAMs (Innovative LPCAMM Solutions by Top Storage Manufacturers) respectively due to their increased speed. Synopsys’ DesignWare DDR5/4 and LPDDR5/4 IP solutions offer advanced RAS features, including all the ECC schemes highlighted in this article. (Author bio: Vadhiraj Sankaranarayanan is a Senior Technical Marketing Manager at Synopsys. Prior to joining Synopsys, Sankaranarayanan worked as an engineer at Dell, Rambus, Apple, and Kawasaki Microelectronics.)

    Recommended Reading:

    1. DDR4 vs DDR5 Gaming Performance & Purchase Suggestion
    2. Get Ahead with Micron’s 1β DDR5 Memory Tech
    3. ECC RAM vs Regular RAM: Key Features in Workstations
    4. NVIDIA H100 Trains Llama3 40.5B Parameters: 3-Hour Error
    5. How to Accurately Calculate Wafer Plating Efficiency?
    Your thoughts on this article?

    Share This Article :

    • Facebook
    • X
    • LinkedIn
    • Pinterest
    Still stuck? Click to see How we can help?

    How can we help?

    Understanding Over-Provisioning in Yunze SSD Technology

    Powered by BetterDocs

    Table of Contents
    • Sideband ECC
    • Cascaded ECC
    • On-Die ECC
    • Link-ECC
    About us

    Discover top-quality SSDs, DDR RAM, memory cards, and USB drives at YUNZE. Elevate your tech experience with our reliable and affordable storage solutions. Shop now for excellence in memory products.

    Products
    • Memory Card
      • CF card
      • Micro SD card
      • SDHC Card
      • SDXC Card
    • Memory Module
      • DDR3
      • DDR4
    • Solid State Drive
      • F-series
      • H-series
      • M-series
      • P-series
    • USB Flash Drive
      • Encrypted USB Flash Drive
      • General USB Flash Drive
    Quick Links
    • Help Center & FAQ
    • Warranty
    • Refund and Returns Policy
    • Data Request
    • Sitemap
    Signup for Newsletter


      Visa
      PayPal
      Stripe
      MasterCard
      Alipay
      Bank Transfer
      • Privacy Policy
      Copyright 2009-2025 © Yunze Technology Limited
      • Product
        • Solid State Drive
        • Memory Module
        • Memory Card
        • USB Flash Drive
      • Solutions
        • Auto Applications
        • Data Center
        • Industrial Automation
        • Infotainment & HMI
        • Internet of Things
        • Healthcare Application
        • Video Surveillance
        • Network Communication
      • About
      • Blog
      • Contact
      • Help & Guides
      • Inquiry
      Product
      Solution
      Guides
      Quote