# US 2026/0064291 A1 · Data storage device and method of operating the same

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

- Number: US 2026/0064291 A1
- Document ID: US20260064291A1
- Status: Published application
- Kind: A1
- Application number: 19/298,703
- Filed: 2025-08-13
- Published: 2026-03-05
- Earliest claimed: 2024-08-27
- Assignees: Samsung Electronics Co., Ltd.; UIF (University Industry Foundation), Yonsei University
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Myungkyu LEE; Joon-Sung YANG; Jae-Youn HONG; Jinwoo SEONG
- Web page: https://patentgrep.com/patent/US20260064291A1

## CPC

- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0673: {Single storage device}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data storage device includes a memory device and a memory controller configured to control the memory device. The memory controller may include a compressor configured to perform a compression operation on at least one piece of input data, among a plurality of pieces of input data included in a weight bundle. The compressor may include a flag encoder configured to compress upper bits of each piece in the at least one piece of input data into a first flag, a first local counter configured to count a number of first flags and generates a first count value, and an index generator configured to generate an index for the weight bundle based on the first count value. The index may include information on a number of pieces of input data compressed using the first flag, among the plurality of pieces of the input data included in the weight bundle.

## Claims

### Claim 1

A data storage device comprising:
a memory device comprising memory cells; and
a memory controller configured to control the memory device,
wherein
the memory controller comprises:
a compressor configured to perform a compression operation on at least one piece of input data, among a plurality of pieces of input data included in a weight bundle,
the compressor comprises:
a flag encoder configured to compress upper bits of each piece in the at least one piece of input data, among the plurality of pieces of the input data included in the weight bundle, into a first flag;
a first local counter configured to count a number of first flags and generates a first count value; and
an index generator configured to generate an index for the weight bundle based on the first count value,
wherein the index comprises information on a number of pieces of input data compressed using the first flag, among the plurality of pieces of the input data included in the weight bundle.

### Claim 2 (depends on 1)

The data storage device of claim 1, wherein
the flag encoder compresses upper bits of first input data, among the plurality of pieces of the input data, into the first flag, and then combines the first flag with lower bits of the first input data to generate first compressed data.

### Claim 3 (depends on 2)

The data storage device of claim 2, wherein
the flag encoder generates a second flag corresponding to second input data, among the plurality of pieces of the input data, and then combines the second flag with the second input data to generate second data, and
upper bits of the first input data correspond to a predetermined range, and the upper bits of the second input data are outside the predetermined range.

### Claim 4 (depends on 3)

The data storage device of claim 3, wherein
the first local counter comprises:
a first sub-local counter configured to count the first flag and generate the first count value for a number of pieces of data associated with the first flag, among the plurality of pieces of the input data; and
a second sub-local counter configured to count the second flag and generate a second count value for a number of pieces of data associated with the second flag, among the plurality of pieces of the input data.

### Claim 5 (depends on 4)

The data storage device of claim 4, wherein
the index generator generates the index based on the first count value and the second count value, and
the index comprises information on the number of pieces of data associated with the first flag included in the weight bundle and information on the number of pieces of data associated with the second flag included in the weight bundle.

### Claim 6 (depends on 1)

The data storage device of claim 1, wherein
the memory controller further comprises a decompressor configured to perform a decompression operation on an output weight bundle read from the memory device, and
the decompressor comprises a flag decoder configured to decompress the first flag included in each piece in at least one piece of output data, among a plurality of pieces of output data included in the output weight bundle, into upper bits corresponding to the first flag.

### Claim 7 (depends on 6)

The data storage device of claim 6, wherein
the flag decoder decompresses a first output flag included in first output data, among the plurality of pieces of the output data, into upper bits of the first output data, and then combines the upper bits of the first output data with lower bits of the first output data to generate third data.

### Claim 8 (depends on 7)

The data storage device of claim 7, wherein
a size of the third data is larger than a size of the first output data.

### Claim 9 (depends on 7)

The data storage device of claim 7, wherein
the flag decoder generates fourth data by omitting a second flag, included in second output data among the plurality of pieces of the output data, from the second output data.

### Claim 10 (depends on 9)

