# US 2021/0334037 A1 · Integrated circuit memory devices with enhanced buffer memory utilization during read and write operations and methods of operating same

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

- Number: US 2021/0334037 A1
- Document ID: US20210334037A1
- Status: Published application
- Kind: A1
- Application number: 17/369,606
- Filed: 2021-07-07
- Published: 2021-10-28
- Earliest claimed: 2018-01-22
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: EUNG-JUN YOUN; BUM-JUN KIM
- Web page: https://patentgrep.com/patent/US20210334037A1

## CPC

- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 11/1048: {using arrangements adapted for a specific error detection or correction feature}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 2212/7203: Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An integrated circuit device includes a nonvolatile memory, first and second buffer memories, and a controller. Each of the first and second buffer memories is configured to buffer write data to be written to the nonvolatile memory in response to a write request and also buffer read data received from the nonvolatile memory in response to a read request. A controller is provided, which evaluates the first buffer memory against at least one criterion relating to data accuracy. The controller is configured to: redirect at least some of the write data from the first buffer memory to the second buffer memory in response to the write request when the evaluation demonstrates the criterion has been exceeded, and redirect at least some of the read data from the first buffer memory to the second buffer memory in response to the read request when the evaluation demonstrates the criterion has been exceeded.

## Claims

### Claim 1

A storage device comprising:
a nonvolatile memory; and
a controller configured to write data to the nonvolatile memory or read data from the nonvolatile memory,
wherein the controller comprises:
a processor configured to include a central processing unit (CPU) or a micro-processor, and control overall operations of the controller;
a host interface between a host and the controller;
an NVM interface configured to exchange data between the controller and the nonvolatile memory;
a DRAM controller for controlling a DRAM buffer provided outside the controller and nonvolatile memory;
a SRAM buffer configured to buffer write data to be written on the nonvolatile memory or read data read from the nonvolatile memory;
an ECC module configured to check and correct errors in the write data or the read data buffered in the SRAM buffer;
a monitoring module configured to monitor the number of error bits generated in the SRAM buffer based on an error corrected by the ECC module; and
a buffer manager configured to compare the number of error bits received from the monitoring module to a threshold number and determine the SRAM buffer or the DRAM buffer, as a buffer memory for the write data or the read data based on a comparison result.

### Claim 2 (depends on 1)

The storage device of claim 1, wherein the controller is further configured to determine the SRAM buffer as the buffer memory when the number of error bits is lower than the threshold number, and determine the DRAM buffer as the buffer memory when the number of error bits is equal to or higher than the threshold number.

### Claim 3 (depends on 1)

The storage device of claim 1, wherein the controller is further configured to monitor an input/output speed of the write data or the read data, and dynamically determine the buffer memory based on the input/output speed.

### Claim 4 (depends on 3)

The storage device of claim 3, wherein the buffer manager is further configured to compare the input/output speed to a threshold speed, determine the SRAM buffer as the buffer memory when the input/output speed is lower than the threshold speed, and determine the DRAM buffer as the buffer memory when the input/output speed is equal to or higher than the threshold speed.

### Claim 5 (depends on 1)

The storage device of claim 1, wherein the controller is further configured to redirect at least some of the write data through the DRAM buffer as a substitute for the SRAM buffer when the number of error bits associated with the SRAM buffer is higher than the threshold number.

### Claim 6 (depends on 5)

The storage device of claim 5, wherein the controller is further configured to redirect at least some of the read data through the DRAM buffer as a substitute for the SRAM buffer when the number of error bits associated with the SRAM buffer is higher than the threshold number.

### Claim 7 (depends on 1)

The storage device of claim 1, wherein the monitoring module is further configured to monitor a generation frequency of error bits generated in the SRAM buffer based on the error corrected by the ECC module.

### Claim 8 (depends on 7)

The storage device of claim 7, wherein the buffer manager is further configured to compare the generation frequency of error bits received from the monitoring module to a threshold frequency and determine the SRAM buffer or the DRAM buffer, as the buffer memory for the write data or the read data based on a comparison result.

### Claim 9 (depends on 8)

The storage device of claim 8, wherein the controller is further configured to determine the SRAM buffer as the buffer memory when the generation frequency of error bits is lower than the threshold frequency, and determine the DRAM buffer as the buffer memory when the generation frequency of error bits is equal to or higher than the threshold frequency.

### Claim 10 (depends on 8)

The storage device of claim 8, wherein the controller is further configured to redirect at least some of the write data through the DRAM buffer as a substitute for the SRAM buffer when the generation frequency of the error bits associated with the SRAM buffer is higher than the threshold frequency.

### Claim 11 (depends on 10)

The storage device of claim 10, wherein the controller is further configured to redirect at least some of the read data through the DRAM buffer as a substitute for the SRAM buffer when the generation frequency of error bits associated with the SRAM buffer is higher than the threshold frequency.

### Claim 12

A method of operating a storage device including a nonvolatile memory and a controller configured to control the nonvolatile memory, the method comprising:
monitoring, by the controller, the number of error bits generated in a first buffer memory included in the controller or a generation frequency of the error bits;
comparing, by the controller, the number of error bits or the generation frequency of the error bits to a threshold value;
determining a buffer memory between the first buffer memory in the controller and a second buffer memory provided outside the controller and the nonvolatile memory based on a comparison result,
buffering, on the second buffer memory provided outside the controller and the nonvolatile memory, write data to be written on the nonvolatile memory or read data read from the nonvolatile memory when the number of error bits or the generation frequency of the error bits is equal to or higher than the threshold value; and
buffering, on the first buffer memory the write data or the read data when the number of error bits or the generation frequency of the error bits is lower than the threshold value.

### Claim 13 (depends on 12)

The method of claim 12, wherein, in the monitoring, the number of error bits or the generation frequency of the error bits is monitored by comparing data input to the first buffer memory to data output from the first buffer memory.

### Claim 14 (depends on 12)

The method of claim 12, further comprising performing an error check and correction operation on data buffered into the first buffer memory, wherein, in the monitoring, the number of error bits or the generation frequency of the error bits is monitored based on an error corrected via the error check and correction operation.

### Claim 15 (depends on 12)

The method of claim 12, further comprising:
monitoring an input/output speed of the write data or the read data; and
dynamically determining, as the first or second buffer memory, the buffer memory for buffering the write data or the read data based on the input/output speed.

### Claim 16 (depends on 12)

The method of claim 12, wherein the first buffer memory is a SRAM buffer, and the second buffer memory is a DRAM buffer.

### Claim 17 (depends on 12)

The method of claim 12, further comprising:
redirecting at least some of the write data through the second buffer memory as a substitute for the first buffer memory when the number of error bits associated with the first buffer memory is higher than the threshold value.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
redirecting at least some of the read data through the second buffer memory as a substitute for the first buffer memory when the number of error bits associated with the first buffer memory is higher than the threshold value.

### Claim 19 (depends on 12)

The method of claim 12, further comprising:
redirecting at least some of the write data through the second buffer memory as a substitute for the first buffer memory when the generation frequency of the error bits associated with the first buffer memory is higher than the threshold value.

### Claim 20 (depends on 19)

The method of claim 19, further comprising:
redirecting at least some of the read data through the second buffer memory as a substitute for the first buffer memory when the generation frequency of error bits associated with the first buffer memory is higher than the threshold value.
