Storage apparatus and electronic device

By using non-volatile second-type storage modules to store configuration parameters in the storage device, and dynamically determining the target configuration parameter group based on the remaining storage capacity of the first-type storage module, the read and write performance problems caused by fixed configuration parameters are solved and improved. Improves the data reading and writing efficiency and flexibility of storage devices.

WO2024216703A1PCT designated stage expired Publication Date: 2024-10-24SHANGHAI LONGSYS DIGITAL TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/095862
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-21
Filing Date
2023-05-23
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

When existing storage devices encounter problems such as network latency, fixed configuration parameters affect data read and write performance, making it difficult to dynamically adjust to improve efficiency.

Method used

By introducing a non-volatile second type of storage module into the storage device, the configuration parameters determined based on the remaining storage capacity of the first type of storage module are stored, and the main control unit is used to dynamically determine the target configuration parameter group for data reading or writing. , changing the traditional fixed configuration parameter method.

Benefits of technology

It improves the data reading and writing efficiency of the storage device, ensures that the configuration parameters match the storage amount, avoids the impact of delay, and enhances the flexibility and performance of storage control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023095862_24102024_PF_FP_ABST
    Figure CN2023095862_24102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed are a storage apparatus and an electronic device. The storage apparatus comprises: a primary control unit, a first-type storage module and a second-type storage module; the primary control unit is respectively connected to the first-type storage module and the second-type storage module, and at least one configuration parameter is stored in the second-type storage module, the configuration parameter being determined on the basis of the amount of remaining storage in the first-type storage module; the second-type storage module is non-volatile; and in response to a host-end data read instruction or data write instruction, the primary control unit uses the at least one configuration parameter in the second-type storage module to determine a target configuration parameter group, and uses the target configuration parameter group to perform data reading or data writing on the first-type storage module. That is, the present application uses the amount of remaining storage in a first-type storage module to determine a corresponding configuration parameter, then determines a target configuration parameter group, performs data reading / writing by means of the dynamic selection of configuration parameters, changes the storage control method, and thus improves the data reading and writing efficiency of a storage apparatus.
Need to check novelty before this filing date? Find Prior Art

Description

Storage device and electronic device

[0001]

Cross-reference

[0002] This application claims priority to Chinese patent application No. CN202310438598.1 filed on April 21, 2023, the entire contents of which are incorporated herein by reference.

Technical field

[0003] The present invention relates to the field of computer technology, and in particular to a data backup method, system, electronic equipment, and medium for a storage device. [Background Technology]

[0004] In the application process of storage technology, the configuration parameters corresponding to data reading and writing are generally set by the manufacturer, and the corresponding configuration parameters are selected in advance before operation to use the set configuration parameters to read and write data in the storage device.

[0005] In actual operation, the researchers of this application found that when users use storage devices, in order to obtain better data reading and writing performance, they usually use components with better performance and set fixed configuration parameters. When reading or writing data, the set configuration parameters are used to read or write data to the storage device. When encountering problems such as network delays, the reading and writing performance of the storage device is affected.

[0006] [Summary of the invention]

[0007] The main technical problem solved by the present invention is to provide a storage device and an electronic device that can determine configuration parameters according to the remaining storage capacity of the storage module, and then determine the target configuration parameter group based on the configuration parameters to read or write data, so as to improve the data reading and writing efficiency of the storage device.

[0008] In order to solve the above technical problems, a technical solution adopted in the present application is: providing a storage device, including a main control unit, a first-type storage module and a second-type storage module; the first-type storage module is connected to the main control unit; the second-type storage module is connected to the main control unit, and at least one configuration parameter is stored in the second-type storage module, and the at least one configuration parameter is determined based on the remaining storage capacity of the first-type storage module; the second-type storage module is non-volatile; wherein, in response to a data read instruction or a data write instruction from the host side, the main control unit uses the at least one configuration parameter in the second-type storage module to determine a target configuration parameter group, and uses the target configuration parameter group to read data from or write data to the first-type storage module.

[0009] In one embodiment of the present application, the second-type storage module stores at least one configuration parameter group, and each of the configuration parameter groups includes at least one configuration parameter; wherein, the configuration parameter is determined based on the measurement parameter corresponding to the remaining storage capacity of the first-type storage module, and at least one of the configuration parameter groups includes an original configuration parameter group, and the original configuration parameter group is the configuration parameter group corresponding to the remaining storage capacity being equal to the total storage capacity.