The data storage device of claim 9, wherein
a size of the fourth data is smaller than a size of the second output data.

### Claim 11 (depends on 10)

The data storage device of claim 10, wherein
the decompressor further comprises a second local counter configured to count the number of the first flags and a number of second flags, and
the second local counter comprises:
a third sub-local counter configured to count the number of the first flags and generate a first actual count value based on the number of pieces of output data associated with the first flag, among the plurality of pieces of the output data; and
a fourth sub-local counter configured to count the number of the second flags and generate a second actual count value based on the number of pieces of output data associated with the second flag, among the plurality of pieces of output data.

### Claim 12 (depends on 11)

The data storage device of claim 11, wherein
the decompressor further comprises an index checker configured to receive an index included in the output weight bundle and, based on the index, obtain a first expected count value associated with the number of pieces of the output data associated with the first flag, among the plurality of pieces of the output data, and a second expected count value associated with the number of pieces of the output data associated with the second flag, among the plurality of pieces of the output data,
the index checker determines whether an error has occurred, based on a first comparison result between the first actual count value and the first expected count value and a second comparison result between the second actual count value and the second expected count value.

### Claim 13 (depends on 11)

The data storage device of claim 11, wherein
the compressor further comprises a first global counter configured to manage a count value associated with a global block comprising a plurality of weight bundles, and
the first global counter comprises:
a first sub-global counter configured to receive the first count value from a first sub-local counter and generate a first global count value for a number of pieces of data associated with the first flag included in the global block; and
a second sub-global counter configured to receive a second count value from a second sub-local counter and generate a second global count value for a number of pieces of data associated with the second flag included in the global block.

### Claim 14 (depends on 13)

The data storage device of claim 13, wherein
the decompressor further comprises a header generator configured to receive the first global count value and the second global count value from the first global counter and generate a header based on the first global count value and the second global count value.

### Claim 15 (depends on 14)

The data storage device of claim 14, wherein
the decompressor further comprises a second global counter configured to manage a count value for an output global block comprising a plurality of output weight bundles, and
the second global counter comprises:
a third sub-global counter configured to receives the first actual count value from the third sub-local counter and generate a first actual global count value for the number of pieces of the data associated with the first flag included in the output global block; and
a fourth sub-global counter configured to receive the second actual count value from the fourth sub-local counter and generate a second actual global count value for the number of pieces of the data associated with the second flag included in the output global block.

### Claim 16 (depends on 15)

The data storage device of claim 15, wherein
the decompressor further includes a header comparator configured to receive the header corresponding to the output global block and, based on the header, obtain a first expected global count value for the number of pieces of the data associated with the first flag included in the output global block and a second expected global count value for the number of pieces of the data associated with the second flag included in the output global block.

### Claim 17 (depends on 16)

The data storage device of claim 16, wherein
the header comparator determines whether an error has occurred, based on a third comparison result between the first actual global count value and the first expected global count value and a fourth comparison result between the second actual global count value and the second expected global count value.

### Claim 18 (depends on 1)

The data storage device of claim 1, wherein
the memory device further comprises an ECC engine configured to performs an error correction operation on data stored in the memory cells, and
an operation unit of the ECC engine and a write unit of the memory device are the same.

### Claim 19

A memory controller controlling a memory device, the memory controller comprising:
a flag encoder configured to compress upper bits of each piece in at least one piece of input data, among a plurality of pieces of input data included in a weight bundle, into a first flag;
a first local counter configured to count a number of first flags and generates a first count value; and
an index generator configured to generate an index for the weight bundle based on the first count value.

### Claim 20

A method of operating a data storage device, the method comprising:
compressing upper bits of each piece in at least one piece of input data, among a plurality of pieces of input data included in a weight bundle, into a first flag;
connecting a second flag to each piece in at least one piece of input data, among the plurality of pieces of input data in the weight bundle;
counting a number of first flags and generating a first count value;
counting a number of second flags and generating a second count value; and
generating an index comprising information on a number of pieces of input data compressed using the first flag, among the plurality of pieces of the input data included in the weight bundle, and information on a number of input data converted using the second flag, among the plurality of pieces of input data included in the weight bundle, based on the first count value and the second count value.
