Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
ERROR CORRECTION CODE MANAGEMENT OF WRITE-ONCE MEMORY CODES
Document Type and Number:
WIPO Patent Application WO/2016/179309
Kind Code:
A1
Abstract:
In described examples, a system for error correction code (ECC) management of write-once memory (WOM) codes includes a host processor arranged to send a data word that is to be stored in a WOM (write-only memory) device. A host interface is arranged to receive (710) the first data word for processing by a WOM controller and an ECC controller. The WOM controller is for generating (720) a first WOM-encoded word in response to an original symbol of the first data word, while the ECC controller is for generating (730) a first set of ECC bits in response to the original symbol of the first data word. A memory device interface is for writing (740) the first WOM-encoded word and the first set of ECC bits to the WOM device in accordance with the memory address associated with the first data word.

Inventors:
ZHANG SAI (US)
ZHU YUMING (US)
BITTLESTONE CLIVE (US)
RAMASWAMY SRINATH (US)
Application Number:
PCT/US2016/030822
Publication Date:
November 10, 2016
Filing Date:
May 04, 2016
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
TEXAS INSTRUMENTS INC (US)
TEXAS INSTRUMENTS JAPAN (JP)
International Classes:
G06F11/08; G11C29/52; H03M13/00
Domestic Patent References:
WO2014051611A12014-04-03
WO2014116301A12014-07-31
Attorney, Agent or Firm:
DAVIS, Michael A., Jr. et al. (P. O. Box 655474Mail Station 399, Dallas TX, US)
Download PDF:
Claims:
CLAIMS

What is claimed is:

1. A circuit, comprising:

a host interface operable to receive a first data word, wherein the first data word includes at least one original symbol encoded as at least two bits, and wherein the first data word is associated with a memory address;

a WOM (write-only memory) controller for generating a first WOM-encoded word in response to the original symbol of the first data word;

an ECC controller for generating a first set of ECC bits in response to the original symbol of the first data word; and

a memory device interface for writing the first WOM-encoded word and the first set of ECC bits to a WOM device in accordance with the memory address associated with the first data word.

2. The circuit of claim 1, wherein the memory device interface is operable to write the first WOM-encoded word to the associated memory address by changing a block-initialized state of selected bits of an addressed word of the WOM device, wherein the addressed word is addressed using the associated address.

3. The circuit of claim 2, wherein the block-initialized state is a block-erased state.

4. The circuit of claim 2, wherein the host interface is operable to receive a second data word, wherein the second data word includes at least one original symbol encoded as at least two bits, wherein the second data word is associated with the memory address associated with the first data word, wherein the WOM controller is operable to generate a first WOM-encoded word in response to the original symbol of the second data word, wherein the ECC controller is operable to generate a second set of ECC bits in response to the original symbol of the second data word, wherein the memory device interface is operable to write the second WOM-encoded word and the second set of ECC bits to the WOM device in accordance with the memory address associated with the first data word, wherein the first WOM-encoded word written in the WOM device is overwritten, and wherein the second set of ECC bits is written to memory cells that are different from the memory cells used to store the first set of ECC bits.

5. The circuit of claim 4, wherein the first and second sets of ECC bits are written using an encoding that is different from a WOM-encoding of the WOM controller.

6. The circuit of claim 5, wherein the wherein the host interface is operable to a read request for the second data word, wherein the memory device interface is operable to read the second WOM-encoded word and the second set of ECC bits from the WOM device in accordance with the memory address associated with the first data word, wherein the WOM controller is operable to generate a first WOM-decoded word in response to the stored second WOM-encoded word, wherein the ECC controller is operable to evaluate the first WOM-decoded word and the second set of ECC bits read from the WOM device, wherein the ECC controller is operable to execute a corrective action in response to the evaluation.

7. The circuit of claim 1, wherein the WOM controller is operable to WOM-encode the first set of ECC bits, and wherein the memory device interface is operable to write the first set of ECC bits to the WOM device as WOM-encoded ECC bits.

8. The circuit of claim 7, wherein the WOM controller is operable to WOM-encode a second set of ECC bits generated in response an original symbol of a second received data word, and wherein the memory device interface is operable to overwrite the first set of WOM-encoded ECC bits in the WOM device with the second set of WOM-encoded ECC bits.

9. The circuit of claim 8, wherein the ECC controller is operable to encode the first and second sets of ECC bits in accordance with a Reed-Sol oman (RS) encoding scheme.

10. The circuit of claim 8, wherein the ECC controller is operable to encode the first and second sets of ECC bits in accordance with a Bose-Chaudhuri-Hocquenghem (BCH) encoding scheme.

