# US 2022/0293205 A1 · Built-in-self-test logic, memory device with same, and memory module testing method

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

- Number: US 2022/0293205 A1
- Document ID: US20220293205A1
- Status: Published application
- Kind: A1
- Application number: 17/467,861
- Filed: 2021-09-07
- Published: 2022-09-15
- Earliest claimed: 2021-03-11
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: EUNHYE OH; JAEHYEOK KIM; YONG KI LEE; GAPKYOUNG KIM; TAEWOOK PARK
- Web page: https://patentgrep.com/patent/US20220293205A1

## CPC

- G11C 29/42: using error correcting codes [ECC] or parity check
- G11C 29/10: Test algorithms, e.g. memory scan [MScan] algorithms; Test patterns, e.g. checkerboard patterns
- G11C 29/36: Data generation devices, e.g. data inverters
- G11C 29/4401: {for self repair}
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A memory device includes a memory module and a BIST logic circuit. The BIST logic circuit includes; a pattern generator configured to generate first main data including a first portion, an error correction code (ECC) encoder configured to generate first parity data based on the first main data, and a parity control circuit configured to generate mask data based on the first parity data and the first main data, and generate first substituted parity data based on the mask data and the first parity data, wherein a pattern of the first substituted parity data is the same as a pattern of the first portion of the first main data.

## Claims

### Claim 1

A memory device comprising:
a memory module; and
a built-in self-test (BIST) logic circuit configured to perform testing on memory cells of the memory module, the BIST logic circuit including:
a pattern generator configured to generate first main data including a first portion;
an error correction code (ECC) encoder configured to generate first parity data based on the first main data; and
a parity control circuit configured to generate mask data based on the first parity data and the first main data, and generate first substituted parity data based on the mask data and the first parity data,
wherein a pattern of the first substituted parity data is the same as a pattern of the first portion of the first main data.

### Claim 2 (depends on 1)

The memory device of claim 1, wherein the parity control circuit is configured to send write data including the first main data and the first substituted parity data to the memory module, receive read data including second main data and second substituted parity data from the memory module, and generate second parity data based on the second substituted parity data and the mask data, and
the BIST logic circuit includes an ECC decoder configured to correct an error in the second main data based on the second parity data.

### Claim 3 (depends on 2)

The memory device of claim 2, wherein the parity control circuit includes:
a mask generating module configured to generate the mask data based on the first main data and the first parity data;
a parity substituting module configured to generate the first substituted parity data based on the mask data and the first parity data; and
a parity restoring module configured to restore the second parity data based on the mask data and the second substituted parity data.

### Claim 4 (depends on 3)

The memory device of claim 3, wherein the BIST logic circuit further comprises a parity position control circuit configured to control a position of the first substituted parity data in the write data.

### Claim 5 (depends on 3)

The memory device of claim 3, wherein the parity control circuit further includes:
an extract module configured to extract the first portion of the first main data based on the first main data, and send the first portion of the first main data to the mask generating module; and
an extract and attachment module configured to receive the first substituted parity data from the parity substituting module, generate the write data based on the first substituted parity data and the first main data, extract the second substituted parity data and the second main data from the read data, and provide the second substituted parity data to the parity restoring module,
wherein a number of bits of the first portion of the first main data is the same as a number of bits of the first parity data.

### Claim 6 (depends on 5)

The memory device of claim 5, wherein the mask generating module includes:
a first XOR operator configured to output the mask data by performing a logical operation on the first portion of the first main data and the first parity data; and
a first register configured to store the mask data output from the first XOR operator,
wherein the parity substituting module includes a second XOR operator configured to output the first substituted parity data by performing the logical operation on the mask data provided from the mask generating module and the first parity data, and
the parity restoring module includes a third XOR operator configured to output the second parity data by performing the logical operation on the second substituted parity data and the mask data provided from the mask generating module.

### Claim 7 (depends on 5)

The memory device of claim 5, wherein the extract and attachment module is configured to send a write command, an address, and the write data to the memory module, send a read command and the address to the memory module, and receive the read data based on the address.

### Claim 8 (depends on 2)

The memory device of claim 2, wherein the BIST logic circuit further comprises an analysis circuit configured to receive corrected second main data and ECC status information from the ECC decoder and generate test results based on the ECC status information.

### Claim 9 (depends on 1)

The memory device of claim 1, wherein the pattern generator is configured to receive a test enable signal and generate the first main data in response to the test enable signal.

### Claim 10 (depends on 1)

