Data storage device and non-volatile memory control method

By allocating special channels and utilizing the flag confirmation mechanism in the hardware design of non-volatile memory, the problem of low read and write operation efficiency in data storage devices is solved, and efficient data processing and system performance improvement are achieved.

CN113204309BActive Publication Date: 2024-08-27SILICON MOTION INC
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202010187007.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-02-03
Filing Date
2020-03-17
Publication Date
2024-08-27
Estimated Expiration
2040-03-17

AI Technical Summary

Technical Problem

In the existing hardware design of non-volatile memory, the efficiency of data reading and writing operations is low, resulting in insufficient system performance. Especially in the case of multi-channel sharing, conflicts are prone to occur, affecting the overall performance of the data storage device.

Method used

A controller structure is designed. By allocating dedicated channels in the on-chip bus for read and write operations, it ensures that the confirmation of the flag will not hinder the operation of the system memory by the main computing unit. The host bridge controller is used to connect the controller and the non-controller. The volatile memory interface controller works together, using the write channel of the AXI bus to determine flag settings, and perform data reading and writing operations in parallel through the read channel.

Benefits of technology

It improves the overall performance of the data storage device, avoids interruption of read operations, ensures that the main computing unit can immediately obtain the right to use the read channel, and improves the efficiency of data reading and writing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113204309B_ABST
    Figure CN113204309B_ABST
Patent Text Reader

Abstract

The present invention relates to an efficient control technology for non-volatile memory. In a controller, a host bridge controller and a main operation unit are coupled to a system memory and then coupled to a non-volatile memory interface controller via an intra-chip bus. In response to a read instruction issued by a host, the non-volatile memory interface controller temporarily stores a data read from a non-volatile memory to the system memory, and sets a flag in the system memory corresponding to the temporary storage of the data. The host bridge controller confirms that the flag is set via a first channel of the intra-chip bus to read the data from the system memory and respond to the host. The main operation unit reads the system memory via a second channel of the intra-chip bus.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a hardware design of a controller of a non-volatile memory. Background Art

[0002] There are many forms of non-volatile memory, such as flash memory, magnetoresistive RAM, ferroelectric RAM, resistive RAM, spin transfer torque RAM (STT-RAM), etc., which are used for long-term data storage and can be used as storage media to implement a data storage device.

[0003] How to improve the performance of data storage devices in hardware design is an important issue in the technical field. Summary of the invention

[0004] The present invention discloses an efficient control technology for a non-volatile memory.

[0005] A data storage device implemented according to an embodiment of the present invention includes a non-volatile memory and a controller. The controller has a host bridge controller, a main computing unit, an intra-chip bus, a system memory, and a non-volatile memory interface controller. 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 main computing unit are coupled to the system memory via the intra-chip bus and then coupled to the non-volatile memory interface controller. In response to a read instruction issued by the host, the non-volatile memory interface controller temporarily stores a data read from the non-volatile memory to the system memory, and sets (sets, or asserts) a flag in the system memory corresponding to the temporary storage of the data. The host bridge controller confirms that the flag is set via a first channel of the intra-chip bus to read the data from the system memory. The main computing unit reads the system memory via a second channel of the intra-chip bus.

[0006] In this way, the confirmation of the flag will not hinder the main computing unit from operating the system memory. The controller has high performance.

[0007] In one embodiment, the first channel of the on-chip bus is a write channel to the system memory; and the second channel of the on-chip bus is a read channel to the system memory.

[0008] The host bridge controller can issue a preset value write request through a data detection instruction or a preset supplier instruction, so that the host bridge controller exchanges hands with the system memory through the write channel, determines that the flag is set when the preset value write request is allowed, and determines that the flag is not set when the preset value write is not allowed.

[0009] The host bridge controller may request to write to a virtual address with a data detection instruction or a preset vendor instruction, so that the host bridge controller exchanges hands with the system memory through the write channel and learns from the system memory whether the flag is set or not.

[0010] After confirming that the flag is set, the host bridge controller can obtain the data temporarily stored in the system memory through the read channel and reset (reset or deassert) the flag through the write channel.