11. The circuit of claim 1, wherein the WOM encoding scheme of the WOM controller is operable to overwrite once-written WOM-stored data, wherein the ECC encoding scheme of the ECC controller is operable to correct at least one bit error in the WOM-stored data, and wherein the total number of bits of the WOM-stored data does not exceed fifty percent more bits than the number of bits of the original symbol plus the number of bits of the first set of ECC bits.

12. A system, comprising:

a host processor operable to send a first data word, and wherein the first data word is associated with a memory address;

a WOM (write-only memory) device communicatively coupled to the host processor and operable to be block-initialized in accordance with a block-initialized state;

a host interface operable to receive the first data word; a WOM controller for generating a first WOM-encoded word in response to an original symbol of the first data word;

an ECC controller for generating a first set of ECC bits in response to the original symbol of the first data word; and

a memory device interface for writing the first WOM-encoded word and the first set of ECC bits to the WOM device in accordance with the memory address associated with the first data word.

13. The circuit of claim 12, wherein the original symbol of the first data word is encoded as at least two bits.

14. The circuit of claim 12, wherein the host interface is operable to receive a second data word, wherein the second data word includes at least one original symbol encoded as at least two bits, wherein the second data word is associated with the memory address associated with the first data word, wherein the WOM controller is operable to generate a first WOM-encoded word in response to the original symbol of the second data word, wherein the ECC controller is operable to generate a second set of ECC bits in response to the original symbol of the second data word, wherein the memory device interface is operable to write the second WOM-encoded word and the second set of ECC bits to the WOM device in accordance with the memory address associated with the first data word, wherein the first WOM-encoded word written in the WOM device is overwritten, and wherein the second set of ECC bits is written to memory cells that are different from the memory cells used to store the first set of ECC bits.

15. The circuit of claim 12, wherein the WOM controller is operable to WOM-encode the first set of ECC bits, and wherein the memory device interface is operable to write the first set of ECC bits to the WOM device as WOM-encoded ECC bits.

16. The circuit of claim 15, wherein the WOM controller is operable to WOM-encode a second set of ECC bits generated in response an original symbol of a second received data word, and wherein the memory device interface is operable to overwrite the first set of WOM-encoded ECC bits in the WOM device with the second set of WOM-encoded ECC bits.

17. A method, comprising:

receiving a first data word; wherein the first data word includes at least one original symbol encoded as at least two bits, and wherein the first data word is associated with a memory address; generating a first WOM (write-only memory) encoded word in response to the original symbol of the first data word;

generating a first set of ECC bits in response to the original symbol of the first data word; and

writing the first WOM-encoded word and the first set of ECC bits to a WOM device in accordance with the memory address associated with the first data word.

18. The method of claim 17, wherein the first WOM-encoded word is written to the associated memory address by changing a block-initialized state of selected bits of an addressed word of the WOM device, wherein the addressed word is addressed using the associated address.

19. The method of claim 18, comprising:

receiving a second data word, wherein the second data word includes at least one original symbol encoded as at least two bits, wherein the second data word is associated with the memory address associated with the first data word;

generating a first WOM-encoded word in response to the original symbol of the second data word;

generating a second set of ECC bits in response to the original symbol of the second data word; and

writing the second WOM-encoded word and the second set of ECC bits to the WOM device in accordance with the memory address associated with the first data word, wherein the first WOM-encoded word written in the WOM device is overwritten, and wherein the second set of ECC bits is written to memory cells that are different from the memory cells used to store the first set of ECC bits.

20. The method of claim 17, comprising WOM-encoding the first set of ECC bits, and writing the first set of ECC bits to the WOM device as WOM-encoded ECC bits.

Description:
ERROR CORRECTION CODE MANAGEMENT OF WRITE-ONCE MEMORY CODES BACKGROUND

[0001] Computer systems include processors that are operable to retrieve, process, and store data in memory devices. The memory devices used in computer systems include different kinds of memory devices, where the different types of memory devices typically have different capabilities and operating characteristics. The type of memory device used in a particular system is typically selected in accordance with the requirements of a particular application of the computer system. For example, some system designs require the ability to write and read data to and from non-volatile memory locations. However, some memory device solutions (such as electrically erasable read-only memories) are unsuited for some applications, because of increased cost and decreased performance characteristics.

SUMMARY

[0002] The problems noted above can be addressed by described examples of a system for error correction code (ECC) management of write-once memory (WOM) codes. In described examples, a host processor is arranged to send a data word that is to be stored in a WOM (write-only memory) device. A host interface is arranged to receive the first data word for processing by a WOM controller and an ECC controller. The WOM controller is for generating a first WOM-encoded word in response to an original symbol of the first data word, while the ECC controller is for generating a first set of ECC bits in response to the original symbol of the first data word. A memory device interface is for writing the first WOM-encoded word and the first set of ECC bits to the WOM device in accordance with the memory address associated with the first data word.

