Data access method and system and storage device

By interrupting the programming state of the target data in the storage device and copying it to the accessible storage unit, the problem of data access delay in the programming state is solved, and fast response and efficient data access are achieved.

CN119007785APending Publication Date: 2024-11-22T-HEAD (SHANGHAI) SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411091446.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In a storage device, when some word lines are in a programmable state, the storage unit is in an inaccessible state, resulting in a high data access delay and the target access request cannot be responded immediately.

Method used

By interrupting the programming state of the target data, copying or moving it from the programming temporary storage unit to the accessible storage unit, thereby obtaining the target data without waiting for the programming operation to complete, and shortening the response time with the fast data copying speed inside the storage device .

Benefits of technology

It realizes that the target data can be obtained from the accessible storage unit without waiting for the programming operation to be completed, greatly shortening the response time of the target access request, improving data access efficiency, and ensuring the overall performance of the storage device while improving efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119007785A_ABST
    Figure CN119007785A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a data access method and system and a storage device.According to the embodiment of the invention, a target access request is received, the programming state of target data is interrupted in response to the fact that the target data accessed by the target access request is in the programming state, and the target data is accessed. And copying or moving the target data from the programming temporary storage unit where the target data is located to the accessible storage unit, and reading the target data from the accessible storage unit. Therefore, according to the embodiment, the target data can be obtained without waiting for completion of the on-going programming operation, the response time of the target access request is greatly shortened, and the data access efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of semiconductor technology, and more specifically, to a data access method, system and storage device. Background Art

[0002] Storage devices that use flash memory as storage media are widely used in various data storage fields due to their large capacity and fast access speed. When certain word lines (WL) of the storage device are in a programming state, the storage cells on the word line are inaccessible. If the received data operation request is used to access such storage cells, it is necessary to wait until the programming operation is completed before the operation can be performed, resulting in a high data delay. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a data access method, system and storage device, so that target data can be obtained from an accessible storage unit without waiting for the ongoing programming operation to be completed. Since the storage unit data copying speed inside the storage device is extremely fast, which is much less than the execution time of the data programming operation, the response time of the target access request is greatly shortened, thereby improving data access efficiency.

[0004] In a first aspect, an embodiment of the present invention provides a data access method, the method comprising:

[0005] receiving a target access request;

[0006] In response to the target data accessed by the target access request being in a programming state, interrupting the programming state;

[0007] copying or moving the target data from the programming temporary storage unit where the target data is located to an accessible storage unit;

[0008] The target data is read from the accessible storage unit.

[0009] Furthermore, the method further comprises:

[0010] The corresponding programming operation is continued to be performed on the target data in the programming temporary storage unit.

[0011] Furthermore, the method further comprises:

[0012] The programming temporary storage unit is determined according to a target address corresponding to the target access request.

[0013] Furthermore, the programming temporary storage unit and the accessible storage unit have a corresponding relationship.

[0014] Furthermore, the method further comprises:

[0015] In response to the target data being in an accessible state, the target data is read according to a target address corresponding to the target access request.

[0016] In a second aspect, an embodiment of the present invention provides a storage device, the storage device comprising:

[0017] A storage medium, the storage medium comprising at least one programming temporary storage unit and at least one accessible storage unit;

[0018] A control unit is configured to receive a target access request, and in response to the target data accessed by the target access request being in a programming state, send an interrupt programming instruction to the storage medium to interrupt the programming state of the target data, and send an operation instruction to the storage medium according to the target address where the target data is located, so that the storage medium copies or moves the target data from the programming temporary storage unit where the target data is located to an accessible storage unit according to the operation instruction, so as to read the target data from the accessible storage unit.

[0019] Furthermore, the programming temporary storage unit and the accessible storage unit have a corresponding relationship.

[0020] Furthermore, the control unit is further configured to send a continue programming instruction to the storage medium to restore the programming state of the target data.

[0021] Furthermore, the storage device also includes:

[0022] The register is configured to store configuration information, where the configuration information is used to indicate the programming temporary storage unit corresponding to the target access request.

[0023] In a third aspect, an embodiment of the present invention provides a data access system, the data access system comprising:

[0024] A storage device as described above;

[0025] The host is configured to send a data operation request to the storage device.

[0026] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0027] In a fifth aspect, an embodiment of the present invention provides a computer program product, which, when executed on a computer, enables the computer to execute the method described above.

[0028] The embodiment of the present invention receives a target access request, and in response to the target data accessed by the target access request being in a programming state, interrupts the programming state of the target data, copies or moves the target data from the programming temporary storage unit where the target data is located to an accessible storage unit, and reads the target data from the accessible storage unit. Thus, the embodiment can obtain the target data from the accessible storage unit without waiting for the ongoing programming operation to be completed, and because the storage unit data copying speed inside the storage device is extremely fast, which is much less than the execution time of the data programming operation, the response time of the target access request is greatly shortened, and the data access efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:

[0030] Figure 1 is a flow chart of a data access method according to an embodiment of the present invention;

[0031] Figure 2 is a schematic diagram of a storage device according to an embodiment of the present invention;

[0032] Figure 3 is a flow chart of another data access method according to an embodiment of the present invention;

[0033] Figure 4 is a schematic diagram of another storage device according to an embodiment of the present invention;

[0034] Figure 5 is a schematic diagram of a data access process according to an embodiment of the present invention;

[0035] Figure 6 Schematic diagram of a data access system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0036] The present application is described below based on embodiments, but the present application is not limited to these embodiments. In the detailed description of the present application below, some specific details are described in detail. It is possible for those skilled in the art to fully understand the present application without the description of these details. In order to avoid confusing the essence of the present application, known methods, processes, flows, components and circuits are not described in detail.

[0037] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.

[0038] At the same time, it should be understood that in the following description, "circuit" refers to a conductive loop composed of at least one element or subcircuit through electrical connection or electromagnetic connection. When an element or circuit is said to be "connected to" another element or an element / circuit is said to be "connected between" two nodes, it can be directly coupled or connected to another element or there can be an intermediate element, and the connection between the elements can be physical, logical, or a combination thereof. On the contrary, when an element is said to be "directly coupled to" or "directly connected to" another element, it means that there is no intermediate element between the two.

[0039] Unless the context clearly requires otherwise, the words "include", "comprising" and similar words throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, the meaning is "including but not limited to".

[0040] In the description of this application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.

[0041] Flash memory is a low-cost, high-density non-volatile solid-state storage medium. Flash memory may include NOR flash memory and NAND flash memory, etc. Flash memory can perform operations such as reading, programming (i.e., writing) and erasing. For NAND flash memory, an erase operation can be performed at the block level, and a programming operation or a read operation can be performed at the page level. Among them, a data block in NAND can be composed of multiple continuous pages. The embodiment of the present invention is mainly described by taking a storage device SSD (Solid State Disk) using NAND flash memory as a storage medium as an example. It should be understood that the present embodiment is not limited to this. Existing storage devices that can support corresponding functions or storage devices that can support corresponding functions with future technological development are all within the protection scope of the embodiment of the present invention.

[0042] For solid-state drives (SSDs), when the host accesses NAND, the transfer done method or the program done method can be used. When the program done method is used, in order to achieve successful writing with high write bandwidth, a large amount of storage resources (such as DRAM and / or SRAM, etc.) are required to realize data caching and verify data generation, and the storage resources in the solid-state drive are limited. The resource consumption of the program done method is extremely large, and the hard disk manufacturing cost is relatively high. When the transfer done method is used, the corresponding NAND buffer (NAND cache) of the host data can be transmitted and then returned successfully, and the cache and rotation requirements for storage resources such as DRAM and / or SRAM are relatively small, but if the host accesses the storage unit in the programming state, there is a large delay problem in data access. Based on this, the present embodiment provides a data access method, system and storage device to achieve that even if it is based on the transfer done access method, the target data can be obtained without waiting for the ongoing programming operation to be completed, which greatly shortens the response time of the target access request and improves the data access efficiency when the storage resources are low.