[0011] The host bridge controller determines whether the flag is set via the write channel while the main computing unit can read the system memory via the read channel.

[0012] The on-chip bus may include a first slave input / output port, a second slave input / output port, and a master input / output port. The first slave input / output port is coupled to the master computing unit. The second slave input / output port is coupled to the host bridge controller. The master input / output port is coupled to the system memory. When used by the master computing unit, the read channel and the write channel are established via the first slave input / output port and the master input / output port. When used by the host bridge controller, the read channel and the write channel are established via the second slave input / output port and the master input / output port.

[0013] In one embodiment, the first channel of the on-chip bus is a flag read channel corresponding to a flag area of ​​the system memory; the second channel of the on-chip bus is a data read channel corresponding to a data area of ​​the system memory; the on-chip bus further provides a flag write channel corresponding to the flag area; and the on-chip bus further provides a data write channel corresponding to the data area.

[0014] The host bridge controller can learn whether the flag is set from the system memory through the flag read channel. After confirming that the flag is set, the host bridge controller can obtain the data temporarily stored in the system memory through the data read channel and reset the flag through the flag write channel.

[0015] The host bridge controller determines whether the flag is set or not through the flag reading channel, while the main operation unit can read the data area through the data reading channel or program the data area through the data writing channel.

[0016] The on-chip bus may include a first slave input / output port, a second slave input / output port, a first master input / output port, and a second master input / output port. The first slave input / output port is coupled to the master computing unit. The second slave input / output port is coupled to the host bridge controller. The first master input / output port is coupled to the data area of ​​the system memory. The second master input / output port is coupled to the flag area of ​​the system memory. When used by the master computing unit, the data read channel and the data write channel are established via the first slave input / output port and the first master input / output port. When used by the host bridge controller, the data read channel and the data write channel are established via the second slave input / output port and the first master input / output port, and the flag read channel and the flag write channel are established via the second slave input / output port and the second master input / output port.

[0017] The operation of the above controller on the non-volatile memory can also be implemented by other structures. The present invention can further implement a control method of the non-volatile memory based on the above concept.

[0018] The following is a detailed description of the present invention with reference to the embodiments and accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A data storage device 100 implemented according to an embodiment of the present invention;

[0020] Figure 2 is a flow chart illustrating how the host bridge controller 108 responds to a read command issued by the host 106 according to one embodiment of the present invention;

[0021] Figure 3 is a flow chart illustrating how the flash memory interface controller 110 responds to the read command issued by the host 106 according to one embodiment of the present invention;

[0022] Figure 4 A data storage device 400 is illustrated according to another embodiment of the present invention; and

[0023] Figure 5 For the flow chart, corresponding to Figure 4 The architecture illustrates how the host bridge controller 108 responds to the read command issued by the host 106 according to one embodiment of the present invention.

[0024] Explanation of symbols

[0025] 100~data storage device;

[0026] 102~Flash memory;

[0027] 104~controller;

[0028] 106~Host;

[0029] 108~Host bridge controller;

[0030] 110~Flash memory interface controller;

[0031] 112~Central Processing Unit;

[0032] 114~System memory;

[0033] 116~Advanced eXtensible Interface (AXI) bus;

[0034] 118, 120 ~ slave input / output port;

[0035] 122~Master input / output port;

[0036] 124, 126~trigger signal;

[0037] 128~data;

[0038] 130~flag;

[0039] 132~Preset value written;

[0040] 134~Returned data 128;

[0041] 136 ~ data taken from system memory 114;

[0042] 400~data storage device;

[0043] 402 ~ Advanced eXtensible Interface (AXI) bus;

[0044] 404~Main ​​input / output port;

[0045] 406~Flag area;

[0046] 408 - Data Area; and

[0047] S202…S210, S302…S310, S502…S510~steps.

[0048] Specific implementation methods

[0049] The following description lists various embodiments of the present invention. The following description introduces the basic concept of the present invention and is not intended to limit the content of the present invention. The actual scope of the invention should be defined by the claims.

