TW202038248A - Memory with error correction circuit - Google Patents

Memory with error correction circuit Download PDF

Info

Publication number
TW202038248A
TW202038248A TW108111661A TW108111661A TW202038248A TW 202038248 A TW202038248 A TW 202038248A TW 108111661 A TW108111661 A TW 108111661A TW 108111661 A TW108111661 A TW 108111661A TW 202038248 A TW202038248 A TW 202038248A
Authority
TW
Taiwan
Prior art keywords
error correction
memory cell
data
memory
bit
Prior art date
Application number
TW108111661A
Other languages
Chinese (zh)
Other versions
TWI689935B (en
Inventor
門脇卓也
Original Assignee
華邦電子股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 華邦電子股份有限公司 filed Critical 華邦電子股份有限公司
Priority to TW108111661A priority Critical patent/TWI689935B/en
Application granted granted Critical
Publication of TWI689935B publication Critical patent/TWI689935B/en
Publication of TW202038248A publication Critical patent/TW202038248A/en

Links

Images

Abstract

A memory with an error correction circuit, including: a first error correction circuit performs error correction on the first portion of data to generate a first partial write data or a first partial read data; a second error correction circuit performs error correction on the second portion of data to generate a second portion of the data or a second portion of the data; in the write mode, the plurality of sensing drive circuits respectively receives a plurality of first partial write bytes of the first partial write data, and a plurality of second partial write bytes of the second partial write data, and each sensing drive circuit combines the corresponding first partial write byte and the second partial write byte to write in a corresponding memory cell row; in the read mode, the plurality of sensing driving circuits respectively sense the stored data of the plurality of memory cells to generate the plurality of first partial read data and the second partial read data.

Description

具糾錯電路的記憶體Memory with error correction circuit

本發明是有關於一種記憶體電路,且特別是有關於一種具糾錯電路的記憶體。The invention relates to a memory circuit, and more particularly to a memory with an error correction circuit.

糾錯編碼(Error-correcting code, ECC)電路被集成在動態隨機存取記憶體(Dynamic Random Access Memory,DRAM)晶片上。由於具有兩位元錯誤糾錯能力的糾錯編碼電路需要較大的線路面積以及較長的糾錯時間,因此大多是使用具單一位元錯誤糾錯能力的糾錯編碼電路。Error-correcting code (ECC) circuits are integrated on a dynamic random access memory (Dynamic Random Access Memory, DRAM) chip. Since the error correction coding circuit with the two-bit error correction capability requires a larger circuit area and a longer error correction time, most of the error correction coding circuits with a single-bit error correction capability are used.

請參閱圖1,記憶體100包含第一糾錯電路ECC1、第二糾錯電路ECC2、多個記憶胞行MCC以及多個感測驅動電路SD。其中,第一糾錯電路ECC1與第二糾錯電路ECC2皆具有單一位元錯誤糾錯能力。各記憶胞行MCC包含多個相互串聯的記憶胞區塊MC,各記憶胞區塊MC又包含多個記憶胞(圖未示)。多個感測驅動電路SD分別耦接多個記憶胞行MCC,並且各感測驅動電路SD耦接至第一糾錯電路ECC1或是第二糾錯電路ECC2。以圖1為例,位於記憶體100的左半邊的多個感側驅動電路SD耦接至第一糾錯電路ECC1,位於記憶體100的右半邊的多個感測驅動電路SD耦接至第二糾錯電路ECC2。Please refer to FIG. 1, the memory 100 includes a first error correction circuit ECC1, a second error correction circuit ECC2, a plurality of memory cell rows MCC, and a plurality of sensing driving circuits SD. Among them, the first error correction circuit ECC1 and the second error correction circuit ECC2 both have a single-bit error correction capability. Each memory cell row MCC includes multiple memory cell blocks MC connected in series, and each memory cell block MC includes multiple memory cells (not shown). The plurality of sensing driving circuits SD are respectively coupled to the plurality of memory cell rows MCC, and each sensing driving circuit SD is coupled to the first error correction circuit ECC1 or the second error correction circuit ECC2. Taking FIG. 1 as an example, a plurality of sensing driving circuits SD located on the left half of the memory 100 are coupled to the first error correction circuit ECC1, and a plurality of sensing driving circuits SD located on the right half of the memory 100 are coupled to the first Two error correction circuit ECC2.

當相鄰的記憶胞一起發生故障時,發生故障的相鄰記憶胞耦接至同一個糾錯電路,會使得糾錯電路(例如第一糾錯電路110)無法正確地糾正多個位元的錯誤。為了避免前述問題,在習知技術中,本領域之技術人員常採用備用的糾錯電路的記憶體,而導致線路面積變大以及製造成本的增加。When adjacent memory cells fail together, the adjacent memory cells that have failed are coupled to the same error correction circuit, which will make the error correction circuit (for example, the first error correction circuit 110) unable to correctly correct multiple bits. error. In order to avoid the aforementioned problems, in the prior art, those skilled in the art often use spare memory for error correction circuits, which leads to larger circuit area and increased manufacturing costs.

針對上述問題,本發明提出一種具糾錯電路的記憶體,來因應因相鄰記憶胞發生故障而導致的兩位元錯誤的狀況。In view of the above-mentioned problems, the present invention proposes a memory with an error correction circuit to cope with the two-bit error condition caused by the failure of adjacent memory cells.

本發明提供一種具糾錯電路的記憶體,包括第一糾錯電路、第二糾錯電路、多個記憶胞行以及多個感測驅動電路。其中,第一糾錯電路針對第一部分資料執行糾錯,以產生一第一部分寫入資料或一第一部分讀出資料。第二糾錯電路針對第二部分資料執行糾錯,以產生第二部分寫入資料或第二部分讀出資料。多個感測驅動電路分別耦接多個記憶胞行,並耦接第一糾錯電路以及第二糾錯電路。在寫入模式中,多個感測驅動電路分別接收第一部分寫入資料的多個第一部分寫入位元,以及分別接收第二部分寫入資料的多個第二部分寫入位元。各感測驅動電路並使對應的第一部分寫入位元以及第二部分寫入位元結合以寫入對應的記憶胞行。在讀出模式中,多個感測驅動電路分別感測多個記憶胞行的儲存資料,以產生前述多個第一部分讀出資料以及前述第二部分讀出資料。The invention provides a memory with an error correction circuit, which includes a first error correction circuit, a second error correction circuit, a plurality of memory cell rows and a plurality of sensing driving circuits. Wherein, the first error correction circuit performs error correction for the first part of data to generate a first part of written data or a first part of read data. The second error correction circuit performs error correction on the second part of the data to generate the second part of the written data or the second part of the read data. The plurality of sensing driving circuits are respectively coupled to the plurality of memory cell rows, and are coupled to the first error correction circuit and the second error correction circuit. In the writing mode, the plurality of sensing driving circuits respectively receive a plurality of first partial writing bits of the first partial writing data, and respectively receiving a plurality of second partial writing bits of the second partial writing data. Each sensing and driving circuit combines the corresponding first part of the write bit and the second part of the write bit to write the corresponding memory cell row. In the read mode, a plurality of sensing drive circuits respectively sense the stored data of a plurality of memory cell rows to generate the plurality of first partial read data and the aforementioned second partial read data.

基於上述,相鄰的兩個記憶胞會分別耦接至第一糾錯電路與第二糾錯電路。在前述相鄰的兩個記憶胞故障而導致讀出錯誤時,對第一糾錯電路而言只會存在一個讀出錯誤,同樣地,對於第二糾錯電路而言,也只會存在一個讀出錯誤,而使得第一糾錯電路與第二糾錯電路得以應對單一位元錯誤並進行糾錯。Based on the above, two adjacent memory cells are respectively coupled to the first error correction circuit and the second error correction circuit. When the aforementioned two adjacent memory cells fail to cause a read error, there will only be one read error for the first error correction circuit, and similarly, for the second error correction circuit, there will only be one read error. The error is read, so that the first error correction circuit and the second error correction circuit can deal with single-bit errors and perform error correction.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail in conjunction with the accompanying drawings.

請參閱圖2,記憶體200包括第一糾錯電路ECC1、第二糾錯電路ECC2、多個感測驅動電路SD、位址解碼器ADD以及記憶胞陣列,其中記憶胞陣列由多個記憶胞行MCC與多個記憶胞列MCR構成,各記憶胞行MCC包含串聯的多個記憶胞區塊MC,各記憶胞區塊MC包含多個記憶胞M(如圖3所示)。多個記憶胞行MCC經由位址解碼器ADD分別耦接多個感測驅動電路SD,各感測驅動電路SD同時耦接第一糾錯電路ECC1與第二糾錯電路ECC2。其中,第一糾錯電路ECC1與第二糾錯電路ECC2可以針對單一位元錯誤進行糾正。位址解碼器ADD可包含行解碼器(圖未示)以及列解碼器(圖未示)。Referring to FIG. 2, the memory 200 includes a first error correction circuit ECC1, a second error correction circuit ECC2, a plurality of sensing drive circuits SD, an address decoder ADD, and a memory cell array, wherein the memory cell array consists of a plurality of memory cells The row MCC is composed of a plurality of memory cell rows MCR. Each memory cell row MCC includes a plurality of memory cell blocks MC connected in series, and each memory cell block MC includes a plurality of memory cells M (as shown in FIG. 3). A plurality of memory cell rows MCC are respectively coupled to a plurality of sensing driving circuits SD via an address decoder ADD, and each sensing driving circuit SD is simultaneously coupled to the first error correction circuit ECC1 and the second error correction circuit ECC2. Among them, the first error correction circuit ECC1 and the second error correction circuit ECC2 can correct single-bit errors. The address decoder ADD may include a row decoder (not shown) and a column decoder (not shown).

記憶體200可容許特定大小的資料D被讀出或寫入。在記憶體的寫入模式中,資料D被拆分為第一部分資料D1以及第二部分資料D2。第一糾錯電路ECC1依據第一部分資料D1產生包含第一糾錯碼的第一部分寫入資料ECCD1;類似地,第二糾錯電路ECC2依據第二部分資料D2產生包含第二糾錯碼的第二部分寫入資料ECCD2。在本實施例中,資料D的大小例如可以為256位元,第一部分資料D1及第二部分資料D2的大小為128位元,而第一部分寫入資料ECCD1及第二部分寫入資料ECCD2的大小為136位元,其中包含8位元的第一糾錯碼及第二糾錯碼。The memory 200 can allow data D of a specific size to be read or written. In the writing mode of the memory, the data D is split into a first part of data D1 and a second part of data D2. The first error correction circuit ECC1 generates the first part of the written data ECCD1 including the first error correction code according to the first part of the data D1; similarly, the second error correction circuit ECC2 generates the first part of the write data including the second error correction code according to the second part of the data D2. The second part is written into ECCD2. In this embodiment, the size of the data D can be, for example, 256 bits, the size of the first part of the data D1 and the second part of the data D2 is 128 bits, and the first part of the written data ECCD1 and the second part of the written data ECCD2 The size is 136 bits, including 8-bit first error correction code and second error correction code.

接著,第一部分寫入資料ECCD1可被分成多個第一部分寫入位元DB1(大小例如4位元),第二部分寫入資料ECCD2則可被分成多個第二部分寫入位元DB2。各感測驅動電路SD同時接收第一部分寫入位元DB1與第二部分寫入位元DB2,並將第一部分寫入位元DB1與第二部分寫入位元DB2結合後,經由位址解碼器ADD進行位址指定,寫入對應的記憶胞行MCC的指定位址。Then, the first part of writing data ECCD1 can be divided into a plurality of first part writing bits DB1 (for example, 4 bits in size), and the second part of writing data ECCD2 can be divided into multiple second part writing bits DB2. Each sensing drive circuit SD simultaneously receives the first part of the write bit DB1 and the second part of the write bit DB2, and combines the first part of the write bit DB1 and the second part of the write bit DB2, and then decodes the address The ADD performs address designation and writes the designated address of the corresponding memory cell row MCC.

以感測驅動電路SD1為例,感測驅動電路SD1接收第一部分寫入位元DB1與第二部分寫入位元DB2,並將第一部分寫入位元DB1與第二部分寫入位元DB2結合後,寫入對應的MCC1的指定位址,此位址由位址解碼器ADD所指定,例如為圖3所示的記憶胞行MCC(1)的第1列記憶胞區塊MC。Taking the sensing driving circuit SD1 as an example, the sensing driving circuit SD1 receives the first part of the write bit DB1 and the second part of the write bit DB2, and the first part of the write bit DB1 and the second part of the write bit DB2 After the combination, the corresponding designated address of MCC1 is written, and this address is designated by the address decoder ADD, for example, the memory cell block MC in the first column of the memory cell row MCC(1) shown in FIG. 3.

請繼續參酌圖2,在本實施例中,由第一糾錯電路ECC1所產生、包含於第一部分寫入資料ECCD1的第一糾錯碼(例如8位元),同樣被分成兩個第一部分寫入位元DB1(例如4位元),並分別由感測驅動電路SD(P)與感測驅動電路SD(P+1)接收。類似地,由第二糾錯電路ECC2所產生、包含於第二部分寫入資料ECCD2的第二糾錯碼(例如8位元),被分成兩個第二部分寫入位元DB2(例如4位元),並分別由感測驅動電路SD(P)與感測驅動電路SD(P+1)接收。也就是說,感測驅動電路SD(P)(稱作第一糾錯碼記憶胞行)分別接收部分的第一糾錯碼與部分的第二糾錯碼,感測驅動電路SD(P+1)亦同(稱作第二糾錯碼記憶胞行)。接著,類似地,感測驅動電路SD(P)將部分的第一糾錯碼與部分的第二糾錯碼結合後寫入對應的記憶胞行MCC(P)中的指定位址,感測驅動電路SD(P+1)亦同。Please continue to refer to FIG. 2. In this embodiment, the first error correction code (for example, 8 bits) generated by the first error correction circuit ECC1 and included in the first part of the write data ECCD1 is also divided into two first parts The written bit DB1 (for example, 4 bits) is received by the sensing driving circuit SD (P) and the sensing driving circuit SD (P+1) respectively. Similarly, the second error correction code (for example, 8 bits) generated by the second error correction circuit ECC2 and included in the second part of the write data ECCD2 is divided into two second parts for the write bit DB2 (for example, 4 Bit) and are respectively received by the sensing drive circuit SD(P) and the sensing drive circuit SD(P+1). In other words, the sensing drive circuit SD(P) (referred to as the first error correction code memory cell row) respectively receives part of the first error correction code and part of the second error correction code, and the sensing drive circuit SD(P+ 1) The same (called the second error correction code memory cell line). Then, similarly, the sensing drive circuit SD(P) combines part of the first error correction code with part of the second error correction code and writes the specified address in the corresponding memory cell row MCC(P) to sense The same is true for the drive circuit SD (P+1).

在本實施例中,多個記憶胞行MCC共有N行,其中第一糾錯碼記憶胞行與第二糾錯碼記憶胞行分別位於第P行與第P+1行,並相鄰配置(如圖2所示),其中P、N皆為自然數,並且1<P<N。在另一實施例中,第一糾錯碼記憶胞行與第二糾錯碼記憶胞行位在多個記憶胞行MCC的中央位置。為了方便說明,圖示中第一糾錯碼記憶胞行的左側的多個記憶胞行稱為第一資料碼記憶胞行,以及圖示中第二糾錯碼記憶胞行的右側的多個記憶胞行稱為第二資料碼記憶胞行。In this embodiment, there are a total of N rows of memory cell rows MCC, wherein the first error correction code memory cell row and the second error correction code memory cell row are respectively located in the Pth row and the P+1th row, and are arranged adjacently (As shown in Figure 2), where P and N are both natural numbers, and 1<P<N. In another embodiment, the first error correction code memory cell row and the second error correction code memory cell row are located at the center of the plurality of memory cell rows MCC. For the convenience of description, the multiple memory cell rows on the left side of the first error correction code memory cell row in the figure are called the first data code memory cell row, and the multiple memory cell rows on the right side of the second error correction code memory cell row in the figure The memory cell line is called the second data code memory cell line.

在記憶體200的讀出模式中,各感測驅動電路SD從對應的記憶胞行MCC的指定位址(由位址解碼器ADD指定)感測並讀出資料位元組,並分成第一部分讀出位元與第二部分讀出位元;為方便說明,第一部分讀出位元與第二部分讀出位元同樣記作DB1與DB2。接著,感測驅動電路SD分別將第一部分讀出位元DB1與第二部分讀出位元DB2送往第一糾錯電路ECC1與第二糾錯電路ECC2進行糾錯。請參閱圖2,多個第一部分讀出位元DB1結合為第一部分讀出資料(包含第一糾錯碼),並為第一糾錯電路ECC1所接收;類似地,多個第二部分讀出位元DB2結合為第二部分讀出資料(包含第二糾錯碼),並為第二糾錯電路ECC2所接收。In the read mode of the memory 200, each sensing drive circuit SD senses and reads data bytes from the designated address (designated by the address decoder ADD) of the corresponding memory cell row MCC, and divides it into the first part The read bit and the second part of the read bit; for the convenience of description, the first part of the read bit and the second part of the read bit are also denoted as DB1 and DB2. Then, the sensing drive circuit SD sends the first part of the read bit DB1 and the second part of the read bit DB2 to the first error correction circuit ECC1 and the second error correction circuit ECC2 for error correction, respectively. Please refer to FIG. 2, a plurality of first part reading bits DB1 are combined to form the first part reading data (including the first error correction code), which is received by the first error correction circuit ECC1; similarly, multiple second part readings The output bit DB2 is combined to form the second part of the read data (including the second error correction code), which is received by the second error correction circuit ECC2.

為方便說明,第一部分讀出資料與第二部分讀出資料同樣記作ECCD1與ECCD2。接著,第一糾錯電路ECC1依據第一部分讀出資料ECCD1中的第一糾錯碼,對第一部分讀出資料ECCD1進行糾錯,產生第一部分資料D1;類似地,第二糾錯電路ECC2依據第二部分讀出資料ECCD2中的第二糾錯碼,對第二部分讀出資料ECCD2進行糾錯,產生第二部分資料D2。最後,第一部份資料D1與第二部份資料D2被結合並輸出為資料D。在本實施例中,多個第一部分讀出位元DB1與多個第二部分讀出位元DB2的大小皆為4位元,第一部分讀出資料與第二部分讀出資料的大小皆為136位元,而第一糾錯碼與第二糾錯碼的大小可以皆為8位元,最後,資料D的大小為256位元。For the convenience of description, the first part of the read data and the second part of the read data are also denoted as ECCD1 and ECCD2. Then, the first error correction circuit ECC1 performs error correction on the first part of the read data ECCD1 according to the first error correction code in the first part of the read data ECCD1 to generate the first part of the data D1; similarly, the second error correction circuit ECC2 is based on The second part reads the second error correction code in the data ECCD2, performs error correction on the second part read data ECCD2, and generates the second part data D2. Finally, the first part of data D1 and the second part of data D2 are combined and output as data D. In this embodiment, the sizes of the plurality of first part readout bits DB1 and the plurality of second part readout bits DB2 are all 4 bits, and the sizes of the first part readout data and the second part readout data are both 136 bits, and the size of the first error correction code and the second error correction code can both be 8 bits, and finally, the size of the data D is 256 bits.

下面將以圖3來說明各感測驅動電路SD將寫入資料位元組寫入對應的記憶胞行MCC的指定位址的細節,以及從對應的記憶胞行MCC的指定位址讀出資料位元組的細節。各記憶胞區塊MC包含多個第一記憶胞M1、第二記憶胞M2、子字線驅動器SWD、第一位元線感測器BLSA1、第二位元線感測器BLSA2、第一選擇開關SW1,以及第二選擇開關SW2。其中,圖2僅以位元線感測器BLSA通稱第一位元線感測器BLSA1與第二位元線感測器BLSA2。在圖3中,各個第一記憶胞M1以及各個第二記憶胞M2包含電晶體T以及電容C,其中電容C耦接於電晶體T與參考電位端之間。電晶體T的控制端經由字元線WL耦接於子字線驅動器SWD,並受控於子字線驅動器SWD。電晶體T並串接在電容C以及對應的位元線間。電晶體T(第一記憶胞M1中的電晶體)並耦接至第一位元線感測器BLSA1,或是(第二記憶胞M2中的電晶體)耦接至第二位元線感測器BLSA2。第一位元線感測器BLSA1經由第一位元線BL1感測第一記憶胞M1的儲存資料,第二位元線感測器BLSA2經由第二位元線BL2感測第二記憶胞M2的儲存資料。第一位元線感測器BLSA1經由列開關RSW耦接主輸入輸出線MIO,類似地,第二位元線感測器BLSA2經由列開關RSW耦接主輸入輸出線MIO。為了方便說明,將第一記憶胞M1所連接的位元線BL稱作第一位元線BL1,將第二記憶胞M2所連接的位元線BL稱作第二位元線BL2。在本實施例中,電晶體T可為金屬氧化物半導體場效電晶體(Metal-Oxide-Semiconductor Field-Effect Transistor,MOSFET),並且位於同一記憶胞列MCR的記憶胞M可以由同一條字元線WL控制。The following will use FIG. 3 to illustrate the details of each sensing drive circuit SD writing data bytes into the specified address of the corresponding memory cell row MCC, and reading data from the specified address of the corresponding memory cell row MCC The details of the byte. Each memory cell block MC includes a plurality of first memory cell M1, second memory cell M2, sub word line driver SWD, first bit line sensor BLSA1, second bit line sensor BLSA2, and first selection The switch SW1, and the second selection switch SW2. In FIG. 2, only the bit line sensor BLSA is generally called the first bit line sensor BLSA1 and the second bit line sensor BLSA2. In FIG. 3, each first memory cell M1 and each second memory cell M2 includes a transistor T and a capacitor C, wherein the capacitor C is coupled between the transistor T and the reference potential terminal. The control terminal of the transistor T is coupled to the sub word line driver SWD via the word line WL, and is controlled by the sub word line driver SWD. The transistor T is connected in series between the capacitor C and the corresponding bit line. Transistor T (transistor in the first memory cell M1) is coupled to the first bit line sensor BLSA1, or (transistor in the second memory cell M2) is coupled to the second bit line sensor Detector BLSA2. The first bit line sensor BLSA1 senses the stored data of the first memory cell M1 via the first bit line BL1, and the second bit line sensor BLSA2 senses the second memory cell M2 via the second bit line BL2 Of stored data. The first bit line sensor BLSA1 is coupled to the main input/output line MIO via the column switch RSW. Similarly, the second bit line sensor BLSA2 is coupled to the main input/output line MIO via the column switch RSW. For the convenience of description, the bit line BL connected to the first memory cell M1 is referred to as the first bit line BL1, and the bit line BL connected to the second memory cell M2 is referred to as the second bit line BL2. In this embodiment, the transistor T can be a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET), and the memory cells M located in the same memory cell row MCR can consist of the same character. Line WL control.

