# US 2021/0240642 A1 · Data storage device with an exclusive channel for flag checking of read data, and non-volatile memory control method

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

- Number: US 2021/0240642 A1
- Document ID: US20210240642A1
- Status: Published application
- Kind: A1
- Application number: 17/152,138
- Filed: 2021-01-19
- Published: 2021-08-05
- Earliest claimed: 2020-02-03
- Assignees: Silicon Motion, Inc.
- Applicants: Silicon Motion, Inc.
- Inventors: An-Pang LI
- Web page: https://patentgrep.com/patent/US20210240642A1

## CPC

- G06F 13/1668: {Details of memory controller}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 13/4027: {using bus bridges (G06F13/4022 takes precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An efficient control technology for non-volatile memory. In a controller, a host bridge controller and a master computing unit are coupled to a system memory via an interconnect bus, and then coupled to a non-volatile memory interface controller. In response to a read command issued by a host, the non-volatile memory interface controller temporarily stores data read from a non-volatile memory to the system memory and, accordingly, asserts a flag in the system memory. Through a first channel provided by the interconnect bus, the host bridge controller confirms that the flag is asserted to correctly read the data from system memory and returns the data to the host. The master computing unit reads the system memory through a second channel provided by the interconnect bus, without being delayed by the status checking of the flag.

## Claims

### Claim 1

A data storage device, comprising:
a non-volatile memory; and
a controller, having a host bridge controller, a master computing unit, an interconnect bus, a system memory, and a non-volatile memory interface controller,
wherein:
the host bridge controller is coupled to a host, the non-volatile memory interface controller is coupled to the non-volatile memory, the host bridge controller and the master computing unit are coupled to the system memory through the interconnect bus, and the non-volatile memory interface controller is coupled between the system memory and the non-volatile memory;
in response to a read command issued by the host, the non-volatile memory interface controller reads data from the non-volatile memory, temporarily stores the data in the system memory, and then asserts a flag corresponding to the data temporarily stored in the system memory;
checking the flag through a first channel provided by the interconnect bus, the host bridge controller reads the data temporarily stored in the system memory according to the asserted flag; and
the master computing unit reads the system memory through a second channel provided by the interconnect bus.

### Claim 2 (depends on 1)

The data storage device as claimed in claim 1, wherein:
the first channel provided by the interconnect bus is a write channel for the system memory; and
the second channel provided by the interconnect bus is a read channel for the system memory.

### Claim 3 (depends on 2)

The data storage device as claimed in claim 2, wherein:
the host bridge controller executes a data detection command or a preset vendor command to issue a write request for programming a preset value;
the write request for programming the preset value triggers a handshake between the host bridge controller and the system memory, and the handshake is transferred through the write channel; and
during the handshake, if programming of the preset value is permitted, the flag is deemed asserted, otherwise, the flag is deemed de-asserted.

### Claim 4 (depends on 2)

The data storage device as claimed in claim 2, wherein:
the host bridge controller executes a data detection command or a preset vendor command to issue a write request for programming data in a virtual address;
the write request for programming data in the virtual address triggers a handshake between the host bridge controller and the system memory, and the handshake is transferred through the write channel; and
during the handshake, status of the flag is obtained from system memory.

### Claim 5 (depends on 2)

The data storage device as claimed in claim 2, wherein:
when determining that the flag is asserted, the host bridge controller reads the data from system memory through the read channel, and de-asserts the flag through the write channel.

### Claim 6 (depends on 5)

The data storage device as claimed in claim 5, wherein:
the master computing unit reads the system memory through the read channel while the host bridge controller is checking status of the flag through the write channel.

### Claim 7 (depends on 6)

The data storage device as claimed in claim 6, wherein:
the interconnect bus has a first slave input and output (I/O) port, a second slave I/O port, and a master I/O port;
the first slave I/O port is coupled to the master computing unit;
the second slave I/O port is coupled to the host bridge controller;
the master I/O port is coupled to the system memory;
when the master computing unit gains right to access the system memory, the read channel and the write channel are established between the first slave I/O port and the master I/O port; and
when the host bridge controller gains the right to access the system memory, the read channel and the write channel are established between the second slave I/O port and the master I/O port.

### Claim 8 (depends on 1)

The data storage device as claimed in claim 1, wherein:
the first channel provided by the interconnect bus is a flag reading channel corresponding to a flag area of the system memory;
the second channel provided by the interconnect bus is a data reading channel corresponding to a data area of the system memory; and
the interconnect bus further provides a flag writing channel corresponding to the flag area and a data writing channel corresponding to the data area.

### Claim 9 (depends on 8)

The data storage device as claimed in claim 8, wherein:
the host bridge controller accesses the system memory through the flag reading channel to check whether the flag is asserted or not; and
when determining that the flag is asserted, the host bridge controller reads the data temporarily stored in the system memory through the data reading channel, and de-asserts the flag through the flag writing channel.

### Claim 10 (depends on 9)

The data storage device as claimed in claim 9, wherein:
the master computing unit reads the data area through the data reading channel or programs the data area through the data writing channel while the host bridge controller is accessing the system memory through the flag reading channel to check whether the flag is asserted or not.

### Claim 11 (depends on 10)

The data storage device as claimed in claim 10, wherein:
the interconnect bus has a first slave I/O port, a second slave I/O port, a first master I/O port, and a second master I/O port;
the first slave I/O port is coupled to the master computing unit;
the second slave I/O port is coupled to the host bridge controller;
the first master I/O port is coupled to the system memory for accessing the data area;
the second master I/O port is coupled to the system memory for accessing the flag area;
when the master computing unit gains right to access the system memory, the data reading channel and the data writing channel are established between the first slave I/O port and the first master I/O port; and
when the host bridge controller unit gains the right to access the system memory, the data reading channel and the data writing channel are established between the second slave I/O port and the first master I/O port, and the flag reading channel and the flag writing channel are established between the second slave I/O port and the second master I/O port.

### Claim 12

A non-volatile memory control method, comprising:
providing a host bridge controller coupled to a host, and providing a non-volatile memory interface controller coupled to a non-volatile memory;
coupling the host bridge controller and the master computing unit to a system memory through an interconnect bus, and coupling the system memory to the non-volatile memory interface controller;
in response to a read command issued by the host, triggering the non-volatile memory interface controller to read data from the non-volatile memory, temporarily store the data in the system memory, and then assert a flag corresponding to the data temporarily stored in the system memory;
driving the host bridge controller to check the flag through a first channel provided by the interconnect bus, to read the data temporarily stored in the system memory according to the asserted flag; and
driving the master computing unit to read the system memory through a second channel provided by the interconnect bus.

### Claim 13 (depends on 12)

The non-volatile memory control method as claimed in claim 12, wherein:
the first channel provided by the interconnect bus is a write channel for the system memory; and
the second channel provided by the interconnect bus is a read channel for the system memory.

### Claim 14 (depends on 13)

The non-volatile memory control method as claimed in claim 13, wherein:
the host bridge controller executes a data detection command or a preset vendor command to issue a write request for programming a preset value;
the write request for programming the preset value triggers a handshake between the host bridge controller and the system memory, and the handshake is transferred through the write channel; and
during the handshake, if programming of the preset value is permitted, the flag is deemed asserted, otherwise, the flag is deemed de-asserted.

### Claim 15 (depends on 13)

The non-volatile memory control method as claimed in claim 13, wherein:
the host bridge controller executes a data detection command or a preset vendor command to issue a write request for programming data in a virtual address;
the write request for programming data in the virtual address triggers a handshake between the host bridge controller and the system memory, and the handshake is transferred through the write channel; and
during the handshake, status of the flag is obtained from system memory.

### Claim 16 (depends on 13)

The non-volatile memory control method as claimed in claim 13, wherein:
when determining that the flag is asserted, the host bridge controller reads the data from system memory through the read channel, and de-asserts the flag through the write channel.

### Claim 17 (depends on 16)

The non-volatile memory control method as claimed in claim 16, wherein:
the master computing unit reads the system memory through the read channel while the host bridge controller is checking status of the flag through the write channel.

### Claim 18 (depends on 17)

The non-volatile memory control method as claimed in claim 17, wherein:
the interconnect bus has a first slave I/O port, a second slave I/O port, and a master I/O port;
the first slave I/O port is coupled to the master computing unit;
the second slave I/O port is coupled to the host bridge controller;
the master I/O port is coupled to the system memory;
when the master computing unit gains right to access the system memory, the read channel and the write channel are established between the first slave I/O port and the master I/O port; and
when the host bridge controller gains the right to access the system memory, the read channel and the write channel are established between the second slave I/O port and the master I/O port.

### Claim 19 (depends on 12)

The non-volatile memory control method as claimed in claim 12, wherein:
the first channel provided by the interconnect bus is a flag reading channel corresponding to a flag area of the system memory;
the second channel provided by the interconnect bus is a data reading channel corresponding to a data area of the system memory; and
the interconnect bus further provides a flag writing channel corresponding to the flag area and a data writing channel corresponding to the data area.

### Claim 20 (depends on 19)

The non-volatile memory control method as claimed in claim 19, wherein:
the host bridge controller accesses the system memory through the flag reading channel to check whether the flag is asserted or not; and
when determining that the flag is asserted, the host bridge controller reads the data temporarily stored in the system memory through the data reading channel, and de-asserts the flag through the flag writing channel.

### Claim 21 (depends on 20)

The non-volatile memory control method as claimed in claim 20, wherein:
the master computing unit reads the data area through the data reading channel or programs the data area through the data writing channel while the host bridge controller is accessing the system memory through the flag reading channel to check whether the flag is asserted or not.

### Claim 22 (depends on 21)

The non-volatile memory control method as claimed in claim 21, wherein:
the interconnect bus has a first slave I/O port, a second slave I/O port, a first master I/O port, and a second master I/O port;
the first slave I/O port is coupled to the master computing unit;
the second slave I/O port is coupled to the host bridge controller;
the first master I/O port is coupled to the system memory for accessing the data area;
the second master I/O port is coupled to the system memory for accessing the flag area;
when the master computing unit gains right to access the system memory, the data reading channel and the data writing channel are established between the first slave I/O port and the first master I/O port; and
when the host bridge controller unit gains the right to access the system memory, the data reading channel and the data writing channel are established between the second slave I/O port and the first master I/O port, and the flag reading channel and the flag writing channel are established between the second slave I/O port and the second master I/O port.