[0010] In one embodiment of the present application, the main control unit includes at least two registers; in response to a data read instruction from the host side, the main control unit reads and caches at least one configuration parameter in the second-type storage module through the first register to obtain a first target configuration parameter group; and the main control unit reads and caches the stored data in the first-type storage module through the second register based on the first target configuration parameter group; or, in response to a data write instruction from the host side, the main control unit reads and caches at least one configuration parameter in the second-type storage module through the first register to obtain a second target configuration parameter group; and the main control unit writes the cached data to the first-type storage module through the second register based on the second target configuration parameter group.

[0011] In one embodiment of the present application, when the main control unit responds to a data read instruction from the host side, if it is detected that there are multiple configuration parameter groups for the second-type storage module, the main control unit determines the first target configuration parameter group corresponding to the measurement parameters based on the configuration parameters corresponding to the remaining storage capacity; if at least one configuration parameter group successfully matches the configuration parameters corresponding to the remaining storage capacity, the configuration parameter group corresponding to the configuration parameters with the highest number of qualified matches is determined as the third target configuration parameter group, and the data of the first-type storage module is read using the third target configuration parameter group; or, if the configuration parameter group fails to match the configuration parameters corresponding to the remaining storage capacity, the target configuration parameters are obtained by measuring the remaining storage capacity, and the data of the first-type storage module is read using the fourth target configuration parameter group determined by the target configuration parameters.

[0012] In one embodiment of the present application, when the main control unit responds to a data write instruction from the host side, if it is detected that there are multiple configuration parameter groups for the second-type storage module, the main control unit determines the second target configuration parameter group corresponding to the measurement parameters based on the configuration parameters corresponding to the remaining storage capacity; if at least one configuration parameter group successfully matches the configuration parameters corresponding to the remaining storage capacity, the configuration parameter group corresponding to the configuration parameters with the highest number of qualified matches is determined as the fifth target configuration parameter group, and data is written to the first-type storage module using the fifth target configuration parameter group; or, if the configuration parameter group fails to match the configuration parameters corresponding to the remaining storage capacity, target configuration parameters are obtained based on the measurement of the remaining storage capacity, and data is written to the first-type storage module using the sixth target configuration parameter group determined by the target configuration parameters.

[0013] In one embodiment of the present application, the first type storage module includes at least one storage unit, multiple storage units are connected, and a main interface end is provided, so that the first type storage module is connected to the main control unit based on the main interface end.

[0014] In one embodiment of the present application, the storage device also includes a power supply unit, which is respectively connected to the main control unit and the first type of storage module. When the main control unit responds to the data read instruction or the data write instruction, the operating voltage of the power supply unit is adjusted based on the remaining storage capacity of the first type of storage module, so as to use the adjusted operating voltage to drive the first type of storage module to read or write data.

[0015] In one embodiment of the present application, the storage device also includes a communication unit, which is connected to the first type storage module and the second type storage module respectively, and the communication unit is connected to the main control unit so that the main control unit reads the measurement parameters corresponding to the remaining storage capacity of the first type storage module through the communication unit.

[0016] In one embodiment of the present application, the storage device further includes a configuration parameter reading bus, which is connected to the main control unit and the second type storage module respectively, so that the main control unit reads the at least one configuration parameter of the second type storage module through the configuration parameter reading bus.

[0017] In order to solve the above technical problem, another technical solution adopted in this application is: to provide an electronic device, which includes the above storage device.

[0018] Different from the current technology, the storage device provided by the present application includes a main control chip, a first type of storage module and a second type of storage module; the first type of storage module is connected to the main control unit; the second type of storage module is connected to the main control unit, and at least one configuration parameter is stored in the second type of storage module, and the at least one configuration parameter is determined based on the remaining storage capacity of the first type of storage module; the second type of storage module is non-volatile; wherein, in response to a data read instruction or a data write instruction from the host side, the main control unit uses at least one configuration parameter in the second type of storage module to determine a target configuration parameter group, and uses the target configuration parameter to group the first type of storage module for data reading or data writing. That is, the present application does not adopt fixed configuration parameters, but determines the corresponding configuration parameters according to the remaining storage capacity of the first type of storage module, and then determines the target configuration parameter group, that is, by dynamically selecting configuration parameters for data reading and writing, the storage control method is changed, and the data reading and writing efficiency of the storage device is improved.

Brief Description of the Drawings

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without inventive efforts. Among them:

[0020] FIG1 is a schematic structural diagram of a first embodiment of a storage device of the present application;

[0021] FIG2 is a schematic structural diagram of a second embodiment of a storage device of the present application;

[0022] FIG3 is a schematic structural diagram of a third embodiment of a storage device of the present application;

[0023] FIG4 is a schematic structural diagram of a fourth embodiment of a storage device of the present application;

[0024] FIG5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.