BRIEF DESCRIPTION OF THE DRAWINGS

[0003] FIG. 1 shows an illustrative computing system in accordance with example embodiments.

[0004] FIG. 2 is a block diagram of a processing system including an ECC-managed WOM in accordance with example embodiments.

[0005] FIG. 3 illustrates symbol-level WOM encoding in an example memory system. [0006] FIG. 4 is a coding diagram of an example two-stage Reed-Solomon and WOM coding scheme in accordance with example embodiments.

[0007] FIG. 5 is a coding diagram of an example two-stage BCH coding and WOM coding scheme in accordance with example embodiments.

[0008] FIG. 6 is a coding diagram of an example two-stage WOM coding and ECC coding scheme in accordance with example embodiments.

[0009] FIG. 7 is an example process flow diagram in accordance with example embodiments. DETAILED DESCRIPTION OF EXAMPLE EMB ODFMENT S

[0010] Various names may refer to a component or system. A system can be a sub-system of yet another system. If a first device couples to a second device, that connection can be made through a direct electrical connection, or through an indirect electrical connection via other devices and connections.

[0011] FIG. 1 shows an illustrative computing system 100 in accordance with example embodiments. For example, the computing system 100 is, or is incorporated into, an electronic system 129, such as a computer, electronics control "box" or display, communications equipment (including transmitters), or any other type of electronic system arranged to generate radio-frequency signals.

[0012] In some embodiments, the computing system 100 includes a megacell or a system-on- chip (SoC), which includes control logic such as a CPU 112 (central processing unit), a storage 114 (such as random access memory (RAM)) and a power supply 110. For example, the CPU 112 can be a CISC-type (complex instruction set computer) CPU, RISC-type CPU (reduced instruction set computer), MCU-type (microcontroller unit), or a digital signal processor (DSP). The storage 114 (which can be memory such as on-processor cache, off-processor cache, RAM, flash memory or disk storage) stores one or more software applications 130 (such as embedded applications) that, when executed by the CPU 112, perform any suitable function associated with the computing system 100.

[0013] The CPU 112 includes memory and logic that store information frequently accessed from the storage 114. The computing system 100 is often controlled by a user using a UI (user interface) 116, which provides output to and receives input from the user during the execution the software application 130. The output is provided using the display 118, indicator lights, a speaker, vibrations and other possible ways. The input is received using audio and/or video inputs (such as using voice or image recognition) and electrical and/or mechanical devices, such as keypads, switches, proximity detectors, gyros and accelerometers. The CPU 112 is coupled to I/O (input-output) port 128, which provides an interface that is configured to receive input from (and/or provide output to) networked devices 131. The networked devices 131 can include any device capable of point-to-point and/or networked communications with the computing system 100. The computing system 100 can also be coupled to peripherals and/or computing devices, including tangible, non-transitory media (such as flash memory) and/or cabled or wireless media. These and other input and output devices are selectively coupled to the computing system 100 by external devices using wireless or cabled connections. For example, the storage 114 can be accessed by the networked devices 131.

[0014] The CPU 1 12 is coupled to I/O (input-output) port 128, which provides an interface that is configured to receive input from (and/or provide output to) peripherals and/or computing devices 131, including tangible (such as non-transitory) media (such as flash memory) and/or cabled or wireless media (such as a Joint Test Action Group (JTAG) interface). These and other input and output devices are selectively coupled to the computing system 100 by external devices using or cabled connections. The CPU 112, storage 114 and power supply 110 can be coupled to an external power supply (not shown) or coupled to a local power source (such as a battery, solar cell, alternator, inductive field, fuel cell or capacitor).

[0015] The computing system 100 includes a memory 138, which is suitable for relatively quick memory accesses and is usually formed using solid state memory devices. Such solid-state memory devices include the ECC-managed (electronic correction code-managed) write-once memory (WOM) 140. The WOM 140 is memory that is usually written once (or a relatively small number of times), such as before being discarded or erased. The use of WOM-codes enables certain systems to write and read data to and from non-volatile memory. However, the use of ECC in WOM applications is problematic (such as discussed with respect to FIG. 3).

[0016] The ECC-managed WOM 140 write accesses are usually faster than ECC-managed WOM 140 erase cycles (if any). In an embodiment, the write accesses are capable of changing a bit location in the ECC-managed WOM 140 from an erased state to a written state (such as a "0" to a "1"). The erased state usually depends on a technology selected, and accordingly can be either a "0" to a "1," while the written state is usually the opposite of the erased state. Some memory devices may store multiple bits of information in a single memory cell, in which case the written bits include one of more bits of information that have a state opposite the erased state.

[0017] The ECC-managed WOM 140 is written using a WOM code for efficiently writing to WOM, such that the written-to WOM can be written to multiple times without erasure. The ECC-managed WOM 140 is useful to provide cost-efficient non-volatile memory (NVM) having a limited reprograming capability and/or an enhanced number of write/erase cycles (such as compared with conventional NVM solutions).

