IC design ram002_ECC verification principle basics

tags: IC Design  ASIC  RAM  ECC

1. ECC verification basis

Ram's ECC verification is usually implemented based on the principle of Hamming code encoding. Using Hamming code encoding requires additional bits to store the check bits. ECC verification can only correct 1 bit, and cannot correct 2 bit or above data errors. Some multi-bit bit errors can be found.

2. Principle of RAM ECC verification implementation

As shown in the figure, the 1r1w ram is an example. cfg_32x119_ram_wrapper is a verilog code that directly calls the hierarchical ram_wrapper, representing a ram with a depth of 32 and a data bit width of 119 bits. ram_asic.v is the real ram IP. Among them, the 119 bit data bit width is tight. ECC calculation requires a 7 bit check bit, so the physical IP requires a minimum of 126 bit ram IP. Usually, the memory generation tool will have more clock frequency, depth bit width and other factors to segment the ram, so in this example, two 32x64 ram ips are used.

Before data_in is written to ram_asic module, a 7-bit ecc check bit will be generated through the ecc_gen module, and ram_asic will be written together with the data, where data_in[63:0] is written to the first ram_asic, {2’b0, ecc_in[6:0], and data_in[118:64]} is written to the second ram_asic. The data read from ram_asic will be checked by the ecc_out module, and the ecc_err_out alarm after verification is output.

 

Intelligent Recommendation

Basics of Digital Circuits-Gate Circuits of IC Design (Diodes, CMOS)

1: Diode gate circuit 1.1: AND gate   When AB is 1, Y is 1; Any one of AB is not 1, the corresponding diode is turned on, and Y is 0. 1.2: OR gate   When AB is 0, Y is 0; Any one of AB is no...

Simple introduction to IC verification

Verification process management   The following figure is a relatively complete chip end-to-end verification flow chart. Most companies' verification processes are similar, and the difference lie...

UART module for IC verification

UART module for IC verification 1. UART module 1.1 UART working principle 1.2 UART module initialization process 2. UART flow control signal 3.Modem 3.1 Computer and modem connection 3.2 Computer and ...

IC verification classification and role

reference Digital IC front-end design process and tool [RTL design + function simulation] [comprehensive] [DFT] [form verification] [STA static timing analysis】 Distinguishing front and back ends: Bas...

IC verification interview

Article catalog 1. Original code, inverse code and complement? 2. Gray code? advantage? Gray code and binary conversion? 3. PMOS and NMOS? Enhanced and depleted? PNP and NPN? 4. Try the inverter with ...

More Recommendation

IC verification assertion Interview

Article catalog 1. How assertion two sequence beginning at the same time, at the same time end? 2. The assertion indicate how the rising edge of signal? 3. assertions $ firstmatch What does this mean?...

Overview of IC Digital Verification

Verification Overview 1. Experience that for verification engineers, finding bugs is the first priority, and the earlier they are discovered, the better. 2. What does a typical verification platform i...

IC Verification—MCDF Structure

IC Verification—MCDF Structure—Zhihu Table of contents Introduction to MCDF Channel module (_Channel) Register module (_Registers) Arbitration Module (_Arbiter) Plastic Shader Module (_For...

[Digital IC Verification Quick Getting Started] 6. Questasim Quickly use it (take the design and verification as an example)

Guide: The author is fortunate to be in the field of electronic information fields in China "University of Electronic Science and Technology"During the postgraduate period, I came into conta...

Digital IC basics

This blog will add new knowledge points when it will (1) The difference between block assignment and non-blocking assignment Block assignment: The next statement is executed before the next statement ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top