[0025] In the accompanying drawings, there are a storage device 10, a main control unit 100, a register 110, a first register 111, a second register 112, a first type storage module 200, a storage unit 210, a second type storage module 300, a power supply unit 400, a communication unit 500, a configuration parameter reading bus 600, and an electronic device 20. [Specific implementation method]

[0026] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It will be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some, rather than all, structures related to the present application are shown in the drawings. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0027] References to "embodiments" in this application mean that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0028] The steps in the embodiments of the present application do not necessarily have to be processed in the order of the described steps. The steps can be selectively rearranged as needed, or the steps in the embodiments can be deleted, or the steps in the embodiments can be added. The step descriptions in the embodiments of the present application are only optional sequence combinations and do not represent all step sequence combinations in the embodiments of the present application. The order of the steps in the embodiments cannot be considered as a limitation of the present application.

[0029] The terms "first," "second," and the like in this application are used to distinguish between different objects, not to describe a particular order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements, but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.

[0030] Current storage devices typically read and write data using configuration parameters pre-set by the manufacturer. To improve the read and write performance and efficiency of storage devices, high-performance components are selected, along with corresponding voltage and timing parameters. This is coupled with effective power supply noise control and impedance matching of signal transmission lines to achieve optimal read and write performance. However, as the remaining storage capacity changes, various delays often occur when the configuration parameters are fixed, impacting data read and write performance.

[0031] Therefore, a storage device is provided, which stores corresponding configuration parameters through a second-type storage module with non-volatile properties, and then determines a target configuration parameter group based on the remaining storage capacity of the first-type storage module based on a main control unit, and reads and writes data to the first-type storage module using the target configuration parameter group, so that the storage device can read and write data by dynamically selecting configuration parameters, thereby changing the storage control method and improving the data reading and writing efficiency of the storage device.

[0032] Please refer to FIG1 , which is a schematic structural diagram of a first embodiment of a storage device in the present application.

[0033] As shown in Figure 1, the storage device 10 includes a main control unit 100, a first-type storage module 200 and a second-type storage module 300; the first-type storage module 200 is connected to the main control unit 100, and the second-type storage module 300 is connected to the main control unit 100; the second-type storage module 300 stores at least one configuration parameter, and the at least one configuration parameter is determined based on the remaining storage capacity of the first-type storage module 200; the second-type storage module 300 is non-volatile; wherein, in response to a data read instruction or a data write instruction from the host side, the main control unit 100 uses at least one configuration parameter in the second-type storage module 300 to determine a target configuration parameter group, and uses the target configuration parameter group to read data from or write data to the first-type storage module 200.

[0034] Among them, the first type of storage module 200 is a storage module for storing data, and data reading or data writing is performed in the first type of storage module 200; the second type of storage module 300 is used to store configuration parameters. In order to ensure that the configuration parameters are not lost when the computer is turned off or shut down suddenly or accidentally, the second type of storage module 300 adopts a non-volatile storage module.

[0035] Specifically, when data needs to be written, the main control unit 100 obtains the remaining storage capacity of the first type storage module 200, and the second type storage module 300 determines at least one corresponding configuration parameter based on the remaining storage capacity of the first type storage module 200. The main control unit 100 obtains at least one configuration parameter in the second type storage module 300, so that the main control unit 100 uses the at least one configuration parameter to determine the target configuration parameter group, and then the main control unit 100 uses the target parameter configuration group to read or write data to the first type storage module 200.

[0036] In this embodiment, the configuration parameters are determined by the remaining storage capacity of the first-type storage module 200, which ensures that the configuration parameters correspond to the storage capacity, which is beneficial to improving the read and write performance; the configuration parameters are stored by the non-volatile second-type storage module 300, which can ensure that the configuration parameters are not lost; the storage device can dynamically read or write data based on the configuration parameters, thereby changing the operating conditions and control methods of the storage device, improving the read and write performance of the storage device, and improving data reading and writing efficiency.

[0037] In some embodiments, the first type of storage module 200 can be a solid state disk (Solid State Disk or Solid State Drive, abbreviated as SSD), also known as a solid state drive, which is a hard disk made of a solid-state electronic storage chip array; for example: NVMe solid state drive, SATA solid state drive, SATA refers to Advanced Technology Attachment, which is a hard disk interface, NVMe stands for Non-Volatile Memory express, which is a logical device interface specification.