[0018] FIG. 2 is a block diagram of a processing system including an ECC-managed WOM in accordance with example embodiments. Generally, a processing system 200 includes an MCU 204 and a memory controller 210. The MCU 204 and the memory controller 210 are usually arranged on a common substrate 202. The memory controller 210 is communicatively coupled to the MCU 204 and is operable to manage memory accesses to memory devices to (at least) the ECC-managed WOM 140 and memory devices, such as RAM 292, PROM (programmable read-only memory) 294 and optional EEPROM (electrically erasable read-only memory) 296 (which is optionally formed using a substrate that is different from the substrate 202).

[0019] In operation, memory accesses serviced by the memory controller 210 include write operations and read operations. Generally, the data of write operations is transmitted in a top-to- bottom direction as illustrated in FIG. 2, while the data of read operations is transmitted in a bottom-to-top direction as illustrated in FIG. 2. Accordingly, the host interface 220 is arranged to select (such as in response to a system address supplied with a memory access command) a memory device to write data to or read data from.

[0020] The memory controller 210 includes an ECC controller such as ECC-manager 250. During write operations, the ECC-manager 250 is operable to apply an error correction code to data for writing to the ECC-managed WOM 140. During read operations, the ECC-manager 250 is operable to evaluate the retrieved data and, if indicated, the ECC-controller is operable to execute a corrective action in response to the evaluation. For example, the corrective action is operable to correct the retrieved data using ECC-encoded data read from the ECC-managed WOM 140 via the WOM-manager 260.

[0021] The memory controller 210 includes the WOM-manager 260. During write operations, the WOM-manager 260 is operable to encode data (such as data encoded by the ECC-manager 260 using an ECC encoding) using a WOM code for writing the WOM (and ECC) encoded data to the ECC-managed WOM 140. During read operations, the WOM-manager 260 is operable to decode the WOM-encoded data from the ECC-managed WOM 140. After the WOM-encoded data is decoded, the decoded data is transmitted to the ECC-manager 250 to be further decoded in accordance with the ECC-encoding that was used to originally encode the data written to the ECC-managed WOM 140.

[0022] The memory controller 210 includes the memory device interface 270. During write operations, the memory device interface 270 is operable to write the encoded data (such as data encoded by the ECC-manager 260 using an ECC encoding and by the WOM-manager 260 using a WOM code) to the ECC-managed WOM 140. During read operations, the memory device interface 270 is operable to read the encoded data from the ECC-managed WOM 140. The memory device interface 270 is also operable to perform block initialization routines on the ECC-managed WOM 140 (such as to block erase the ECC-managed WOM 140, such that addressed memory locations are all erased to a logic-zero state). Usually, the block initialization routines require more time to execute than the execution time required by normal read or write cycles to the ECC-managed WOM 140.