[0050] Non-volatile memory can be Flash Memory, Magnetoresistive RAM, Ferroelectric RAM, Resistive RAM (RRAM), Spin Transfer Torque RAM (STT-RAM), etc., which provide storage media for long-term data preservation. The following discussion will specifically take Flash Memory as an example.

[0051] Nowadays, data storage devices often use flash memory as storage media to realize products such as memory cards, USB flash devices, solid-state drives (SSDs), etc. One application is to use multi-chip packaging to package the flash memory and its controller together, which is called an embedded flash memory module (such as eMMC).

[0052] Data storage devices using flash memory as storage media can be applied to a variety of electronic devices, including smart phones, wearable devices, tablet computers, virtual reality devices, etc. The computing module of the electronic device can be regarded as a host, which operates the data storage device used to access the flash memory therein.

[0053] Data storage devices using flash memory as storage media can also be used to build data centers. For example, servers can operate solid-state drive (SSD) arrays to form data centers. The server can be regarded as a host and operate the connected solid-state drive to access the flash memory therein.

[0054] Figure 1 The data storage device 100 implemented according to one embodiment of the present invention includes a flash memory 102 and a controller 104. The data storage device 100 can execute commands from a host 106.

[0055] The controller 104 communicates with the host 106 via a host bridge controller 108, and is coupled to the flash memory 102 via a flash memory interface controller (a non-volatile memory interface controller) 110. The controller 104 also includes a central processing unit 112, a system memory 114, and an advanced extensible interface (AXI) bus 116. The AXI bus 116 is an on-chip bus used to handle on-chip communication of a system-on-chip SoC. The AXI bus 116 has two slave input / output ports 118 and 120, and a master input / output port 122. The slave input / output port 118 is coupled to the central processing unit 112. The slave input / output port 120 is coupled to the host bridge controller 108. The master input / output port 122 is coupled to the system memory 114. The host bridge controller 108 and the CPU 112 communicate with the flash memory interface controller 110 using the system memory 114 via an Advanced eXtensible Interface (AXI) bus 116 .

[0056] With respect to the slave input / output ports 118 and 120, the host bridge controller 108 and the central processing unit 112 are computing units of the master operation end. With respect to the master input / output port 122, the system memory 114 is a component of the slave operation end. The read operation performed by the slave input / output ports 118 and 120 on the system memory 114 through the master input / output port 122 uses the same channel, for example, the read channel of the AXI bus 116. In order to avoid conflicts in the read operation, the central processing unit 112 and the host bridge controller 108 must stagger the use rights of the read channel. The write operation performed by the slave input / output ports 118 and 120 on the system memory 114 through the master input / output port 122 uses another channel, for example, the write channel of the AXI bus 116. The write channel and the read channel can be used in parallel. The AXI bus 116 may include more than one write channel and more than one read channel; for example, a design having more than one master input / output port 122 may provide multiple write channels and multiple read channels. Multiple write channels or multiple read channels may also be used in parallel.

[0057] Figure 1In particular, the design of a single master I / O port 122 is discussed. When the CPU 112 wants to access the system memory 114, the read channel and the write channel of the AXI bus 116 are established through the slave I / O port 118 and the master I / O port 122. On the other hand, when the host bridge controller 108 wants to access the system memory 114, the read channel and the write channel of the AXI bus 116 are established through the slave I / O port 120 and the master I / O port 122.

[0058] Figure 1 In particular, the source and flow direction of the content of the system memory 114 are marked in response to the read command requested by the host 106. After the controller 104 receives the read command issued by the host 106, the central processing unit 112 triggers the host bridge controller 108 with a trigger signal 124 and triggers the flash memory interface controller 110 with a trigger signal 126. After being triggered, the flash memory interface controller 110 starts direct memory access (DMA) to read the data required by the read command from the flash memory 102 and write it into the system memory 114, as shown by data 128. When the data 128 has been written, the flash memory interface controller 110 sets (Set) a flag 130 in the system memory 114, for example, to "1", indicating that the data 128 can be read. On the other hand, after being triggered, the host bridge controller 108 executes (or executes multiple times) a data detection command or a preset vendor command, and handshakes with the system memory 114 via the write channel of the AXI bus 116, requesting to write a preset value (arrow 132) into the system memory 114, and using this preset value write request to determine whether the flag 130 has been set.