[0038] In some embodiments, the first type of storage module 200 may also be a device that uses electrical energy to store information, such as various types of memory, such as RAM, ROM, and other storage devices; devices that use magnetic energy to store information, such as hard disks, floppy disks, magnetic tapes, magnetic core memory, bubble memory, and USB flash drives; devices that use optical storage, such as CDs or DVDs; devices that use magneto-optical storage, such as MOs (magneto-optical disks); devices that use other physical materials, such as paper cards or tapes, such as punched cards, punched tape, and knots; storage systems, such as dedicated information systems for data backup or disaster recovery, and devices that use high-speed networks to store large amounts of information; and removable storage devices, such as PD optical drives. PD stands for "Phase Change Rewritable Optical Disk Drive." PD optical discs use phase change light and, similar to CDs, use the same data reproduction principle: signals are identified as 1s and 0s based on the difference in reflected light. PD optical discs are similar in shape to CDs and are enclosed in a case to protect the data on the disc.

[0039] In some embodiments, at least one configuration parameter of the second type storage module 300 may also be determined according to the storage capacity of the first type storage module 200 .

[0040] In some embodiments, at least one configuration parameter of the second type storage module 300 is positively correlated with the remaining storage capacity of the first type storage module 200 and negatively correlated with the storage capacity of the first type storage module 200 .

[0041] In other embodiments, at least one configuration parameter of the second type storage module 300 is negatively correlated with the remaining storage capacity of the first type storage module 200 , and positively correlated with the storage capacity of the first type storage module 200 .

[0042] In some embodiments, the configuration parameters stored in the second type storage module 300 may be multiple, such as: data read delay (Latency), data write delay (tWR, Write Recovery Time), operating voltage, clock frequency, read and write delay (tRCD) or read delay (tRCDrd) and write delay (tRCDwrt) respectively.

[0043] Data read latency can be CAS Latency Control (also described as tCL, CL, CAS Latency Time, or CAS Timing Delay). CAS latency is the "latency of the column address controller before memory read or write operations." CAS controls the time between receiving an instruction and executing it. Because CAS primarily controls hexadecimal addresses, or column addresses within the memory matrix, it is the most important parameter and should be set as low as possible while ensuring stability.

[0044] tWR stands for "write recovery delay." This value specifies the number of clock cycles required before a valid write operation and precharge can be completed in an active bank. This required number of clock cycles ensures that data in the write buffer can be written to the memory cells before precharge occurs.

[0045] Read / Write Delay (tRCD, RAS to CAS Delay) represents the delay between row addressing and column addressing. A smaller value indicates better performance. When reading, writing, or refreshing memory, a delay clock cycle is inserted between these two pulse signals. Reducing this delay can improve system performance.

[0046] In some embodiments, to further improve the read and write efficiency of the storage device, at least one configuration parameter group can be stored in the second-type storage module 300. Each configuration parameter group includes at least one configuration parameter; wherein the configuration parameter is determined based on a measurement parameter corresponding to the remaining storage capacity of the first-type storage module 200. The at least one configuration parameter group includes an original configuration parameter group, which is the configuration parameter group corresponding to the remaining storage capacity equal to the total storage capacity.

[0047] The measurement parameters refer to parameters obtained by performing corresponding measurements based on the remaining storage capacity of the first type storage module 200 , and the configuration parameters are determined by calculation or conversion based on the measurement parameters.

[0048] In some embodiments, when the remaining storage capacity of the first type storage module 200 is determined, there is a write configuration parameter group when data is written, and there may be a read configuration parameter group when data is read.

[0049] For example, when writing data, the write configuration parameter group may include: data read delay (Latency), data write delay (tWR), operating voltage during data writing, clock frequency during data writing, read delay (tRCDrd) and write delay (tRCDwrt); in actual operation, the data write delay (tWR), operating voltage during data writing, clock frequency during data writing and write delay (tRCDwrt) are used to determine the target configuration parameter group corresponding to data writing, and then data is written to the first type storage module 200.

[0050] When reading data, the read configuration parameter group may include: data read delay (Latency), data write delay (tWR), operating voltage during data reading, clock frequency during data reading, read delay (tRCDrd), and write delay (tRCDwrt); in actual operation, the data read delay (Latency), operating voltage during data reading, clock frequency during data reading, and read delay (tRCDrd) are used to determine the target configuration parameter group corresponding to data reading, and then data is read from the first type storage module 200.

[0051] Please refer to FIG2 , which is a schematic structural diagram of a second embodiment of a storage device in this application.

[0052] As shown in Figure 2, the storage device includes a main control unit 100, a first-type storage module 200 and a second-type storage module 300; the first-type storage module 200 is connected to the main control unit 100, and the second-type storage module 300 is connected to the main control unit 100; the main control unit 100 includes at least two registers 110; in response to a data read instruction from the host side, the main control unit 100 reads and caches at least one configuration parameter in the second-type storage module 300 through the first register 111 to obtain a first target configuration parameter group; and the main control unit 100 reads and caches the stored data in the first-type storage module 200 through the second register 112 based on the first target configuration parameter group; or, in response to a data write instruction from the host side, the main control unit 100 reads and caches at least one configuration parameter in the second-type storage module 300 through the first register 111 to obtain a second target configuration parameter group; and the main control unit 100 writes the cached data to the first-type storage module 200 through the second register 112 based on the second target configuration parameter group.

