Storage control device and storage control method
By setting drive resistors and terminal resistors in the interface circuit between the memory controller and the memory particles, and performing ZQ calibration when the supply voltage and temperature change, the signal distortion problem caused by the impedance mismatch between the memory controller and the memory particles is solved. Improved signal integrity and storage system performance and reliability.
Patent Information
- Application Number
- PCT/CN2024/081470
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-28
- Filing Date
- 2024-03-13
- Publication Date
- 2024-10-31
AI Technical Summary
The impedance mismatch between the memory controller and the memory particles causes signal distortion or misjudgment, affecting signal integrity.
Impedance matching is achieved by setting drive resistors and terminal resistors in the interface circuit of the memory controller and memory particles, and performing ZQ calibration when the supply voltage and temperature change to ensure that the resistance values match.
It improves signal integrity, reduces signal distortion and misjudgment, improves the performance and reliability of the storage system, and ensures the stability of the storage system under different working conditions.
Smart Images

Figure CN2024081470_31102024_PF_FP_ABST
Abstract
Description
Storage control device and storage control method
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on April 28, 2023, with application number 202310483036.9 and invention name "A Storage Control Device and Storage Control Method", the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of storage calibration, and in particular to a storage control device and a storage control method. Background Art
[0004] By reducing the read and write voltage of the storage device when executing read and write instructions, the read and write rate of the storage device can be increased, and reducing the read and write voltage can also be understood as reducing the swing amplitude of the signal transmitted between the storage controller and the storage particles. Therefore, in high-speed input / output (IO) systems, ensuring signal integrity (SI) is a key issue that must be considered. Among them, signal integrity refers to the ability of a signal to maintain its original waveform and frequency during transmission. The better the signal integrity, it means that the signal will not be distorted, noisy, jittery, etc. during transmission, so that the signal can be accurately parsed and processed.
[0005] Since the swing amplitude of the transmission signal between the storage controller and the storage particles is reduced, the transmission signal is more susceptible to the impedance mismatch between the storage controller and the storage particles, resulting in signal reflection. The signal reflection phenomenon will cause the transmission signal to be distorted or misjudged, thereby affecting the signal integrity.
[0006] In view of this, it is necessary to provide a storage control device and a storage control method to solve the problems of signal distortion or misjudgment caused by impedance mismatch between the storage controller and the storage particles when the storage device executes read and write instructions, so as to improve signal integrity.
[0007] Summary of the Invention
[0008] The present application provides a storage control device and a storage control method for solving problems such as transmission signal distortion or misjudgment caused by impedance mismatch between a storage controller and storage particles when a storage device performs read and write operations, thereby improving signal integrity.
[0009] In a first aspect, the present application provides a storage control device, comprising: a storage controller, an impedance ZQ calibration unit, a temperature detection unit, and a voltage detection unit, wherein the storage controller receives read and write instructions, which are used to indicate the storage particles to be read and written and, according to the read and write instructions, performs read and write operations on the storage particles indicated by the read and write instructions; wherein the interface circuit of the storage controller includes a driving resistor, and the interface circuit of the storage particles includes a terminal resistor; the temperature detection unit detects the operating temperature of the storage particles and the operating temperature of the storage controller; the voltage detection unit detects the power supply voltage of the storage particles and the power supply voltage of the storage controller; the ZQ calibration unit is used to calibrate the resistance values of the driving resistor and the terminal resistor to a reference resistance value when the change amplitude of the operating temperature of the storage particles and / or the change amplitude of the operating temperature of the storage controller exceeds a set amplitude threshold; and / or, when the power supply voltage of the storage particles and / or the power supply voltage of the storage controller changes to outside the set voltage range, calibrate the resistance values of the driving resistor and the terminal resistor to the reference resistance value.
[0010] By monitoring the operating temperature and power supply voltage of the storage particles and the storage controller, and when the change amplitude of the operating temperature of the storage particles and / or the change amplitude of the operating temperature of the storage controller exceeds the set amplitude threshold, and / or when the power supply voltage of the storage particles and / or the power supply voltage of the storage controller changes to outside the set voltage range, the ZQ calibration unit performs ZQ calibration on the storage controller and the storage particles, and calibrates the resistance values of the driving resistor and the terminal resistor to the reference resistance value, thereby achieving impedance matching and ensuring that the storage system including the storage control device can maintain good performance and stability under different working conditions.
[0011] To prevent the ZQ calibration process from affecting the execution of read and write instructions, as a possible implementation, while the ZQ calibration unit is calibrating the drive resistor and terminal resistor, the storage controller can continuously (or non-interruptively) receive read and write instructions and, based on the read and write instructions, continue to execute read and write operations on the storage particles indicated by the read and write instructions. In this way, read and write instructions can still be executed during the ZQ calibration process, thereby preventing the ZQ calibration process from having a significant impact on storage systems that are sensitive to read and write delays.
[0012] In a storage system including a storage control device, the read / write instruction flow rate can affect the storage system's performance, such as response time and energy consumption. As a possible implementation, the storage control device may further include a flow detection unit configured to detect the read / write instruction flow rate received by the storage controller, where the read / write instruction flow rate is the number of read / write instructions within a set time period. The ZQ calibration unit may also be configured to calibrate the resistance values of the driving resistor and the terminal resistor to a reference resistance value when the read / write instruction flow rate received by the storage controller is less than a set flow rate threshold. When the read / write instruction flow rate is less than the set flow rate threshold, ZQ calibration is initiated to ensure the stability of the power supply supplying the storage system during the ZQ calibration process.
[0013] To perform ZQ calibration in a timely manner and thus ensure the reliability and stability of the storage system including the storage control device, a flow control unit is used, as one possible implementation, to control the read / write command flow rate to below a set flow threshold when the read / write command flow rate received by the storage controller is not less than a set flow threshold. By controlling the read / write command flow rate received by the storage controller through the flow control unit, optimized management of the storage system can be achieved. This effectively reduces distortion and errors in transmitted signals, improves the performance and reliability of the storage system, and thus enhances the operational efficiency of the storage system.
[0014] Since the update process of the ZQ calibration result will affect the execution of read and write instructions, as a possible implementation method, the storage control device may also include a ZQ calibration cache unit for caching the resistance values of the calibrated driving resistance and terminal resistance after the impedance ZQ calibration unit calibrates the driving resistance and terminal resistance.
[0015] In this way, the driving resistance impedance value and the terminal resistance impedance value cached by the ZQ calibration cache unit can be updated to the corresponding storage controller and storage particles when the read and write instruction traffic is low or during the idle time of executing read and write instructions, thereby minimizing the impact of ZQ calibration on the execution of read and write instructions and realizing non-sensing ZQ calibration operation.
[0016] As a possible implementation, the ZQ calibration unit can also be used to: update the terminal resistance impedance value stored in the ZQ calibration cache unit to the cache of the storage particles, and update the driving resistance impedance value stored in the ZQ calibration cache unit to the cache of the storage controller during the idle time when the storage controller executes read and write instructions. During the idle time when read and write instructions are executed, the ZQ calibration unit can complete the update of the terminal resistance impedance value or the driving resistance impedance value to prevent the update process of the ZQ calibration result from interfering with the execution of read and write instructions, thereby improving the operating efficiency of the entire storage system.
[0017] As a possible implementation, the ZQ calibration unit may also be used to perform ZQ calibration on the terminal resistor and the drive resistor when the memory is first powered on, so as to calibrate the resistance values of the drive resistor and the terminal resistor to the reference resistance value. By performing ZQ calibration on the terminal resistor and the drive resistor when the memory controller or memory chip is first powered on by the ZQ calibration unit, it is possible to ensure that the storage system including the storage control device can operate normally in the initial stage, reduce failures caused by inaccurate storage system circuit parameters, and improve the reliability and stability of the storage system.
[0018] The ZQ calibration unit can adopt different structures to perform ZQ calibration on the terminal resistance and the driving resistance. As a possible implementation method, the ZQ calibration unit may include a ZQ calibration resistor, which is respectively connected to each storage particle and the storage controller, and the resistance value of the ZQ calibration resistor is a reference resistance value; the ZQ calibration unit can also be used to: use the ZQ calibration resistor to perform ZQ calibration on the terminal resistance and / or driving resistance to calibrate the resistance values of the driving resistance and the terminal resistance to the reference resistance value.
[0019] As a possible implementation, the ZQ calibration unit may specifically include: a first ZQ calibration resistor and a second ZQ calibration resistor, the first ZQ calibration resistor being connected to the storage particles in a one-to-one correspondence, the second ZQ calibration resistor being connected to the storage controller, the resistance values of the multiple first ZQ calibration resistors and the second ZQ calibration resistors being all reference resistance values, and the ZQ calibration unit may specifically be used to perform ZQ calibration on the terminal resistor using the first ZQ calibration resistor, or to perform ZQ calibration on the driving resistor using the second ZQ calibration resistor, so as to calibrate the resistance values of the driving resistor and the terminal resistor to the reference resistance value. Performing ZQ calibration on the terminal resistor using the first ZQ calibration resistor and performing ZQ calibration on the driving resistor using the second ZQ calibration resistor can improve the reliability and stability of the storage system, and adopting a variety of different ZQ calibration structures can flexibly adapt to different storage systems and application scenarios.
[0020] As a possible implementation, the storage control device may further include multiple storage chips. That is, the multiple storage chips may be integrated within the storage control device or placed outside the storage control device, without affecting the temperature detection unit's ability to detect the temperature of the storage controller or any of the storage chips, or the voltage detection unit's ability to detect the supply voltage of the storage controller or any of the storage chips.
[0021] As a possible implementation, the storage particles may include but are not limited to at least one of the following types: NAND Flash, NOR Flash, Resistive RAM, Phase Change RAM, and Ferroelectric RAM.
[0022] As a possible implementation, the ZQ calibration unit is further configured to calibrate the drive resistor and the terminal resistor to a reference resistance value when the supply voltage of the memory chip and / or the supply voltage of the memory controller returns to within a set voltage range. This achieves impedance matching, thereby improving the performance and stability of the storage system.
[0023] In a second aspect, the present application provides a storage control method, which is applied to a storage system including storage particles or a storage controller, wherein the interface circuit of the storage controller includes a driving resistor, and the interface circuit of the storage particles includes a terminal resistor; the method includes: detecting the operating temperature of the storage particles and detecting the operating temperature of the storage controller; detecting the power supply voltage of the storage particles and detecting the power supply voltage of the storage controller; when the change amplitude of the operating temperature of the storage particles and / or the change amplitude of the operating temperature of the storage controller exceeds a set amplitude threshold, calibrating the resistance value of the driving resistor and each terminal resistor to a reference resistance value; when the power supply voltage of the storage particles and / or the power supply voltage of the storage controller changes to outside the set voltage range, calibrating the resistance value of the driving resistor and the terminal resistor to the reference resistance value.
[0024] The above method monitors the operating temperature and power supply voltage of the storage particles and the storage controller, and calibrates the resistance values of the driving resistor and the terminal resistor to the reference resistance value when the change amplitude of the operating temperature of the storage particles and / or the change amplitude of the operating temperature of the storage controller exceeds the set amplitude threshold, and / or when the power supply voltage of the storage particles and / or the power supply voltage of the storage controller changes to outside the set voltage range, thereby achieving impedance matching between the storage particles and the storage controller, ensuring that the storage system can maintain good performance and stability under different working conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] FIG1 is a structural schematic diagram of a storage control device provided by the present application;
[0026] FIG2 is a second structural diagram of a storage control device provided by the present application;
[0027] FIG3 is a third structural diagram of a storage control device provided by the present application;
[0028] FIG4 is a fourth structural diagram of a storage control device provided by the present application;
[0029] FIG5 is a timing diagram of the ZQ calibration process;
[0030] FIG6A is a schematic diagram of the structure of a ZQ calibration resistor;
[0031] FIG6B is a second structural diagram of a ZQ calibration resistor;
[0032] FIG7A is a timing diagram of the process of performing ZQ calibration by sharing a calibration resistor between a memory controller and memory chips;
[0033] FIG7B is a timing diagram of the process of performing ZQ calibration on the memory controller and the memory chip using independent calibration resistors;
[0034] FIG8 is a complete flow chart of the storage control device performing ZQ calibration. DETAILED DESCRIPTION
[0035] Below, some of the terms involved in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
[0036] (1) ZQ calibration: In a circuit, if the characteristic impedance of the transmission medium does not match the impedance of the transmission line, signal reflection will occur. The reflected signal will return to the source end and superimpose on the original signal, causing signal interference and distortion. This distortion will lead to reduced signal transmission quality or even complete inability to receive signals. The present application solution suppresses reflections during signal transmission by setting terminal resistors on the storage particles and storage controller, thereby achieving impedance matching.
[0037] (2) Impedance matching refers to adjusting the impedance in the circuit so that the impedance between different circuits is equal, thereby achieving maximum power transmission and minimum reflection of signal transmission. In this application, since there is a transmission line between the storage particles and the storage controller, their characteristic impedance may be different, which will cause signal reflection, attenuation and distortion, thereby affecting the performance of the memory. By matching the resistance in the storage particles and the storage controller interface circuit, the signal can obtain maximum transmission power, while also reducing signal reflection and distortion, ensuring the high performance and reliability of the storage system.
[0038] (3) Memory particles, usually composed of one or more transistors and capacitors connected to them, are used to store information in binary form. Each memory particle has a unique address, allowing the computer to quickly access and operate the data stored in it.
[0039] (4) The open NAND flash interface (ONFi) is a standard interface specification jointly launched by multiple memory manufacturers. Its purpose is to provide a universal, standardized NAND flash memory interface for memory. The ONFi interface specification defines the electrical characteristics, signaling transmission protocol, command set, flash memory unit organization, and other aspects between the memory and the host, making the design and development of the memory and host easier and more efficient.
[0040] (5) Terminal resistance is a resistor used to suppress signal reflection and ensure signal integrity. In digital signal transmission, signals are transmitted through transmission lines and interfaces. When the signal passes through the transmission medium, if the characteristic impedance of the medium does not match the impedance of the transmission line, signal reflection will occur. These reflected signals will return to the source end and superimpose on the original signal, causing signal interference and distortion. To avoid this signal reflection, terminal resistance is placed at the end of the transmission line. The resistance value of the terminal resistance should be equal to the characteristic impedance of the transmission line to ensure that the signal can be transmitted normally in the transmission line. The terminal resistance is generally implemented as a resistor or a resistance element on an integrated circuit.
[0041] (6) Driving resistance refers to the resistance value at the output end when the storage controller outputs a signal. When a signal is output from one circuit to another, a certain resistance is generated at the output end. This resistance is the driving resistance.
[0042] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be understood as being limited to the embodiments set forth herein; on the contrary, these embodiments are provided to make the present application more comprehensive and complete, and to fully convey the concepts of the example embodiments to those skilled in the art. The same figure marks in the figures represent the same or similar structures, and thus their repeated descriptions will be omitted. The words expressing position and direction described in this application are all explained using the accompanying drawings as examples, but changes can be made as needed, and all changes are included in the scope of protection of this application. The drawings in this application are only used to illustrate relative position relationships and do not represent true proportions.
[0043] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings. The specific operating methods in the method embodiments can also be applied to device embodiments or system embodiments. It should be noted that in the description of the present application, "at least one" refers to one or more, wherein multiple refers to two or more. In view of this, "multiple" can also be understood as "at least two" in the embodiments of the present invention. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / ", unless otherwise specified, generally indicates that the previous and next associated objects are in an "or" relationship. In addition, it should be understood that in the description of the present application, words such as "first" and "second" are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0044] It should be noted that in the embodiments of the present application, "connection" refers to electrical connection, and the connection between two electrical components can be a direct or indirect connection between the two electrical components. For example, the connection between A and B can be either a direct connection between A and B, or an indirect connection between A and B through one or more other electrical components. For example, the connection between A and B can also be a direct connection between A and C, and C and B can be directly connected, with A and B connected through C.
[0045] By reducing the read and write voltage of the storage device when executing read and write instructions, the read and write rate of the storage device can be increased, and in high-speed input / output systems, ensuring signal integrity is a key issue that must be considered. The communication between the storage controller and the storage particles is often affected by changes in the power supply voltage and temperature, which causes signal integrity problems. In order to solve problems such as signal distortion or misjudgment caused by impedance mismatch between the storage controller and the storage particles, the present application provides a storage control device and a storage control method, which can calibrate the resistance values of the driving resistor and the terminal resistor based on the changes in the power supply voltage and temperature of the storage particles and the storage controller, thereby achieving impedance matching, and then optimizing the performance of the storage system including the storage control device.
[0046] Referring to Figure 1, which is a structural schematic diagram of a storage control device provided in the present application, the storage control device 100 includes: a temperature detection unit 101, a voltage detection unit 102, a storage controller 103 and an impedance ZQ calibration unit 104. The storage controller 103 is used to receive read and write instructions, which are used to indicate the storage particles to be read and written, and to perform read and write operations on the storage particles indicated by the read and write instructions according to the read and write instructions.
[0047] The interface circuit 1031 of the storage controller 103 includes a driving resistor 1032. Correspondingly, the interface circuit 1051 of the storage device 105 includes a terminal resistor 1052. The driving resistor 1032 and the terminal resistor 1052 are used to achieve impedance matching between the storage device 105 and the storage controller 103. It should be noted that there can be multiple storage devices 105, and a terminal resistor 1052 can be provided on the interface circuit 1051 of each storage device 105. The storage device 105 can be provided inside or outside the storage control device 100, and this application does not limit this.
[0048] The ZQ calibration unit 104 is used to calibrate the resistance values of the driving resistor 1032 and the terminal resistor 1052 to a reference resistance value when the amplitude of the change in the operating temperature of the storage particle 105 and / or the amplitude of the change in the operating temperature of the storage controller 103 exceeds a set amplitude threshold; and / or, when the power supply voltage of the storage particle 105 and / or the power supply voltage of the storage controller 103 changes to outside the set voltage range, calibrate the resistance values of the driving resistor 1032 and the terminal resistor 1052 to a reference resistance value.
[0049] The structure of the driving resistor 1032 and the terminal resistor 1052 can be a series resistor, a parallel resistor or a voltage divider resistor, or the driving resistor 1032 and the terminal resistor 1052 can also adopt a structure such as a resistor divider or a voltage follower. In addition, in order to better adapt to different scenarios, an adjustable resistor or a programmable resistor can also be used. By calibrating the driving resistor 1032 and the terminal resistor 1052 to the reference resistance value, the impedance matching of the storage particle 105 and the storage controller 103 is achieved, avoiding problems such as signal distortion or misjudgment caused by impedance mismatch between the storage controller 103 and the storage particle 105, thereby improving the integrity of the read signal.
[0050] The read / write instructions in this application are used to indicate the storage particles 105 to be read or written. After receiving the read / write instructions, the storage controller 103 reads or writes the storage particles 105 indicated by the read / write instructions according to the read / write instructions. In some embodiments, the read / write instructions can be generated by the main processor or other external device in the storage system and transmitted to the storage controller 103, so that the storage controller 103 can perform the read / write operations of the storage system. The read / write instructions may include information such as the type of read / write operation, the address to be read / written, and the data.
[0051] The storage controller 103 can be a general-purpose central processing unit (CPU), a general-purpose processor, a digital signal processing (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, transistor logic device, hardware component or any combination thereof.
[0052] The storage particles 105 can be NOT-AND flash memory, NOT-OR flash memory, resistive random access memory (ReRAM), phase change memory (PCM), ferroelectric random access memory (FeRAM), etc., and are not specifically limited here.
[0053] The temperature detection unit 101 may include a temperature sensor and a temperature conversion circuit. Specifically, the temperature sensor is used to detect the operating temperature of the storage particles 105 and the operating temperature of the storage controller 103, and the temperature conversion circuit is used to convert the detected operating temperature into a digital signal output.
[0054] The operating temperature of the memory controller 103 and the memory particles 105 may specifically refer to the on-chip temperature or ambient temperature of the memory controller 103 and the memory particles 105, wherein if the memory controller 103 and the memory particles 105 operate in the same package structure or the same operating environment, the operating temperature of the memory particles 105 and / or the operating temperature of the memory controller 103 may be the same. The temperature detection unit 101 may perform temperature detection on either the memory controller 103 or the memory particles 105, thereby determining the operating temperature of the memory controller 103 and the memory particles 105. If the memory controller 103 and the memory particles 105 are not in the same package structure or the same operating environment, the operating temperature of the memory particles 105 and / or the operating temperature of the memory controller 103 may be different, and the temperature detection unit 101 needs to detect the operating temperature of the memory particles 105 and the operating temperature of the memory controller 103 respectively.
[0055] The voltage detection unit 102 may include a detector, a comparator and a reference voltage source. Specifically, the detector is used to detect the power supply voltage of the storage particle 105 and / or the storage controller 103, and the comparator is used to compare the power supply voltage of the storage particle 105 and / or the storage controller 103 with the size relationship of the set voltage range, so as to determine whether the power supply voltage of the storage particle 105 and / or the power supply voltage of the storage controller 103 changes to outside the set voltage range.
[0056] Similarly, if the storage controller 103 and the storage particle 105 use the same power supply, the power supply voltage of the storage particle 105 and the power supply voltage of the storage controller 103 can be the same. If the storage controller 103 and the storage particle 105 use different power supplies, the voltage detection unit 102 can respectively determine whether the power supply voltage of the storage particle 105 and / or the power supply voltage of the storage controller 103 changes to outside the set voltage range, so as to timely calibrate the resistance values of the driving resistor and the terminal resistor to the reference resistance value.
[0057] Among them, the operating temperature of the storage controller 103 and the storage particles 105 will affect the working state and performance of their circuit elements. For example, the resistance of the driving resistor 1032 will change significantly with the change of the operating temperature. At this time, the resistance value of the driving resistor 1032 is different from that of the terminal resistor 1052, making it difficult to achieve impedance matching, affecting the performance and stability of the storage system. The power supply voltage of the storage controller 103 and the storage particles 105 will also affect the working state and performance of their circuit elements. When the power supply voltage of the storage controller 103 and the storage particles 105 is too high or too low, the resistance value of the driving resistor 1032 will also change significantly, thereby affecting the performance and stability of the storage system.
[0058] Furthermore, if the storage controller 103 and the storage particles 105 are not in the same packaging structure or the same working environment, the temperature detection unit 101 can respectively detect the operating temperature of the storage particles 105 and the operating temperature of the storage controller 103, and the voltage detection unit 102 can respectively determine whether the supply voltage of the storage particles 105 and / or the supply voltage of the storage controller 103 has changed outside the set voltage range. If the temperature or voltage of one of the storage controller 103 or the storage particles 105 meets the above-mentioned change conditions, the ZQ calibration unit 104 can calibrate the drive resistor 1032 corresponding to the storage controller 103 or the terminal resistor 1052 corresponding to the storage particles 105 to the reference resistance value, thereby simplifying the calibration process and improving the processing speed of the storage system.
[0059] Because the supply voltages of the memory controller 103 and the memory cells 105 also affect the operating state and performance of their circuit components, as a possible implementation, the ZQ calibration unit 104 is further configured to calibrate the resistance values of the drive resistor 1032 and the terminal resistor 1052 to a reference resistance value when the supply voltage of the memory cells 105 and / or the supply voltage of the memory controller 103 returns to within a set voltage range. This achieves impedance matching, thereby improving the performance and stability of the memory system.
[0060] To avoid affecting the execution of read and write instructions, while the ZQ calibration unit 104 calibrates the drive resistor 1032 and the terminal resistor 1052, the memory controller 103 can continuously or uninterruptedly receive read and write instructions and, based on the instructions, continue to execute read and write operations on the memory cells 105 indicated by the instructions. This allows read and write instructions to continue executing during the ZQ calibration process, avoiding significant impacts on latency-sensitive memory systems and thus preventing additional processing delays for read and write instructions.
[0061] In a storage system, the flow rate of read and write instructions can affect the memory's performance, such as response time and energy consumption. As a possible implementation, see FIG2 , which is a second schematic diagram of the structure of a storage control device provided by this application. The ZQ calibration unit 104 includes a flow detection unit 201 for detecting the flow rate of read and write instructions received by the storage controller 103, where the flow rate is the number of read and write instructions within a set time period. The ZQ calibration unit 104 is further configured to calibrate the resistance values of the drive resistor 1032 and the terminal resistor 1052 to a reference resistance value when the flow rate of read and write instructions received by the storage controller 103 is less than a set flow threshold.
[0062] Among them, the flow detection unit 201 can be connected to the receiving buffer of the storage controller 103, and detect the read and write instruction flow by monitoring the number of read and write instructions in the receiving buffer. The flow detection unit 201 can be composed of a counter and a control logic circuit, the counter is used to record the number of read and write instructions cached in the receiving buffer, and the control logic circuit is used to control the start and stop of the counter. The flow detection unit 201 can also be connected to other functional modules of the storage controller 103, so as to start ZQ calibration when it is detected that the read and write instruction flow is less than the set flow threshold, and calibrate the resistance value of the driving resistor 1032 and the terminal resistor 1052 to the reference resistance value. The flow detection unit 201 can also communicate with other external devices through the bus interface to determine the read and write instruction flow received by the storage controller 103.
[0063] Adding a flow detection unit 201 to the storage controller 103 can realize real-time monitoring of the read and write instruction flow, effectively avoiding the adverse effects that may be caused to the performance of the storage system by performing ZQ calibration when the read and write instruction flow is high. By monitoring the read and write instruction flow, it is possible to avoid performing unnecessary ZQ calibration when the flow is large, thereby reducing the power consumption of the storage system and extending the life of the storage system. In addition, the flow detection unit 201 can also improve the reliability of the storage system and avoid system errors caused by performing unnecessary ZQ calibration. For example, the flow threshold is set to 100 per second, that is, if at a certain moment, the read and write instruction flow is less than 100 per second, the resistance values of the driving resistor 1032 and the terminal resistor 1052 can be calibrated to the reference resistance value.
[0064] Furthermore, when the amplitude of the change in the operating temperature of the storage particle 105 and / or the amplitude of the change in the operating temperature of the storage controller 103 exceeds the set amplitude threshold, and / or when the power supply voltage of the storage particle 105 and / or the power supply voltage of the storage controller 103 changes to outside the set voltage range, the size of the read and write instruction flow can be judged again. If the read and write instruction flow received by the storage controller 103 at this time is also less than the set flow threshold, the resistance value of the driving resistor 1032 and the terminal resistor 1052 can be calibrated to the reference resistance value. In this way, it can be ensured that the storage system can maintain good performance and stability under different working conditions.
[0065] In order to perform ZQ calibration in a timely manner to ensure the reliability and stability of the storage system, as a possible implementation method, refer to Figure 3, which is a structural schematic diagram of a storage control device provided by this application; the storage control device 100 may also include a flow control unit 301, which is used to control the read and write instruction flow to be reduced to below the set flow threshold when the read and write instruction flow received by the storage controller 103 is not less than the set flow threshold, and when the read and write instruction flow received by the storage controller 103 is less than the set flow threshold, calibrate the resistance value of the driving resistor 1032 and the terminal resistor 1052 to the reference resistance value.
[0066] When the read / write command flow received by the storage controller 103 is no less than a set flow threshold, the flow control unit 301 adjusts the parameters of the storage controller 103 to reduce the received read / write command flow to meet the requirements for performing ZQ calibration. By controlling the read / write command flow received by the storage controller 103, optimized management of the storage system can be achieved. This approach can effectively reduce transmission signal distortion and misjudgment, improve the performance and reliability of the storage system, and thus enhance the operational efficiency of the entire storage system.
[0067] As a possible implementation, the ZQ calibration unit 104 may also perform ZQ calibration on the terminal resistor 1052 and the drive resistor 1032 when the storage control device 100 is first powered on. The ZQ calibration unit 104 automatically detects the impedance values of the terminal resistor 1052 and the drive resistor 1032 and performs calibration based on the actual impedance values. By having the ZQ calibration unit 104 perform ZQ calibration on the terminal resistor 1052 and the drive resistor 1032 when the storage system is first powered on, it is possible to ensure that the storage system can operate normally in the initial stage, reduce the failure rate caused by inaccurate circuit parameters, and improve the reliability and stability of the storage system.
[0068] Since the ZQ calibration needs to be divided into several steps, namely, ZQ calibration execution, ZQ calibration result confirmation, and ZQ calibration result update, and the update of the ZQ calibration result will affect the execution of the read and write instructions, the ZQ calibration execution and ZQ calibration result confirmation can be performed in parallel with the read and write instructions in the background. Therefore, in order to minimize the impact on the read and write services, as a possible implementation method, refer to FIG4 , which is a schematic diagram of the structure of a storage control device provided in this application. The ZQ calibration unit 104 may also include a ZQ calibration cache unit 400, which is used to cache the resistance values of the calibrated drive resistor 1032 and the terminal resistor 1052 after the ZQ calibration unit 104 calibrates the drive resistor 1032 and the terminal resistor 1052.
[0069] That is, after performing the ZQ calibration and updating the results, the impedance values of the terminal resistor 1052 and the driving resistor 1032 obtained by calibration will be temporarily stored in the ZQ calibration cache unit 400, and will not be immediately updated to the corresponding storage controller 103 and storage particle 105. In the storage controller 103, there is a cache for storing the impedance value of the driving resistor 1032, and in each storage particle 105, there is a cache for storing the impedance value of the terminal resistor 1052. The storage controller 103 decides when to update the impedance value of the terminal resistor 1052 and the impedance value of the driving resistor 1032 cached in the ZQ calibration cache unit 400 to the cache of the storage particle 105 or to the corresponding cache of the storage controller 103 itself according to different working scenarios. The storage controller 103 can perform the update operation in stages according to the execution status of the read and write instructions. For example, when the read and write instruction traffic is low or during the idle time of executing read and write instructions, the impedance value of the terminal resistor 1052 and the impedance value of the driving resistor 1032 cached in the ZQ calibration cache unit 400 are updated to the cache of the storage particle 105 or updated to the corresponding cache of the storage controller 103 itself, so as to minimize the impact on the execution of read and write instructions and realize a non-sensing ZQ calibration operation.
[0070] Refer to Figure 5, which is a process timing diagram of ZQ calibration. It can be seen from Figure 5 that in order to reduce the impact of the calibration value update of ZQ calibration on the execution of read and write instructions, during the idle time when the storage controller 103 executes the read and write instructions, the impedance value of the terminal resistor 1052 stored in the ZQ calibration cache unit 400 is updated to the cache of the at least one storage particle 105, and the impedance value of the driving resistor 1032 stored in the ZQ calibration cache unit 400 is updated to the cache of the storage controller 103.
[0071] The idle time of the read and write instructions may include but is not limited to the state of CE_OFF or NOP. Among them, CE_OFF means turning off the enable signal of the storage particle 105 to avoid being affected by unnecessary read and write interference. Specifically, when the storage controller 103 needs to stop the read and write operations on the storage particle 105, a CE_OFF signal will be sent to turn off the enable of the storage particle 105. When the storage controller 103 needs to wait for a period of time or needs to keep the state of the data bus unchanged when there is no actual read and write operation, a NOP signal will be sent to inform the storage particle 105 that no operation needs to be performed. The NOP signal is usually used to indicate that the storage controller 103 needs to wait for a certain time interval or needs to keep the state of the data bus unchanged when there is no actual read and write operation. In this way, during the idle time of the read and write instructions, the impedance value of the terminal resistor 1052 or the impedance value of the driving resistor 1032 can be updated, thereby not affecting the execution of the read and write instructions and improving the operating efficiency of the entire storage system.
[0072] The ZQ calibration unit 104 can use two different structures to perform ZQ calibration on the terminal resistor 1052 and the drive resistor 1032. Referring to FIG6A , FIG6A is a schematic diagram of a ZQ calibration resistor structure. In the first structure, the ZQ calibration unit 104 includes a ZQ calibration resistor 601, which is connected to each memory cell 105 and the memory controller 103. The ZQ calibration resistor 601 is used to perform ZQ calibration on the terminal resistor 1052 and / or the drive resistor 1032. The resistance value of the ZQ calibration resistor 601 is a reference resistance value. In this structure, the memory controller 103 and the memory cell 105 share a ZQ calibration resistor. Referring to FIG. 6B , FIG. 6B is a second schematic diagram of a ZQ calibration resistor structure. In the second structure, the ZQ calibration unit 104 includes a first ZQ calibration resistor 602 and a second ZQ calibration resistor 603, wherein the first ZQ calibration resistor 602 is connected to each memory cell 105 in a one-to-one correspondence, and the second ZQ calibration resistor 603 is connected to the memory controller 103. The first ZQ calibration resistor 602 is used to perform ZQ calibration on at least one terminal resistor 1052, or the second ZQ calibration resistor 603 is used to perform ZQ calibration on the drive resistor 1032. The resistance values of the multiple first ZQ calibration resistors and the second ZQ calibration resistors are all reference resistance values. For example, the first ZQ calibration resistor 602 and the second ZQ calibration resistor 603 can be high-precision reference resistors, and the resistance value can be 300 ohms.
[0073] By performing ZQ calibration on the terminal resistor 1052 and the drive resistor 1032, the reliability and stability of the storage control device 100 can be improved. Using a variety of different ZQ calibration structures can flexibly adapt to different storage control device 100 structures and application scenarios, increasing the selectivity of the storage control device 100. Using independent ZQ calibration resistors can reduce interference between different storage control devices 100 and improve the overall performance and stability of the storage system. By selecting internal or external ZQ calibration resistors and grouping them according to actual needs, different configurations can be achieved, improving the scalability and adaptability of the storage control device 100.
[0074] FIG7A shows a timing diagram of a process in which the memory controller and memory cells share a calibration resistor for ZQ calibration. If the memory controller 103 and the memory cells 105 share a ZQ calibration resistor, the ZQ calibration unit 104 will use the ZQ calibration resistor to perform ZQ calibration on the memory controller 103 during the idle time of executing read and write instructions, and then use the ZQ calibration resistor to perform ZQ calibration operations on each memory cell 105 in sequence during the idle time of executing read and write instructions. FIG7B shows a timing diagram of a process in which the memory controller and memory cells use independent calibration resistors for ZQ calibration. The memory cell 105 uses the corresponding first ZQ calibration resistor 602 for ZQ calibration, and the memory controller 103 uses the second ZQ calibration resistor 603 for ZQ calibration. Therefore, the ZQ calibration process performed by the memory controller 103 and the memory cell 105 can be performed simultaneously or in a time-sharing manner.
[0075] Refer to FIG8 , which is a complete flow chart of the ZQ calibration performed by the storage control device provided by this application. This method can be applied to the storage control device shown in FIG1 to FIG7B above or a storage system including the storage control device and storage particles. Specifically, it includes:
[0076] In step S801, when the storage system is initially powered on, the ZQ calibration unit 104 performs ZQ calibration on the terminal resistor 1052 and the drive resistor 1032. The ZQ calibration unit 104 automatically detects the impedance values of the terminal resistor 1052 and the drive resistor 1032 and performs calibration based on the actual impedance values. By performing ZQ calibration on the terminal resistor 1052 and the drive resistor 1032 when the storage control device 100 is initially powered on, the ZQ calibration unit 104 ensures that the storage system including the storage control device 100 can function properly during the initial phase.
[0077] In step S802, the impedance value of the terminal resistor 1052 is updated in the corresponding buffer of the storage device 105, and the impedance value of the driving resistor 1032 is updated in the buffer of the storage controller 103. The ZQ calibration unit 104 performs ZQ calibration on the terminal resistor 1052 and the driving resistor 1032 when the storage system is first powered on, thereby reducing the storage system transmission rate drop caused by impedance mismatch between the storage controller 103 and the storage device 105.
[0078] In step S803 , the storage controller 103 receives and executes the read / write instruction. According to the read / write instruction, the storage controller 103 reads and writes the storage granule 105 indicated by the read / write instruction.
[0079] In step S804, the temperature detection unit 101 detects the operating temperature of the storage chip 105 and the operating temperature of the storage controller 103, the voltage detection unit 102 detects the supply voltage of the storage chip 105 and the supply voltage of the storage controller 103, and the flow detection unit 201 detects the read and write instruction flow received by the storage controller 103. By monitoring the operating temperature, supply voltage, and read and write instruction flow by these detection units, it is possible to ensure that the storage system including the storage control device 100 can maintain good performance and stability under different operating conditions.
[0080] Step S805, when the change amplitude of the operating temperature of the storage particle 105 and / or the change amplitude of the operating temperature of the storage controller 103 exceeds the set amplitude threshold, and / or when the power supply voltage of the storage particle 105 and / or the power supply voltage of the storage controller 103 changes to outside the set voltage range, execute step S806.
[0081] Step S806 determines whether the read / write command flow rate received by the storage controller 103 is less than a set flow rate threshold. If so, ZQ calibration is performed on the terminal resistor 1052 and / or the drive resistor 1032. During the ZQ calibration process, the storage controller 103 continues to execute read / write commands. Otherwise, step S807 is executed. If the read / write command flow rate received by the storage controller 103 is not less than the set flow rate threshold, the storage controller 103 determines the current read / write command flow rate and adjusts its parameters to reduce the received read / write command flow rate to meet the requirements for performing the ZQ calibration.
[0082] In step S807, the read and write command flow rate received by the storage controller 103 is reduced, and step S806 is executed again. By controlling the read and write command flow rate received by the storage controller and performing ZQ calibration, the storage controller 103 continuously receives read and write commands and, based on the commands, continues to execute read and write operations on the storage granules 105 indicated by the commands. This allows for optimized management of the storage system. This method can effectively reduce distortion and errors in transmitted signals, improve the performance and reliability of the storage system, and thus enhance the operational efficiency of the storage system.
[0083] In step S808 , after the storage control device 100 performs the ZQ calibration, the ZQ calibration cache unit 400 caches the resistance value corresponding to at least one terminal resistor 1052 and / or the driving resistor 1032 .
[0084] In step S809, the storage controller 103 monitors the idle time of read and write instructions. During the idle time of executing read and write instructions, the impedance value of the terminal resistor 1052 stored in the ZQ calibration cache unit 400 is updated to the cache of the storage cell 105, and the impedance value of the driving resistor 1032 stored in the ZQ calibration cache unit 400 is updated to the cache of the storage controller 103. When the read and write instruction flow is low or during the idle time of executing read and write instructions, the impedance value of the terminal resistor 105 and the impedance value of the driving resistor 103 cached in the ZQ calibration cache unit 400 are updated to the corresponding storage controller 103 and storage cell 105. This can minimize the impact of the ZQ calibration process on the execution of read and write instructions and achieve a non-sensing ZQ calibration operation.
[0085] In step S810 , the storage control device 100 continues to receive and execute read and write instructions.
[0086] The temperature detection unit monitors the operating temperature of the memory chips and the memory controller, and the voltage detection unit monitors the supply voltage of the memory chips and the memory controller. When the change in the operating temperature of the memory chips and / or the memory controller exceeds a set threshold, or when the supply voltage of the memory chips and / or the memory controller falls outside a set voltage range, the resistance values of the driving resistor and the terminal resistor are calibrated to a reference resistance value. This achieves impedance matching between the memory controller and the memory chips, ensuring that the memory maintains good performance and stability under different operating conditions.
[0087] In addition, when the read-write instruction flow is less than the set flow threshold, ZQ calibration is performed to ensure the power supply stability of the storage system's power supply and improve the accuracy of the ZQ calibration results. By controlling the read-write instruction flow and performing the impedance value update during the idle time of executing the read-write instructions, a non-sensing ZQ calibration operation can be achieved without affecting the execution of the read-write instructions. Completing the update of the terminal resistance impedance value or the driving resistance impedance value during the idle time of executing the read-write instructions can minimize the impact on the execution of the read-write instructions. In summary, the structure of the storage control device and the storage control method provided by the present application can effectively optimize the management of the storage system, improve the performance and reliability of the storage system, and further improve the operating efficiency of the storage system.
[0088] Based on the same concept, the present application also provides a storage control method, which is applied to a storage system including storage particles or a storage controller, wherein the interface circuit of the storage controller includes a driving resistor, and the interface circuit of the storage particle includes a terminal resistor; the method includes: detecting the operating temperature of each storage particle and detecting the operating temperature of the storage controller; detecting the power supply voltage of each storage particle and detecting the power supply voltage of the storage controller; when the change amplitude of the operating temperature of the storage particle and / or the change amplitude of the operating temperature of the storage controller exceeds a set amplitude threshold, calibrating the resistance value of the driving resistor and each terminal resistor to a reference resistance value; and / or, when the power supply voltage of the storage particle and / or the power supply voltage of the storage controller changes to outside the set voltage range, calibrating the resistance value of the driving resistor and the terminal resistor to the reference resistance value.
[0089] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0090] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each flow and / or box in the flow chart and / or block diagram, as well as the combination of the flow chart and / or box in the flow chart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more flow charts and / or one or more boxes in the block diagram.
[0091] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0092] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0093] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A storage control device, characterized in that: include: Storage controller, impedance ZQ calibration unit, temperature detection unit and voltage detection unit; The storage controller is used to receive a read / write instruction, the read / write instruction is used to indicate the storage particles to be read / written, and perform a read / write operation on the storage particles indicated by the read / write instruction according to the read / write instruction; Wherein, the interface circuit of the storage controller includes a driving resistor, and the interface circuit of the storage particle includes a terminal resistor; The temperature detection unit is used to detect the operating temperature of the storage particles and the operating temperature of the storage controller; The voltage detection unit is used to detect the power supply voltage of the storage particle and the power supply voltage of the storage controller; The ZQ calibration unit is used to calibrate the resistance values of the driving resistor and the terminal resistor to a reference resistance value when the change amplitude of the operating temperature of the storage particle and / or the change amplitude of the operating temperature of the storage controller exceeds a set amplitude threshold; and / or, when the power supply voltage of the storage particle and / or the power supply voltage of the storage controller changes to outside a set voltage range, calibrate the resistance values of the driving resistor and the terminal resistor to a reference resistance value.
2. The storage control device according to claim 1, characterized in that: When the ZQ calibration unit calibrates the driving resistor and the terminal resistor, the storage controller continuously receives read and write instructions, and according to the read and write instructions, keeps performing read and write operations on the storage particles indicated by the read and write instructions.
3. The storage control device according to claim 1 or 2, characterized in that: The storage control device further includes: a flow detection unit, used to detect the read and write instruction flow received by the storage controller, the read and write instruction flow being the number of the read and write instructions within a set period of time; The ZQ calibration unit is further used to calibrate the resistance values of the driving resistor and the terminal resistor to the reference resistance value when the read and write instruction flow received by the storage controller is less than a set flow threshold.
4. The storage control device according to claim 3, characterized in that: The storage control device further includes: a flow control unit, which is used to control the read and write instruction flow to be below the set flow threshold when the read and write instruction flow received by the storage controller is not less than the set flow threshold.
5. The storage control device according to any one of claims 1 to 4, characterized in that: The storage control device further includes: a ZQ calibration cache unit, configured to cache the calibrated resistance values of the driving resistor and the terminal resistor after the impedance ZQ calibration unit calibrates the driving resistor and the terminal resistor.
6. The storage control device according to claim 5, characterized in that: The ZQ calibration unit is also used to: during the idle time when the storage controller executes read and write instructions, update the resistance value of the terminal resistor cached by the ZQ calibration cache unit to the cache corresponding to the storage particle, and update the resistance value of the driving resistor cached by the ZQ calibration cache unit to the cache corresponding to the storage controller.
7. The storage control device according to any one of claims 1 to 6, characterized in that: The ZQ calibration unit is further used to calibrate the resistance values of the driving resistor and the terminal resistor to the reference resistance value when the storage controller or the storage chip is powered on for the first time.
8. The storage control device according to any one of claims 1 to 7, characterized in that: The ZQ calibration unit includes a ZQ calibration resistor, the ZQ calibration resistor is connected to the storage particle and the storage controller respectively, and the resistance value of the ZQ calibration resistor is the reference resistance value; The ZQ calibration unit is further used to: use the ZQ calibration resistor to calibrate the resistance values of the driving resistor and the terminal resistor to the reference resistance value.
9. The storage control device according to any one of claims 1 to 7, characterized in that: The ZQ calibration unit includes a plurality of first ZQ calibration resistors and a second ZQ calibration resistor, each of the first ZQ calibration resistors is connected to a different storage particle in a one-to-one correspondence, the second ZQ calibration resistor is connected to the storage controller, and the resistance values of the plurality of first ZQ calibration resistors and the second ZQ calibration resistors are both the reference resistance value; The ZQ calibration unit is further configured to: calibrate the corresponding terminal resistance to a reference resistance value using a plurality of first ZQ calibration resistors, and calibrate the driving resistance to a reference resistance value using the second ZQ calibration resistors.
10. The storage control device according to any one of claims 1 to 9, characterized in that: The storage control device also includes a plurality of the storage particles.
11. The storage control device according to any one of claims 1 to 10, characterized in that: The storage particles include at least one of the following types: NAND Flash, NOR Flash, Resistive RAM, Phase Change RAM, PCM and Ferroelectric RAM.
12. The storage control device according to any one of claims 1 to 11, characterized in that: The ZQ calibration unit is further used to calibrate the resistance values of the driving resistor and the terminal resistor to a reference resistance value when the power supply voltage of the storage particle and / or the power supply voltage of the storage controller returns to within the set voltage range.
13. A storage control method, characterized in that: Applied to a storage system including a storage particle and a storage controller, the interface circuit of the storage controller includes a driving resistor, and the interface circuit of the storage particle includes a terminal resistor; the method includes: Detecting the operating temperature of the storage particles and detecting the operating temperature of the storage controller; Detecting the power supply voltage of the storage particles and detecting the power supply voltage of the storage controller; When the change amplitude of the operating temperature of the storage particle and / or the change amplitude of the operating temperature of the storage controller exceeds a set amplitude threshold, the resistance value of the driving resistor and each terminal resistor is calibrated to a reference resistance value; and / or, when the power supply voltage of the storage particle and / or the power supply voltage of the storage controller changes to outside a set voltage range, the resistance value of the driving resistor and the terminal resistor is calibrated to a reference resistance value.
Citation Information
Patent Citations
ZQ calibration controller applied to semiconductor memory
CN107393577A
Be applied to semiconductor memory's ZQ calibration control
CN207052298U
Calibrating I / O impedances using estimation of memory die temperature
US10062453B1
Memory system having impedance calibration circuit
US20190080784A1
Cited By
Test system and test method of memory
CN119694382A