[0059] In one embodiment, the status of the flag 130 is determined by whether the virtual write request is allowed. For example, if the preset value can be written to the system memory 114, indicating that the flag 130 has been set, the host bridge controller 108 obtains the data 128 from the system memory 114 via the read channel of the AXI bus 116, as shown by arrow 134. When the data 128 has been read, the host bridge controller 108 resets the flag 130 via the write channel of the AXI bus 116, for example, resetting the flag 130 to "0", indicating that the data 128 can be overwritten or recycled. If the preset value cannot be written to the system memory 114, indicating that the flag 130 is not set, the host bridge controller 108 can repeat the above steps until the preset value can be written to the system memory 114.

[0060] In one implementation, the data detection command or the default vendor command is a write request to the virtual address to start the handshake between the host bridge controller 108 and the system memory 114 through the write channel to achieve the purpose of determining / confirming the value of the flag 130 .

[0061] In particular, in the above process, the confirmation of the flag 130 uses the write channel of the AXI bus 116, and therefore does not occupy the read channel of the AXI bus 116. Under this setting, if the central processing unit 112 (or other main computing units of the main operation end) needs to read the system memory 114, it can immediately obtain the right to use the read channel of the AXI bus 116, and the confirmation of the flag 130 will not cause the central processing unit 112 to interrupt the read channel of the AXI bus 116. In other words, the reading of the system memory 114 by the central processing unit 112 (as shown by arrow 136) can be performed in parallel with the flag 130 confirmation made by the host bridge controller 108 to the system memory 114 (as shown by arrow 132). Since the reading of the system memory 114 will not be interrupted due to the confirmation of the flag 130, the central processing unit 112 can have the best performance when reading data from the system memory 114, and therefore the overall performance of the data storage device 100 is excellent.

[0062] Figure 2 is a flow chart illustrating how the host bridge controller 108 responds to a read command issued by the host 106 according to one embodiment of the present invention.

[0063] Step S202, receiving a trigger signal. The CPU 112 sends a trigger signal 124 to the host bridge controller 108 according to the read command requested by the host 106. The read command preferably includes the logical address of the data 128, and the trigger signal 124 preferably includes the specified physical address of the data 128 in the system memory 114.

[0064] In step S204, the write channel of the AXI bus 116 is used to determine the value of the flag 130 of the system memory 114. The host bridge controller 108 uses a data detection command or a preset vendor command to handshake with the system memory 114 via the write channel of the AXI bus 116, and determines the value of the flag 130 based on whether the preset value (arrow 132) can be written into the system memory 114.

[0065] In step S206, it is determined whether the flag 130 has been set. If yes, step S208 is executed. If no, step S204 is executed, and the host bridge controller 108 continues to handshake with the system memory 114 and determines the value of the flag 130. If the host bridge controller 108 can write the preset value (arrow 132) to the system memory 114, it is determined that the flag 130 has been set. Otherwise, step S204 is returned to.

[0066] In step S208, the data 128 of the system memory 114 is read using the read channel of the AXI bus 116. Since the flag 130 has been set, it means that the flash memory interface controller 110 has obtained the data 128 and temporarily stored the data 128 at the designated physical address of the system memory 114. The host bridge controller 108 reads the data 128 from the designated physical address of the system memory 114 via the read channel of the AXI bus 116.

[0067] In step S210, the flag 130 is reset via the write channel of the AXI bus 116. After reading the data 128, the host bridge controller 108 resets the flag 130 via the write channel of the AXI bus 116, which indicates that the data 128 has been read. Afterwards, the central processing unit 112 can recycle the designated physical address (memory space) of the data 128, or directly write another data to the designated physical address of the data 128.

[0068] Through the above settings, the central processing unit 112 can read the data in the system memory 114, and at the same time, the host bridge controller 108 can also determine the value of the flag 130, without causing any operational conflicts.

[0069] Figure 3 FIG. 1 is a flow chart illustrating how the flash memory interface controller 110 responds to a read command issued by the host 106 according to one embodiment of the present invention.