[0053] The register 110 is a component inside the CPU, and there are multiple of them. They can be general registers, special registers and / or control registers, and are used to temporarily store instructions, data and addresses.

[0054] Specifically, the first register 111 is connected to the main control unit 100 and the second type storage module 300, and the second register 112 is connected to the main control unit 100 and the first type storage module 200. After the host sends a data read instruction, the main control unit 100 responds to the data read instruction and reads and caches the configuration parameters in the second type storage module 300 through the first register 111 to obtain a first target configuration parameter group corresponding to the data read. Based on the first target configuration parameter group, the main control unit 100 reads and caches the stored data in the first type storage module 200 through the second register 112.

[0055] Alternatively, after the host sends a data write instruction, the main control unit 100 responds to the data write instruction and reads and caches the configuration parameters in the second type storage module 300 through the first register 111 to obtain the second target configuration parameter group corresponding to the data write; based on the second target configuration parameter group, the main control unit 100 writes the buffered data to be written into the first type storage module 200 through the second register 112.

[0056] In some embodiments, when the main control unit 100 responds to a data read instruction from the host side, if it is detected that there are multiple configuration parameter groups in the second type storage module 300, the main control unit 100 determines a first target configuration parameter group corresponding to the measurement parameters based on the configuration parameters corresponding to the remaining storage capacity; if at least one configuration parameter group successfully matches the configuration parameters corresponding to the remaining storage capacity, the configuration parameter group corresponding to the configuration parameters with the highest number of qualified matches is determined as the third target configuration parameter group, and the third target configuration parameter group is used to read data from the first type storage module 200; or, if the configuration parameter group fails to match the configuration parameters corresponding to the remaining storage capacity, the target configuration parameters are obtained based on the measurement of the remaining storage capacity, and the fourth target configuration parameter group determined by the target configuration parameters is used to read data from the first type storage module 200.

[0057] Among them, when there are multiple groups of configuration parameter groups in the second-type storage module 300, when reading data, the main control unit 100 determines that a group of configuration parameter groups corresponding to the measurement parameters is the first target configuration parameter group based on the configuration parameters corresponding to the remaining storage capacity of the first-type storage module 200; if multiple groups of configuration parameter groups successfully match the configuration parameters corresponding to the remaining storage capacity of the first-type storage module 200, it is necessary to select the configuration parameter group with the most qualified matching configuration parameters, and use it as the third target configuration parameter group to read data from the first-type storage module 200; or, if the configuration parameter group fails to match the configuration parameters corresponding to the remaining storage capacity of the first-type storage module 200, measurement is performed based on the remaining storage capacity of the first-type storage module 200 to obtain target configuration parameters, and a fourth target configuration parameter group is determined based on the target configuration parameters, and then the fourth target configuration parameter group is used to read data from the first-type storage module 200.

[0058] For example, multiple configuration parameter groups include data read latency (Latency), data write latency (tWR), operating voltage, clock frequency, read latency (tRCDrd), and write latency (tRCDwrt). When four configuration parameters in one group are successfully matched and five configuration parameters in the other group are successfully matched, the configuration parameter group corresponding to the five successful configuration parameter matches is used as the target configuration parameter group. If the number of successful configuration parameter matches is less than four, the match is considered to have failed. In the event of a match failure, measurement is required based on the current remaining storage capacity of the first-type storage module 200 to obtain the target configuration parameters corresponding to the current remaining storage capacity, and then data is read from the first-type storage module 200 using the fourth target configuration parameter group determined by the target configuration parameters.

[0059] In other embodiments, when the main control unit 100 responds to a data write instruction from the host side, if it detects that there are multiple configuration parameter groups in the second-type storage module 300, the main control unit 100 determines a second target configuration parameter group corresponding to the configuration parameters based on the configuration parameters corresponding to the remaining storage capacity; if at least one configuration parameter group successfully matches the configuration parameters corresponding to the remaining storage capacity, the configuration parameter group corresponding to the configuration parameters with the highest number of qualified matches is determined as the fifth target configuration parameter group, and the fifth target configuration parameter group is used to write data to the first-type storage module 200; or, if the configuration parameter group fails to match the configuration parameters corresponding to the remaining storage capacity, the target configuration parameters are obtained based on the remaining storage capacity, and the sixth target configuration parameter group determined by the target configuration parameters is used to write data to the first-type storage module 200.