請同時參閱圖2與圖3,在記憶體200的寫入模式中,假設位址解碼器ADD所指定的寫入位址對應至記憶胞行MCC(1)的第1列記憶胞區塊(記作MC(11)),於是感測驅動器SD(1)透過子自線驅動器SWD開啟記憶胞區塊MC(11)的所有記憶胞M的電晶體T。另外,感測驅動器SD(1)控制列開關RSW開啟,並控制行選擇線CSL0發送選擇信號S以開啟記憶胞區塊MC(11)的第一選擇開關SW1與第二選擇開關SW2,以使主輸入輸出線MIO與記憶胞區塊MC(11) 連接。其中,多個第一位元線感測器BLSA1經由多個第一位元線BL1與多個第一記憶胞M1連接,多個第二位元線感測器BLSA2經由多個第二位元線BL2與多個第二記憶胞M2連接。接著,感測驅動電路SD(1)將結合後的第一部分寫入位元DB1與第二部分寫入位元DB2,經由主輸入輸出線MIO分別透過第一位元線感測器BLSA1以及第二位元線感測器BLSA2來寫入至記憶胞區塊MC(11)的多個記憶胞M。2 and 3 at the same time, in the write mode of the memory 200, it is assumed that the write address specified by the address decoder ADD corresponds to the memory cell block in the first row of the memory cell row MCC(1) ( Marked as MC(11)), then the sensing driver SD(1) turns on the transistors T of all the memory cells M of the memory cell block MC(11) through the sub-line driver SWD. In addition, the sensing driver SD(1) controls the column switch RSW to turn on, and controls the row selection line CSL0 to send a selection signal S to turn on the first selection switch SW1 and the second selection switch SW2 of the memory cell block MC(11), so that The main input and output line MIO is connected to the memory cell block MC(11). Among them, the plurality of first bit line sensors BLSA1 are connected to the plurality of first memory cells M1 via the plurality of first bit lines BL1, and the plurality of second bit line sensors BLSA2 are connected via the plurality of second bit lines. The line BL2 is connected to a plurality of second memory cells M2. Then, the sensing drive circuit SD(1) combines the combined first part of the write bit DB1 and the second part of the write bit DB2, respectively through the first bit line sensor BLSA1 and the second bit line sensor BLSA1 and the second bit line sensor via the main input and output line MIO The binary line sensor BLSA2 writes to a plurality of memory cells M of the memory cell block MC(11).