[0070] In step S302, a trigger signal is received, wherein the trigger signal includes the logical address of the data 128 and the specified physical address on the system memory 114. The CPU 112 sends a trigger signal 126 to the flash memory interface controller 110 according to the read command requested by the host 106, wherein the trigger signal 126 preferably includes the logical address of the data 128 and the specified physical address on the system memory 114.

[0071] Step S304, mapping the logical address to a physical address of the flash memory 102. The flash memory interface controller 110 obtains the physical address of the flash memory 102 corresponding to the logical address according to the logical-physical addresses mapping table.

[0072] In step S306 , the physical address on the flash memory 102 is read to obtain the data 128 . The flash memory interface controller 110 can obtain the data 128 by reading the physical address on the flash memory 102 .

[0073] In step S308 , the data 128 obtained from the flash memory 102 is uploaded to the system memory 114 . The flash memory interface controller 110 uploads the obtained data to a designated physical address of the system memory 114 .

[0074] Step S310 , setting the flag 130 . The flash memory interface controller 110 sets the flag 130 .

[0075] In summary, when reading the system memory 114, the host bridge controller 108 uses the write channel of the AXI bus 116 to confirm whether the flag 130 has been set, and the central processing unit 112 uses the read channel of the AXI bus 116 to read the data in the system memory 114. Since each uses different channels on the AXI bus 116, the central processing unit 112 and the host bridge controller 108 can read the system memory 114 at the same time without causing operation conflicts, thereby achieving the purpose of the present invention.

[0076] Figure 4 According to another embodiment of the present invention, a data storage device 400 is illustrated, wherein an AXI bus 402 is used with two master input / output ports 122 and 404, which are respectively coupled to a data area 408 and a flag area 406 of a system memory 114. Since the master input / output ports 122 and 404 can access the data area 408 and the flag area 406 respectively and in parallel, the central processing unit 112 and the host bridge controller 108 can read the data in the system memory 114 and confirm the value of the flag 130 respectively and in parallel. In this embodiment, the host bridge controller 108 does not need to use a data detection command or a preset vendor command to confirm whether the flag 130 has been set.

[0077] In this embodiment, the AXI bus 402 provides a flag read channel and a flag write channel for the flag area 406, and provides a read channel and a write channel for the data area 408. When the CPU 112 accesses data in the system memory 114, the read channel and the write channel are established via the slave I / O port 118 and the master I / O port 122. When the host bridge controller 108 accesses data in the system memory 114, the read channel and the write channel are established by the slave I / O port 120 and the master I / O port 122. When the host bridge controller 108 accesses the flag 130, the read channel and the write channel are established by the slave I / O port 120 and the master I / O port 404.

[0078] In one embodiment, when the value of the flag 130 is transmitted back to the host bridge controller 108 via the master I / O port 404 and the slave I / O port 120, the CPU 112 can access the data area 408 via the data read channel and the data write channel formed by the slave I / O port 118 and the master I / O port 122. The reading and writing of the data area 408 by the CPU 112 are not affected by the operation of the host bridge controller 108 on the flag area 406. In particular, in the previous embodiment, when the flag 130 is confirmed using the write channel of the AXI bus 116, the CPU 112 cannot write to the system memory 114. However, in this embodiment, the access of the flag 130 uses the channel dedicated to the flag area 406, so the CPU 112 can read the data 128 of the data area 408 in parallel. This embodiment can provide better performance than the above embodiment.

[0079] Figure 4 In the architecture, regarding the read command issued by the host 106, the flash memory interface controller 110 operates in the same manner as Figure 3 However, the operation of the host bridge controller 108 is different, and how the host bridge controller 108 responds to the read command issued by the host 106 is different. Figure 5 shown.

[0080] Step S502, receiving a trigger signal. The CPU 112 sends a trigger signal 124 to the host bridge controller 108 according to the read command requested by the host 106. The read command preferably includes the logical address of the data 128, and the trigger signal 124 preferably includes the specified physical address of the data 128 in the system memory 114.

