Apparatus and method for error correction coding and data bus inversion for semiconductor memory
By designing I/O circuits, memory arrays and control circuits in semiconductor memory, ECC and DBI decoding are realized, the performance loss and occasional defect bit problems of error correction and data bus inversion in semiconductor memory are solved, and the accuracy of data transmission is improved and efficiency reduce power consumption.
Patent Information
- Application Number
- CN202410965557.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2018-09-10
- Filing Date
- 2019-09-09
- Publication Date
- 2024-11-12
AI Technical Summary
When existing semiconductor memories deal with error correction and data bus reversal, there are problems such as performance loss and difficulty in relieving occasional defect bits, and traditional methods increase power consumption.
A device including I/O circuit, memory array and control circuit is designed. Through ECC decoding and DBI decoding, the data is corrected and stored, reducing the number of signal conversions and optimizing the data transmission process.
It improves the accuracy and efficiency of data transmission, reduces the power consumption of semiconductor devices, and effectively removes occasional defect bits, improving system performance.
Smart Images

Figure CN118939469A_ABST
Abstract
Description
[0001] Information about divisional applications
[0002] This case is a divisional application. The parent case of the divisional application is an invention patent application with application date of September 9, 2019, application number 201980045953.0, and invention name "Device and method for error correction coding and data bus inversion of semiconductor memory". Technical Field
[0003] The present disclosure relates generally to semiconductor memories, for example, apparatus and methods for error correction encoding and data bus inversion of semiconductor memories. Background Art
[0004] In recent years, semiconductor devices such as DRAM (dynamic random access memory) have greatly increased their capacity, and the number of defective bits that occur has also increased accordingly. Among the defective bits, the defective bits attributed to defective word lines or defective bit lines are mainly released by replacing them with redundant word lines or redundant bit lines. However, with regard to occasional defective bits that occur after packaging or the like, it is difficult to release the defective bits by replacing them with redundant word lines or redundant bit lines in some cases. For such occasional defective bits, a method of releasing data by using an error correction function rather than performing replacement by using a redundant circuit is adopted in some cases. Error correction can be used internally within a semiconductor device, and can also be used externally to transfer data to and from a semiconductor device.
[0005] In addition, it is desirable to reduce power consumption of semiconductor devices. A method that has been used is to include data bus inversion (DBI) when transferring data to and from semiconductor devices. In a system including DBI, data transferred to and from semiconductor devices can be DBI encoded to reduce the number of signal line signal transitions. Specifically, the data to be transferred is evaluated against previously transferred data to determine whether more than a threshold number of signal line transitions are required to transfer the data. Based on the evaluation, the data to be transferred is provided as true data (not inverted) or inverted data. The DBI encoding results in DBI data indicating whether the data is inverted, which has DBI encoded data used when decoding the data.
[0006] Regarding the error correction function, the semiconductor device includes an ECC encoding and / or ECC decoding circuit for performing the error correction function. When performing the error correction function, encoding and decoding of data requires processing time, which negatively affects the performance of the semiconductor device.
[0007] It may be desirable to have alternative methods to perform error correction functions in semiconductor devices, which may also include DBI operations. Summary of the invention
[0008] Apparatus and methods for error correction encoding and data bus inversion are disclosed. An example apparatus includes an I / O circuit configured to receive first data and first ECC data associated with the first data and includes a memory array. The example apparatus further includes a control circuit coupled between the I / O circuit and the memory array. The control circuit is configured to perform first ECC decoding to generate corrected first data and corrected first ECC data in response, at least in part, to the first data and the first ECC data. The control circuit is further configured to store both the corrected first data and the corrected first ECC data in the memory array.
[0009] Another example device includes: an I / O circuit; a memory array; and a control circuit. The I / O circuit is configured to receive first data, data bus inversion (DBI) data related to the first data, first ECC data associated with the first data, and second ECC data associated with the DBI data. The control circuit is coupled between the I / O circuit and the memory cell array and includes a first ECC decoding circuit, a second ECC decoding circuit, and a DBI decoding circuit. The second ECC decoding circuit is configured to generate corrected DBI data at least in part in response to the DBI data and the second ECC data. The first ECC decoding circuit and the DBI decoding circuit are configured to generate corrected and DBI decoded first data and corrected first ECC data at least in part in response to the first data, the first ECC data, and the corrected DBI data. The control circuit is configured to store both the corrected and DBI decoded first data and the corrected first ECC data in the memory array.
[0010] Another example device includes a write data control circuit and a read data control circuit. The write data control circuit is configured to receive write data and corresponding ECC data from a signal bus and correct the write data based on the corresponding ECC data to provide corrected write data. The write control circuit is further configured to provide corrected corresponding ECC data based on the corresponding ECC data, wherein the corrected write data and the corrected corresponding ECC data are provided for storage in a memory array. The read data control circuit is configured to receive read data and corresponding ECC data from the memory array and correct the read data based on the corresponding ECC data to provide corrected read data. The read control circuit is further configured to provide corrected corresponding ECC data based on the corresponding ECC data, wherein the corrected read data and the corrected corresponding ECC data are provided to the signal bus. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1is a block diagram of a system according to an embodiment of the present disclosure.
[0012] Figure 2 is a block diagram of a device according to an embodiment of the present disclosure.
[0013] Figure 3A is a block diagram of an ECC control circuit according to an embodiment of the present disclosure.
[0014] Figure 3B is a block diagram of a write data control circuit according to an embodiment of the present disclosure.
[0015] Figure 3C is a block diagram of a read data control circuit according to an embodiment of the present disclosure.
[0016] Figure 3D is a flow chart of error correction coding between a controller and a memory according to an embodiment of the present disclosure.
[0017] Figure 4 is a block diagram of a write data control circuit according to an embodiment of the present disclosure.
[0018] Figure 5A is a block diagram of a read data control circuit according to an embodiment of the present disclosure.
[0019] Figure 5B is a flow chart of error correction coding between a controller and a memory according to an embodiment of the present disclosure.
[0020] Fig. 6A is a block diagram of a write data control circuit according to an embodiment of the present disclosure.
[0021] Figure 6B is a block diagram of a read data control circuit according to an embodiment of the present disclosure.
[0022] Figure 7A-1 , 7A-2 7A-3 and 7B are diagrams of determinants (eg, H matrices) or performing ECC encoding and / or decoding operations according to embodiments of the present disclosure.
[0023] Fig. 8A is a block diagram of a write data control circuit according to an embodiment of the present disclosure.
[0024] Figure 8B is a block diagram of a read data control circuit according to an embodiment of the present disclosure.
[0025] Fig. 9 is a layout diagram of a write data control circuit and a read data control circuit according to various embodiments of the present disclosure. DETAILED DESCRIPTION
[0026] Specific details will be stated below to provide a full understanding of the embodiments of the present disclosure. However, it will be clear to those skilled in the art that the embodiments of the present disclosure can be practiced without these specific details. In addition, the specific examples of the present disclosure described herein should not be interpreted as limiting the scope of the present disclosure to these specific examples. In other examples, well-known circuits, control signals, timing protocols, and software operations are not shown in detail to avoid unnecessarily making the embodiments of the present disclosure unclear. In addition, terms such as "coupled" mean that two components can be electrically coupled directly or indirectly. Indirect coupling can imply that two components are coupled through one or more intermediate components.
[0027] Figure 1 1 is a block diagram of a system 100 including a controller 10 and a memory 110. For example, the controller 10 may be a memory controller. In some embodiments of the present disclosure, the memory 110 includes one or more dynamic random access memory (DRAM) devices. In such embodiments, the DRAM devices may include low power double data rate (LPDDR) memory devices. In other embodiments, different instances of memory devices may be included.
[0028] The controller 10 and the memory 110 may provide data between each other, for example, the controller 10 provides write data to the memory 110 for a write operation and the memory 110 provides read data to the controller 10 for a read operation. The controller 10 and the memory 110 use error correction coding (ECC) for the data provided between the two. For example, ECC data may be provided by the controller 10 to the memory 110 together with the write data, and ECC data may be provided by the memory 110 to the controller 10 together with the read data. The ECC data may be used by the memory 110 and / or the controller 10 to correct any errors in the write data and / or the read data. In this way, the accuracy of the data transferred on the communication link between the memory 110 and the controller 10 can be ensured.
[0029] In some embodiments of the present disclosure, data bus inversion (DBI) may be used for data provided between the controller 10 and the memory 110. In such embodiments, DBI data is provided between the controller 10 and the memory 110 together with write and read data, respectively. In addition, in some embodiments of the present disclosure that include DBI operations, the DBI data is ECC encoded, and therefore, the ECC data for the DBI data is also provided together with the ECC data for the data itself. The ECC data for the data and the DBI data may be included in the ECC data ECC (Data, DBI).
[0030] like Figure 1As shown in FIG. 1 , ECC (Data, DBI), Data, and DBI data are provided between the controller 10 and the memory 110. Figure 1 10. It is not shown, but it should be understood that the controller 10 further provides commands, addresses, and clocks to the memory 110. In some embodiments, a clock may also be provided by the memory 110 to the controller 10. Commands may be provided to control the operation of the memory 110, and memory access commands (e.g., read commands, write commands, etc.) may be provided to addresses to identify memory locations in the memory 110 to be accessed. The clock provided by the controller 10 may be used by the memory 110 for timed receipt of signals and various operations of the memory 110, and in embodiments where the memory 110 provides a clock to the controller 10, the clock may be used by the controller for timed receipt of read data provided by the memory. Additional and / or alternative signals may also be provided between the controller 10 and the memory 110.
[0031] Figure 2 2 is a block diagram of an apparatus according to an embodiment of the present disclosure. The apparatus may be a semiconductor device 200 and will be referred to as the semiconductor device 200. In some embodiments, the semiconductor device 200 may include, but is not limited to, a DRAM device such as, for example, a low power DDR (LPDDR) memory integrated into a single semiconductor chip. In some embodiments of the present disclosure, the semiconductor device 200 may include Figure 1 in the memory 110.
[0032] The semiconductor device 200 includes a memory array 250. The memory array 250 is shown to include a plurality of memory banks. Figure 2 In the embodiment of FIG. 1 , the memory array 250 is shown to include 8 memory banks BANK0 to BANK7. Each memory bank includes a plurality of word lines WL, a plurality of bit lines BL and / BL, and a plurality of memory cells MC arranged at intersections of the plurality of word lines WL and the plurality of bit lines BL and / BL. The selection of the word line WL is performed by the row decoder 240 and the selection of the bit lines BL and / BL is performed by the column decoder 245. Figure 2 In an embodiment of the present invention, the row decoder 240 includes a corresponding row decoder for each memory bank and the column decoder 245 includes a corresponding column decoder for each memory bank. The bit lines BL and / BL are coupled to corresponding sense amplifiers (SAMPs). The read data from the bit lines BL or / BL are amplified by the sense amplifiers SAMPs and transferred to the ECC control circuit 255 through the complementary local data line (LIOT / B), the transfer gate (TG) and the complementary main data line (MIOT / B). The ECC control circuit 255 includes a corresponding ECC control circuit for each memory bank.
[0033] As will be described in more detail below, when read data is read from the memory cell array 250, the corresponding ECC data is also read simultaneously. Conversely, the write data and the corresponding ECC data output from the ECC control circuit 255 are transferred to the sense amplifier SAMP through the complementary main data line MIOT / B, the transfer gate TG and the complementary local data line LIOT / B, and written into the memory cell MC coupled to the bit line BL or / BL. As will be described in more detail below, when write data is written into the memory array 250, the corresponding ECC data is also written simultaneously.
[0034] The semiconductor device 200 may employ a plurality of external terminals including a command, address and chip select (CA / CS) terminal coupled to a command and address bus to receive command, address and CS signals, a clock terminal for receiving clocks CK and / CK, a data terminal and power supply terminals VDD, VSS, VDDQ and VSSQ.
[0035] A memory address may be supplied to the CA / CS terminal. The memory address supplied to the CA / CS terminal is transferred to the address decoder 212 via the command / address input circuit 205. The address decoder 212 receives the address and supplies the decoded row address XADD to the row decoder 240 and the decoded column address YADD to the column decoder 245. A command may be supplied to the CA / CS terminal. The command may be provided to the command decoder 215 as an internal command signal via the command / address input circuit 205. The command decoder 215 includes a circuit for decoding the internal command signal to generate various internal signals and commands for performing operations. For example, the command decoder 215 may provide a row command signal ACT to select a word line and a column command signal R / W to select a bit line.
[0036] When a read command is received and the read command is supplied to the row address and the column address in time, the read data and the corresponding ECC data are read from the memory cells in the memory array 250 specified by the row address and the column address. The read command is received by the command decoder 215, and the command decoder 215 provides an internal command so that the read data and the corresponding ECC data from the memory array 250 are provided to the ECC control circuit 255. The ECC control circuit 255 performs ECC decoding to generate corrected read data and corrected corresponding ECC data. For example, if the read data contains an error (as determined by the ECC control circuit 255 based on the corresponding ECC data), the read data is corrected. The corrected read data and the corrected corresponding ECC data are output to the outside from the data terminal via the input / output circuit 260.
[0037] "Correction data" generally refers to data generated after ECC decoding based on corresponding ECC data. Correction data includes data that may have been actually corrected as needed (for example, one or more bits of the data are changed) and data that may not be corrected because no correction is required. For example, "corrected" read data provided after ECC decoding refers to the read data that is actually corrected or uncorrected based on the corresponding ECC data. Similarly, "corrected" ECC data provided after ECC decoding refers to the corrected or uncorrected ECC data provided. Therefore, the term "correction" is not intended to refer only to the actual corrected data, but more generally to the actual corrected or uncorrected data provided after ECC decoding. The term "correction data" may also be applied to write data, DBI data, ECC (DBI) data, and the like.
[0038] When a write command is received and the write command is supplied to the row address and the column address in time, the write data and the corresponding ECC data supplied to the data terminal are written to the memory cell in the memory array 250 specified by the row address and the column address. The write command is received by the command decoder 215, and the command decoder 215 provides an internal command so that the write data and the corresponding ECC are received by the data receiver in the input / output circuit 260 and supplied to the ECC control circuit 255 via the input / output circuit 260. The ECC control circuit 255 performs ECC decoding to generate corrected write data and corrected corresponding ECC data. For example, if the write data contains an error (as determined by the ECC control circuit 255 based on the corresponding ECC data), the write data is corrected. The corrected write data and the corrected corresponding ECC data are provided by the ECC control circuit 255 to the memory array 250 to be written into the memory cell MC.
[0039] In some embodiments of the present disclosure, a data bus inversion (DBI) operation may be included in the semiconductor device 200. However, including the DBI operation in the semiconductor device 200 is optional, and some embodiments of the present disclosure do not include the DBI operation. In addition, an ECC operation of the read data provided by the semiconductor device 200 and / or the write data received by the semiconductor device 200 is optional, and some embodiments of the present disclosure do not include the ECC operation.
[0040] In an embodiment of the present disclosure including ECC and DBI operations, with respect to the semiconductor device 200 providing a read command to read data, the ECC control circuit 255 may perform ECC decoding on the read data and the corresponding ECC data to generate intermediate read data and corrected corresponding ECC data. The ECC control circuit 255 may perform DBI encoding on the intermediate read data to provide corrected read data and DBI data, and further perform ECC encoding on the DBI data to generate DBI ECC data. The corrected read data, corrected corresponding ECC data, DBI data, and DBI ECC data are output to the outside via the input / output circuit 260.
[0041] With respect to the semiconductor device 200 for a write command, write data (which is DBI encoded), corresponding ECC data, DBI data, and DBI ECC data are received by the input / output circuit 260 and provided to the ECC control circuit 255. The ECC control circuit 255 may perform ECC decoding on the (DBI encoded) write data and the corresponding ECC data to generate intermediate (DBI encoded) write data and corrected corresponding ECC data. The ECC control circuit 255 may perform ECC decoding on the DBI data and the DBI ECC data to generate corrected DBI data, and perform DBI decoding on the intermediate (DBI encoded) write data based on the corrected DBI data to generate corrected write data. The corrected write data and the corrected corresponding ECC data are provided by the ECC control circuit 255 to the memory array 250 to be written into the memory cells MC.
[0042] The error correction performed by the ECC control circuit 255 may be used to maintain the accuracy of data provided externally to and from the semiconductor device 200 (e.g., data provided between the controller and the semiconductor device 200). In some embodiments of the present disclosure. The ECC control circuit 255 may further perform error correction encoding / decoding to correct data errors that occur when reading data from and / or writing data to the memory array 250. Such data errors may be caused by, for example, soft errors, weak memory cell charge retention, and the like. Such embodiments of the present disclosure may include embodiments in which ECC encoding / decoding for memory bank errors is performed separately (e.g., serially) from ECC encoding / decoding for data errors that occur on a link between the semiconductor device 200 and, for example, a controller, and embodiments in which ECC encoding / decoding for memory bank errors and ECC encoding / decoding for data errors that occur on a link are combined.
[0043] The external clock provided to the input buffer 220 is supplied to the clock terminals CK and / CK. The external clocks may be complementary. The clock input buffer 220 generates an internal clock ICLK based on the CK and / CK clocks. The ICLK clock is provided to the command decoder 215 and the internal clock generator 222. The internal clock generator 222 provides various internal clocks LCLK based on the ICLK clock. The LCLK clock can be used to time the operation of various internal circuits. For example, the clock can be provided to the input / output circuit 260 for providing and receiving data and corresponding ECC data for the input / output circuit 260 and, in embodiments of the present disclosure including DBI operations, providing and receiving DBI data and DBI ECC data.
[0044] Power supply potentials are supplied to power supply terminals VDD and VSS. These power supply potentials are supplied to an internal voltage generator circuit 270. The internal voltage generator circuit 270 generates various internal potentials VPP, VOD, VARY, VPERI, and the like based on the power supply potentials supplied to the power supply terminals VDD and VSS. The internal potential VPP is mainly used in the row decoder 240, the internal potentials VOD and VARY are mainly used in the sense amplifier SAMP included in the memory array 250, and the internal potential VPERI is used in many peripheral circuit blocks.
[0045] A power supply potential is also supplied to the power supply terminals VDDQ and VSSQ. The power supply potential is supplied to the input / output circuit 260. In an embodiment of the present disclosure, the power supply potential supplied to the power supply terminals VDDQ and VSSQ may be the same potential as the power supply potential supplied to the power supply terminals VDD and VSS. In another embodiment of the present disclosure, the power supply potential supplied to the power supply terminals VDDQ and VSSQ may be a potential different from the power supply potential supplied to the power supply terminals VDD and VSS. The power supply potential supplied to the power supply terminals VDDQ and VSSQ is used for the input / output circuit 260 so that the power supply noise generated by the input / output circuit 260 is not propagated to other circuit blocks.
[0046] Figure 3A is a block diagram of an ECC control circuit 300 according to an embodiment of the present disclosure. In some embodiments of the present disclosure, the ECC control circuit 300 may be included in Figure 2 In the ECC control circuit 255 of the semiconductor device 200.
[0047] The ECC control circuit 300 includes a write data control circuit 310 and a read data control circuit 320. The write data control circuit 310 receives data, ECC data, and data bus inversion (DBI) data. The data may be DBI encoded data "D_Data" and the ECC data "ECC(Data, DBI)" may include ECC data for data "ECC(Data)" and ECC data for DBI data "ECC(DBI)". The ECC data, D_Data, and DBI data may be provided to the ECC control circuit 300 by an input / output circuit (e.g., the input / output circuit 260 of the semiconductor device 200 in some embodiments of the present disclosure). For example, the ECC data, D_Data, and DBI data may be provided to the input / output circuit from a controller.
[0048] although Figure 3A Not shown, but the write data control circuit 310 uses ECC(DBI) to correct the DBI data to provide (e.g., generate) corrected DBI data “C_DBI”, which is used by the write data control circuit 310 for DBI decoding D_Data to provide DBI decoded data “Data”. Data is corrected by the write data control circuit 310 using ECC(Data) to provide corrected data “C_Data”. The write data control circuit 310 further provides ECC(Data) as corrected ECC data “C_ECC(Data)”. In some embodiments of the present disclosure, C_ECC(Data) is the same as the ECC(Data) used to correct Data, and is provided to the write data control circuit 310 together with ECC(DBI).
[0049] C_Data and C_ECC(Data) may be provided for writing to a memory array (e.g., Figure 2 In some embodiments of the present disclosure, C_Data and C_ECC(Data) may be written to the memory cells of the memory array together with additional error correction coding (e.g., body ECC), which may be used to correct errors that may occur when C_Data and C_ECC(Data) are stored in the memory array. Body ECC may be used, for example, to correct soft errors, memory cell retention errors, and the like. In some embodiments, body ECC coding may be performed serially and in other embodiments, in combination on the data provided by the write data control circuit 310. In some embodiments of the present disclosure, C_Data and C_ECC(Data) may be written to the memory cells without any additional error correction coding.
[0050] C_ECC(Data) may be based on the ECC data ECC(Data) provided to the write data control circuit 310. In some embodiments of the present disclosure, the C_ECC(Data) provided by the write data control circuit 310 is the same as the ECC(Data) provided to the write data control circuit 310. By not performing an ECC encoding operation on the data to provide C_ECC(Data), the time to prepare the data and the ECC data for storage in the memory may be reduced compared to conventional methods.
[0051] The read data control circuit 320 receives data and ECC data ECC(Data) for the data. In some embodiments of the present disclosure, the data and ECC(Data) may be stored in a memory array and provided to the read data control circuit 320 in response to a read command. For example, in some embodiments of the present disclosure, the data and ECC(Data) are stored in a memory array, and when a read command is received, the data and ECC(Data) are provided from the memory array to the ECC control circuit 300 without any additional error correction decoding. However, in some embodiments of the present disclosure, the data and ECC(Data) from the memory array are ECC decoded before being provided to the ECC control circuit 300. Separate Bank ECC may be used to correct any errors that may have occurred while being stored in the memory array, for example to correct soft errors, memory cell retention errors, and the like.
[0052] The read data control circuit 320 uses ECC (Data) to correct the data it receives, performs DBI encoding on the corrected data to provide DBI encoded data D_Data, and thus generates DBI data. The read data control circuit 320 further generates ECC data ECC (DBI) for the DBI data. The read data control circuit 320 provides D_Data, DBI data and ECC (Data, DBI) to, for example, a controller. ECC (Data) may be based on ECC data stored in a memory with the data. In some embodiments of the present disclosure, ECC (Data) is the same ECC data stored with the pure data (pre-DBI encoding).
[0053] The read data control circuit 320 may provide ECC(Data) without performing an ECC encoding operation on the data having the ECC(Data) from the memory array. The ECC(Data) provided by the read data control circuit 320 to the read data may be based on the ECC(Data) provided to the read data control circuit 320, such as the ECC(Data) stored in the memory array together with the read data. In some embodiments of the present disclosure, the ECC(Data) provided by the read data control circuit 320 is the same as the ECC(Data) provided to the read data control circuit 320 from the memory array. By not performing an ECC encoding operation on the data to provide the ECC(Data), the time to prepare the data and the ECC data provided by the read data control circuit 320 may be reduced compared to conventional methods.
[0054] In some embodiments of the present disclosure, the ECC operations performed by the write data control circuit 310 and the read data control circuit 320 are based on a common (e.g., the same) determinant (e.g., an H matrix). For example, both the write data control circuit 310 and the read data control circuit 320 may use the same H matrix for ECC decoding and / or ECC encoding. By using a common H matrix, as in some embodiments of the present disclosure, one or more ECC encoding operations may be omitted compared to conventional methods of using ECC operations in a memory system.
[0055] Example H-matrices and error correction circuits are described in U.S. Patent No. 9,690,653, filed on September 11, 2015 and issued on June 27, 2017, the entire disclosure of which is incorporated herein by reference.
[0056] As previously described, in some embodiments of the present disclosure, additional error correction encoding may be performed on the data and ECC(Data) provided by the ECC control circuit (e.g., the ECC control circuit 300). For example, bank ECC encoding may be performed on the data and ECC(Data) provided by the ECC control circuit 300.
[0057] Figure 3B is a block diagram of a write data control circuit 313 according to an embodiment of the present disclosure. The write data control circuit 313 Figure 3B 3 shows that the correction data C_Data and the correction ECC data C_ECC(Data) are provided to the memory bank ECC encoding circuit 301. In some embodiments of the present disclosure, the write data control circuit 313 may be included in Figure 3A The ECC control circuit 300 is written into the data control circuit 310.
[0058] The write data control circuit 313 includes a deserialization circuit 315 to which DBI encoded data "D_Data", ECC data "ECC(Data, DBI)" and DBI data "DBI" are provided. The ECC(Data, DBI) provided to the deserialization circuit 315 may include ECC data "ECC(Data)" for DBI encoded data and ECC data "ECC(DBI)" for DBI data. D_Data, ECC(Data, DBI) and DBI data may be provided in a serial manner. The deserialization circuit 315 deserializes D_Data, ECC(Data, DBI) and DBI data and provides D_Data, ECC(Data), ECC(DBI) and DBI data in a parallel manner. Reference will be made later to Figure 4 To describe serial and parallel ways of providing data.
[0059] The write data control circuit 313 includes an ECC decoding circuit 325. The ECC decoding circuit 325 is provided with ECC(DBI) and DBI data from the deserialization circuit 315. The ECC decoding circuit 325 uses ECC(DBI) to correct the DBI data and provides corrected DBI data "C_DBI". The write data control circuit 313 further includes an ECC decoding circuit 340. D_Data is provided to the ECC decoding circuit 340 together with the ECC(Data), and the ECC decoding circuit 340 uses the ECC(Data) to correct the D_Data to provide corrected DBI encoded data "CD_Data" (which can be regarded as intermediate data). The ECC decoding circuit 340 further provides the ECC(Data) as corrected ECC data "C_ECC(Data)". In some embodiments of the present disclosure, C_ECC(Data) is the same as the ECC(Data) used to correct the data and provided to the deserialization circuit 315 together with the ECC(DBI).
[0060] CD_Data is provided together with C_DBI to a DBI decoding circuit 330 also included in the write data control circuit 313. The DBI decoding circuit 330 decodes the CD_Data using C_DBI to provide correction data "C_Data". C_Data and C_ECC(Data) are provided to the memory bank ECC encoding circuit 301, which ECC encodes C_Data and C_ECC(Data) to provide ECC(Data) and C_Data. ECC(Data) and C_Data may be provided to a memory array for storage.
[0061] In the write data control circuit 313, ECC decoding for (DBI encoded) D_Data and ECC decoding for DBI data are performed in parallel by ECC decoding circuit 340 and ECC decoding circuit 325, respectively. In the arrangement of the write data control circuit 313 with ECC decoding of D_Data and ECC decoding of DBI data performed in parallel, ECC decoding of D_Data occurs before DBI decoding of (corrected) DBI encoded data CD_Data. For embodiments of the present disclosure (e.g., the write data control circuit 313) in which DBI encoded data CD_Data is decoded by the ECC decoding circuit ECC, the result of ECC decoding of the DBI encoded data CD_Data preferably provides the same calculation result as the ECC decoding of pure data. That is, there will be no problem in ECC decoding correcting errors in the DBI encoded data CD_Data.
[0062] Figure 3C FIG. 3 is a block diagram of a read data control circuit 323 according to an embodiment of the present disclosure. Figure 3C 303 receives ECC (Data) and Data from the memory bank ECC decoding circuit 303. In some embodiments of the present disclosure, the read data control circuit 323 may be included in Figure 3A The read data control circuit 320 of the ECC control circuit 300 .
[0063] For example, "Data" and ECC data "ECC(Data)" for Data are provided from the memory array to the memory body ECC decoding circuit 303. The memory body ECC decoding circuit 303 uses ECC(Data) to correct Data to provide correction data "C_Data" (which can be regarded as intermediate data). The memory body ECC decoding circuit 303 further provides ECC(Data) as correction ECC data "C_ECC(Data)". In some embodiments of the present disclosure, C_ECC(Data) is the same as the ECC(Data) used to correct Data and provided to the memory body ECC decoding circuit 303 together with Data. As previously described, the memory body error correction coding can be used to correct any errors that may have occurred when stored in the memory array.
[0064] C_Data is provided to the DBI encoding circuit 318. The DBI encoding circuit 318 evaluates the C_Data and thus encodes the C_Data to provide DBI encoded correction data "DC_Data". The DBI encoding circuit 318 further provides DBI data "DBI" indicating that the DC_Data is true or complementary to the C_Data. The DBI data is provided to the ECC encoding circuit 328. The ECC encoding circuit 328 evaluates the DBI data and provides ECC data "ECC(DBI)" of the DBI data based on the DBI data. ECC(DBI) can be used, for example, by a controller to correct the DBI data. DC_Data is provided to the ECC encoding circuit 338. The ECC encoding circuit 338 evaluates the DC_Data and provides ECC data "ECC(Data)" of the DC_Data based on the DC_Data data. ECC(Data) can be used, for example, by a controller to correct the DC_Data. In the read data control circuit 323, ECC encoding for (DBI encoded) DC_Data and ECC encoding for DBI data are performed in parallel by the ECC encoding circuit 338 and the ECC encoding circuit 328, respectively.
[0065] ECC(DBI) and DBI data are provided to serial circuit 348 by ECC encoding circuit 328. ECC(Data) and DC_Data are also provided to serial circuit 348 by ECC encoding circuit 338. Serial circuit 348 is provided DC_Data, ECC(Data), DBI data, and ECC(DBI) in parallel, and serializes them to provide D_Data, DBI data, and ECC data of D_Data and DBI data "ECC(Data, DBI)" in a serial manner. For example, D_Data, DBI data, and ECC(Data, DBI) may be provided to a controller.
[0066] The ECC data C_ECC(Data) of D_Data may be provided by the read data control circuit 323 without performing an ECC encoding operation on Data or C_Data. For example, the ECC data C_ECC(Data) may have been encoded using a common (e.g., identical) determinant (e.g., an H matrix) that is also used for ECC decoding of D_Data based on C_ECC(Data), such as by a controller that is provided with C_ECC(Data) and D_Data and / or by a write data controller circuit that provides Data and ECC(data) that are written to the memory array and may be later provided to the read data control circuit 323 for a read operation. Performing the same ECC operation based on the same H matrix (e.g., by a controller and also by a semiconductor device) may allow one or more ECC encoding operations of D_Data to be avoided.
[0067] In an embodiment of the present disclosure including the read data control circuit 323, Figure 3B The write data control circuit 313 of the present disclosure may be used to perform operations for providing C_Data and C_ECC(Data) written to the memory array (which is later provided to the read data control circuit 323 in response to a read operation). In some embodiments of the present disclosure, the ECC decoding performed by the write data control circuit 313 may be performed based on a common H matrix that is also used for the ECC decoding performed by the read control circuit 323. In some embodiments of the present disclosure, the read data control circuit 323 may be used with a different write data control circuit.
[0068] Figure 3D is a flow chart for error correction coding between a controller and a memory according to an embodiment of the present disclosure. The upper half of the figure shows a process for writing data to the memory and the lower half of the figure shows a process for reading data from the memory. In some embodiments of the present disclosure, the process for writing data to the memory may be executed by the write data control circuit 313. In some embodiments of the present disclosure, the process for reading data from the memory may be executed by the read data control circuit 323. Figure 3D As shown in , ECC decoding for write data and ECC decoding for DBI data are performed in parallel in the memory, and ECC encoding for read data and ECC encoding for DBI data are performed in parallel in the memory. Figure 3D As shown in , link ECC for correcting errors in transferred data from the controller and memory is performed separately (and serially) from the bank ECC.
[0069] Figure 4 4 is a block diagram of a write data control circuit 400 according to an embodiment of the present disclosure. In some embodiments of the present disclosure, the write data control circuit 400 may be included in Figure 3A The ECC control circuit 300 is written into the data control circuit 310.
[0070] The write data control circuit 400 includes a deserialization circuit 410, which is provided with DBI encoded data "D_Data", ECC data "ECC(Data, DBI)", and DBI data "DBI". The ECC(Data, DBI) provided to the deserialization circuit 410 may include ECC data "ECC(Data)" for DBI encoded data and ECC data "ECC(DBI)" for DBI data. D_Data, ECC(Data, DBI), and DBI data may be provided to the deserialization circuit 410 in a serial manner, i.e., as a plurality of bits that are continuously provided to the deserialization circuit 410. Each bit may have a timing synchronized with a clock (e.g., a data clock).
[0071] The deserialization circuit 410 deserializes the D_Data, ECC(Data, DBI), and DBI data and provides the D_Data, ECC(Data), ECC(DBI), and DBI data in parallel. For example, the N bits of D_Data may be received continuously one bit at a time over N / 2 clock cycles of the data clock, and the deserialization circuit 410 collects the N bits into a group and then provides all N bits of D_Data simultaneously. Similarly, the serially provided bits of the ECC(Data, DBI) and DBI data are collected into groups and provided in parallel by the deserialization circuit 410.
[0072] The write data control circuit 400 further includes an ECC decoding circuit 420. The ECC decoding circuit 420 is provided with ECC (DBI) and DBI data from the deserialization circuit 410. The ECC decoding circuit 420 uses ECC (DBI) to correct the DBI data and provides corrected DBI data "C_DBI". C_DBI is provided to a DBI decoding circuit 430 also included in the write data control circuit 400 together with the DBI encoded data D_Data. The DBI decoding circuit 430 uses C_DBI to decode D_Data to provide pure (unencoded) "Data" (which can be regarded as intermediate data). The write data control circuit 400 further includes an ECC decoding circuit 440. Data is provided to the ECC decoding circuit 440 together with ECC (Data), and the ECC decoding circuit 440 uses ECC (Data) to correct Data to provide corrected data "C_Data". The ECC decoding circuit 440 further provides ECC (Data) as corrected ECC data "C_ECC (Data)". In some embodiments of the present disclosure, C_ECC(Data) is the same as ECC(Data) used to correct the data and provided to the deserialization circuit 410 together with ECC(DBI).
[0073] In some embodiments of the present disclosure, the write data control circuit 400 may provide a data storage device (eg, Figure 2 C_Data and C_ECC(Data) in the memory array 250 of the semiconductor device 200.
[0074] The ECC data C_ECC(Data) for C_Data may be provided by the write data control circuit 400 without performing an ECC encoding operation on C_Data before providing C_Data and C_ECC(Data) for storage in the memory. C_ECC(Data) may be based on the ECC data ECC(Data) provided to the deserialization circuit 410. For example, in some embodiments of the present disclosure, C_ECC(Data) is the same ECC(Data) provided to the deserialization circuit 410. As previously described, by not performing an ECC encoding operation on C_Data to provide C_ECC(Data), the time to prepare the data and ECC data provided by the write data control circuit 400 may be reduced compared to conventional methods.
[0075] Figure 5A is a block diagram of a read data control circuit 500 according to an embodiment of the present disclosure. In some embodiments of the present disclosure, the read data control circuit 500 may be included in Figure 3A The read data control circuit 320 of the ECC control circuit 300 .
[0076] The read data control circuit 500 includes an ECC decoding circuit 510. The ECC decoding circuit 510 is provided with "Data" and ECC data "ECC(Data)" for Data. The ECC decoding circuit 510 uses ECC(Data) to correct Data to provide correction data "C_Data" (which can be regarded as intermediate data). The ECC decoding circuit 510 further provides ECC(Data) as correction ECC data "C_ECC(Data)". In some embodiments of the present disclosure, C_ECC(Data) is the same as the ECC(Data) used to correct the data and provided to the ECC decoding circuit 510 together with the Data.
[0077] The C_Data is provided to a DBI encoding circuit 520. The DBI encoding circuit 520 evaluates the C_Data and thus encodes the C_Data to provide DBI encoded correction data "DC_Data". The DBI encoding circuit 520 further provides DBI data "DBI" indicating whether the DC_Data is true or complementary to the C_Data. The DBI data is provided to an ECC encoding circuit 530. The ECC encoding circuit 530 evaluates the DBI data and provides ECC data "ECC(DBI)" for the DBI data based on the DBI data. ECC(DBI) may be used, for example, by a controller to correct the DBI data.
[0078] The ECC (DBI) and DBI data are provided to the serial circuit 540 by the ECC encoding circuit 530. The serial circuit 540 is also provided with DC_Data and C_ECC (Data). The serial circuit 540 is provided with DC_Data, C_ECC (Data), DBI data, and ECC (DBI) in parallel, and serializes them to provide D_Data, DBI data, and ECC data "ECC (Data, DBI)" for D_Data and DBI data in a serial manner. For example, the D_Data, DBI data, and ECC (Data, DBI) can be provided to a controller.
[0079] The ECC data C_ECC(Data) for D_Data may be provided by the read data control circuit 500 without performing an ECC encoding operation on Data or C_Data. For example, the ECC data C_ECC(Data) may have been encoded using a common (e.g., identical) determinant (e.g., an H matrix) (which is also used for ECC decoding of D_Data based on C_ECC(Data)), such as by a controller provided with C_ECC(Data) and D_Data and / or by a write data controller circuit that provides data and ECC(data) (which are written to a memory array and may be later provided to the read data control circuit 500 for a read operation). Performing the same ECC operation based on the same H matrix (e.g., by a controller and also by a semiconductor device) may allow one or more ECC encoding operations for D_Data to be avoided. C_ECC(Data) may be based on ECC data ECC(Data) provided to the ECC decoding circuit 510. For example, the ECC(Data) may be stored in a memory array together with the Data, such as provided to the ECC decoding circuit 510 together. In some embodiments of the present disclosure, the ECC (Data) provided by the read data control circuit 500 is the same as the ECC (Data) provided to the ECC decoding circuit 510. By not performing an ECC encoding operation on Data or C_Data to provide C_ECC (Data), the time to prepare the data and ECC data provided by the read data control circuit 500 can be reduced compared to conventional methods.
[0080] In an embodiment of the present disclosure including the read data control circuit 500, Figure 4The write data control circuit 400 may be used to perform operations for providing D_Data and ECC(Data) written to the memory array (which is later provided to the read data control circuit 500 in response to a read operation). In some embodiments of the present disclosure, the ECC decoding performed by the write data control circuit 400 may be performed based on a common H matrix that is also used for the ECC decoding performed by the read control circuit 500. In some embodiments of the present disclosure, the read data control circuit 500 may be used with a different write data control circuit.
[0081] Figure 5B is a flow chart for error correction coding between a controller and a memory according to an embodiment of the present disclosure. The upper half of the figure shows a process for writing data to the memory and the lower half of the figure shows a process for reading data from the memory. In some embodiments of the present disclosure, the process for writing data to the memory may be executed by the write data control circuit 400. In some embodiments of the present disclosure, the process for reading data from the memory may be executed by the read data control circuit 500. Figure 5B As shown in , ECC decoding for DBI data and ECC decoding for write data are performed serially in the memory, and ECC decoding for read data and ECC encoding for DBI data are performed serially in the memory. Figure 5B As shown in FIG. 1 , ECC encoding is performed in the controller before DBI encoding. The reverse flow of ECC decoding after DBI decoding is applied by the memory.
[0082] Fig. 6A is a block diagram of a write data control circuit 600 according to an embodiment of the present disclosure. In some embodiments of the present disclosure, the write data control circuit 600 may be included in Figure 3A The ECC control circuit 300 is written into the data control circuit 310.
[0083] The write data control circuit 600 includes a deserialization circuit 610, which is provided with DBI encoded data "D_Data", ECC data "ECC(Data, DBI)" and DBI data "DBI". The ECC(Data, DBI) provided to the deserialization circuit 610 may include ECC data "ECC(Data)" for DBI encoded data and ECC data "ECC(DBI)" for DBI data. D_Data, ECC(Data, DBI) and DBI data may be provided in a serial manner. The deserialization circuit 610 deserializes D_Data, ECC(Data, DBI) and DBI data and provides D_Data, ECC(Data), ECC(DBI) and DBI data in a parallel manner. Previously referenced Figure 4 Describes serial and parallel ways of providing data.
[0084] The write data control circuit 600 includes an ECC decoding circuit 620. The ECC decoding circuit 620 is provided with ECC(DBI) and DBI data from the deserialization circuit 610. The ECC decoding circuit 620 uses ECC(DBI) to correct the DBI data and provides corrected DBI data "C_DBI". The write data control circuit 600 further includes an ECC decoding circuit 640. D_Data is provided to the ECC decoding circuit 640 together with the ECC(Data), and the ECC decoding circuit 640 uses the ECC(Data) to correct the D_Data to provide corrected DBI encoded data "CD_Data" (which can be regarded as intermediate data). The ECC decoding circuit 640 further provides the ECC(Data) as corrected ECC data "C_ECC(Data)". In some embodiments of the present disclosure, C_ECC(Data) is the same as the ECC(Data) used to correct the data and provided to the deserialization circuit 610 together with the ECC(DBI).
[0085] CD_Data is provided together with C_DBI to a DBI decoding circuit 630 also included in the write data control circuit 600. The DBI decoding circuit 630 decodes the CD_Data using C_DBI to provide correction data "C_Data".
[0086] and Figure 4 Compared to the write data control circuit 400 of the embodiment of the present invention, in the write data control circuit 600, the ECC decoding of (DBI encoded) D_Data and the ECC decoding of DBI data are performed in parallel by the ECC decoding circuit 640 and the ECC decoding circuit 620, respectively. In the write data control circuit 400, the ECC decoding of DBI data by the ECC decoding circuit 420, the DBI decoding of D_Data by the DBI decoding circuit 430 to recover the pure data, and the ECC decoding of the pure data by the ECC decoding circuit 440 are performed serially. In this arrangement, the DBI decoding that provides the pure data occurs before the ECC decoding of the Data. However, in the arrangement of the write data control circuit 600 with the ECC decoding of D_Data and the ECC decoding of DBI data performed in parallel, the ECC decoding of D_Data occurs before the DBI decoding of the (corrected) DBI encoded data CD_Data. Due to the parallel operation of the write data control circuit 600, it may take less time to process the write data for writing to the memory array than the write data control circuit 400.
[0087] In an embodiment of the present disclosure including the write data control circuit 600, Figure 5AThe read data control circuit 500 may be used to perform operations for providing D_Data, DBI data, and ECC (Data, DBI) data of some embodiments. In other embodiments of the present disclosure, the write data control circuit 600 may be used together with a different read data control circuit.
[0088] For the embodiments of the present disclosure in which the DBI encoded data CD_Data is decoded by the ECC decoding circuit ECC (e.g., the write data control circuit 600), the result of the ECC decoding of the DBI encoded data CD_Data preferably provides the same calculation result as the ECC decoding of the pure Data. That is, the ECC decoding will not have any problem correcting errors in the DBI encoded data CD_Data.
[0089] Figure 6B 605 is a block diagram of a read data control circuit 605 according to an embodiment of the present disclosure. In some embodiments of the present disclosure, the read data control circuit 605 may be included in Figure 3A The read data control circuit 320 of the ECC control circuit 300. In some embodiments of the present disclosure, the read data control circuit 605 can be used together with the write data control circuit 600.
[0090] The read data control circuit 605 Figure 6B 6 is shown as receiving ECC(Data) and Data. For example, Data and ECC(Data) may be provided from a memory array. Data is provided to a DBI encoding circuit 615. The DBI encoding circuit 615 evaluates Data and thus encodes Data to provide DBI encoded data "D_Data". The DBI encoding circuit 615 further provides DBI data "DBI" indicating whether D_Data is true or complementary to Data. The DBI data is provided to an ECC encoding circuit 625. The ECC encoding circuit 625 evaluates the DBI data and provides ECC data "ECC(DBI)" for the DBI data based on the DBI data. ECC(DBI) may be used, for example, by a controller to correct the DBI data.
[0091] D_Data and ECC(Data) are provided to the ECC decoding circuit 645. The ECC decoding circuit 645 uses the ECC(Data) to correct the D_Data to provide correction data "CD_Data" (which can be regarded as intermediate data). The ECC decoding circuit 645 further provides the ECC(Data). The ECC(Data) can be used, for example, by the controller to correct the D_Data. In some embodiments of the present disclosure, the ECC(Data) provided by the ECC decoding circuit 645 is the same as the ECC(Data) used to correct the D_Data and provided to the ECC decoding circuit 645 together with the D_Data.
[0092] In the read data control circuit 605 , the ECC decoding circuit 645 and the ECC encoding circuit 625 perform ECC decoding of the D_Data and ECC encoding of the DBI data in parallel, respectively.
[0093] ECC(DBI) and DBI data are provided to serial circuit 635 by ECC encoding circuit 625. ECC(Data) and CD_Data are also provided to serial circuit 635 by ECC encoding circuit 645. Serial circuit 635 is provided with CD_Data, ECC(Data), DBI data, and ECC(DBI) in parallel, and serializes them to provide CD_Data, DBI data, and ECC data "ECC(Data, DBI)" for D_Data and DBI data in a serial manner. For example, CD_Data, DBI data, and ECC(Data, DBI) may be provided to a controller.
[0094] The ECC data ECC(Data) for CD_Data may be provided by the read data control circuit 605 without performing an ECC encoding operation on Data or D_Data. For example, the ECC data ECC(Data) may have been encoded using a common (e.g., identical) determinant (e.g., an H matrix) that is also used for ECC decoding of CD_Data based on ECC(Data), such as by a controller that is provided with ECC(Data) and CD_Data and / or by a read data controller circuit that provides data and ECC(data) read from a memory array. Performing the same ECC operation based on the same H matrix (e.g., by a controller and also by a semiconductor device) may allow one or more ECC encoding operations for the data to be avoided.
[0095] In an embodiment of the present disclosure including the read data control circuit 605, Fig. 6A The write data control circuit 600 may be used to perform operations for providing C_Data and C_ECC(Data) written to the memory array (which are later provided to the read data control circuit 323 as Data and ECC(Data) in response to a read operation). In some embodiments of the present disclosure, the ECC decoding performed by the write data control circuit 600 may be performed based on a common H matrix that is also used for the ECC decoding performed by the read control circuit 605. In some embodiments of the present disclosure, the read data control circuit 605 may be used with a different write data control circuit.
[0096] Figure 7A-1 , 7A-2 7A-3 and 7B are diagrams of determinants (eg, H matrices) for performing ECC encoding and / or decoding operations according to embodiments of the present disclosure. Figure 7A-1 ,7A-2 and 7A-3 are example determinants that may be used for the data. Figure 7B is an example determinant that can be used for DBI data. Figure 7A-1 , 7A-2 The example determinants of 7A-3 and 7B have an even number of "1"s and "0"s in each byte (S0, S1, ..., S8). Therefore, Figure 7A-1 , 7A-2 The example determinants of 7A-3 and 7B provide the same ECC calculation results for both pure data and DBI encoded data.
[0097] Figure 7A-1 , 7A-2 The determinants of 7A-3 and 7B may be used with, for example, an error correction circuit similar to the error correction circuit disclosed in previously cited and previously described U.S. Patent No. 9,690,653, the entire disclosure of which is incorporated herein by reference. As described in the '653 patent, each syndrome factor (Si) may be constructed by an EXOR circuit with each data entry 1 in the H matrix. The syndrome S (non-zero) indicates a 1 error and the position of the error bit of the formula S=0. If the H matrix has only an even number of "1"s in each byte, then the EXOR circuit outputs the same result. For example, if Data is DBI encoded, then the input to the EXOR circuit changes from 00000000 to 11111111, however, the calculated result is the same "0" (no error). Similarly, the input to the EXOR circuit changes from 00100000 to 11011111, however, the calculated result is the same "1" (with error).
[0098] Figure 7A-1 , 7A-2 The example determinants of 7A-3 and 7B may be used with ECC decoding of DBI encoded data and ECC decoding of DBI data performed in parallel, and with ECC decoding of DBI encoded data prior to DBI decoding of (corrected) DBI encoded data. The embodiments of the present disclosure are not intended to be limited to Figure 7A-1 , 7A-2 7A-3 and 7B, thus, other embodiments of the present disclosure use alternative determinants for ECC decoding and / or encoding.
[0099] Fig. 8A 8 is a block diagram of a write data control circuit 800 according to an embodiment of the present disclosure. In some embodiments of the present disclosure, the write data control circuit 800 may be included in Figure 3A The ECC control circuit 300 is written into the data control circuit 310.
[0100] The write data control circuit 800 includes a deserialization circuit 810 that is provided with DBI encoded data “D_Data” and DBI data “DBI.” The D_Data and DBI data may be provided in a serial manner, and the deserialization circuit 810 deserializes the D_Data and DBI data and provides the D_Data and DBI data in a parallel manner.
[0101] The write data control circuit 800 further includes an ECC decoding circuit 820 and an ECC decoding circuit 840. In the write data control circuit 800, it is assumed that the ECC decoding circuits 820 and 840 are disabled and bypassed (e.g., skipped) because only DBI encoded data D_Data and DBI data are provided to the write data control circuit 800. Therefore, D_Data and DBI data are provided to the DBI decoding circuit 830 included in the write data control circuit 800 through the ECC decoding circuit 840 and the ECC decoding circuit 820, respectively. The DBI decoding circuit 830 decodes D_Data using the DBI data to provide DBI decoded data "Data". Data is provided by the write data control circuit 800 to the ECC encoding circuit 850. The ECC encoding circuit 850 evaluates Data and provides ECC data "ECC(Data)" for Data. Data and ECC(Data) may be stored in a memory array (e.g., Figure 2 The ECC coding circuit 850 provides bank error correction coding, which can be used to correct errors that may have occurred when storing in the memory array.
[0102] In the embodiment of the present disclosure including the write data control circuit 800, the Figure 5A The read data control circuit 500 of the embodiment of the present disclosure is used to perform operations for providing D_Data and DBI data. In such embodiments, the ECC decoding circuit 510 does not provide correction ECC data (e.g., C_ECC(Data)) and the ECC encoding circuit 530 is disabled to also not provide ECC data for DBI data (e.g., ECC(DBI)). Therefore, only DBI encoded data D_Data and DBI data are provided by the read data control circuit 500. D_Data and DBI data can be provided to, for example, a controller. In other embodiments of the present disclosure, the write data control circuit 800 can be used with different read data control circuits.
[0103] Figure 8B 805 is a block diagram of a read data control circuit 805 according to an embodiment of the present disclosure. Figure 8B In some embodiments of the present disclosure, the read data control circuit 805 may include: Figure 3A The read data control circuit 805 is used in the read data control circuit 320 of the ECC control circuit 300. In some embodiments of the present disclosure, the read data control circuit 805 can be used together with the write data control circuit 800.
[0104] For example, "Data" and ECC data "ECC(Data)" for Data are provided from the memory array to the bank ECC decoding circuit 803. The bank ECC decoding circuit 803 uses ECC(Data) to correct Data to provide correction data "C_Data" (which can be considered as intermediate data). As previously described, bank error correction coding can be used to correct any errors that may have occurred while being stored in the memory array.
[0105] The read data control circuit 805 Figure 8B 8 is shown as receiving C_Data from the memory bank ECC decoding circuit 803. C_Data is provided to the DBI encoding circuit 815. The DBI encoding circuit 815 evaluates Data and encodes Data accordingly to provide DBI encoded data "DC_Data". The DBI encoding circuit 815 further provides DBI data "DBI" indicating whether the DC_Data is true or complementary to the C_Data. The DBI data is provided to the ECC encoding circuit 825 and the DC_Data is provided to the ECC encoding circuit 845.
[0106] In the read data control circuit 805, it is assumed that the ECC encoding circuits 825 and 845 are disabled and bypassed and the ECC data ECC(Data) and ECC(DBI) are not provided by the read data control circuit 805. Therefore, the DC_Data and the DBI data are provided to the serial circuit 835 through the ECC encoding circuit 845 and the ECC encoding circuit 825, respectively, and the serial circuit 835 serializes the DC_Data and the DBI data to provide the DC_Data and the DBI data in a serial manner. The DC_Data and the DBI data may be provided to, for example, a controller.
[0107] In the embodiment of the present disclosure including the write data control circuit 800, a read data control circuit 805 may also be included to perform operations for providing DC_Data and DBI data. In other embodiments of the present disclosure, the read data control circuit 805 may be used with different write data control circuits. Fig. 9 9 is a layout diagram of a write data control circuit and a read data control circuit according to various embodiments of the present disclosure. The layout diagram includes a peripheral area 910 and a memory array area 920 .
[0108] For the write data control circuit, ECC decoding (DBI) and DBI decoding may be performed by circuits in the peripheral region 910, such as circuits located in regions 913 and 915, respectively. ECC decoding (Data) for the write data control circuit may be performed by circuits in the peripheral region 910 or the memory cell array region 920. When performed by circuits in the memory cell array region 920, the circuits may be located, for example, in region 925. However, ECC decoding (Data) may be preferably in the peripheral region 910 to avoid having an extra signal line in the memory cell array region 920.
[0109] For the read data control circuit, ECC encoding (DBI) and DBI encoding may be performed by circuits in the peripheral region 910, such as circuits located in regions 913 and 915, respectively. ECC decoding (Data) for the read data control circuit may be performed by circuits in the peripheral region 910 or the memory cell array region 920 in the same manner as previously described for the write data control circuit.
[0110] In an embodiment of a write data control circuit provided with DBI encoded data D_Data and DBI data (without ECC data for data or DBI data), the additional ECC encoding (Data) may be arranged in the memory cell array area 920, which may reduce the number of signal lines extending from the peripheral area 910 to the memory cell array area 920, which may be relatively long signal lines. Reducing the number of relatively long signal lines may reduce power consumption. Similarly, the ECC decoding (Data) for the read data control circuit may be arranged in the memory cell array area 920.
[0111] Fig. 9 The layout is for demonstration only and is not intended to limit the scope of the present disclosure. Fig. 9 Therefore, other embodiments of the present disclosure may include Fig. 9 Layout of the write data control circuit and the read data control circuit other than the layout shown in .
[0112] It should be understood from the above that although specific embodiments of the present disclosure have been described herein for illustrative purposes, various modifications may be made without departing from the spirit and scope of the present disclosure. Therefore, the scope of the present disclosure should not be limited to any specific embodiments described herein.
Claims
1. A method comprising: Receive write data and corresponding ECC data from a signal bus; correcting the write data based on the corresponding ECC data to provide corrected write data; providing corrected corresponding ECC data based on the corresponding ECC data, wherein the corrected write data and the corrected corresponding ECC data are provided for storage in a memory array; and Before correcting the write data based on the corresponding ECC data, the write data is DBI-decoded based on the corrected DBI data. 2 . The method of claim 1 , wherein the corrected corresponding ECC data comprises the corresponding ECC data.
3. The method according to claim 1, further comprising: Error correction encoding is performed on the corrected write data before storing the corrected write data in the memory.
4. The method according to claim 1, further comprising: receiving read data and corresponding ECC data from the memory array; correcting the read data based on the corresponding ECC data to provide corrected read data; and Corrected corresponding ECC data is provided based on the corresponding ECC data, wherein the corrected read data and the corrected corresponding ECC data are provided to the signal bus. The method of claim 4 , wherein the corrected corresponding ECC data comprises the corresponding ECC data.
6. A method comprising: Receive write data and corresponding ECC data from a signal bus; correcting the write data based on the corresponding ECC data to provide corrected write data; providing corrected corresponding ECC data based on the corresponding ECC data, wherein the corrected write data and the corrected corresponding ECC data are provided for storage in a memory array; and After the write data is corrected based on the corresponding ECC data, the write data is DBI-decoded based on the corrected DBI data.
7. A method comprising: Receive write data and corresponding ECC data from a signal bus; correcting the write data based on the corresponding ECC data to provide corrected write data; and Corrected corresponding ECC data is provided based on the corresponding ECC data, wherein the corrected write data and the corrected corresponding ECC data are provided for storage in a memory array, wherein correcting the write data based on the ECC data corresponding to the write data and correcting the DBI data based on the ECC data corresponding to the DBI data are performed in parallel, and wherein correcting the write data based on the ECC data is performed according to a determinant that provides the same ECC calculation result for both pure data and DBI encoded data.
8. A method comprising: Receive write data and corresponding ECC data from a signal bus; correcting the write data based on the corresponding ECC data to provide corrected write data; Corrected corresponding ECC data is provided based on the corresponding ECC data, wherein the corrected write data and the corrected corresponding ECC data are provided to be stored in a memory array, wherein correcting the write data based on the ECC data corresponding to the write data and correcting the DBI data based on the ECC data corresponding to the DBI data are performed in parallel, and wherein correcting the write data based on the ECC data is performed according to a determinant that causes an even number of "1"s and "0"s to be included in each byte.
9. A method comprising: Receive write data and corresponding ECC data from a signal bus; correcting the write data based on the corresponding ECC data to provide corrected write data; providing corrected corresponding ECC data based on the corresponding ECC data, wherein the corrected write data and the corrected corresponding ECC data are provided for storage in a memory array; receiving read data and corresponding ECC data from the memory array; correcting the read data based on the corresponding ECC data to provide corrected read data; providing corrected corresponding ECC data based on the corresponding ECC data, wherein the corrected read data and the corrected corresponding ECC data are provided to the signal bus; and DBI encoding the corrected read data, and ECC encoding the DBI data to provide ECC data corresponding to the DBI data; and The DBI data and the ECC data corresponding to the DBI data are provided to the signal bus.
10. A method comprising: Receive write data and corresponding ECC data from a signal bus; correcting the write data based on the corresponding ECC data to provide corrected write data; providing corrected corresponding ECC data based on the corresponding ECC data, wherein the corrected write data and the corrected corresponding ECC data are provided for storage in a memory array; receiving read data and corresponding ECC data from the memory array; correcting the read data based on the corresponding ECC data to provide corrected read data; providing corrected corresponding ECC data based on the corresponding ECC data, wherein the corrected read data and the corrected corresponding ECC data are provided to the signal bus; and Error correction encoding is performed on the read data prior to receiving the read data from the memory array.
11. A method comprising: receiving first data, data bus inversion (DBI) data associated with the first data, first ECC data associated with the first data, and second ECC data associated with the DBI data; generating corrected DBI data by performing a first ECC decode in response at least in part to the DBI data and the second ECC data; generating corrected first data and corrected first ECC data by performing second ECC decoding in response at least in part to the corrected DBI data and the first ECC data; and The corrected first data and the corrected first ECC data are stored in a memory array.
12. The method according to claim 11, further comprising: receiving the first data and the corrected DBI data, and generating DBI-decoded first data; and The DBI-decoded first data and the first ECC data are received, and the corrected and DBI-decoded first data are generated as the corrected and corrected first ECC data.
13. The method according to claim 11, further comprising: receiving the first data and the first ECC data, and generating corrected first data and corrected first ECC data; and The corrected first data and the corrected DBI data are received, and the corrected and DBI-decoded first data are generated.
14. The method according to claim 11, further comprising: Second data and third ECC data are received from the memory array, and corrected second data and corrected third ECC data are generated.
15. The method according to claim 14, further comprising: generating additional DBI data in response to the corrected second data; and Fourth ECC data is generated in response to the additional DBI data.
16. The method according to claim 14, further comprising: externally outputting the third data, the additional DBI data, the corrected third ECC data and the fourth ECC data, The third data is generated in response to the corrected second data and the additional DBI data.
17. A method comprising: receiving first data and first ECC data associated with the first data; generating corrected first data and corrected first ECC data by performing a first ECC decoding at least in part in response to the first data and the first ECC data, storing the corrected first data and the corrected first ECC data in a memory array; receiving second data and second ECC data corresponding to the second data from the memory array; generating corrected second data and corrected second ECC data by performing second ECC decoding; and The corrected second data and the corrected second ECC data are transmitted.
18. The method of claim 17, wherein each of the first ECC decoding and the second ECC decoding is performed based on a common H matrix.
19. The method according to claim 17, wherein the second data is DBI data, and the first data is DBI-encoded based on the DBI data, further comprising: generating corrected DBI data by performing second ECC decoding on the DBI data in response to the second ECC data; generating intermediate first data by performing DBI decoding on the first data in response to the corrected DBI data; and The corrected first data and the corrected first ECC data are generated by performing the first ECC decoding on the intermediate first data and the first ECC data.
20. The method according to claim 17, wherein the second data is DBI data, and the first data is DBI-encoded based on the DBI data, further comprising: generating intermediate first data and the corrected first ECC data by performing the first ECC decoding on the first data and the first ECC data; generating corrected DBI data by performing second ECC decoding on the DBI data and the second ECC data; and In response to the corrected DBI data, the corrected first data is generated by performing DBI decoding on the intermediate first data.
21. The method according to claim 20, further comprising: receiving second data and second ECC data corresponding to the second data from the memory array, generating intermediate second data and corrected second ECC data by performing third ECC decoding on the second data and the second ECC data; generating corrected second data and additional DBI data by performing DBI encoding on the intermediate second data; generating third ECC data by performing ECC encoding on the additional DBI data; and The corrected second data, the corrected second ECC data, the additional DBI data, and the third ECC data are transmitted.
