# US 2020/0272330 A1 · Data storage device, non-volatile memory operating method, and method for executing operational commands to operate a data storage medium

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

- Number: US 2020/0272330 A1
- Document ID: US20200272330A1
- Status: Published application
- Kind: A1
- Application number: 15/930,675
- Filed: 2020-05-13
- Published: 2020-08-27
- Earliest claimed: 2017-06-30
- Assignees: Silicon Motion, Inc.
- Applicants: Silicon Motion, Inc.
- Inventors: Shu-Lei CHEN; Ming-Hung CHANG
- Web page: https://patentgrep.com/patent/US20200272330A1

## CPC

- G06F 3/061: {Improving I/O performance}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An optimized non-volatile memory operating method. A data storage device has a plurality of non-volatile memory spaces, a plurality of command queues, and a controller. The command queues are provided to correspond to the non-volatile memory spaces one on one. The controller adds task switching commands into the command queues. The non-volatile memory spaces are operated through the same channel. The sharing of the same channel between the non-volatile memory spaces is optimized by the task switching commands.

## Claims

### Claim 1

A data storage device, comprising:
a plurality of non-volatile memory spaces;
a plurality of command queues, provided to correspond to the plurality of non-volatile memory spaces one on one; and
a controller, adding task switching commands into the command queues,
wherein the non-volatile memory spaces are operated through the same channel and the sharing of the same channel between the non-volatile memory spaces is optimized by the task switching commands.

### Claim 2 (depends on 1)

The data storage device as claimed in claim 1, wherein:
the controller further determines whether to change a working command queue or not at the end of each round of status polling.

### Claim 3 (depends on 2)

The data storage device as claimed in claim 2, wherein:
at the end of one round of status polling, the controller checks whether any command queue besides the working command queue contains a high-priority command having higher priority than normal-priority commands, to change the working command queue, for execution of the high-priority command.

### Claim 4 (depends on 1)

The data storage device as claimed in claim 1, wherein:
the controller attaches one task switching command to the end of each high-priority command for each non-volatile memory space, and each high-priority command has higher priority than normal-priority commands.

### Claim 5 (depends on 4)

The data storage device as claimed in claim 4, wherein:
when executing the task switching command, the controller checks whether any command queue besides the working command queue contains a high-priority command, to change the working command queue, for execution of the high-priority command.

### Claim 6 (depends on 5)

The data storage device as claimed in claim 5, wherein:
when no high-priority command is obtained in the execution of the task switching command, the controller checks whether any command queue besides the working command queue contains a status polling command, to change the working command queue, for execution of the status polling command.

### Claim 7 (depends on 5)

The data storage device as claimed in claim 5, wherein:
when no high-priority command is obtained in the execution of the task switching command, the controller checks whether any command queue besides the working command queue contains a data transmission command, to change the working command queue, for execution of the data transmission command.

### Claim 8 (depends on 1)

The data storage device as claimed in claim 1, wherein:
the controller divides a data transmission command to insert task switching commands between the divided data transmission commands.

### Claim 9 (depends on 8)

The data storage device as claimed in claim 8, wherein:
when executing the task switching command, the controller checks whether any command queue besides the working command queue contains a high-priority command having higher priority than normal-priority commands, to change the working command queue, for execution of the high-priority command.

### Claim 10

A non-volatile memory operating method, comprising:
operating a plurality of non-volatile memory spaces through the same channel;
providing a plurality of command queues corresponding to the plurality of non-volatile memory spaces one on one; and
adding task switching commands into the command queues to optimize the sharing of the same channel between the non-volatile memory spaces.

### Claim 11 (depends on 10)

The non-volatile memory operating method as claimed in claim 10, further comprising:
determining whether to change the working command queue or not at the end of each round of status polling.

### Claim 12 (depends on 11)

The non-volatile memory operating method as claimed in claim 11, further comprising:
at the end of one round of status polling, checking whether any command queue besides the working command queue contains a high-priority command having higher priority than normal-priority commands, to change the working command queue, for execution of the high-priority command.

### Claim 13 (depends on 10)

The non-volatile memory operating method as claimed in claim 10, further comprising:
attaching one task switching command to the end of each high-priority command for each non-volatile memory space, each high-priority command having higher priority than normal-priority commands.

### Claim 14 (depends on 13)

The non-volatile memory operating method as claimed in claim 13, further comprising:
when executing the task switching command, checking whether any command queue besides the working command queue contains a high-priority command, to change the working command queue, for execution of the high-priority command.

### Claim 15 (depends on 14)

The non-volatile memory operating method as claimed in claim 14, further comprising:
when no high-priority command is obtained in the execution of the task switching command, checking whether any command queue besides the working command queue contains a status polling command, to change the working command queue, for execution of the status polling command.

### Claim 16 (depends on 14)

The non-volatile memory operating method as claimed in claim 14, further comprising:
when no high-priority command is obtained in the execution of the task switching command, checking whether any command queue besides the working command queue contains a data transmission command, to change the working command queue, for execution of the data transmission command.

### Claim 17 (depends on 10)

The non-volatile memory operating method as claimed in claim 10, further comprising:
dividing a data transmission command to insert task switching commands between the divided data transmission commands.

### Claim 18 (depends on 17)

The non-volatile memory operating method as claimed in claim 17, further comprising:
when executing the task switching command, checking whether any command queue besides the working command queue contains a high-priority command having higher priority than normal-priority commands, to change the working command queue, for execution of the high-priority command.

### Claim 19

A method for executing operational commands to operate a data storage medium, comprising:
translating a plurality of external commands into a plurality of operational commands, wherein the operational commands including task switching commands, and the task switching commands are provided to optimize the sharing of the same channel between a plurality of non-volatile memory spaces;
using a plurality of command queues corresponding to the plurality of non-volatile memory spaces sharing the same channel to queue the operational commands;
selecting one of the command queues as the working command queue;
executing one operational command queued in the working command queue; and
according to the task switching command, changing the working command queue to be another command queue considering a selection condition.

### Claim 20 (depends on 19)

The method as claimed in claim 19, wherein task switching is further automatically triggered when one particular type of operational command among the operational commands is completed.

### Claim 21 (depends on 19)

The method as claimed in claim 19, wherein the selection condition is satisfied when one particular type of operational command among the operational commands is detected queued in one of the command queues.

### Claim 22 (depends on 19)

The method as claimed in claim 19, wherein:
the selection condition is satisfied when one particular type of operational command among the operational commands is detected queued in one of the command queues; and
the particular type of operational command has higher priority than normal-priority commands.