[0060] Among them, when there are multiple groups of configuration parameter groups in the second-type storage module 300, when writing data, the main control unit 100 determines that a group of configuration parameter groups corresponding to the measurement parameters is the first target configuration parameter group based on the configuration parameters corresponding to the remaining storage capacity of the first-type storage module 200; if multiple groups of configuration parameter groups successfully match the configuration parameters corresponding to the remaining storage capacity of the first-type storage module 200, it is necessary to select the configuration parameter group with the most qualified matching configuration parameters, and use it as the third target configuration parameter group to read data from the first-type storage module 200; or, if the configuration parameter group fails to match the configuration parameters corresponding to the remaining storage capacity of the first-type storage module 200, measurement is performed based on the remaining storage capacity of the first-type storage module 200 to obtain target configuration parameters, and a fourth target configuration parameter group is determined based on the target configuration parameters, and then the fourth target configuration parameter group is used to read data from the first-type storage module 200.

[0061] For example, multiple configuration parameter groups include data read latency (Latency), data write latency (tWR), operating voltage, clock frequency, read latency (tRCDrd), and write latency (tRCDwrt). When four configuration parameters in one group are successfully matched and five configuration parameters in the other group are successfully matched, the configuration parameter group corresponding to the five successful configuration parameter matches is used as the target configuration parameter group. If the number of successful configuration parameter matches is less than four, the match is considered to have failed. In the event of a match failure, measurement is required based on the current remaining storage capacity of the first-type storage module 200 to obtain the target configuration parameters corresponding to the current remaining storage capacity, and then data is read from the first-type storage module 200 using the fourth target configuration parameter group determined by the target configuration parameters.

[0062] Please refer to FIG3 , which is a schematic structural diagram of a third embodiment of a storage device of the present application.

[0063] As shown in Figure 3, the storage device includes a main control unit 100, a first-type storage module 200 and a second-type storage module 300; the first-type storage module 200 is connected to the main control unit 100, and the second-type storage module 300 is connected to the main control unit 100; wherein, the first-type storage module 200 includes at least one storage unit 210, multiple storage units 210 are connected, and a main interface end is provided to enable the first-type storage module 200 to be connected to the main control unit 100 based on the main interface end.

[0064] Among them, if a large amount of data needs to be stored, when a single storage unit 210 is not enough, multiple storage units 210 need to be connected together to ensure that a large amount of data can be stored in the storage unit 210; corresponding main interface ends are set for multiple storage units 210, that is, each storage unit 210 can be connected to the main control unit 100 through the main interface end.

[0065] Specifically, when data needs to be written or read, the main control unit 100 obtains the remaining storage capacity of all storage units 210, and the second-type storage module 300 determines at least one corresponding configuration parameter based on the obtained remaining storage capacity. The main control unit 100 obtains at least one configuration parameter in the second-type storage module 300, so that the main control unit 100 uses the at least one configuration parameter to determine the target configuration parameter group, and then the main control unit 100 uses the target parameter configuration group to read or write data to the first-type storage module 200.

[0066] It is understandable that the rest of the description is the same as above and will not be repeated here.

[0067] In this embodiment, by setting the first type storage module 200 to be composed of multiple storage units 210 and providing a main interface end, each storage unit 210 can be connected to the main control unit 100 through the main interface end, so that the main control unit 100 can accurately obtain the remaining storage capacity corresponding to all storage units 210, so as to accurately obtain subsequent configuration parameters.

[0068] Please refer to FIG4 , which is a schematic structural diagram of a fourth embodiment of the storage device of the present application.

[0069] As shown in Figure 4, the storage device includes a main control unit 100, a first-type storage module 200, a second-type storage module 300 and a power supply unit 400; wherein, the first-type storage module 200 is connected to the main control unit 100, and the second-type storage module 300 is connected to the main control unit 100; the power supply unit 400 is connected to the main control unit 100 and the first-type storage module 200 respectively. When the main control unit 100 responds to a data read instruction or a data write instruction, the power supply unit 400 adjusts the operating voltage based on the remaining storage capacity of the first-type storage module 200, so as to use the adjusted operating voltage to drive the first-type storage module 200 to read or write data.

[0070] In order to ensure normal power supply of the storage device and provide corresponding operating voltage so that the storage device can achieve optimal data reading and writing efficiency, the operating voltage needs to be adjusted based on the remaining storage capacity of the first type storage module 200 .

