# US 2015/0178159 A1 · Memory device and control method of memory device

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

- Number: US 2015/0178159 A1
- Document ID: US20150178159A1
- Status: Published application
- Kind: A1
- Application number: 14/510,786
- Filed: 2014-10-09
- Published: 2015-06-25
- Earliest claimed: 2013-12-20
- Assignees: Fujitsu Semiconductor Limited
- Applicants: Fujitsu Semiconductor Limited
- Inventors: Masamichi MUKAI
- Web page: https://patentgrep.com/patent/US20150178159A1

## CPC

- G06F 11/1048: {using arrangements adapted for a specific error detection or correction feature}
- G11C 7/1075: {for multiport memories each having random access ports and serial ports, e.g. video RAM}
- G11C 8/16: Multiple access memory array, e.g. addressing one storage element via at least two independent addressing line groups
- G11C 11/419: Read-write [R-W] circuits
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A memory device includes: a memory including a first port and a second port that are accessible; an error check and correct encoding circuit that applies an error check and correct code to data and writes them into the first port of the memory; an error check and correct decoding circuit that receives input of the data and the error check and correct code read from the first port of the memory, and corrects the inputted data in case of an error in the inputted data is detected based on the inputted error check and correct code; and a control circuit that writes the corrected data and the error check and correct code into the second port of the memory in case of the error is detected and a current access address and a previous access address to the first port of the memory are different.

## Claims

### Claim 1

A memory device, comprising:
a memory including a first port and a second port that are accessible;
an error check and correct encoding circuit that applies an error check and correct code to data and writes the data and the error check and correct code into the first port of the memory;
an error check and correct decoding circuit that receives input of the data and the error check and correct code read from the first port of the memory, and corrects the inputted data in case of an error in the inputted data is detected based on the inputted error check and correct code; and
a control circuit that does not write the corrected data nor the error check and correct code into the second port of the memory in case of the error is detected and a current access address and a previous access address to the first port of the memory are the same, and writes the corrected data and the error check and correct code into the second port of the memory in case of the error is detected and the current access address and the previous access address to the first port of the memory are different.

### Claim 2 (depends on 1)

The memory device according to claim 1,
wherein when output data of the first port of the memory has been changed, the error check and correct decoding circuit checks for an error in the output data, and sets an error flag in case of an error is detected and resets the error flag in case of no error is detected, and
wherein the control circuit writes, based on the error flag, the corrected data and the error check and correct code into the second port of the memory.

### Claim 3 (depends on 2)

The memory device according to claim 2,
wherein when the memory is instructed to write, the memory receives input of the data and the error check and correct code from the error check and correct encoding circuit into the first port, writes the inputted data and the inputted error check and correct code, and outputs the inputted data and the inputted error check and correct code from the first port, and
wherein the control circuit writes the corrected data and the error check and correct code into the second port of the memory in case of the error flag is in a set state, and does not write the corrected data nor the error check and correct code into the second port of the memory in case of the error flag is in a reset state.

### Claim 4 (depends on 3)

The memory device according to claim 3, further comprising:
a delay circuit that delays the data and the error check and correct code outputted from the error check and correct encoding circuit, and outputs the delayed data and the delayed error check and correct code to the second port of the memory.

### Claim 5 (depends on 2)

The memory device according to claim 2,
wherein when the memory is instructed to write, the memory receives input of the data and the error check and correct code from the error check and correct encoding circuit into the first port, writes the inputted data and the inputted error check and correct code, and does not output the inputted data nor the inputted error check and correct code from the first port but keeps the output data of the first port, and
wherein the control circuit writes the corrected data and the error check and correct code into the second port of the memory in case of the error flag has been changed from a reset state to a set state, and does not write the corrected data nor the error check and correct code into the second port of the memory in case of the error flag keeps the set state.

### Claim 6 (depends on 5)

The memory device according to claim 5, further comprising:
a delay circuit that delays the data and the error check and correct code outputted from the error check and correct encoding circuit, and outputs the delayed data and the delayed error check and correct code to the second port of the memory.

### Claim 7 (depends on 2)

The memory device according to claim 2,
wherein the memory is a first type or second type memory,
wherein when the first-type memory is instructed to write, the first-type memory receives input of the data and the error check and correct code from the error check and correct encoding circuit into the first port, writes the inputted data and the inputted error check and correct code, and outputs the inputted data and the inputted error check and correct code from the first port, and
wherein when the second-type memory is instructed to write, the second-type memory receives input of the data and the error check and correct code from the error check and correct encoding circuit into the first port, writes the inputted data and the inputted error check and correct code, and does not output the inputted data nor the inputted error check and correct code from the first port but keeps the output data of the first port,
wherein the memory device further comprises an identification circuit that identifies which one of the first-type memory and the second-type memory the memory is, on the basis of the output data of the first port of the memory and output data of the error check and correct encoding circuit,
wherein when the memory is the first-type memory, the control circuit writes the corrected data and the error check and correct code into the second port of the memory in case of the error flag is in a set state, and does not write the corrected data nor the error check and correct code into the second port of the memory in case of the error flag is in a reset state, and
wherein when the memory is the second-type memory, the control circuit writes the corrected data and the error check and correct code into the second port of the memory in case of the error flag has been changed from the reset state to the set state, and does not write the corrected data nor the error check and correct code into the second port of the memory in case of the error flag keeps the set state.

### Claim 8 (depends on 7)

The memory device according to claim 7, further comprising:
a delay circuit that delays the data and the error check and correct code outputted from the error check and correct encoding circuit, and outputs the delayed data and the delayed error check and correct code to the second port of the memory.

### Claim 9

A control method of a memory device, the memory device comprising:
a memory having a first port and a second port that are accessible;
an error check and correct encoding circuit that applies an error check and correct code to data and writes the data and the error check and correct code into the first port of the memory; and
an error check and correct decoding circuit that receives input of the data and the error check and correct code read from the first port of the memory, and corrects the inputted data in case of an error in the inputted data is detected based on the inputted error check and correct code,
the control method of a memory device, comprising:
a control circuit not writing the corrected data nor the error check and correct code into the second port of the memory in case of the error is detected and a current access address and a previous access address to the first port of the memory are the same; and
the control circuit writing the corrected data and the error check and correct code into the second port of the memory in case of the error is detected and the current access address and the previous access address to the first port of the memory are different.
