# US 2025/0372174 A1 · DATA INVERSION ENCODING CIRCUIT, eFLASH MEMORY DEVICE AND OPERATION METHOD THEREOF

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0372174 A1
- Document ID: US20250372174A1
- Status: Published application
- Kind: A1
- Application number: 18/755,707
- Filed: 2024-06-27
- Published: 2025-12-04
- Earliest claimed: 2024-06-04
- Assignees: United Microelectronics Corp.
- Applicants: United Microelectronics Corp.
- Inventors: Ying-Ting Lin; Chien Kuo Su; Hsueh-Chen Cheng; Cheng-Hsiao Lai; Yuan-Hui Chen; Ya-Nan Mou
- Web page: https://patentgrep.com/patent/US20250372174A1

## CPC

- G11C 16/102: {External programming circuits, e.g. EPROM programmers; In-circuit programming or reprogramming; EPROM emulators}
- G11C 16/08: Address circuits; Decoders; Word-line control circuits
- G11C 16/10: Programming or data input circuits
- G11C 16/26: Sensing or reading circuits; Data output circuits
- G11C 29/42: using error correcting codes [ECC] or parity check
- G11C 29/52: Protection of memory contents; Detection of errors in memory contents
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

Disclosed are a data inversion encoding circuit, an eFLASH memory device and an operation method thereof. The data inversion encoding circuit includes a count and comparison circuit, receiving data with plural bits, counting numbers of 0 and 1 in the bits, and outputting a selection signal when number of 0 is larger than number of 1; an inverter, receiving the data and outputting bit inversion data; and a selection circuit, receiving the data and the bit inversion data, and selecting the data or the bit inversion data based on the selection signal. The bit inversion data is output when number of 0 is larger than number of 1.

## Claims

### Claim 1

A data inversion encoding circuit, comprising:
a count and comparison circuit, receiving data with a plurality of bits, counting the number of first bit values and the number of second bit values in the plurality of bits, and outputting a selection signal;
an inverter, having an input terminal and an output terminal, wherein the input terminal receives the data with the plurality of bits, and inverts a bit value of each of the plurality of bits to output bit inversion data from the output terminal;
a selection circuit, having a first input terminal and a second input terminal, wherein the first input terminal receives the data, the second input terminal receives the bit inversion data, and selects one of the data and the bit inversion data according to the selection signal,
wherein when the number of the first bit values is greater than the number of the second bit values, the selection circuit outputs the bit inversion data based on the selection signal.

### Claim 2 (depends on 1)

The data inversion encoding circuit according to claim 1, wherein the first bit value corresponds to a programmed state, and the second bit value corresponds to an erased state.

### Claim 3 (depends on 1)

The data inversion encoding circuit according to claim 1, wherein the selection circuit is a multiplexer.

### Claim 4 (depends on 1)

The data inversion encoding circuit according to claim 1, wherein the plurality of bits of the data are input to the data inversion encoding circuit in a parallel mode.

### Claim 5 (depends on 1)

The data inversion encoding circuit according to claim 1, wherein the data inversion encoding circuit is disposed in an embedded flash (eFlash) memory device, and the eflash memory device at least comprises:
a memory array, having a plurality of word lines, a plurality of bit lines, a plurality of source lines and a plurality of memory cells, wherein the plurality of memory cells are respectively disposed at a plurality of intersections of the plurality of word lines and the plurality of bit lines, each of the plurality of word lines comprises a memory cell for storing the data and a memory cell for storing an inversion flag,
wherein the data inversion encoding circuit is configured to encode the data to be written to the memory array, the number of the plurality of bits is the same as the number of the memory cells on each of the word lines provided to store the data,
wherein when the number of the first bit values is greater than the number of the second bit values, the bit inversion data is written into the memory array,
when the number of the first bit values is less than the number of the second bit values, the data is written into the memory array.

### Claim 6 (depends on 5)