為了方便說明,耦接開啟的第一選擇開關SW1的第一位元線BL1被稱為第一選中位元線;類似地,耦接開啟的第二選擇開關SW2的第二位元線BL2被稱為被稱作第二選中位元線。For the convenience of description, the first bit line BL1 coupled to the turned-on first selection switch SW1 is referred to as the first selected bit line; similarly, the second bit line BL2 coupled to the turned-on second selection switch SW2 It is called the second selected bit line.

在記憶體200的讀出模式中,假設位址解碼器ADD所指定的讀出位址對應至記憶胞區塊MC(11),類似地,感測驅動器SD(1) 控制列開關RSW開啟,並控制行選擇線CSL0發送選擇信號S以開啟記憶胞區塊MC(11)的第一選擇開關SW1與第二選擇開關SW2,以使主輸入輸出線MIO與記憶胞區塊MC(11)的第一位元線感測器BLSA1以及第二位元線感測器BLSA2連接。其中多個第一位元線感測器BLSA1經由多個第一位元線BL1與多個第一記憶胞M1連接,多個第二位元線感測器BLSA2經由多個第二位元線BL2與多個第二記憶胞M2連接。接著,感測驅動電路SD(1)自記憶胞區塊MC(11)的第一記憶胞M1感測出儲存資料,並將儲存資料經由第一位元線感測器BLSA1以及主輸入輸出線MIO傳送至第一糾錯電路ECC1。感測驅動電路SD(1)自記憶胞區塊MC(11)的第二記憶胞M2感測出儲存資料,並將儲存資料經由第二位元線感測器BLSA2以及主輸入輸出線MIO,傳送至第二糾錯電路ECC2。也就是說,記憶胞區塊MC中相鄰的兩個記憶胞M分別對應至第一糾錯電路ECC1與第二糾錯電路ECC2。In the read mode of the memory 200, assuming that the read address specified by the address decoder ADD corresponds to the memory cell block MC(11), similarly, the sensor driver SD(1) controls the row switch RSW to turn on. And control the row selection line CSL0 to send the selection signal S to turn on the first selection switch SW1 and the second selection switch SW2 of the memory cell block MC(11), so that the main input and output line MIO and the memory cell block MC(11) The first bit line sensor BLSA1 and the second bit line sensor BLSA2 are connected. The plurality of first bit line sensors BLSA1 are connected to the plurality of first memory cells M1 via the plurality of first bit lines BL1, and the plurality of second bit line sensors BLSA2 are via the plurality of second bit lines. BL2 is connected with a plurality of second memory cells M2. Then, the sensing driving circuit SD(1) senses the stored data from the first memory cell M1 of the memory cell block MC(11), and passes the stored data through the first bit line sensor BLSA1 and the main input/output line MIO is sent to the first error correction circuit ECC1. The sensing driving circuit SD(1) senses the stored data from the second memory cell M2 of the memory cell block MC(11), and passes the stored data through the second bit line sensor BLSA2 and the main input/output line MIO, It is sent to the second error correction circuit ECC2. In other words, two adjacent memory cells M in the memory cell block MC correspond to the first error correction circuit ECC1 and the second error correction circuit ECC2, respectively.