[0081] In step S504, the first read channel of the AXI bus 402 is used to read the value of the flag 130 of the system memory 114. The host bridge controller 108 reads the value of the flag 130 of the flag area 406 of the system memory 114 through the flag area 406 read channel of the AXI bus 402 (via the slave I / O port 120 to the master I / O port 404).

[0082] In step S506 , it is determined whether the flag 130 has been set. If yes, step S508 is executed. If not, step S504 is executed and the host bridge controller 108 continues to read the value of the flag 130 .

[0083] In step S508, the second read channel of the AXI bus 402 is used to read the data 128 of the system memory 114. Since the flag 130 has been set, it means that the flash memory interface controller 110 has obtained the data 128 and temporarily stored the data 128 at the specified physical address of the system memory 114. The host bridge controller 108 uses the read channel of the data area 408 of the AXI bus 402 (via the slave I / O port 120 to the master I / O port 122) to read the data 128 at the specified physical address of the system memory 114.

[0084] In step S510, the flag 130 is reset via the write channel of the AXI bus 402. After reading the data 128, the host bridge controller 108 resets the flag 130 of the flag area 406 of the system memory 114 via the write channel of the flag area 406 of the AXI bus 402 (via the slave I / O port 120 to the master I / O port 404), which indicates that the data 128 has been read. Afterwards, the CPU 112 can reclaim the designated physical address (memory space) of the data 128, or directly write another piece of data to the designated physical address of the data 128.

[0085] The CPU 112 may perform read and write operations on the data area 408 in parallel with step S504 (flag 130 confirmation).

[0086] The above controller can also be implemented by other structures. Any device that provides different on-chip bus channels based on the above concept, so that the host bridge controller confirms the flag in the system memory and does not interfere with the reading of the system memory by other main computing units, belongs to the scope of protection of the present invention. The present invention can also implement a control method of a non-volatile memory based on the above concept.

[0087] Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Anyone familiar with the technical field may make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be defined by the claims.

Claims

1. A data storage device, comprising: a non-volatile memory; as well as A controller having a host bridge controller, a main computing unit, an intra-chip 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 main computing unit are coupled to the system memory via the intra-chip bus, and then coupled to the non-volatile memory interface controller, in: In response to a read command issued by the host, the non-volatile memory interface controller temporarily stores data read from the non-volatile memory in the system memory, and sets a flag corresponding to the temporary storage of the data in the system memory; The host bridge controller confirms that the flag is set via a first channel of the on-chip bus to read the data from the system memory; The main computing unit reads the system memory via a second channel of the on-chip bus; The first channel of the on-chip bus is a write channel to the system memory; The second channel of the on-chip bus is a read channel for the system memory, and The host bridge controller issues a preset value write request using a data detection instruction or a preset supplier instruction, so that the host bridge controller exchanges hands with the system memory through the write channel, determines that the flag is set when the preset value write request is allowed, and determines that the flag is not set when the preset value write request is not allowed.

2. A data storage device, comprising: a non-volatile memory; as well as A controller having a host bridge controller, a main computing unit, an intra-chip 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 main computing unit are coupled to the system memory via the intra-chip bus, and then coupled to the non-volatile memory interface controller, in: In response to a read command issued by the host, the non-volatile memory interface controller temporarily stores data read from the non-volatile memory in the system memory, and sets a flag corresponding to the temporary storage of the data in the system memory; The host bridge controller confirms that the flag is set via a first channel of the on-chip bus to read the data from the system memory; The main computing unit reads the system memory via a second channel of the on-chip bus; The first channel of the internal bus is a write channel to the system memory; The second channel of the on-chip bus is a read channel to the system memory; and The host bridge controller uses a data detection instruction or a preset vendor instruction to request writing to a virtual address, so that the host bridge controller exchanges hands with the system memory through the write channel and learns from the system memory whether the flag is set or not.

3. The data storage device according to claim 1 or 2, wherein: After confirming that the flag is set, the host bridge controller obtains the data temporarily stored in the system memory through the read channel and resets the flag through the write channel.