The data inversion encoding circuit according to claim 5, wherein after writing the data or the bit inversion data, when one bit of the data or the bit inversion data is read, other bits that are different from the bit and have a memory cell with the second bit value serve as a source line discharge path for a memory cell current.

### Claim 7 (depends on 5)

The data inversion encoding circuit according to claim 5, wherein writing of the data or the bit inversion data is performed by applying a channel hot electron injection or a Fowler-Nordheim tunneling effect.

### Claim 8 (depends on 5)

The data inversion encoding circuit according to claim 5, wherein the eflash memory device further comprises:
a plurality of sense amplifiers, respectively coupled to each of the plurality of bit lines of the memory array, configured to sense a value of each of the plurality of bits of the data, and each of the plurality of sense amplifiers outputting an output signal and an inverted output signal respectively;
an inversion flag sense amplifier, coupled to a bit line of the memory cell storing the inversion flag, and configured to read the inversion flag;
a plurality of multiplexers, respectively receiving the output signal and the inverted output signal output by the corresponding plurality of sense amplifiers, as well as the inversion flag,
wherein when the inversion flag is the second bit value, each of the plurality of multiplexers outputs the inverted output signal.

### Claim 9 (depends on 5)

The data inversion encoding circuit according to claim 5, wherein the eflash memory device further comprises:
a plurality of sense amplifiers, respectively coupled to each of the plurality of bit lines of the memory array, configured to sense a value of each of the plurality of bits of the data, and each of the plurality of sense amplifiers outputting an output signal respectively;
an inversion flag sense amplifier, coupled to a bit line of the memory cell storing the inversion flag, and configured to read the inversion flag;
a plurality of XOR gates, each of the plurality of XOR gates receiving the output signal corresponding to each of the plurality of sense amplifiers and the inversion flag, and outputting the output signal or an inverted output signal of the output signal based on a value of the inversion flag.

### Claim 10 (depends on 5)

The data inversion encoding circuit according to claim 5, wherein the eflash memory device further comprises:
a plurality of X-decoder driver circuits, respectively coupled to the plurality of word lines for driving each of the plurality of word lines respectively;
a plurality of sense amplifiers, respectively coupled to each of the plurality of bit lines of the memory array; and
an error detection circuit, coupled to outputs of the plurality of sense amplifiers for detecting whether one of the plurality of X-decoder driver circuits has an error,
wherein the error detection circuit further counts the number of the first bit values and the second bit values in each bit output by the plurality of sense amplifiers,
when the number of the first bit values output by the plurality of sense amplifiers is greater than the number of the second bit values, one of the plurality of X-decoder driver circuits is determined to have an error.

### Claim 11 (depends on 10)

The data inversion encoding circuit according to claim 10, wherein the error detection circuit is disposed within the eflash memory device.

### Claim 12

An operation method of an embedded flash (eFlash) memory device, at least comprising:
receiving data to be written to the eflash memory device, wherein the data comprises a plurality of bits;
determining the number of first bit values and the number of second bit values in the plurality of bits of the data;
wherein when the number of the first bit values is greater than the number of the second bit values, inverting each of the plurality of bits of the data and adding an inversion flag to serve as bit inversion data; and
writing the bit inversion data into the eflash memory device.

### Claim 13 (depends on 12)

The operation method of the eflash memory device according to claim 12, wherein the first bit value corresponds to a programmed state, and the second bit value corresponds to an erased state.

### Claim 14 (depends on 12)

The operation method of the eflash memory device according to claim 12, further comprising a reading operation,
wherein when reading the eflash memory device, if the inversion flag is detected, each bit of the bit inversion data is inverted to output the data.

### Claim 15 (depends on 12)

The operation method of the eflash memory device according to claim 12, wherein when the number of the first bit values is less than the number of the second bit values, writing the data to the eflash memory device.

### Claim 16 (depends on 12)

The operation method of the eflash memory device according to claim 12, wherein before writing is performed to the eflash memory device, the eflash memory device is erased first.