[0071] Specifically, when data writing or reading is required, the main control unit 100 obtains the remaining storage capacity of all storage units 210, the second-type storage module 300 determines at least one corresponding configuration parameter based on the remaining storage capacity of the first-type storage module 200, and the power supply unit 400 adjusts the operating voltage based on the remaining storage capacity of the first-type storage module 200; the main control unit 100 obtains at least one configuration parameter in the second-type storage module 300 and the adjusted operating voltage, so that the main control unit 100 uses the at least one configuration parameter to determine the target configuration parameter group, and then the main control unit 100 uses the target parameter configuration group and the adjusted operating voltage to read or write data to the first-type storage module 200.

[0072] It is understandable that the rest of the description is the same as above and will not be repeated here.

[0073] In this embodiment, the target configuration parameter group and the adjusted operating voltage are determined based on the remaining storage capacity of the first type storage module 200, so that the main control unit 100 uses the target configuration parameter group and the adjusted operating voltage to read or write data to the first type storage module 200, thereby ensuring the normal operation of the storage device and correspondingly improving the accuracy of the target configuration parameters and the data reading and writing performance of the storage device.

[0074] Continuing with reference to Figure 4, the storage device also includes a communication unit 500, which is connected to the first type storage module 200 and the second type storage module 300 respectively, and the communication unit 500 is connected to the main control unit 100 so that the main control unit 100 reads the measurement parameters corresponding to the remaining storage capacity of the first type storage module 200 through the communication unit 500.

[0075] Among them, the communication unit 500 is a connecting bridge between the main control unit 100 and the storage module, which can be a conductive contact, that is, multiple conductive contacts are arranged at intervals, some of the conductive contacts serve as a connecting bridge between the main control unit 100 and the first type of storage module 200, and the other part of the conductive contacts serve as a connecting bridge between the main control unit 100 and the second type of storage module 300, such as copper foil is plated with gold or nickel gold to make it into a finger shape, which is called a gold finger.

[0076] Specifically, the main control unit 100 is connected to the first type storage module 200 through some conductive contacts in the communication unit 500, and the main control unit 100 is connected to the second type storage module 300 through another part of the conductive contacts in the communication unit 500, so that the main control unit 100 can obtain the total storage capacity, remaining storage capacity and corresponding measurement parameters of the first type storage module 200, and obtain the total storage capacity, remaining storage capacity, etc. of the second type storage module 300.

[0077] 4 , the storage device further includes a configuration parameter reading bus 600 , which is connected to the main control unit 100 and the second type storage module 300 , respectively, so that the main control unit 100 reads at least one configuration parameter of the second type storage module 300 through the configuration parameter reading bus 600 .

[0078] In order to obtain the storage content in the non-volatile storage module, it is necessary to read the configuration parameter reading bus 600 of the non-volatile storage.

[0079] Specifically, when reading or writing data, after the second-type storage module 300 determines at least one corresponding configuration parameter based on the remaining storage capacity of the first-type storage module 200, the main control unit 100 can read the configuration parameters in the second-type storage module 300 through the configuration parameter reading bus 600, thereby ensuring the transmission security of the configuration parameters in the second-type storage module 300.

[0080] Please refer to FIG5 , which is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. As shown in FIG5 , the electronic device 20 includes a storage device 10 .

[0081] The above technical solution provides a storage device, including a main control unit 100, a first-type storage module 200 and a second-type storage module 300; the first-type storage module 200 is connected to the main control unit 100, and the second-type storage module 300 is connected to the main control unit 100; at least one configuration parameter is stored in the second-type storage module 300, and the at least one configuration parameter is determined based on the remaining storage capacity of the first-type storage module 200; the second-type storage module 300 is non-volatile; wherein, in response to a data read instruction or a data write instruction from the host side, the main control unit 100 uses at least one configuration parameter in the second-type storage module 300 to determine a target configuration parameter group, and uses the target configuration parameter group to read data from or write data to the first-type storage module 200. That is, the present application determines the configuration parameters by the remaining storage capacity of the first-type storage module 200, ensuring that the configuration parameters correspond to the storage capacity, which is beneficial to improving the read and write performance; storing the configuration parameters by the non-volatile second-type storage module 300 can ensure that the configuration parameters are not lost; allowing the storage device to dynamically read or write data based on the configuration parameters, thereby changing the operating conditions and control methods of the storage device, improving the read and write performance of the storage device, and improving data read and write efficiency.

[0082] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the system implementation described above is only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0083] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of this embodiment.

[0084] In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The above-mentioned integrated units may be implemented in the form of hardware or software functional units.