[0023] In other embodiments (such as discussed below with reference to FIG. 6, the WOM manager-260 is operable to encode payload data as WOM-encoded data such that the ECC-manager 250 encodes the WOM-encoded data. Likewise, the ECC-manager 250 is operable to decode ECC-encoded data retrieved from memory such that the WOM-manager 260 decodes the WOM-encoded data to retrieve the originally encoded payload data.

[0024] WOM encoding can be accomplished using n-bit (such as any integer number of bits that is greater than or equal to 2) symbols that are written to WOM memory a limited number of times. For example, TABLE 1 below illustrates WOM encoding for 2-bit symbols that can be written to WOM twice (such as before memory erasure is required) in a particular memory location.

TABLE 1

[0025] Each row of TABLE 1 illustrates a 2-bit symbol (such that m W 0M = 2, where m W 0M is the number of bits per symbol) that is WOM-encoded into a 3-bit field. As discussed above, values for m W 0M can be any integer greater than or equal to 2. When the WOM-encoded data is written to WOM memory a first time, one bit (e.g., at most) is set in the encoded data. When the WOM-encoded data is written to WOM memory a second time, the WOM memory is normally only updated when the new data is different from the previously stored data.

[0026] For example, if the WOM memory after first write is "000" and the new data for second write is "00," the WOM memory after second write remains "000." If the WOM is writen for the second time (such as with a value changed from the value written during the first write), at least two (of the three) bits are set in the encoded data. Accordingly, the WOM-manager 260 is able to determine the number of writes to a WOM location (for storing a WOM-encoded symbol) by reading the data stored in the location (without having to rely upon a separate counter for each memory location).

[0027] FIG. 3 illustrates symbol-level WOM encoding in an example memory system. Generally, memory system 300 includes a symbol space 302 and a WOM code encoded memory 304. The symbol space 302 includes a 2-bit symbol 310 having a value, such as "00."

[0028] In operation 312, the symbol 310 is encoded in accordance with TABLE 1 to generate an encoded symbol 320. Principles and techniques described herein are useful with n-bit symbols and are not limited to 2-bits only symbols. The WOM code encoded memory 304 includes a 3-bit value ("000") 320 for storing the encoded symbol 320 (for example, the default erased bit value "0" for the WOM code encoded memory 304 is used for simplicity of illustration). The WOM code encoded memory 304 is subject to bit errors, which can lead to data loss.

[0029] In operation 322, an error occurs in the least significant bit of the memory location 320. Despite the use (or non-use) of error-correction codes in encoded data, single or multiple bit errors are possible in the encoded data: the strength of the error correction codes determines the degree to which errors in the encoded data appear in the decoded data. Accordingly, the 3-bit value 320 is erroneously changed to the 3-bit value ("001") 330, which represents a one-bit error (such as in the WOM code encoded memory 304).

[0030] In operation 332, the 3-bit value ("001") 330 is read and decoded in accordance with TABLE 1 such that the two-bit symbol 340 (representing the decoded 3-bit value 330) has the value "11." The value "1" in the example represents a two-bit error in the symbol, notwithstanding that only a 1-bit error occurred in the WOM code encoded memory 304. In some example cases, a 1-bit error in a WOM-encoded symbol can result in errors in all bits of the WOM symbol.

[0031] For example, this disclosure includes two-stage concatenated coding schemes that provide low processing latencies and/or reduced layout requirements for symbol-level protection of data stored in WOM-encoded memory devices. As discussed below with reference to FIG. 4 and FIG. 5, the two-stage concatenated coding schemes include: a first stage in which the payload data is encoded using electronic correction codes (ECC) to produce ECC-protected payload data; and a second stage in which the ECC-protected payload data is encoded using WOM-encoding.

[0032] FIG. 4 is coding diagram of an example two-stage Reed-Solomon and WOM coding scheme in accordance with example embodiments. Generally, data flow diagram 400 includes word 410, ECC-encoded word 420, and WOM-encoded word 430 (having ECC-encoding). The ECC-encoding 480 of the ECC-encoded word 420 is preserved within the WOM-encoding 490 of the WOM-encoded word 430.

[0033] Word 410 includes a number of "k" symbols where each symbol is stored in a symbol field such as symbol fields 412 and 414. Each such symbol field is "n" bits (such as 2-bits) long. When n=2, then k=2 (such as 4/2=2). Accordingly, word 410 includes 2 symbols, where each symbol is respectively stored in symbol field 412 and 414. For example, word 410 includes 4-bits of data, which represent two-symbols of payload data to be encoded (such as in accordance with k=2). In various embodiments, the symbol fields include groups of one or more bits each group represents a symbol to be encoded. Accordingly, word 410 includes symbol field 412 (for encoding a first symbol) and symbol field 414 (for encoding a second symbol), where each symbol field is to be encoded in encoding operation 402. As illustrated, the symbol field 412 includes the value "10" and the symbol filed 414 includes the value "11."

[0034] Encoding operation 402 is a first-stage operation that is operable to encode the (e.g., non-encoded) symbol fields of word 410 using a symbol -based error-correcting code scheme such as a Reed-Solomon code. In the Reed-Solomon coding scheme, the parity symbols are used for detecting and optionally correcting errors in an encoded word (where the number of errors that can be corrected depends on how many parity symbols are used). The number of parity symbols used in each RS code is given by 2*T (which is in total 2*m R s*T bits), where m R s is the bit-width of each symbol to be encoded and T is the number of correctable errors in the encoded symbol. To ensure the bits for each WOM code are in the same RS symbol, m R s is selected to be an integer multiple of m W 0M-

[0035] In the example discussed herein, m R s=m W 0M is chosen for convenience of illustration, where the illustrated error-correction code scheme is capable of correcting single bit errors in a retrieved WOM-encoded word (such as where the one-error correction-capable ECC is encapsulated in WOM-encoding). Other embodiments are possible in which the encapsulated error-correction codes are capable of correcting multiple bit errors (such as where each WOM-stored word is capable of correcting for 2 or more errors in the WOM-stored word).

[0036] For example, when RS code with T=l correctable errors is used to encode k=2 symbols, encoding operation 402 generates k=2 separate RS codes 420. The ECC-encoded words 420 include symbol field 422 for the first RS code (e.g., which is a direct copy of symbol field 412) and symbol field 426 for the second RS code (e.g., which is a direct copy of symbol field 414). Parity bits (such as check bits) field 424 has a length that is determined in accordance with 2*m R s*T=4 as described above. Accordingly, the parity field 424 is a set of bits that is 4-bits long and is used to protect the symbol field 422. Likewise, the parity field 428 is 4-bits long and is used to protect the symbol field 426. As illustrated, the symbol field 422 includes the value "10," the parity field 424 includes the value "1010" (which is an example RS encoding of the symbol field 422), the symbol field 426 includes the value "11," and the parity field 428 includes the value "1011" (which is an example RS encoding of the symbol field 426).

[0037] Encoding operation 404 is a second-stage operation WOM-encoding operation (such as discussed above with respect to FIG. 3) and is operable to encode the output of the first-stage operation 402 (e.g., which is an ECC-encoded word) as a WOM-encoded word. For example, encoding operation 404 encodes the ECC-encoded word 420 as a WOM-encoded word 430 (e.g., which maintains the information of the original ECC-encoded word 420). WOM-encoded word 430 includes WOM fields 432, 434, 436, and 438, where the WOM field 432 is the WOM code for symbol field 422, the WOM field 434 is the WOM code for symbol field 424, the WOM field 436 is the WOM code for symbol field 426, and the WOM field 438 is the WOM code for symbol field 428. As illustrated, the WOM field 432 includes the value "010," the WOM field 434 includes the value "010001," the WOM field 436 includes the value "100," and the WOM field 438 includes the value "000100."

[0038] Each WOM-encoded word includes a 3-bit (e.g., NWOM=3 width) encoding scheme for each 2-bit to-be-encoded symbol as described above with respect to FIG. 3. As discussed above, the WOM encoding allows the WOM-encoded word (such as stored in a WOM memory) to be over-written multiple times such that execution of relatively slow (and lifecycle-limited) block initialization routines can be reduced, if not avoided all together. The block initialization routines include routines such as a block erasure operation (writing all "zeros" to a nonvolatile memory block or a block presetting operation (writing all "ones" to a nonvolatile block of memory). The type of block operation is usually determined in accordance with the technology of the memory cells used.

[0039] Decoding operation 406 is a WOM-decoding operation (such as discussed above with respect to FIG. 3) and is operable to decode a WOM-encoded word of an ECC-encoded word as the (e.g., ideally) original ECC-encoded word. For example, operation 406 is a "second stage" operation that "reverses" the encoding of the "second stage" operation 404. Decoding operation 406 decodes the WOM-encoded word 430 to (e.g., ideally) retrieve the ECC-encoded word 420 encoded within the WOM-encoded word 430. The parity fields 424 and 428 are respectively used to validate (such as restore) the symbol fields 422 and 426.

[0040] Decoding operation 408 is an ECC-decoding operation operable to decode ECC-encoded data as validated data. For example, operation 408 is a "first stage" operation that "reverses" the encoding of the "first stage" operation 402. In operation 408, the parity fields 424 and 428 are respectively used to validate (such as restore) the symbol fields 422 and 426. In the event of a one-bit error, the strength (such as determined by type of ECC and the number of correction bits used) of the ECC-encoding is sufficient to correct for the error such that the data of word 410 is restorable. Accordingly, a bit-error (such as single bit-error) in a WOM-encoded field is correctable after the stored WOM-encoded words are retrieved from memory. In contrast, an example one-bit error in the WOM-encoded word (as described above with respect to FIG. 3) can lead to a 2-bit error in a symbol.

[0041] FIG. 5 is coding diagram of an example two-stage BCH coding and WOM coding scheme in accordance with example embodiments. Generally, data flow diagram 500 includes word 510, ECC-encoded word 520, and WOM-encoded word 530 (having ECC-encoding). The ECC-encoding 580 of the ECC-encoded word 520 is preserved within the WOM-encoding 590 of the WOM-encoded word 530.

[0042] Word 510 includes a number of "k" symbols where each symbol is stored in a symbol field such as symbol fields 512 and 514. Accordingly, word 510 includes 2 symbols, where each symbol is respectively stored in symbol field 512 and 514. The symbol fields are to be encoded in encoding operation 502. As illustrated, the symbol field 512 includes the value "10" and the symbol filed 514 includes the value "11."

[0043] Encoding operation 502 is a first-stage operation that is operable to encode the (e.g., non-encoded) symbol fields of word 510 using a non-binary cyclic error-correcting code scheme such as a BCH code. In the BCH coding scheme, parity symbols are used for detecting and optionally correcting errors in an encoded word. Because each bit error in WOM coded word can result in up to m W 0M bits error after decoding, each BCH code is sufficiently able to correct T=m W oM bits error. Accordingly, the number of parity symbols used is given by m W 0M (which includes m B cH *m W 0M bits) where m B cH is the bit-width of each symbol to be BCH encoded and ra WO M is equal to the width of symbol field 522 (which is 2-bits wide). When m B cH=2 symbols and m W 0M=2 correctable errors are used in an encoding operation, 4 parity bits are used to protect each symbol.

[0044] Encoding operation 502 generates an ECC-encoded word 520. The ECC-encoded words 520 includes symbol field 522 (e.g., which is a direct copy of symbol field 512) for first BCH code and symbol field 524 (e.g., which is a direct copy of symbol field 514) for second BCH code. Parity bits field 526 has a length that is determined in accordance with m B cH * n woM, where m B cH =2 and m W 0M= 2. Accordingly, the parity field 526 is 4-bits long and is used to protect (and, for example, correct) the symbol of symbol field 522. Likewise, the parity field 528 is 4-bits long and is used to protect the symbol of symbol field 524. As illustrated, the symbol field 522 includes the value "10," the parity field 526 includes the value "0110" (which is a BCH encoding of the symbol field 522), the symbol field 524 includes the value "11," and the parity field 528 includes the value "0010" (which is an BCH encoding of the symbol field 524).

[0045] Encoding operation 504 is a second-stage operation WOM-encoding operation (such as discussed above with respect to FIG. 3) and is operable to encode the output of the first-stage operation 502 (e.g., which is an ECC-encoded word) as a WOM-encoded word. For example, encoding operation 504 encodes the ECC-encoded word 520 as a WOM-encoded word 530 (e.g., which maintains the information of the original ECC-encoded word 520). The WOM-encoded word 530 includes WOM fields 532, 536, 534, and 538, where the WOM field 532 is the WOM code for symbol field 522, the WOM field 536 is the WOM code for symbol field 526, the WOM field 534 is the WOM code for symbol field 524, and the WOM field 538 is the WOM code for symbol field 528. As illustrated, the WOM field 532 includes the value "010," the WOM field 536 includes the value " 100010," the WOM field 534 includes the value "100," and the WOM field 538 includes the value "000010."

[0046] Each WOM-encoded word includes a 3-bit (e.g., NWOM=3 width) encoding scheme for each 2-bit to-be-encoded symbol as described above with respect to FIG. 3. The width of the parity fields 526 and 528 is 4 bits each, such that a 6-bit field (such as WOM fields 536 and 538) is used to store each of the WOM-encoded values of the parity fields 526 and 528.

[0047] Decoding operation 506 is a WOM-decoding operation (such as discussed above with respect to FIG. 3) and is operable to decode a WOM-encoded word of an ECC-encoded word as the (e.g., ideally) original ECC-encoded word. For example, decoding operation 506 decodes the WOM-encoded word 530 to (e.g., ideally) retrieve the ECC-encoded word 520 encoded within the WOM-encoded word 530.

[0048] Decoding operation 508 is an ECC-decoding operation operable to decode ECC-encoded data as validated data. For example, the parity fields 526 and 528 are respectively used to validate (such as restore) the symbol fields 522 and 524. In the event of a one-bit error, the strength (such as determined by type of ECC and the number of correction bits used) of the ECC-encoding is sufficient to correct for the error such that the data of word 510 is restorable.

[0049] FIG. 6 is coding diagram of an example two-stage WOM coding and ECC coding scheme in accordance with example embodiments. Generally, data flow diagram 600 includes word 610, WOM-encoded word 620, and ECC-encoded word 630 (having ECC-encoding). The WOM-encoding 690 of the WOM-encoded word 620 is preserved within the ECC-encoding 680 of the ECC-encoded word 630.

[0050] Word 610 includes a number of "k" WOM symbols where each symbol is stored in a symbol field such as symbol fields 612 and 614. Accordingly, word 610 includes 2 symbols, where each symbol is respectively stored in symbol field 612 and 614. Accordingly, word 610 includes symbol field 612 (for encoding a first symbol) and symbol field 614 (for encoding a second symbol), where each symbol field is to be encoded in encoding operation 602. As illustrated, the symbol field 612 includes the value "10" and the symbol filed 614 includes the value "11."

[0051] Encoding operation 602 is a first-stage operation that is operable to encode the (e.g., non-encoded) symbol fields of word 610 using a WOM-encoding operation (such as discussed above with respect to FIG. 3) and is operable to output the encoded symbols as a WOM-encoded word. Each WOM-encoded word includes a 3 -bit (NWOM=3 width) encoding scheme for each 2-bit to-be-encoded symbol as described above with respect to FIG. 3 (various embodiment include other ratios such as 4-bit NWOM encoding for each n=2 wide symbol).

[0052] For example, encoding operation 602 encodes the word 610 as a WOM-encoded word 620 (e.g., which maintains the information of the word 610). WOM-encoded word 620 includes WOM fields 622 and 624, where the WOM field 622 is the WOM code for symbol field 612 and the WOM field 624 is the WOM code for symbol field 614. As illustrated, the WOM field 622 includes the value "010" and the WOM field 624 includes the value "100."

[0053] Encoding operation 604 is a second-stage operation that is operable to encode the WOM-encoded fields of word 620 using linear error-correcting code scheme such as a Hamming or SECDED (single-error correction, double-error detection) code. The example encoding operation 604 operates in accordance with an extended Hamming code. For 6 WOM-coded data bits, a (16,11) extended Hamming code is indicated and accordingly 5 parity bits are used for each write operation. Given the 2-times write capability of the WOM code, 2 sets of 5-bit parity bits are provided, where a different set of 5 parity bits is used for each write operation.

[0054] Encoding operation 604 generates an ECC-encoded word 630. The ECC-encoded word 630 includes WOM field 632 (e.g., which is a direct copy of WOM field 622) and WOM field 634 (e.g., which is a direct copy of WOM field 624). Parity field 636 is 5-bits long and is used to protect (and, for example, correct) the symbol of WOM fields 632 and 634 in a first write operation written a particular location of the WOM device. Likewise, the parity field 638 is 5-bits long and is used to protect the symbol of WOM fields 632 and 634 for the second write. As illustrated, the WOM field 632 includes the value "010" and the WOM field 634 includes the value "100." For the first write operation to a particular memory location, the parity field 636 includes the value "XXXXX" (which is a first SECDED encoding of the first set of contents of WOM fields 632 and 634). For a second write operation to the particular location of the WOM device, the parity field 638 would include an (e.g., as-of-yet) undetermined value ("YYYYY") that is a second SECDED encoding of the (e.g., arbitrarily) new values of symbol fields 632 and 634. For example, the parity fields 636 and 638 are written using an encoding (such as "plain" binary) that is different from a WOM-encoding that is used to encode WOM fields 632 and 634.

[0055] Decoding operation 606 is an ECC-decoding operation operable to decode ECC-encoded data as validated data. For example, the parity field 636 is used to validate (such as restore) the WOM fields 632 and 634 after a first write operation, while the parity field 638 is used to validate (such as restore) the WOM fields 632 and 634 after a first write operation. Accordingly, the selection of which parity field to use is made in accordance with a logical analysis of the retrieved contents of the WOM fields 632 and 634 (such as discussed above with respect to Table 1), such as to determine whether the particular memory location was written to once or twice. In the event of a one-bit error in the WOM field 632 or the parity fields, 636, the strength of the ECC-encoding is sufficient to correct for the error such that the correct data of WOM field 632 is restorable.

[0056] Decoding operation 608 is a WOM-decoding operation (such as discussed above with respect to FIG. 3) and is operable to decode a WOM-encoded word of an ECC-encoded word to retrieve the (e.g., ideally) original ECC-encoded word. For example, decoding operation 608 decodes the WOM-encoded word 620 to (e.g., ideally) retrieve the original data encoded within the WOM-encoded word 620 in encoding operation 602.

[0057] FIG. 7 is an example process flow diagram in accordance with example embodiments. Process flow begins in terminal 702 where process flow proceeds to operation 710. In operation 710, a data word for storing in a WOM device is received. For example, the first data word includes at least one original symbol encoded as at least two bits, and is associated with a memory address to be written to and read from. Program flow proceeds to step 720.

[0058] In operation 720, a first stage of encoding is applied to the received data word. The first stage of encoding is an encoding operation that is a selected one of ECC encoding and WOM encoding. Program flow proceeds to step 730.

[0059] In operation 730, a second stage of encoding is applied to the received data word. The second stage of encoding is an encoding operation that is the other operation than the selected one of ECC encoding and WOM encoding. For example, when the first stage operation is a WOM-encoding operation, the second stage is an ECC-encoding operation. When the first stage operation is an ECC-encoding operation, the second stage is a WOM-encoding operation. Program flow proceeds to step 740.

[0060] In operation 740, the twice-encoded word (e.g., which is encoded in stage one and stage two, such that the stage-one encoding is encapsulated by the state-two encoding) is stored in the WOM device. Usually the WOM device is block initialized (with each and every WOM bit set or cleared to the same logic state) and is written to by changing a bit from the block-initialization state to a programmed state (that is the opposite of the block-initialization state). As discussed above, a particular WOM memory location can be overwritten at least once through the use of WOM encoding. Program flow proceeds to step 750.

[0061] In operation 750, word stored in the WOM is retrieved, decoded, and the decoded word evaluated. For example, when the WOM-decoded symbol and the ECC bits read from the WOM device indicates an error, an ECC controller is operable to execute a corrective action (such as correct a bit error, generate a system interrupt, or replace the defective location of the WOM device with a spare storage location) in response to the evaluation. Program flow proceeds to terminal 799 where program flow terminates.

[0062] Modifications are possible in the described embodiments, and other embodiments are possible, within the scope of the claims.