[0043] Figure 1 FIG. 1 is a flow chart of a data access method according to an embodiment of the present invention. Figure 1 As shown, the data access method of the embodiment of the present invention includes the following steps:

[0044] Step S110, receiving a target access request.

[0045] In an optional implementation, after receiving the target access request, the storage device parses the target access request to obtain the target address of the target data to be accessed, so as to determine whether the target data is in a programming state.

[0046] Further optionally, this embodiment can parse the target access request, obtain the logical address corresponding to the target data, and obtain the corresponding physical address based on the address mapping table in the storage device. The address mapping table is used to map the logical address to the actual physical address to achieve data access.

[0047] Step S120 , in response to the target data accessed by the target access request being in a programming state, interrupting the programming state of the target data.

[0048] In an optional implementation, the present embodiment can determine whether the target data is in a programming state according to the target address corresponding to the accessed target data. Optionally, when the storage medium in the storage device performs a programming operation, the storage medium enters a busy state (Busy), and switches to a ready state (Ready) after the programming operation is completed. Therefore, the present embodiment can determine that the target data is in a programming state by querying the corresponding state information, if the corresponding storage unit is in a busy state, and if the corresponding storage unit is in a ready state, then the target data is determined to be in an accessible state. In other optional implementations, since the storage device usually performs a programming operation by controlling the electrical signal of the word line (Word Line, WL) where the storage unit is located, the present embodiment can also determine whether the target data is in a programming state by querying the electrical signal of the word line (Word Line, WL) where the storage unit corresponding to the target address is located. Wherein, the word line refers to a control signal line in the storage device, which is used to select a specific storage unit for reading, programming or erasing operations. For NAND flash memory, when a specific storage unit needs to be programmed, a voltage is applied to the corresponding word line, so that all storage units on the word line enter a programmable state.

[0049] Further optionally, the storage medium in the storage device is configured with a status register to store status information. Further, the status register is configured according to the electrical signal on the word line where the storage unit in the storage medium is located. For example, when the electrical signal on the word line where the storage unit is located is switched to the electrical signal required for programming, the state of the storage unit is configured in the status register as a busy state. The control unit of the storage device can determine whether the target data is in a programming state by querying the status register and according to the target address corresponding to the target data.

[0050] In an optional implementation, in response to the target data being in a programming state, a control unit of the corresponding storage device sends an interrupt programming instruction to the storage medium, so that the storage medium interrupts the programming state of the target data. Optionally, the control unit can execute the interrupt command by controlling the voltage on the corresponding word line, so that the target data exits the programming state.

[0051] Step S130, copy the target data from the programming temporary storage unit where the target data is located to the accessible storage unit. After the target data exits the programming state, the programming temporary storage unit where the target data is located is in an accessible state. In this embodiment, the target data can be copied from the programming temporary storage unit to the accessible storage unit. Optionally, the target data is moved from the programming temporary storage unit where the target data is located to the accessible storage unit. In an optional implementation, the programming temporary storage unit in this embodiment has a corresponding relationship with the accessible storage unit used for data transfer.

[0052] In the storage device, each page buffer has a corresponding external data buffer to achieve data access. Specifically, taking the example of writing host data into NAND flash memory, the storage device receives the host data sent by the host and stores it in the data buffer corresponding to the storage device control unit, then moves it from the data buffer to the corresponding page buffer, and finally programs it into the flash memory storage unit inside the NAND. Taking the example of the host reading the data in the NAND flash memory storage unit, the storage device control unit first reads the corresponding data from the corresponding flash memory storage unit to the page buffer based on the address in the host read request, and then moves the corresponding data from the page buffer to the corresponding data buffer, and then the storage device control unit reads the corresponding data and sends the corresponding data to the host. Optionally, the corresponding data can be read from the corresponding flash memory storage unit to the data buffer, and then the storage device control unit reads the corresponding data and sends it to the host. Therefore, the programming temporary storage unit of this embodiment may be an internal page buffer unit (Page Buffer) for performing programming operations, and the corresponding accessible storage unit is an external data cache unit (Data Cache) corresponding to the Page Buffer.

