第49卷第10期
2026年10月
合肥工业大学学报
JOURNAL OF HEFEI UNIVERSITY OF TECHNOLOGY (NATURAL SCIENCE)
Vol.49 No.10
Oct. 2026

DOI:10.3969/j.issn.1003-5060.2026.10.003

一种应用于 DRAM 的纠错码

王强,许高斌

(合肥工业大学微电子学院,安徽合肥230601)

摘要

基于线性分组码的编译码原理及动态随机存取存储器(dynamic random access memory,DRAM)的内部结构特点,文章提出一种单误差校正(single error correction,SEC)码,并根据此纠错码的编译码原理搭建错误校正码(error correction code,ECC)电路。与目前市面上存储器常用的SEC码即汉明码相比,该SEC码的校正子译码可以并行进行,译码模块所需资源更少。将由该SEC码搭建的ECC电路在使用SystemVerilog搭建的验证平台上进行验证,结果表明,该电路既可对128 bit数据进行单比特纠错,又能避免对同一字节内出现的两比特错误进行误纠。

关键词

线性分组码;动态随机存取存储器(DRAM);单误差校正(SEC);错误校正码(ECC);汉明码;SystemVerilog验证平台

中图分类号:TN791

文献标志码:A

文章编号:1003-5060(2026)10-1312-08

An error correction code applied to DRAM

WANG Qiang, XU Gaobin

(School of Microelectronics, Hefei University of Technology, Hefei 230601, China)

Abstract

Based on the encoding and decoding principle of linear block codes and the internal structure of dynamic random access memory (DRAM), a single error correction (SEC) code is proposed. The error correction code (ECC) circuit is constructed according to the encoding and decoding principle of this SEC code. Compared with Hamming code, the SEC code commonly used in current commercial memory devices, the syndrome decoding of the SEC code can be carried out in parallel, and the decoding module needs fewer resources. The ECC circuit constructed by the SEC code is verified on the verification platform built by SystemVerilog. The results show that the circuit can correct the single-bit errors in 128-bit data while avoiding the miscorrection of the two-bit errors occurring within the same byte.

Keywords

linear block code; dynamic random access memory (DRAM); single error correction (SEC); error correction code (ECC); Hamming code; System Verilog verification platform

收稿日期:2024-04-28

修回日期:2024-06-20

基金项目:安徽省科技计划资助项目(PA2022AKGY0012)