在相鄰的兩個記憶胞故障(例如圖3的記憶胞區塊MC(11)的第一記憶胞M1與第二記憶胞M2),而導致儲存資料錯誤的狀況下,由於相鄰的兩個記憶胞M1與M2會分別耦接至第一糾錯電路ECC1與第二糾錯電路ECC2,因此,對第一糾錯電路ECC1而言只會存在一個讀出錯誤(例如第一記憶胞M1的讀出資料),同樣地,對於第二糾錯電路ECC2而言,也只會存在一個讀出錯誤(例如第二記憶胞M2的讀出資料),而使得第一糾錯電路ECC1與第二糾錯電路ECC2得以針對單一位元錯誤進行糾錯。對本領域之技術人員而言,在相同的成本之下,本發明的具有糾錯電路的記憶體可得到較佳的糾錯效果,並可以減少備用記憶體的使用。此外,第一記憶胞M1與第二記憶胞M2交錯排列的設置方式可以降低彼此的電性干擾。When two adjacent memory cells are faulty (for example, the first memory cell M1 and the second memory cell M2 of the memory cell block MC(11) in FIG. 3), which results in storage data errors, the two adjacent memory cells The memory cells M1 and M2 are respectively coupled to the first error correction circuit ECC1 and the second error correction circuit ECC2. Therefore, for the first error correction circuit ECC1, there will only be one read error (for example, the first memory cell M1 Similarly, for the second error correction circuit ECC2, there is only one read error (for example, the read data of the second memory cell M2), and the first error correction circuit ECC1 and the first The two error correction circuit ECC2 can correct single-bit errors. For those skilled in the art, at the same cost, the memory with the error correction circuit of the present invention can obtain a better error correction effect, and can reduce the use of spare memory. In addition, the staggered arrangement of the first memory cell M1 and the second memory cell M2 can reduce mutual electrical interference.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 [產業利用性]Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. The scope of protection of the present invention shall be determined by the scope of the attached patent application. [Industrial Utilization]

本發明將相鄰的兩個記憶胞分別耦接至第一糾錯電路與第二糾錯電路。在相鄰的兩個記憶胞故障的情形下,對於第一糾錯電路與第二糾錯電路而言,僅需要處裡單一位元的錯誤。因此在相同的成本之下,本發明的具有糾錯電路的記憶體可得到較佳的糾錯效果,並可以減少備用記憶體的使用。In the present invention, two adjacent memory cells are respectively coupled to the first error correction circuit and the second error correction circuit. In the case of two adjacent memory cells failing, for the first error correction circuit and the second error correction circuit, only a single bit error needs to be dealt with. Therefore, at the same cost, the memory with the error correction circuit of the present invention can obtain a better error correction effect, and can reduce the use of spare memory.

100:記憶體 200:記憶體 ADD:位址解碼器 BL:位元線 BL1:第一位元線 BL2:第二位元線 BLSA:位元線感測器 BLSA1:第一位元線感測器 BLSA2:第二位元線感測器 C:電容 CSL0、CSL1、CSLN:行選擇線 D:資料 D1:第一部分資料 D2:第二部分資料 DB1:第一部分寫入位元或第一部分讀出位元 DB2:第二部分寫入位元或第二部分讀出位元 ECC1:第一糾錯電路 ECC2:第二糾錯電路 ECCD1:第一部分寫入資料或第一部分讀出資料 ECCD2:第二部分寫入資料或第二部分讀出資料 M:記憶胞 M1:第一記憶胞 M2:第二記憶胞 MC/MC(11):記憶胞區塊 MCC、MCC(1)、MCC(P-1)、MCC(P)、MCC(P+1)、MCC(P+2)、MCC(N):記憶胞行 MCR:記憶胞列 MIO:主輸入輸出線 RSW:列開關 SD、SD(1)、SD(P-1)、SD(P)、SD(P+1)、SD(P+2)、SD(N):感測驅動電路 S:選擇信號 SW1:第一選擇開關 SW2:第二選擇開關 SWD:子字線驅動器 T:電晶體100: memory 200: memory ADD: address decoder BL: bit line BL1: The first bit line BL2: The second bit line BLSA: bit line sensor BLSA1: The first bit line sensor BLSA2: The second bit line sensor C: Capacitance CSL0, CSL1, CSLN: row selection line D: Information D1: The first part of the information D2: The second part of the information DB1: The first part of write bits or the first part of read bits DB2: The second part of the write bit or the second part of the read bit ECC1: The first error correction circuit ECC2: The second error correction circuit ECCD1: The first part of writing data or the first part of reading data ECCD2: The second part of writing data or the second part of reading data M: memory cell M1: The first memory cell M2: second memory cell MC/MC(11): Memory cell block MCC, MCC(1), MCC(P-1), MCC(P), MCC(P+1), MCC(P+2), MCC(N): memory cell row MCR: memory cell row MIO: main input and output line RSW: column switch SD, SD(1), SD(P-1), SD(P), SD(P+1), SD(P+2), SD(N): sensing drive circuit S: select signal SW1: First selection switch SW2: Second selection switch SWD: Sub word line driver T: Transistor

圖1是習知的一種具糾錯電路的記憶體。 圖2為依照本發明一實施例所繪示的具糾錯電路的記憶體。 圖3為各記憶胞行中第1列的記憶胞區塊的示意圖。Figure 1 is a conventional memory with an error correction circuit. FIG. 2 shows a memory with an error correction circuit according to an embodiment of the invention. FIG. 3 is a schematic diagram of the memory cell block in the first column of each memory cell row.

200:記憶體 200: memory

D:資料 D: Information

ADD:位址解碼器 ADD: address decoder

D1:第一部分資料 D1: The first part of the information

BLSA:位元線感測器 BLSA: bit line sensor

D2:第二部分資料 D2: The second part of the information

DB1:第一部分寫入位元或第一部分讀出位元 DB1: The first part of write bits or the first part of read bits

DB2:第二部分寫入位元或第二部分讀出位元 DB2: The second part of the write bit or the second part of the read bit

ECC1:第一糾錯電路 ECC1: The first error correction circuit

ECC2:第二糾錯電路 ECC2: The second error correction circuit

ECCD1:第一部分寫入資料或第一部分讀出資料 ECCD1: The first part of writing data or the first part of reading data

ECCD2:第二部分寫入資料或第二部分讀出資料 ECCD2: The second part of writing data or the second part of reading data

MC:記憶胞區塊 MC: Memory cell block

MCC、MCC(1)、MCC(P-1)、MCC(P)、MCC(P+1)、MCC(P+2)、MCC(N):記憶胞行 MCC, MCC(1), MCC(P-1), MCC(P), MCC(P+1), MCC(P+2), MCC(N): memory cell row

MCR:記憶胞列 MCR: memory cell row

SD、SD(1)、SD(P-1)、SD(P)、SD(P+1)、SD(P+2)、SD(N):感測驅動電路 SD, SD(1), SD(P-1), SD(P), SD(P+1), SD(P+2), SD(N): sensing drive circuit

SWD:子字線驅動器 SWD: Sub word line driver

Claims (10)

一種具糾錯電路的記憶體,包括: 一第一糾錯電路,針對一第一部分資料執行糾錯以產生一第一部分寫入資料或一第一部分讀出資料; 一第二糾錯電路,針對一第二部分資料執行糾錯以產生一第二部分寫入資料或一第二部分讀出資料; 多個記憶胞行;以及 多個感測驅動電路,分別耦接該些記憶胞行,並耦接該第一糾錯電路以及該第二糾錯電路, 其中,在一寫入模式中,該些感測驅動電路分別接收該第一部分寫入資料的多個第一部分寫入位元,以及分別接收該第二部分寫入資料的多個第二部分寫入位元,各該感測驅動電路並使對應的第一部分寫入位元以及第二部分寫入位元結合以寫入對應的記憶胞行;以及 在一讀出模式中,該些感測驅動電路分別感測該些記憶胞行的儲存資料,以產生該些第一部分讀出資料以及該些第二部分讀出資料。A memory with error correction circuit, including: A first error correction circuit for performing error correction on a first part of data to generate a first part of written data or a first part of read data; A second error correction circuit for performing error correction on a second part of data to generate a second part of written data or a second part of read data; Multiple memory cell rows; and A plurality of sensing and driving circuits are respectively coupled to the memory cell rows and coupled to the first error correction circuit and the second error correction circuit, Wherein, in a write mode, the sensing drive circuits respectively receive a plurality of first part write bits of the first part of write data, and respectively receive a plurality of second part write bits of the second part of write data Bit-in, each of the sensing and driving circuits combines the corresponding first part of the write bit and the second part of the write bit to write the corresponding memory cell row; and In a read mode, the sensing drive circuits respectively sense the stored data of the memory cell rows to generate the first partial read data and the second partial read data. 如申請專利範圍第1項所述的記憶體,其中該些記憶胞行包括一第一糾錯碼記憶胞行以及一第二糾錯碼記憶胞行,該第一糾錯碼記憶胞行以及該第二糾錯碼記憶胞行皆儲存該第一部分寫入資料中的一第一糾錯碼的一部分以及該第二部分寫入資料中的一第二糾錯碼的一部分,並且該第一糾錯碼記憶胞行以及該第二糾錯碼記憶胞行相鄰配置,其中該些記憶胞行更包括多個第一資料碼記憶胞行以及多個第二資料碼記憶胞行,該些第一資料碼記憶胞行相鄰配置,並配置在該第一糾錯碼記憶胞行的一第一側,該些第二資料碼記憶胞行相鄰配置,並配置在該第二糾錯碼記憶胞行的一第二側,其中該第一側與該第二側相對。As for the memory described in claim 1, wherein the memory cell rows include a first error correction code memory cell row and a second error correction code memory cell row, the first error correction code memory cell row and The second error correction code memory cell rows all store a part of a first error correction code in the first part of the written data and a part of a second error correction code in the second part of the written data, and the first The error correction code memory cell rows and the second error correction code memory cell rows are arranged adjacently, wherein the memory cell rows further include a plurality of first data code memory cell rows and a plurality of second data code memory cell rows, the The first data code memory cell rows are arranged adjacently and arranged on a first side of the first error correction code memory cell row, and the second data code memory cells are arranged adjacently and arranged on the second error correction code memory cell row. A second side of the code memory cell row, wherein the first side is opposite to the second side. 如申請專利範圍第1項所述的記憶體,其中各該記憶胞行包括相互串聯耦接的多個記憶胞區塊,各該記憶胞區塊包括: 多個記憶胞,受控於一字元線; 一第一位元線感測器,耦接該些記憶胞中的多個第一記憶胞的多個第一位元線; 多個第一選擇開關,依據一選擇信號以使該些第一位元線中的多個第一選中位元線耦接至對應的該感測驅動電路;以及 一第二位元線感測器,耦接該些記憶胞中的多個第二記憶胞的多個第二位元線;以及 多個第二選擇開關,依據該選擇信號以使該些第二位元線中的多個第二選中位元線耦接至對應的該感測驅動電路, 其中,該些第一記憶胞與該些第二記憶胞交錯排列。The memory as described in claim 1, wherein each of the memory cell rows includes a plurality of memory cell blocks coupled in series, and each of the memory cell blocks includes: Multiple memory cells are controlled by a character line; A first bit line sensor coupled to a plurality of first bit lines of a plurality of first memory cells among the memory cells; A plurality of first selection switches, according to a selection signal, so that the plurality of first selected bit lines of the first bit lines are coupled to the corresponding sensing driving circuit; and A second bit line sensor coupled to a plurality of second bit lines of a plurality of second memory cells among the memory cells; and A plurality of second selection switches for coupling a plurality of second selected bit lines among the second bit lines to the corresponding sensing driving circuit according to the selection signal, Wherein, the first memory cells and the second memory cells are arranged alternately. 如申請專利範圍第3項所述的記憶體,其中各該記憶胞區塊更包括: 一字元線驅動器,耦接該字元線,用以產生一字元線信號。For the memory described in item 3 of the scope of patent application, each of the memory cell blocks further includes: A word line driver is coupled to the word line to generate a word line signal. 如申請專利範圍第1~4項中任一項所述的記憶體,其中該第一部分寫入資料與該第二部分寫入資料的位元數相同,該第一部分讀出資料與該第二部分讀出資料的位元數相同。For example, the memory according to any one of items 1 to 4 of the scope of patent application, wherein the first part of the written data and the second part of the written data have the same number of bits, and the first part of the read data is the same as the second Part of the read data has the same number of bits. 如申請專利範圍第1~4項中任一項所述的記憶體,該記憶體更包含: 一位址解碼電路,耦接該些記憶胞行以及該些感測驅動電路,該位址解碼電路在該寫入模式中指定該些第一部分寫入位元以及該些第二部分寫入位元所對應的記憶胞行的位址,以及該位址解碼電路在該寫入模式中指定該些第一部分讀出資料以及該些第二部分讀出資料所對應的記憶胞行的位址。Such as the memory described in any one of items 1 to 4 in the scope of patent application, the memory further includes: An address decoding circuit, coupled to the memory cell rows and the sensing driving circuits, the address decoding circuit designating the first partial writing bits and the second partial writing bits in the writing mode The address of the memory cell row corresponding to the element, and the address decoding circuit designates the addresses of the memory cell rows corresponding to the first part of the read data and the second part of the read data in the write mode. 如申請專利範圍第3項所述的記憶體,其中各該記憶胞包括: 一電晶體,該電晶體耦接該第一位元線感測器;以及 一電容,耦接於該電晶體與一參考電位端之間。The memory as described in item 3 of the scope of patent application, wherein each memory cell includes: A transistor coupled to the first bit line sensor; and A capacitor is coupled between the transistor and a reference potential terminal. 如申請專利範圍第1~4項中任一項所述的記憶體,其中在該讀出模式中,各該感測驅動電路自對應的記憶胞行感測出至少2位元的儲存資料。The memory according to any one of items 1 to 4 in the scope of patent application, wherein in the read mode, each of the sensing drive circuits senses at least 2 bits of stored data from the corresponding memory cell row. 如申請專利範圍第8項所述的記憶體,其中各該感測驅動電路將該至少2位元的儲存資料分為至少1位元的第一部分讀出資料以及至少1位元的第二部分讀出資料。The memory as described in item 8 of the scope of patent application, wherein each of the sensing and driving circuits divides the stored data of at least 2 bits into a first part of at least 1 bit to read data and a second part of at least 1 bit Read the information. 如申請專利範圍第2項所述的記憶體,其中各該第一糾錯碼與各該第二糾錯碼皆為至少2位元。In the memory described in item 2 of the scope of patent application, each of the first error correction code and each of the second error correction codes has at least 2 bits.
TW108111661A 2019-04-02 2019-04-02 Memory with error correction circuit TWI689935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108111661A TWI689935B (en) 2019-04-02 2019-04-02 Memory with error correction circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108111661A TWI689935B (en) 2019-04-02 2019-04-02 Memory with error correction circuit

Publications (2)

Publication Number Publication Date
TWI689935B TWI689935B (en) 2020-04-01
TW202038248A true TW202038248A (en) 2020-10-16

Family

ID=71132523

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108111661A TWI689935B (en) 2019-04-02 2019-04-02 Memory with error correction circuit

Country Status (1)

Country Link
TW (1) TWI689935B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI812034B (en) * 2022-02-25 2023-08-11 旺宏電子股份有限公司 Memory device and operation method thereof
US11847021B2 (en) 2022-02-25 2023-12-19 Macronix International Co., Ltd. Memory block, memory device for error correction operation and method thereof

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100681429B1 (en) * 2005-10-24 2007-02-15 삼성전자주식회사 Semiconductor memory device and bit error detection method thereof
JP5175771B2 (en) * 2009-02-27 2013-04-03 株式会社日立ハイテクノロジーズ Fine structure transfer apparatus and fine structure transfer method
JP5303325B2 (en) * 2009-03-18 2013-10-02 ルネサスエレクトロニクス株式会社 Data processing device
JP2012234363A (en) * 2011-04-28 2012-11-29 Toshiba Corp Memory system
CN105340022B (en) * 2013-06-24 2019-11-12 美光科技公司 Circuit, device and method for correction data mistake
US10447316B2 (en) * 2014-12-19 2019-10-15 Micron Technology, Inc. Apparatuses and methods for pipelining memory operations with error correction coding
US9692455B2 (en) * 2015-09-11 2017-06-27 Micron Technology, Inc. Multi channel memory with flexible code-length ECC
US10056921B2 (en) * 2016-08-25 2018-08-21 Taiwan Semiconductor Manufacturing Company Ltd. Memory system having flexible ECC scheme and method of the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI812034B (en) * 2022-02-25 2023-08-11 旺宏電子股份有限公司 Memory device and operation method thereof
US11847021B2 (en) 2022-02-25 2023-12-19 Macronix International Co., Ltd. Memory block, memory device for error correction operation and method thereof

Also Published As

Publication number Publication date
TWI689935B (en) 2020-04-01

Similar Documents

Publication Publication Date Title
US10635531B2 (en) Semiconductor memory device error correction circuit, semiconductor memory device including the same, and memory system including the same
US10867690B2 (en) Memory modules and methods of operating memory systems including the same
US11106535B2 (en) Error correction circuit of semiconductor memory device and semiconductor memory device
US8078938B2 (en) Semiconductor memory, semiconductor memory system, and error correction method for semiconductor memory
US10614906B2 (en) Semiconductor memory devices, memory systems and methods of operating semiconductor memory devices
US11436079B2 (en) Semiconductor memory devices having enhanced error correction circuits therein
US11416335B2 (en) Semiconductor memory devices and memory systems with enhanced error detection and correction
US20050229080A1 (en) Semiconductor memory device equipped with error correction circuit
TWI786707B (en) Apparatuses and methods for error correction coding and data bus inversion for semiconductor memories
US11762736B2 (en) Semiconductor memory devices
TWI689935B (en) Memory with error correction circuit
US5386387A (en) Semiconductor memory device including additional memory cell block having irregular memory cell arrangement
US20210216419A1 (en) Memory module, memory system including the same and operation method thereof
US10846168B1 (en) Memory with error correction circuit
US7075851B2 (en) Semiconductor memory device inputting/outputting data and parity data in burst operation
JP6862487B2 (en) Memory with error correction circuit
US11947810B2 (en) Semiconductor memory device and memory system including the same
US11860734B2 (en) Semiconductor memory devices and memory systems
KR102194914B1 (en) Memory with error correction circuit
US11487613B2 (en) Method for accessing semiconductor memory module
KR102025880B1 (en) Memory device having error correction function and method of correcting error
CN111913828B (en) Memory with error correction circuit
KR20210132784A (en) Memory device and method for reading data from memory device
US20240096437A1 (en) Memory device including error correction device