[0053] In an optional implementation, after the target data is copied from the programming temporary storage unit to the accessible storage unit, the storage device control unit reads the target data from the accessible storage unit, and after obtaining the target data, controls the corresponding programming operation to continue to be performed on the target data in the programming temporary storage unit. Optionally, when resuming programming, the target data in the accessible storage unit is cached again in the programming temporary storage unit to continue the programming operation. In other optional implementations, if the target data is still cached in the programming temporary storage unit, the programming operation can be continued based on the target data in the programming temporary storage unit.

[0054] Step S140, reading target data from an accessible storage unit.

[0055] In an optional implementation, after determining that the target data is in a programming state, the corresponding register information is configured according to the target address corresponding to the target data. The configuration information in the register includes information of the programming temporary storage unit corresponding to the target data. During the data access process, data access operations can be performed through the configuration information in the register. Furthermore, this embodiment determines the programming temporary storage unit and the accessible storage unit where the target data is located based on the configuration information in the register, reads the required target data from the accessible storage unit, and sends the target data to the host.

[0056] In an optional implementation, in response to the target data being in an accessible state, the target data is read according to the target address corresponding to the target access request. That is, when the control unit of the storage device determines that the target data is in an accessible state, a read data instruction is sent to the storage medium, and the storage medium reads the target data from the corresponding internal storage unit according to the target address, caches it to the corresponding page cache unit, and returns it to the corresponding data cache unit, and the control unit feeds back the target data in the data cache unit to the host device.

[0057] In an optional implementation, after reading the target data from the accessible storage unit, an erase operation may be performed on the data in the accessible storage unit, or the target data may be erased by data overwriting when waiting for the next data operation corresponding to the accessible storage unit, or an erase operation may be performed in a corresponding erase cycle to erase the target data in the accessible storage unit. This embodiment does not limit the subsequent processing method of the target data in the accessible storage unit after the data access is completed.

[0058] The embodiment of the present invention receives a target access request, and in response to the target data accessed by the target access request being in a programming state, interrupts the programming state of the target data, copies the target data from the programming temporary storage unit where the target data is located to an accessible storage unit, and reads the target data from the accessible storage unit. As a result, the present embodiment can obtain the target data from the accessible storage unit without waiting for the completion of the programming operation being executed, and because the data copying speed between the storage units inside the storage device is extremely fast, which is much less than the execution time of the data programming operation, the response time of the target access request is greatly shortened, and the data access efficiency is improved. At the same time, the programming interruption time of the target data in this way is extremely short, and the impact on the programming operation of the target data is also very small, which improves the data access efficiency while also ensuring the overall performance of the storage device.

[0059] Figure 2is a schematic diagram of a storage device according to an embodiment of the present invention. The storage device according to this embodiment includes a control unit 21 and a storage medium 22. The storage medium 22 includes at least one data cache unit 221 (Data Cache) and at least one page cache unit 222 (Page Buffer) and an internal final storage area 223. In the target data programming process, the page cache unit 222 can be used as a programming temporary storage unit, and the data cache unit 221 is an accessible storage unit. The control unit 21 is configured to receive a target access request, and in response to the target data accessed by the target access request being in a programming state, send an interrupt programming instruction to the storage medium 22 to interrupt the programming state of the target data, and send an operation instruction to the storage medium 22 according to the target address where the target data is located, so that the storage medium 22 copies the target data from the programming temporary storage unit 222 where the target data is located to the accessible storage unit 221 according to the operation instruction, so as to read the target data from the accessible storage unit 221.