[0085] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, 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: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0086] The above description is only an implementation method of the present application and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the description and drawings of this application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A storage device, characterized in that: include: Main control unit; A first type storage module is connected to the main control unit; A second type of storage module is connected to the main control unit, wherein at least one configuration parameter is stored in the second type of storage module, and the at least one configuration parameter is determined based on the remaining storage capacity of the first type of storage module; the second type of storage module is non-volatile; Among them, in response to a data read instruction or a data write instruction from the host side, the main control unit uses the at least one configuration parameter in the second type of storage module to determine a target configuration parameter group, and uses the target configuration parameter group to read data from or write data to the first type of storage module.

2. The storage device according to claim 1, characterized in that The second-type storage module stores at least one configuration parameter group, each of which includes at least one configuration parameter; wherein the configuration parameter is determined based on a measurement parameter corresponding to the remaining storage capacity of the first-type storage module, and at least one of the configuration parameter groups includes an original configuration parameter group, which is a configuration parameter group corresponding to the remaining storage capacity being equal to the total storage capacity.

3. The storage device according to claim 2, characterized in that: The main control unit includes at least two registers; In response to a data read instruction from the host, the main control unit reads at least one of the configuration parameters in the second type storage module through the first register to obtain a first target configuration parameter group; and the main control unit reads and caches the storage data in the first type of storage module through a second register based on the first target configuration parameter group; or In response to the data write instruction of the host end, the main control unit reads at least one of the configuration parameters in the second type storage module through the first register to obtain a second target configuration parameter group; And the main control unit writes the cached data into the first type storage module through the second register based on the second target configuration parameter group.

4. The storage device according to claim 3, characterized in that: When the main control unit responds to a data read instruction from the host, if it is detected that there are multiple configuration parameter groups in the second type storage module, the main control unit determines the first target configuration parameter group corresponding to the configuration parameter based on the configuration parameter corresponding to the remaining storage capacity; If at least one configuration parameter group successfully matches the configuration parameters corresponding to the remaining storage capacity, the configuration parameter group corresponding to the configuration parameters with the highest number of qualified matches is determined as the third target configuration parameter group, and the third target configuration parameter group is used to read data from the first type of storage module; or, If the configuration parameter group fails to match the configuration parameters corresponding to the remaining storage capacity, target configuration parameters are obtained based on the remaining storage capacity, and data is read from the first type of storage module using a fourth target configuration parameter group determined by the target configuration parameters.

5. The storage device according to claim 3, characterized in that: When the main control unit responds to a data write instruction from the host, if it is detected that there are multiple configuration parameter groups in the second type storage module, the main control unit determines the second target configuration parameter group corresponding to the configuration parameter based on the configuration parameter corresponding to the remaining storage capacity; If at least one configuration parameter group successfully matches the configuration parameters corresponding to the remaining storage capacity, the configuration parameter group corresponding to the configuration parameters with the highest number of qualified matches is determined as the fifth target configuration parameter group, and the data is written to the first type of storage module using the fifth target configuration parameter group; or, If the configuration parameter group fails to match the configuration parameters corresponding to the remaining storage capacity, target configuration parameters are obtained based on the remaining storage capacity, and data is written to the first type of storage module using a sixth target configuration parameter group determined by the target configuration parameters.

6. The storage device according to claim 1, characterized in that: The first type storage module includes at least one storage unit, a plurality of the storage units are connected, and a general interface end is provided, so that the first type storage module is connected to the main control unit based on the general interface end.

7. The storage device according to claim 1, characterized in that: The storage device also includes a power supply unit, which is respectively connected to the main control unit and the first type of storage module. When the main control unit responds to the data read instruction or the data write instruction, the operating voltage of the power supply unit is adjusted based on the remaining storage capacity of the first type of storage module, so as to use the adjusted operating voltage to drive the first type of storage module to read or write data.

8. The storage device according to claim 1, characterized in that: The storage device also includes a communication unit, which is connected to the first type storage module and the second type storage module respectively, and the communication unit is connected to the main control unit so that the main control unit reads the measurement parameters corresponding to the remaining storage capacity of the first type storage module through the communication unit.

9. The storage device according to claim 1, characterized in that: The storage device further comprises a configuration parameter reading bus connected to the main control unit and the second type storage module respectively, so that the main control unit reads the at least one configuration parameter of the second type storage module through the configuration parameter reading bus.

10. An electronic device, characterized in that: Comprising the storage device according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Memory parameter configuration method, processor and equipment

    CN102508726A

  • Memory access method and device, equipment and storage medium

    CN112306413A

  • Training method of memory device and electronic device and electronic system including the same

    CN112447259A

  • Memory Element, Data Processing System, Method for Setting Operating Parameters of a Memory and Computer Program

    US20080320267A1

  • Semiconductor device having register sets and data processing device including the same

    US20170115880A1