The memory device of claim 1, wherein the ECC encoder is configured to generate the first parity data by using ECC including at least one of a low density parity check (LDPC) code, a Bose, Chaudhuri, Hocquenghem (BCH) code, a turbo code, a Reed-Solomon code, a convolution code, a recursive systematic code (RSC) and a coded modulation including one of a trellis-coded modulation (TCM) and a block coded modulation (BCM).

### Claim 11 (depends on 1)

The memory device of claim 1, wherein the memory module includes:
a memory cell array including a plurality of memory cells; and
a driving circuit configured to perform a write operation and a read operation on the plurality of memory cells,
wherein each of the plurality of memory cells includes a selection transistor configured to operate in response to a voltage of a word line, wherein a first end of the selection transistor is connected with a source line, and a variable resistance element connected between a second end of the selection transistor and a bit line, wherein a resistance value of the variable resistance element varies depending on current direction.

### Claim 12

A built-in self-test (BIST) logic circuit configured to perform a testing on a memory module, the BIST logic circuit comprising:
a pattern generator configured to generate first main data;
an error correction code (ECC) encoder configured to generate first parity data for the first main data;
an ECC decoder; and
a parity control circuit configured during a write operation to receive the first main data and the first party data and generate write data, and further configured during a read operation to receive read data including second main data and second substituted parity data,
wherein the parity control circuit includes a mask generating module configured to generate mask data based on the first main data and the first parity data, a parity substituting module configured to generate first substituted parity data based on the mask data and the first parity data, and a parity restoring module configured to generate second parity data based on the mask data and the second substituted parity data,
the parity control circuit is further configured to send the write data including the first substituted parity data and the first main data to the memory module and receive the read data from the memory module, and
the ECC decoder is configured to correct an error in the second main data based on the second parity data and the second main data.

### Claim 13 (depends on 12)

The test logic circuit of claim 12, wherein the parity control circuit further includes:
a first multiplexer configured to receive the first parity data, the first substituted parity data and a parity substitution enable signal, and output one of the first parity data and the first substituted parity data in response to the parity substitution enable signal; and
a second multiplexer configured to receive the second parity data, the second substituted parity data and the parity substitution enable signal, and output one of the second parity data and the second substituted parity data in response to the parity substitution enable signal.

### Claim 14 (depends on 12)

The test logic circuit of claim 12, wherein the parity control circuit further includes:
an extract module configured to extract a first portion of the first main data based on the first main data, and send the first portion of the first main data to the mask generating module; and
an extract and attachment module configured to receive the first substituted parity data, generate the write data based on the first substituted parity data and the first main data, extract the second substituted parity data and the second main data from the read data, and provide the second substituted parity data to the parity restoring module,
wherein a number of bits of the first portion of the first main data is the same as a number of bits of the first parity data.

### Claim 15 (depends on 12)

The test logic circuit of claim 12, wherein the mask generating module includes:
a first XOR operator configured to output the mask data by performing a logical operation on a first portion of the first main data and the first parity data; and
a first register configured to store the mask data,
wherein the parity substituting module includes a second XOR operator configured to output the first substituted parity data by performing the logical operation on the mask data and the first parity data, and
the parity restoring module includes a third XOR operator configured to output the second parity data by performing the logical operation on the second substituted parity data and the mask data.

### Claim 16 (depends on 12)

The test logic circuit of claim 12, wherein the parity control circuit further includes a parity position control circuit configured to control a position of the first substituted parity data in the write data.

### Claim 17 (depends on 12)

The test logic circuit of claim 12, wherein a number of 0's in the first substituted parity data is less than a number of 0's in the first parity data.

### Claim 18

A method for testing a memory module including a plurality of memory cells, the method comprising:
generating first main data to be written in the plurality of memory cells;
generating first parity data for the first main data;
setting mask data based on the first parity data and the first main data;
performing a parity substitution operation generating first substituted parity data based on the first parity data and the mask data;
writing write data including the first main data and the first substituted parity data in the plurality of memory cells;
reading stored write data from the plurality of memory cells to generate read data including second main data and second substituted parity data;
performing a parity restoration operation generating second parity data from the second substituted parity data using the mask data; and
correcting an error in the second main data using the second parity data,
wherein a pattern of the first substituted parity data is the same as a pattern of a first portion of the first main data.

### Claim 19 (depends on 18)

The method of claim 18, wherein the setting of the mask data includes:
extracting the first portion of the first main data from the first main data;
generating the mask data based on the first main data and the first parity data; and
storing the mask data in a register.

### Claim 20 (depends on 18)

The method of claim 18, wherein the performing of the parity restoration operation includes:
extracting the second main data and the second substituted parity data from the read data; and
restoring the second parity data based on the second substituted parity data and the mask data.