[0060] Optionally, each page cache unit 222 is configured with a corresponding data cache unit 221. Optionally, according to a storage device in actual application or a storage device implemented in the future with the development of technology, each page cache unit 222 is configured with multiple corresponding data cache units 221, and multiple page cache units 222 can also be configured with the same corresponding data cache unit 221, which is not limited in this embodiment. In an optional implementation, the storage device 2 may also include a register ( Figure 2 The configuration information in the register is used to indicate the programming temporary storage unit corresponding to the target access request. Optionally, the configuration information in the register may include information corresponding to the page cache unit 222 where the target data is located and / or the data cache unit 221 corresponding to the page cache unit 222 (e.g., identification information and / or address information, etc.).

[0061] Furthermore, if Figure 2As shown, the control unit 21 can receive an external data access request (such as a data access request from a host, etc.) through the bus 20, decode the received data access request through a corresponding decoder, obtain a target address corresponding to the data access request, and then determine whether the target data is in a programming state. If the control unit 21 determines that the target data is in a programming state, that is, the target data has not yet completed the operation of writing the target data temporarily stored in the page cache unit 222 into the internal final storage area 23, then an interrupt programming instruction is sent to the storage medium 22 to control the interruption of the programming operation of the target data, that is, the interruption of the corresponding page cache unit 222 writing the target data into the internal final storage area 223. At this time, the page cache unit 222 where the target data is located is in an accessible state, and the control unit 21 sends an operation instruction to the storage medium 22. Based on the operation instruction, the storage medium 22 controls the page cache unit 222 to copy or move the target data corresponding to the data access request to the data cache unit 221. After the data copying or moving is completed, the control unit 21 sends an instruction to read data from the accessible data cache unit 221 to the storage medium 22. The storage medium 22 reads the target data from the accessible data cache unit 221 and sends it to the host through the bus 20. Further, the control unit 21 can also send a continue programming instruction to the storage medium to control the page cache unit 222 to end the interrupt state and continue to perform the programming operation. Furthermore, if the control unit 21 determines that the target data corresponding to the target access request is in an accessible state, the target data can be read from the internal final storage area 223 through the target address obtained by decoding and cached to the page cache unit 222, and the target data can be read from the page cache unit 222 and cached to the data cache unit 221, and the target data can be read from the data cache unit 221 and sent to the host via the bus 20.

[0062] Furthermore, the control unit 21 is also used to respond to the programming operation instruction received through the bus 20, write the to-be-processed data corresponding to the programming operation instruction into the corresponding data cache unit 221, and write the to-be-processed data in the data cache unit 221 into the corresponding page cache unit 222, and then control the page cache unit 222 to perform the programming operation to write the to-be-processed data into the internal final storage area 223. Optionally, after receiving the programming operation instruction, the control unit 21 decodes the programming operation instruction through the corresponding decoder, obtains the programming address, and then performs the corresponding programming operation.

[0063] Therefore, the storage device of this embodiment can obtain target data from accessible storage units without waiting for the ongoing programming operation to be completed. Since the data copying speed between storage units inside the storage device is extremely fast, which is much shorter than the execution time of the data programming operation, the response time of the target access request is greatly shortened, thereby improving data access efficiency.

[0064] Figure 3 is a flow chart of another data access method according to an embodiment of the present invention. The data access method according to an embodiment of the present invention is an interactive method of a data access system, such as Figure 3 As shown, the method comprises the following steps:

[0065] Step S1: A control unit in a storage device receives a data access request sent by a host.

[0066] Step S2: The control unit parses the data access request to obtain information such as the target address of the target data to be accessed.

[0067] Step S3: Determine whether the target data is in a programming state according to the target address corresponding to the accessed target data. Optionally, this embodiment can determine the physical address corresponding to the target data according to the logical address in the data access request and the address mapping table, and determine the voltage of the word line where the internal storage unit corresponding to the physical address is located to determine whether the target data is in a programming state.

[0068] When the target data is in a programming state, step S4 to step S11 are continued to be executed, and when the target data is in an accessible state, step S12 to step S13 are continued to be executed.

[0069] Step S4, in response to the target data being in a programming state, the control unit sends an interrupt programming instruction to the storage medium. The interrupt programming instruction includes target address information. Further optionally, in response to the target data being in a programming state, the control unit controls the configuration of a corresponding register, that is, the target address information of the target data or the information of the programming temporary storage unit currently corresponding to the target address is configured into the corresponding register.

[0070] Step S5, the storage medium responds to the interrupt programming instruction and interrupts the programming operation of the target data. In an optional implementation, the interrupt programming instruction includes target address information. After receiving the interrupt programming instruction, the storage medium parses the interrupt programming instruction and determines the programming operation of the target data to be interrupted to interrupt the programming of the target data. In another optional implementation, after receiving the interrupt programming instruction, the storage medium obtains information such as the target address and / or the programming temporary storage unit from the corresponding register to determine the programming operation of the target data to be interrupted and interrupt the programming of the target data.

[0071] Step S6, the control unit sends the operation instruction to the storage medium. Optionally, after the storage medium interrupts the programming of the target data, it sends an interruption feedback message to the control unit, and the control unit sends the operation instruction after receiving the interruption feedback message.

[0072] Step S7 : the storage medium copies the target data from the programming temporary storage unit to the accessible storage unit in response to the operation instruction.

[0073] In other optional implementations, the storage medium may directly perform a target data copy operation after performing a target data programming operation, and the above step S6 may be omitted.

[0074] Step S8, the control unit sends an instruction to the storage medium to read data from the accessible storage unit. Optionally, after the storage medium copies the target data from the programming temporary storage unit to the accessible storage unit, it sends a copy feedback message to the storage unit, and the control unit sends an instruction to read data from the accessible storage unit after receiving the copy feedback message.

[0075] Step S9: the storage medium reads the target data from the accessible storage unit and returns the target data to the control unit. Optionally, the target data returned to the control unit may be cached in the data cache unit, which is not limited in this embodiment.

[0076] In other optional implementations, the storage medium of this embodiment can directly read and return the target data to the control unit after executing the target data copy operation, and the above step S8 can be omitted.

[0077] Step S10: After the control unit reads the target data, it sends a continue programming instruction to the storage medium.

[0078] Step S11 : the storage medium continues the programming operation of the target data in response to the continue programming instruction.

[0079] In step S12, in response to the target data being in an accessible state (ie, not in a programming state), the control unit sends a data read instruction to the storage medium.

[0080] Step S13: the storage medium reads the target data according to the target address in the data read instruction and returns the target data to the control unit.

[0081] Step S14: the control unit returns the target data corresponding to the data access request to the host.

[0082] The embodiment of the present invention receives a target access request, and in response to the target data accessed by the target access request being in a programming state, interrupts the programming state of the target data, copies or moves the target data from the programming temporary storage unit where the target data is located to an accessible storage unit, and reads the target data from the accessible storage unit. Thus, the embodiment can obtain the target data from the accessible storage unit without waiting for the ongoing programming operation to be completed, and because the data copying speed between the storage units inside the storage device is extremely fast, which is much less than the execution time of the data programming operation, the response time of the target access request is greatly shortened, and the data access efficiency is improved.

[0083] Figure 4 is a schematic diagram of another storage device according to an embodiment of the present invention. The storage device also includes some corresponding peripheral circuits to implement programming, reading or erasing operations. Figure 4 As shown, the storage device 4 of the embodiment of the present invention includes a bus (e.g., an I / O bus) 30, a command and address processing unit (Command & Address) 41 connected to the bus, a control unit 42 connected to the command and address processing unit 41, a data cache unit (Data Cache) 431 connected to the control unit 42, a page cache unit (Page Buffer) 441, a decoder (e.g., a row decoder ROW Dec., etc.) 461, a data cache unit 432, a page cache unit 442, a decoder 462 and a high voltage analog circuit (High voltage analog) 47, and an internal final storage area (e.g., a NAND array 451 and a NAND array 452). Among them, the data cache unit 431 is connected to the page cache unit 441 in communication, the page cache unit 441 and the decoder 461 are both connected to the NAND array 451, and the page cache unit 442 and the decoder 462 are both connected to the NAND array 452.

[0084] Among them, the bus 40 is used to realize communication with external devices (such as a host, etc.). The command and address processing unit 41 is used to receive commands (such as data operation requests) and address information from the host through the bus 40, parse and obtain the operation to be performed and the target address, and send the operation to be performed and the target address to the control unit 42. The high-voltage analog circuit 47 is used to provide a high-voltage power supply for programming and erasing operations of the NAND flash memory. The decoder 461 can be a row decoder, which is a circuit in the NAND flash memory, used to decode address signals to select a specific row in the NAND array 451 for reading, programming or erasing operations. For example, when the data operation corresponding to the received data operation request is a programming operation, the decoder 461 can decode the row where the programming page is located through the received target address information, and apply the corresponding programming voltage to write the target data in the page cache unit 441 to the selected programming page.

[0085] It should be understood that except Figure 4 The circuit structure shown, the storage device 3 may also include other peripheral circuits, such as a plane multiplexing / demultiplexing unit (plane MUX / Demux), an analog peripheral circuit (Analog Peri) and a registered waveform pipeline unit (Registered Wave Pipeline). Among them, the plane multiplexing / demultiplexing unit (plane MUX / Demux) is used to select a specific plane for reading or programming operations in a NAND flash memory with multiple planes (Plane), which allows multiple planes to work simultaneously, thereby improving data throughput. A plane (Plane) is a logical partition composed of multiple pages (Page), and one or more pages contained in a plane can share the same word line (Word Line) and bit line (Bit Line). The analog peripheral circuit (Analog Peri) is the basis for realizing signal processing and power management inside the storage device, ensuring the stability of the circuit and the accuracy of data transmission. The registered waveform pipeline unit (Registered Wave Pipeline) is used to reduce signal delay and improve signal integrity by adding registers at key nodes in the signal transmission path inside the storage device. The circuit structure inside the storage device 3 can be adaptively adjusted according to the functions required by the actual application. This embodiment is only illustrative and is not limited thereto.

[0086] Figure 5 Schematic diagram of the data access process of the embodiment of the present invention. The working process of the storage device 4 is described by taking the execution of data programming operation and data reading operation as an example. Figure 4 and Figure 5 As shown, the control unit 42 receives the data operation request r1 through the bus 40, and parses the data operation request r1 through the command and address processing unit 41 to obtain the type and address information of the operation command. The control unit 42 also controls the high-voltage analog circuit 47 to provide the decoder 461 with a corresponding high-voltage signal, and controls the decoder 461 to decode the acquired address information to determine the target page page1 in the NAND array 451. Assuming that the operation command corresponding to the data operation request r1 is a programming command, the control unit 42 controls the target data to be written to be cached in the data cache unit 431, and the data cache unit 431 executes the Data-in command to cache the target data in the page cache unit 441 (that is, the programming temporary storage unit). After the target data is cached in the page cache unit 441, the page cache unit 441 is controlled to perform a programming operation to program the target data into the target page page1.

[0087] If during the programming process of the target page page1, the control unit 42 receives the data operation request r2 through the bus 40, and parses the data operation request r2 through the command and address processing unit 41 to obtain the type and address information of the operation command, and the address information is decoded by the decoder 461 and the page corresponding to the target page address is also the target page page1, then it is determined that the target data corresponding to the data operation request r2 is in the programming state, that is, it is determined that the corresponding page cache unit 441 is a programming temporary storage unit. In this embodiment, the control unit 42 controls the page cache unit 441 to interrupt the programming state at this time, and controls the target data to be copied from the page cache unit 441 to the data cache unit 431. After the copying is completed, the control unit 21 reads the target data from the data cache unit 431 and returns the target data to the host. Afterwards, the control unit 21 sends a continue programming instruction to the storage medium 22 to resume the programming operation of the target data, that is, controls the page cache unit 441 to continue to perform the programming operation.

[0088] The embodiment of the present invention receives a target access request, and in response to the target data accessed by the target access request being in a programming state, interrupts the programming state of the target data, copies or moves the target data from the programming temporary storage unit where the target data is located to an accessible storage unit, and reads the target data from the accessible storage unit. Thus, the embodiment can obtain the target data from the accessible storage unit without waiting for the ongoing programming operation to be completed, and because the data copying speed between the storage units inside the storage device is extremely fast, which is much less than the execution time of the data programming operation, the response time of the target access request is greatly shortened, and the data access efficiency is improved.

[0089] Figure 6 Schematic diagram of a data access system according to an embodiment of the present invention. Figure 6 As shown, the data access system 6 includes a host 61 and a storage device 62. The host 61 is configured to send a data operation request to the storage device 62, wherein the data operation type corresponding to the data operation request may be data programming, data reading, or data erasing. The host 61 and the storage device 62 may be connected to each other through a corresponding bus 63. The storage device 62 includes at least a control unit and a storage medium, wherein the storage medium includes a plurality of storage units, and its specific circuit structure may refer to Figure 2 and Figure 4 The control unit in the storage device 62 can execute corresponding instructions to implement the above data access method.

[0090] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0091] The embodiment of the present invention receives a target access request, and in response to the target data accessed by the target access request being in a programming state, interrupts the programming state of the target data, copies or moves the target data from the programming temporary storage unit where the target data is located to an accessible storage unit, and reads the target data from the accessible storage unit. Thus, the embodiment can obtain the target data from the accessible storage unit without waiting for the ongoing programming operation to be completed, and because the data copying speed between the storage units inside the storage device is extremely fast, which is much less than the execution time of the data programming operation, the response time of the target access request is greatly shortened, and the data access efficiency is improved.