4. The data storage device as claimed in claim 3, wherein: The host bridge controller determines whether the flag is set or not via the write channel while the main operation unit reads the system memory via the read channel.

5. The data storage device according to claim 4, wherein: The on-chip bus includes a first slave input / output port, a second slave input / output port, and a master input / output port; The first slave input / output port is coupled to the master computing unit; The second slave input / output port is coupled to the host bridge controller; The main input / output port is coupled to the system memory; When used by the main computing unit, the read channel and the write channel are established via the first slave input / output port and the master input / output port; and When used by the host bridge controller, the read channel and the write channel are established via the second slave I / O port and the master I / O port.

6. A data storage device, comprising: a non-volatile memory; as well as A controller having a host bridge controller, a main computing unit, an intra-chip 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 main computing unit are coupled to the system memory via the intra-chip bus, and then coupled to the non-volatile memory interface controller, in: In response to a read command issued by the host, the non-volatile memory interface controller temporarily stores data read from the non-volatile memory in the system memory, and sets a flag corresponding to the temporary storage of the data in the system memory; The host bridge controller confirms that the flag is set via a first channel of the on-chip bus to read the data from the system memory; and The main computing unit reads the system memory via a second channel of the on-chip bus; The first channel of the on-chip bus is a flag reading channel corresponding to a flag area of ​​the system memory; The second channel of the on-chip bus is a data reading channel corresponding to a data area of ​​the system memory; The on-chip bus further provides a flag write channel corresponding to the flag area; and The on-chip bus further provides a data writing channel corresponding to the data area.

7. The data storage device according to claim 6, wherein: The host bridge controller learns whether the flag is set or not from the system memory via the flag reading channel; and After confirming that the flag is set, the host bridge controller obtains the data temporarily stored in the system memory through the data read channel and resets the flag through the flag write channel.

8. The data storage device according to claim 7, wherein: The host bridge controller determines whether the flag is set or not through the flag reading channel, while the main operation unit reads the data area through the data reading channel or programs the data area through the data writing channel.

9. The data storage device as claimed in claim 8, wherein: The on-chip bus includes a first slave input / output port, a second slave input / output port, a first master input / output port, and a second master input / output port; The first slave input / output port is coupled to the master computing unit; The second slave input / output port is coupled to the host bridge controller; The first main input / output port is coupled to the data area of ​​the system memory; The second main input / output port is coupled to the flag area of ​​the system memory; When used by the main computing unit, the data read channel and the data write channel are established via the first slave input / output port and the first master input / output port; and When used by the host bridge controller, the data read channel and the data write channel are established via the second slave input / output port and the first master input / output port, and the flag read channel and the flag write channel are established via the second slave input / output port and the second master input / output port.

10. A non-volatile memory control method, comprising: A host bridge controller is provided to couple to a host, and a non-volatile memory interface controller is provided to couple to a non-volatile memory; The host bridge controller and a main computing unit are coupled to a system memory via an on-chip bus and then coupled to the non-volatile memory interface controller; In response to a read command issued by the host, the non-volatile memory interface controller is triggered to temporarily store data read from the non-volatile memory into the system memory, and a flag is set in the system memory corresponding to the temporary storage of the data; The host bridge controller confirms that the flag is set via a first channel of the on-chip bus, so as to read the data from the system memory; Instructing the main computing unit to read the system memory via a second channel of the on-chip bus; The first channel of the on-chip bus is a write channel to the system memory; The second channel of the on-chip bus is a read channel to the system memory; and The host bridge controller issues a preset value write request using a data detection instruction or a preset supplier instruction, so that the host bridge controller exchanges hands with the system memory through the write channel, determines that the flag is set when the preset value write request is allowed, and determines that the flag is not set when the preset value write request is not allowed.