[0092] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above method embodiments.

[0093] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0094] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A data access method, characterized in that: The method comprises: receiving a target access request; In response to the target data accessed by the target access request being in a programming state, interrupting the programming state; copying or moving the target data from the programming temporary storage unit where the target data is located to an accessible storage unit; The target data is read from the accessible storage unit.

2. The method according to claim 1, characterized in that The method further comprises: The corresponding programming operation is continued to be performed on the target data in the programming temporary storage unit.

3. The method according to claim 1, characterized in that The method further comprises: The programming temporary storage unit is determined according to a target address corresponding to the target access request.

4. The method according to claim 1, characterized in that: The programming temporary storage unit has a corresponding relationship with the accessible storage unit.

5. The method according to claim 1, characterized in that The method further comprises: In response to the target data being in an accessible state, the target data is read according to a target address corresponding to the target access request.

6. A storage device, characterized in that: The storage device comprises: A storage medium, the storage medium comprising at least one programming temporary storage unit and at least one accessible storage unit; A control unit is configured to receive a target access request, and in response to the target data accessed by the target access request being in a programming state, send an interrupt programming instruction to the storage medium to interrupt the programming state of the target data, and send an operation instruction to the storage medium according to the target address where the target data is located, so that the storage medium copies or moves the target data from the programming temporary storage unit where the target data is located to an accessible storage unit according to the operation instruction, so as to read the target data from the accessible storage unit.

7. The storage device according to claim 6, characterized in that: The programming temporary storage unit has a corresponding relationship with the accessible storage unit.

8. The storage device according to claim 6, characterized in that: The control unit is further configured to send a continue programming instruction to the storage medium to restore a programming state of the target data.

9. The storage device according to claim 6, characterized in that: The storage device also includes: The register is configured to store configuration information, where the configuration information is used to indicate the programming temporary storage unit corresponding to the target access request.

10. A data access system, characterized in that: The data access system comprises: The storage device according to any one of claims 6 to 9; The host is configured to send a data operation request to the storage device.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

12. A computer program product, characterized in that When the computer program product is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 5.