11. A non-volatile memory control method, comprising: A host bridge controller is provided to couple to a host, and a non-volatile memory interface controller is provided to couple to a non-volatile memory; The host bridge controller and a main computing unit are coupled to a system memory via an on-chip bus and then coupled to the non-volatile memory interface controller; In response to a read command issued by the host, the non-volatile memory interface controller is triggered to temporarily store data read from the non-volatile memory into the system memory, and a flag is set in the system memory corresponding to the temporary storage of the data; The host bridge controller confirms that the flag is set via a first channel of the on-chip bus, so as to read the data from the system memory; Instructing the main computing unit to read the system memory via a second channel of the on-chip bus; The first channel of the on-chip bus is a write channel to the system memory; The second channel of the on-chip bus is a read channel to the system memory; and The host bridge controller uses a data detection instruction or a preset vendor instruction to request writing to a virtual address, so that the host bridge controller exchanges hands with the system memory through the write channel and learns from the system memory whether the flag is set or not.

12. The non-volatile memory control method according to claim 10 or 11, wherein: After confirming that the flag is set, the host bridge controller obtains the data temporarily stored in the system memory through the read channel and resets the flag through the write channel.

13. The non-volatile memory control method according to claim 12, wherein: The host bridge controller determines whether the flag is set or not via the write channel while the main operation unit reads the system memory via the read channel.

14. The non-volatile memory control method according to claim 13, wherein: The on-chip bus includes a first slave input / output port, a second slave input / output port, and a master input / output port; The first slave input / output port is coupled to the master computing unit; The second slave input / output port is coupled to the host bridge controller; The main input / output port is coupled to the system memory; When used by the main computing unit, the read channel and the write channel are established via the first slave input / output port and the master input / output port; and When used by the host bridge controller, the read channel and the write channel are established via the second slave I / O port and the master I / O port.

15. A non-volatile memory control method, comprising: A host bridge controller is provided to couple to a host, and a non-volatile memory interface controller is provided to couple to a non-volatile memory; The host bridge controller and a main computing unit are coupled to a system memory via an on-chip bus and then coupled to the non-volatile memory interface controller; In response to a read command issued by the host, the non-volatile memory interface controller is triggered to temporarily store data read from the non-volatile memory into the system memory, and a flag is set in the system memory corresponding to the temporary storage of the data; The host bridge controller confirms that the flag is set via a first channel of the on-chip bus to read the data from the system memory; and Instructing the main computing unit to read the system memory via a second channel of the on-chip bus; The first channel of the on-chip bus is a flag reading channel corresponding to a flag area of ​​the system memory; The second channel of the on-chip bus is a data reading channel corresponding to a data area of ​​the system memory; The on-chip bus further provides a flag write channel corresponding to the flag area; and The on-chip bus further provides a data writing channel corresponding to the data area.

16. The non-volatile memory control method according to claim 15, wherein: The host bridge controller learns whether the flag is set or not from the system memory via the flag reading channel; and After confirming that the flag is set, the host bridge controller obtains the data temporarily stored in the system memory through the data read channel and resets the flag through the flag write channel.

17. The non-volatile memory control method according to claim 16, wherein: The host bridge controller determines whether the flag is set or not through the flag reading channel, while the main operation unit reads the data area through the data reading channel or programs the data area through the data writing channel.

18. The non-volatile memory control method according to claim 17, wherein: The on-chip bus includes a first slave input / output port, a second slave input / output port, a first master input / output port, and a second master input / output port; The first slave input / output port is coupled to the master computing unit; The second slave input / output port is coupled to the host bridge controller; The first main input / output port is coupled to the data area of ​​the system memory; The second main input / output port is coupled to the flag area of ​​the system memory; When used by the main computing unit, the data read channel and the data write channel are established via the first slave input / output port and the first master input / output port; and When used by the host bridge controller, the data read channel and the data write channel are established via the second slave input / output port and the first master input / output port, and the flag read channel and the flag write channel are established via the second slave input / output port and the second master input / output port.

Citation Information

Patent Citations

  • Storage storing device, storage controller and data transmission method thereof

    CN103106155A

  • Data Storage Device, Data Processing System And Method Of Operation

    CN105589661A

  • Memory system for controlling semiconductor memory devices through plurality of channels

    CN106325765A

  • Scheduling method and device, flash memory equipment and system

    CN110716691A

  • Apparatus having an inter-module data transfer confirming function, storage controlling apparatus, and interface module for the apparatus

    US20050044283A1