A signal quality adjustment method, apparatus, solid-state drive, and medium

By monitoring and adjusting the input/output operations of the solid-state drive channels and properly enabling the NTODT function, the bandwidth occupation problem caused by improper NTODT function enabling was resolved, improving bandwidth utilization and signal quality, and enhancing hard drive efficiency.

CN117573028BActive Publication Date: 2026-11-17SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311537124.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-17
Publication Date
2026-11-17
Estimated Expiration
2043-11-17

AI Technical Summary

Technical Problem

An improperly enabled NTODT function in a solid-state drive (SSD) can lead to bandwidth being occupied and reduced bandwidth utilization.

Method used

By monitoring the input and output operations of each channel to the flash memory chip, abnormal channels are identified, and the non-target chip termination resistance values ​​of the chip enable pin and the peer chip enable pin are obtained. The resistance values ​​are adjusted according to the preset step size to adjust the signal quality and enable the NTODT function appropriately.

Benefits of technology

It improves bandwidth utilization, enhances signal quality within the channel, and increases the efficiency of the solid-state drive.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117573028B_ABST
    Figure CN117573028B_ABST
Patent Text Reader

Abstract

This invention discloses a signal quality adjustment method, apparatus, solid-state drive (SSD), and medium, relating to the field of SSD storage. The solution monitors the input / output operations corresponding to each channel within the SSD to identify abnormal channels with anomalous input / output operations. These anomalous operations are used as conditions to enable the NTODT function within the channel, thereby achieving proper activation of the NTODT function and improving bandwidth utilization. Simultaneously, by adjusting the NTODT value of the enable pin of the peer chip within the abnormal channel, the signal quality of the abnormal channel is adjusted, improving the signal quality within the channel and enhancing the operating efficiency of the SSD.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of solid-state drive (SSD) storage, and in particular to a signal quality adjustment method, apparatus, SSD, and medium. Background Technology

[0002] During the operation of a Solid State Disk (SSD), the signal quality of each channel between its controller chip, physical layer (PHY), and NAND flash memory chips affects the efficiency of SSD read and write operations. On-Die Termination (ODT) and Non-Target On-Die Termination (NTODT) are two different methods for adjusting the signal quality within a channel. Compared to ODT, NTODT significantly improves the signal quality within a channel at high frequencies.

[0003] In practice, due to differences in signal quality across different channels, some channels do not actually require the NTODT function to be enabled. However, currently, during read and write operations to the flash memory chip through these channels, each read / write command carries a command to enable or disable the NTODT function. This results in a portion of the SSD's bandwidth being occupied, reducing bandwidth utilization.

[0004] Given the above issues, how to resolve the unreasonable way the NTODT function is enabled in current solid-state drives, which leads to bandwidth occupation and reduced bandwidth utilization, is an urgent problem for technicians in this field. Summary of the Invention

[0005] The purpose of this invention is to provide a signal quality adjustment method, device, solid-state drive, and medium to solve the problem that the current NTODT function in solid-state drives is not enabled properly, resulting in bandwidth occupation and reduced bandwidth utilization.

[0006] To solve the above-mentioned technical problems, the present invention provides a signal quality adjustment method, comprising:

[0007] Monitor the input / output operations of each channel to the flash memory chip;

[0008] Determine whether the input / output operation corresponding to each channel is normal;

[0009] If not, then identify the abnormal channel where the input / output operation is abnormal;

[0010] Obtain the chip enable pin corresponding to the abnormal channel, and obtain the peer chip enable pin corresponding to the chip enable pin;

[0011] Obtain the non-target chip termination resistance value of the peer chip enable pin based on the input / output operation;

[0012] Adjust the non-target chip termination resistance value according to a preset step size to adjust the signal quality of the abnormal channel.

[0013] On one hand, adjusting the non-target chip termination resistance value according to a preset step size includes:

[0014] The current non-target chip termination resistance value is increased according to the preset step size to obtain a new non-target chip termination resistance value;

[0015] Determine whether the input / output operations of the abnormal channel are normal;

[0016] If not, the new non-target chip termination resistance value is used as the current non-target chip termination resistance value, and the process returns to the step of increasing the current non-target chip termination resistance value according to the preset step size.

[0017] If so, the process ends, completing the signal quality adjustment for the abnormal channel.

[0018] On the other hand, after confirming that the input / output operation of the abnormal channel is abnormal, the method further includes:

[0019] Determine whether the current non-target chip terminal resistance value has reached the preset resistance value;

[0020] If not, proceed to the step of using the new non-target chip termination resistance value as the current non-target chip termination resistance value.

[0021] If so, the number of enable pins of the peer chip is increased by setting the feature function to obtain a new peer chip enable pin corresponding to the chip enable pin;

[0022] The non-target chip terminal resistance value corresponding to the enable pin of each of the peer chips based on the input / output operation is cleared to zero.

[0023] Return to the step of increasing the current non-target chip termination resistance value according to the preset step size, so as to increase the termination resistance value of each non-target chip respectively.

[0024] On the other hand, after increasing the number of enable pins of the peer chip by setting the feature function, the method further includes:

[0025] Determine whether the number of enable pins of the peer chip is greater than a preset number;

[0026] If so, stop adjusting the signal quality of the abnormal channel and output an alarm message.

[0027] On the other hand, when the input / output operation is a write operation, adjusting the non-target chip termination resistor value according to a preset step size includes:

[0028] The current non-target chip termination resistance value is increased according to the preset step size to obtain a new non-target chip termination resistance value;

[0029] Determine whether the write operation on the abnormal channel is normal;

[0030] If not, the new non-target chip termination resistance value is used as the current non-target chip termination resistance value, and the process returns to the step of increasing the current non-target chip termination resistance value according to the preset step size.

[0031] If so, then the process ends, completing the signal quality adjustment for the abnormal channel;

[0032] Correspondingly, when the input / output operation is a read operation, adjusting the non-target chip termination resistor value according to a preset step size includes:

[0033] The current non-target chip termination resistance value is increased according to the preset step size to obtain a new non-target chip termination resistance value;

[0034] Determine whether the read operation of the abnormal channel is normal;

[0035] If not, the new non-target chip termination resistance value is used as the current non-target chip termination resistance value, and the process returns to the step of increasing the current non-target chip termination resistance value according to the preset step size.

[0036] If so, the process ends, completing the signal quality adjustment for the abnormal channel.

[0037] On the other hand, when the input / output operation is a read operation, after confirming that the read operation corresponding to the channel is abnormal, the method further includes:

[0038] The read operation will be retried.

[0039] Determine whether the number of retry attempts exceeds the preset number of retries;

[0040] If not, return to the step of retrying the read operation;

[0041] If so, proceed to the step of determining the abnormal channel of the input / output operation.

[0042] On the other hand, before monitoring the input / output operations of each channel to the flash memory chip, the method further includes:

[0043] Initialize the chip termination resistance value corresponding to the chip enable pin of each of the channels;

[0044] According to the type of the flash memory chip, assign the corresponding peer chip enable pin to the enable pin of each chip in each channel;

[0045] The corresponding chip enable pins and the peer chip enable pins are located in the same channel.

[0046] To address the aforementioned technical problems, the present invention also provides a signal quality adjustment device, comprising:

[0047] The monitoring module is used to monitor the input and output operations of each channel to the flash memory chip;

[0048] The judgment module is used to determine whether the input / output operation corresponding to each channel is normal; if not, the determination module is triggered.

[0049] The determining module is used to determine the abnormal channel of the abnormal input / output operation;

[0050] The first acquisition module is used to acquire the chip enable pin corresponding to the abnormal channel and acquire the peer chip enable pin corresponding to the chip enable pin.

[0051] The second acquisition module is used to acquire the non-target chip termination resistance value of the enable pin of the peer chip based on the input / output operation;

[0052] The adjustment module is used to adjust the terminal resistance value of the non-target chip according to a preset step size, so as to adjust the signal quality of the abnormal channel.

[0053] To address the aforementioned technical problems, the present invention also provides a solid-state drive, comprising:

[0054] Flash memory chips are used to store computer programs;

[0055] The main control chip is used to implement the above-described signal quality adjustment method when executing the computer program.

[0056] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the signal quality adjustment method described above.

[0057] The signal quality adjustment method provided by this invention monitors the input / output operations of each channel to the flash memory chip; determines whether the input / output operations corresponding to each channel are normal; if not, identifies the abnormal channel with abnormal input / output operations; obtains the chip enable pin corresponding to the abnormal channel and the peer chip enable pin corresponding to the chip enable pin; obtains the non-target chip termination resistance value of the peer chip enable pin based on the input / output operations; and adjusts the non-target chip termination resistance value according to a preset step size to adjust the signal quality of the abnormal channel. The beneficial effects of this invention are that by monitoring the input / output operations corresponding to each channel within the solid-state drive, abnormal channels with abnormal input / output operations are identified, and the abnormal input / output operations are used as a condition for enabling the NTODT function within the channel, thereby achieving reasonable activation of the NTODT function and improving bandwidth utilization; simultaneously, by adjusting the NTODT value of the peer chip enable pin within the abnormal channel, the signal quality of the abnormal channel is adjusted, improving the signal quality within the channel and increasing the working efficiency of the solid-state drive.

[0058] In addition, the present invention also provides a signal quality adjustment device, a solid-state drive and a medium, with the same effect as above. Attached Figure Description

[0059] To more clearly illustrate the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0060] Figure 1 A flowchart of a signal quality adjustment method provided in an embodiment of the present invention;

[0061] Figure 2 This is a schematic diagram of a signal quality adjustment device provided in an embodiment of the present invention;

[0062] Figure 3 This is a schematic diagram of a solid-state drive provided in an embodiment of the present invention. Detailed Implementation

[0063] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present invention.

[0064] The core of this invention is to provide a signal quality adjustment method, device, solid-state drive, and medium to solve the problem that the current NTODT function in solid-state drives is not enabled properly, resulting in bandwidth occupation and reduced bandwidth utilization.

[0065] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0066] During solid-state drive (SSD) operation, the signal quality between its controller chip, physical layer ports, and flash memory chips significantly impacts the efficiency of read and write operations. Adjusting the signal quality between these three components has always been a key focus for developers.

[0067] Currently, flash memory chips have many functions for adjusting and enhancing signals, such as data training, ZQ calibration, and ODT and NTODT functions. Specifically, ODT and NTODT functions enhance or reduce signal strength by adjusting the resistance value in the NAND flash memory chip. The implementation of ODT is relatively simple; during flash memory chip initialization, the chip enable pin (CE) on each channel is set to an appropriate resistance value using the set feature function, ensuring the solid-state drive operates according to this configuration throughout subsequent operation. The NTODT function, however, requires not only setting the current CE but also assigning other CEs on the same channel as its counterparts, further enhancing the signal quality of the current CE by changing the resistance value of the counterpart CEs.

[0068] While NTODT significantly improves signal quality within a channel at high frequencies, in practice, due to differences in signal quality across different channels, some channels do not actually require NTODT to be enabled. However, currently, during read / write operations to the flash memory chip via channels, each read / write command carries a command to enable or disable NTODT, resulting in a portion of the SSD's bandwidth being occupied and reducing bandwidth utilization.

[0069] In view of the above problems, the present invention provides a signal quality adjustment method, which aims to solve the problem that the current NTODT function is not enabled in a reasonable way, resulting in bandwidth occupation and reduced bandwidth utilization.

[0070] Figure 1 This is a flowchart illustrating a signal quality adjustment method provided in an embodiment of the present invention. Figure 1 As shown, the method includes:

[0071] S10: Monitors the input / output operations of each channel to the flash memory chip.

[0072] Specifically, during the operation of a solid-state drive (SSD), the input / output operations of each channel to the flash memory chips are monitored. As can be understood, input / output operations include read and write operations. Monitoring the input / output operations within each channel is primarily to check whether the signal quality of each channel is normal.

[0073] S11: Determine whether the input / output operation corresponding to each channel is normal; if not, proceed to step S12; if yes, return to step S10.

[0074] S12: Identify abnormal channels where input / output operations are abnormal.

[0075] Further, based on the status indicators of the flash memory chip, determine whether the input / output operations corresponding to each channel are normal. When the flash memory chip status indicates an abnormality, it is considered that there is a channel with abnormal input / output operations among all channels, and the signal quality of this channel is poor. It is necessary to identify the abnormal channel with abnormal input / output operations so as to improve its signal quality in subsequent steps. When the flash memory chip status remains normal, it is considered that the input / output operations in all channels are normal and the channel signal quality is normal. The process can then return to step S10 to continue monitoring the input / output operations of each channel to the flash memory chip.

[0076] S13: Obtain the chip enable pin corresponding to the abnormal channel, and obtain the peer chip enable pin corresponding to the chip enable pin.

[0077] To improve the signal quality of the abnormal channel, the NTODT function needs to be enabled for the abnormal channel in this embodiment. Specifically, the enable pin of the chip corresponding to the abnormal channel is obtained, and the enable pin of the peer chip corresponding to the enable pin of the chip is also obtained.

[0078] It is understandable that multiple chip enable pins exist within the abnormal channel. When activating the NTODT function, one of these chip enable pins can be selected based on experience. Simultaneously, each chip enable pin within the abnormal channel has a corresponding peer chip enable pin, and the number of peer chip enable pins can be multiple. When a chip enable pin is determined, its peer chip enable pin can also be selected based on experience; this is not limited in this embodiment but depends on the specific implementation.

[0079] It should be noted that the chip enable pin and its corresponding peer chip enable pin must belong to the same channel; that is, in this embodiment, the chip enable pin and its corresponding peer chip enable pin must be located in the abnormal channel.

[0080] S14: Obtain the non-target chip termination resistance value based on input / output operation of the peer chip's enable pin.

[0081] S15: Adjust the non-target chip termination resistor value according to the preset step size to adjust the signal quality of the abnormal channel.

[0082] The NTODT value (non-target chip termination resistance) of the peer chip's enable pin, based on input / output operations, is further obtained. This value is then adjusted according to a preset step size. When the flash memory chip's state returns to normal, the NTODT value of the peer chip's enable pin is considered compatible, the signal quality of the abnormal channel is improved, and it is restored to a normal channel.

[0083] It should be noted that the NTODT value of the enable pin of the peer chip is generally between 0 and 200 ohms. When adjusting the NTODT value according to a preset step size, its adjustment range is also within the range of 0 to 200 ohms. In this embodiment, the preset step size is not limited and depends on the specific implementation.

[0084] In this embodiment, the input / output operations of each channel to the flash memory chip are monitored; it is determined whether the input / output operations of each channel are normal; if not, the abnormal channel with abnormal input / output operations is identified; the chip enable pin corresponding to the abnormal channel is obtained, and the peer chip enable pin corresponding to the chip enable pin is also obtained; the non-target chip termination resistance value of the peer chip enable pin based on the input / output operation is obtained; the non-target chip termination resistance value is adjusted according to a preset step size to adjust the signal quality of the abnormal channel. Therefore, the solution identifies abnormal channels with abnormal input / output operations by monitoring the input / output operations of each channel within the solid-state drive (SSD), using the abnormal input / output operation as a condition for enabling the NTODT function within the channel, thereby achieving reasonable activation of the NTODT function and improving bandwidth utilization; simultaneously, by adjusting the NTODT value of the peer chip enable pin within the abnormal channel, the signal quality of the abnormal channel is adjusted, improving the signal quality within the channel and increasing the operating efficiency of the SSD.

[0085] Based on the above embodiments, in some embodiments, adjusting the non-target chip termination resistance value according to a preset step size includes:

[0086] S150: Increase the current non-target chip termination resistance value according to the preset step size to obtain a new non-target chip termination resistance value.

[0087] S151: Determine whether the input / output operation of the abnormal channel is normal. If not, proceed to step S152; if yes, proceed to step S153.

[0088] S152: Use the new non-target chip termination resistance value as the current non-target chip termination resistance value, and return to step S150.

[0089] S153: End, signal quality adjustment of abnormal channel completed.

[0090] To adjust the non-target chip termination resistance value, the current non-target chip termination resistance value is increased according to a preset step size to obtain a new non-target chip termination resistance value.

[0091] It is important to note that for non-target chip terminating resistor values, the initial value of the NTODT value is generally 0. That is, in this embodiment, the NTODT value is gradually increased from 0 using a preset step size. For example, when the preset step size is 50 ohms, the NTODT value is adjusted sequentially to 50 ohms, 100 ohms, 150 ohms, etc., using a step size of 50, until the signal quality of the abnormal channel is restored.

[0092] Furthermore, when a new NTODT value is obtained, it is determined whether the input / output operation of the abnormal channel is normal. If it is confirmed that the input / output operation of the abnormal channel has not returned to normal, it is considered that the current NTODT value is not suitable for the enable pin of the matching chip, and the NTODT value needs to be further increased. Therefore, the new NTODT value is used as the current NTODT value, and the process returns to step S150 to increase the current NTODT value again according to the preset step size to obtain a new NTODT value. If it is confirmed that the input / output operation of the abnormal channel has returned to normal, it is considered that the current NTODT value is suitable for the enable pin of the matching chip, the abnormal channel has returned to normal, and the signal quality adjustment of the abnormal channel is completed.

[0093] In this embodiment, the current non-target chip termination resistance value is increased according to a preset step size to obtain a new non-target chip termination resistance value. It is then determined whether the input / output operation of the abnormal channel is normal. If not, the new non-target chip termination resistance value is used as the current non-target chip termination resistance value, and the process returns to continue increasing the non-target chip termination resistance value. If yes, the process ends, thus achieving the adjustment of the non-target chip termination resistance value.

[0094] Based on the above embodiments, in some embodiments, after confirming that the input / output operation of the abnormal channel is abnormal, the method further includes:

[0095] S154: Determine whether the current non-target chip terminal resistance value has reached the preset resistance value; if not, proceed to step S152; if yes, proceed to step S155.

[0096] S155: Increase the number of peer chip enable pins by setting feature functions to obtain new peer chip enable pins corresponding to the chip enable pins.

[0097] S156: Clear the non-target chip termination resistance values ​​corresponding to the enable pins of each peer chip based on input / output operations. Return to step S150 to increase the termination resistance values ​​of each non-target chip respectively.

[0098] In practice, if it is confirmed that the input / output operation of the abnormal channel is abnormal, it can be further determined whether the current NTODT value has reached the preset resistance value. This embodiment does not impose a limit on the preset resistance value; it depends on the specific implementation. For example, in a specific implementation, the preset resistance value can be set to an upper limit of 200 ohms within the range of the NTODT value.

[0099] If it is confirmed that the current NTODT value has not reached the preset resistance value, the process proceeds to the step of using the new NTODT value as the current NTODT value, thereby continuing to adjust the NTODT value. If it is confirmed that the current NTODT value has reached the preset resistance value, it is considered that adjusting the NTODT value of the current peer chip enable pin at this time cannot effectively improve the signal quality in the abnormal channel. In order to further improve the signal quality in the abnormal channel, this embodiment specifically increases the number of peer chip enable pins by setting a feature function, so as to obtain a new peer chip enable pin corresponding to the chip enable pin.

[0100] It is understandable that the newly added peer chip enable pin and the already acquired peer chip enable pin are both located within the abnormal channel. When adding a new peer chip enable pin, the positional relationship with the existing peer chip enable pin can be considered. For example, when enabling two peer chip enable pins corresponding to the chip enable pin, a near-end peer chip enable pin and a far-end peer chip enable pin are generally selected as the peer of the chip enable pin. Near-end and far-end depend on the surface mount positions of the chip enable pin and the peer chip enable pin. Therefore, in this embodiment, when the already acquired peer chip enable pin is a near-end peer chip enable pin, the new peer chip enable pin can be selected as the corresponding far-end peer chip enable pin; when the already acquired peer chip enable pin is a far-end peer chip enable pin, the new peer chip enable pin can be selected as the corresponding near-end peer chip enable pin.

[0101] Furthermore, since the NTODT values ​​of the acquired peer chip enable pins have already been adjusted, in order to adjust the NTODT values ​​of multiple peer chip enable pins simultaneously, the NTODT values ​​based on input / output operations corresponding to each peer chip enable pin need to be cleared. Returning to step S150, the current NTODT value is increased according to a preset step size, that is, the NTODT values ​​of the two current peer chip enable pins are increased respectively. The specific increase method is the same as in the above embodiment, thereby further realizing the adjustment of the signal quality of the abnormal channel.

[0102] In this embodiment, when adjusting the NTODT value of one peer chip enable pin still cannot effectively improve the signal quality of the abnormal channel, the number of peer chip enable pins is increased by setting a feature function to obtain a new peer chip enable pin corresponding to the chip enable pin; furthermore, the non-target chip termination resistor values ​​based on input / output operations corresponding to each peer chip enable pin are cleared to increase the NTODT value of each peer chip enable pin, thereby further realizing the adjustment of the signal quality of the abnormal channel.

[0103] Based on the above embodiments, in some embodiments, after increasing the number of enable pins of the peer chip by setting feature functions, the method further includes:

[0104] S157: Determine whether the number of enable pins of the peer chip is greater than the preset number; if so, proceed to step S158.

[0105] S158: Stop adjusting the signal quality of the abnormal channel and output an alarm message.

[0106] In practice, when adjusting the NTODT value of a peer chip's enable pin fails to effectively improve signal quality in an abnormal channel, further signal quality adjustment can be achieved by adding more peer chip enable pins and adjusting their NTODT values. However, in practice, the abnormal channel may exhibit serious problems that cannot be effectively resolved simply by adjusting the NTODT value of the peer chip's enable pin.

[0107] Therefore, after increasing the number of enable pins on the peer chip by setting the feature function, it is determined whether the number of enable pins on the peer chip exceeds the preset number. If it is confirmed that the number of enable pins on the peer chip exceeds the preset number, it can be concluded that the abnormal state of the current abnormal channel has not yet been recovered, and the flash memory chip status still indicates an abnormality. This indicates a serious problem with the abnormal channel, and adjusting the NTODT value of the peer chip's enable pins will not resolve the issue. Signal quality adjustment of the abnormal channel needs to be stopped, and an alarm message should be output to prompt staff to investigate. If it is confirmed that the number of enable pins on the peer chip does not exceed the preset number, the NTODT value can be adjusted further.

[0108] It should be noted that this embodiment does not limit the preset number, but depends on the specific implementation. For example, when the number of enable pins of the peer chip is greater than 2, the signal quality adjustment of the abnormal channel is stopped and an alarm message is output.

[0109] In this embodiment, the relationship between the number of enable pins of the peer chip and the preset number is used to determine whether a serious problem has occurred in the abnormal channel. At the same time, when a serious problem occurs in the abnormal channel, the signal quality adjustment of the abnormal channel is stopped, and an alarm message is output to prompt the staff to perform maintenance, thus better ensuring the normal operation of the solid-state drive.

[0110] Based on the above embodiments, in some embodiments, when the input / output operation is a write operation, adjusting the non-target chip termination resistor value according to a preset step size includes:

[0111] S160: Increase the current non-target chip termination resistance value according to the preset step size to obtain a new non-target chip termination resistance value.

[0112] S161: Determine whether the write operation of the abnormal channel is normal; if not, proceed to step S162; if yes, proceed to step S163.

[0113] S162: Use the new non-target chip termination resistance value as the current non-target chip termination resistance value, and return to step S160.

[0114] S163: End, signal quality adjustment of abnormal channel completed.

[0115] Correspondingly, when the input / output operation is a read operation, adjusting the non-target chip termination resistor value according to the preset step size includes:

[0116] S164: Increase the current non-target chip termination resistance value according to the preset step size to obtain a new non-target chip termination resistance value.

[0117] S165: Determine whether the read operation of the abnormal channel is normal; if not, proceed to step S166; if yes, proceed to step S167.

[0118] S166: Use the new non-target chip termination resistance value as the current non-target chip termination resistance value, and return to step S164.

[0119] S167: End, signal quality adjustment of abnormal channel completed.

[0120] It is understandable that the input / output operations of each channel include write operations and read operations. Therefore, when the input / output operation is a write operation, the current non-target chip termination resistance value is increased according to a preset step size to obtain a new non-target chip termination resistance value; it is then determined whether the write operation of the abnormal channel is normal; if not, the new non-target chip termination resistance value is used as the current non-target chip termination resistance value, and the process returns to the step of increasing the current non-target chip termination resistance value according to the preset step size; if yes, the process ends, completing the signal quality adjustment for the abnormal channel.

[0121] Correspondingly, when the input / output operation is a read operation, the current non-target chip termination resistance value is increased according to a preset step size to obtain a new non-target chip termination resistance value; it is determined whether the read operation of the abnormal channel is normal; if not, the new non-target chip termination resistance value is used as the current non-target chip termination resistance value, and the process returns to the step of increasing the current non-target chip termination resistance value according to the preset step size; if yes, the process ends, completing the signal quality adjustment of the abnormal channel.

[0122] In this way, signal quality adjustment was achieved for abnormal channels that experienced write and read operation anomalies, respectively.

[0123] Based on the above embodiments, in some embodiments, when the input / output operation is a read operation, after confirming that a read operation corresponding to a channel is abnormal, the method further includes:

[0124] S16: Retry the read operation.

[0125] S17: Determine whether the number of retries is greater than the preset number of retries; if not, return to step S16; if yes, proceed to step S12.

[0126] Specifically, in practice, when an abnormal read operation is detected in a certain channel, the read operation can be retried first, and then it can be determined whether the number of retry operations is greater than the preset number of retry operations.

[0127] If the number of retries is not greater than the preset number of retries, the read operation is retried. If the number of retries exceeds the preset number of retries, the current read operation is considered abnormal and cannot be resolved through retries. Step S12 is then initiated to determine the abnormal channel causing the input / output operation error, and the NTODT function for enabling the abnormal channel in the above embodiment is executed to improve the signal quality of the abnormal channel. It should be noted that this embodiment does not limit the preset number of retries; it depends on the specific implementation.

[0128] In this embodiment, by retrying the read operation, some abnormal factors in the read operation within the channel are eliminated, thus improving the efficiency of abnormal handling.

[0129] Based on the above embodiments, in some embodiments, before monitoring the input / output operations of each channel to the flash memory chip, the method further includes:

[0130] S18: Initialize the chip termination resistance value corresponding to the chip enable pin of each chip in each channel.

[0131] S19: Assign the corresponding peer chip enable pin to each chip enable pin in each channel according to the type of flash memory chip.

[0132] The corresponding chip enable pins and the peer chip enable pins are located in the same channel.

[0133] In practical implementation, to better perform the NTODT function, before monitoring the input / output operations of each channel to the flash memory chip, it is necessary to initialize the chip termination resistance value corresponding to the chip enable pin in each channel, i.e., the ODT value. It can be understood that both ODT and NTODT values ​​are resistance values, and are essentially the same; the only difference is that the ODT value corresponds to the chip enable pin, while the NTODT value corresponds to the end chip enable pin.

[0134] Furthermore, based on the type of flash memory chip, corresponding peer chip enable pins are assigned to the enable pins of each chip in each channel, thereby ensuring that the chip enable pin finds the corresponding peer chip enable pin when the NTODT function is started. In specific implementations, the correspondence between the enable pins of each chip can be set based on code. Simultaneously, NTODT function enable and disable commands can be set in the SSD's controller chip, so that when the controller chip sends corresponding commands to the flash memory chip, the NTODT function is enabled or disabled accordingly.

[0135] In the above embodiments, the signal quality adjustment method has been described in detail. The present invention also provides embodiments of the signal quality adjustment device.

[0136] Figure 2 This is a schematic diagram of a signal quality adjustment device provided in an embodiment of the present invention. Figure 2 As shown, the signal quality conditioning device includes:

[0137] The monitoring module 10 is used to monitor the input and output operations of each channel to the flash memory chip.

[0138] The judgment module 11 is used to determine whether the input and output operations corresponding to each channel are normal; if not, the determination module 12 is triggered.

[0139] Module 12 is used to determine abnormal channels where input / output operations are abnormal.

[0140] The first acquisition module 13 is used to acquire the chip enable pin corresponding to the abnormal channel and the peer chip enable pin corresponding to the chip enable pin.

[0141] The second acquisition module 14 is used to acquire the non-target chip termination resistance value of the enable pin of the peer chip based on input / output operation.

[0142] The adjustment module 15 is used to adjust the terminal resistance value of the non-target chip according to a preset step size in order to adjust the signal quality of the abnormal channel.

[0143] In some embodiments, the adjustment module 15 includes:

[0144] The non-target chip termination resistance value enhancement module is used to increase the current non-target chip termination resistance value according to a preset step size to obtain a new non-target chip termination resistance value.

[0145] The input / output operation anomaly detection module is used to determine whether the input / output operation of the abnormal channel is normal; if not, the processing module is triggered; if yes, the process ends and the signal quality adjustment of the abnormal channel is completed.

[0146] The processing module is used to take the new non-target chip termination resistance value as the current non-target chip termination resistance value and trigger the non-target chip termination resistance value increase module.

[0147] In some embodiments, it also includes:

[0148] The preset resistance value judgment module is used to determine whether the current non-target chip terminal resistance value has reached the preset resistance value; if not, the processing module is triggered; if so, the addition module is triggered.

[0149] A new module is added to increase the number of enable pins of the peer chip by setting feature functions, so as to obtain new peer chip enable pins corresponding to the chip enable pins.

[0150] The zeroing module is used to clear the non-target chip termination resistance values ​​corresponding to the enable pins of each peer chip based on input / output operations. It also triggers the non-target chip termination resistance value increase module to increase the termination resistance values ​​of each non-target chip individually.

[0151] In some embodiments, it also includes:

[0152] The preset quantity judgment module is used to determine whether the number of enable pins of the peer chip is greater than the preset quantity; if so, the stop module is triggered.

[0153] The stop module is used to stop adjusting the signal quality of abnormal channels and output alarm information.

[0154] In some embodiments, the adjustment module 15 includes:

[0155] The first non-target chip termination resistance value enhancement submodule is used to increase the current non-target chip termination resistance value according to a preset step size when the input / output operation is a write operation, so as to obtain a new non-target chip termination resistance value.

[0156] The write operation exception judgment module is used to determine whether the write operation of the abnormal channel is normal; if not, the first processing submodule is triggered; if yes, the process ends and the signal quality adjustment of the abnormal channel is completed.

[0157] The first processing submodule is used to take the new non-target chip termination resistance value as the current non-target chip termination resistance value and return to the step of increasing the current non-target chip termination resistance value according to a preset step size.

[0158] Correspondingly, the adjustment module 15 may also include:

[0159] The second non-target chip termination resistance value enhancement submodule is used to increase the current non-target chip termination resistance value according to a preset step size when the input / output operation is a read operation, so as to obtain a new non-target chip termination resistance value.

[0160] The read operation anomaly detection module is used to determine whether the read operation of the abnormal channel is normal; if not, the second processing submodule is triggered; if yes, the process ends and the signal quality adjustment of the abnormal channel is completed.

[0161] The second processing submodule is used to take the new non-target chip termination resistance value as the current non-target chip termination resistance value and return to the step of increasing the current non-target chip termination resistance value according to a preset step size.

[0162] In some embodiments, it also includes:

[0163] The retry module is used to retry read operations.

[0164] The preset retry count judgment module is used to determine whether the number of retries processed is greater than the preset retry count; if not, the retry module is triggered; if so, the determination module 12 is triggered.

[0165] In some embodiments, it also includes:

[0166] The initialization module is used to initialize the chip termination resistance value corresponding to the enable pin of each chip in each channel.

[0167] The allocation module is used to assign the corresponding peer chip enable pin to the enable pin of each chip in each channel according to the type of flash memory chip.

[0168] The corresponding chip enable pins and the peer chip enable pins are located in the same channel.

[0169] In this embodiment, the signal quality adjustment device includes a monitoring module, a judgment module, a determination module, a first acquisition module, a second acquisition module, and an adjustment module. The signal quality adjustment device can implement all the steps of the above-described signal quality adjustment method during operation. It monitors the input / output operations of each channel to the flash memory chip; determines whether the input / output operations corresponding to each channel are normal; if not, it identifies the abnormal channel with abnormal input / output operations; acquires the chip enable pin corresponding to the abnormal channel, and acquires the peer chip enable pin corresponding to the chip enable pin; acquires the non-target chip termination resistance value of the peer chip enable pin based on the input / output operations; and adjusts the non-target chip termination resistance value according to a preset step size to adjust the signal quality of the abnormal channel. Therefore, the solution monitors the input / output operations corresponding to each channel within the solid-state drive, identifies abnormal channels with abnormal input / output operations, and uses the abnormal input / output operations as a condition for enabling the NTODT function within the channel, thereby achieving reasonable activation of the NTODT function and improving bandwidth utilization. Simultaneously, by adjusting the NTODT value of the peer chip enable pin within the abnormal channel, it adjusts the signal quality of the abnormal channel, improves the signal quality within the channel, and enhances the working efficiency of the solid-state drive.

[0170] Figure 3 This is a schematic diagram of a solid-state drive provided as an embodiment of the present invention. (See diagram below.) Figure 3 As shown, solid-state drives include:

[0171] Flash memory chip 20 is used to store computer programs;

[0172] The main control chip 21 is used to implement the above-described signal quality adjustment method when executing the computer program.

[0173] Those skilled in the art will understand that Figure 3 The structure shown is not intended to limit the solid-state drive and may include more or fewer components than illustrated.

[0174] In this embodiment, the solid-state drive (SSD) includes a flash memory chip and a main control chip. The flash memory chip stores computer programs; the main control chip executes the computer programs to implement the signal quality adjustment method described above. The system monitors the input / output operations of each channel to the flash memory chip; determines whether the input / output operations of each channel are normal; if not, identifies the abnormal channel with abnormal input / output operations; obtains the chip enable pin corresponding to the abnormal channel and the peer chip enable pin corresponding to the chip enable pin; obtains the non-target chip termination resistance value of the peer chip enable pin based on the input / output operations; and adjusts the non-target chip termination resistance value according to a preset step size to adjust the signal quality of the abnormal channel. Therefore, the solution monitors the input / output operations of each channel within the SSD to identify abnormal channels with abnormal input / output operations. Using abnormal input / output operations as a condition for enabling the NTODT function within the channel, it achieves reasonable activation of the NTODT function, improving bandwidth utilization. Simultaneously, by adjusting the NTODT value of the peer chip enable pin within the abnormal channel, the signal quality of the abnormal channel is adjusted, improving the signal quality within the channel and increasing the operating efficiency of the SSD.

[0175] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, performs the steps described in the above method embodiments.

[0176] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, 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. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of the present invention.

[0177] In this embodiment, a computer program is stored on a computer-readable storage medium. When the computer program is executed by a processor, it implements the steps described in the above method embodiment. The process involves monitoring the input / output operations of each channel to the flash memory chip; determining whether the input / output operations corresponding to each channel are normal; identifying abnormal channels with abnormal input / output operations if not; obtaining the chip enable pin corresponding to the abnormal channel and the peer chip enable pin corresponding to the chip enable pin; obtaining the non-target chip termination resistance value of the peer chip enable pin based on the input / output operation; and adjusting the non-target chip termination resistance value according to a preset step size to adjust the signal quality of the abnormal channel. Therefore, the solution monitors the input / output operations corresponding to each channel within the solid-state drive (SSD) to identify abnormal channels with abnormal input / output operations. Using abnormal input / output operations as a condition for enabling the NTODT function within the channel, the solution achieves reasonable activation of the NTODT function, improving bandwidth utilization. Simultaneously, by adjusting the NTODT value of the peer chip enable pin within the abnormal channel, the solution adjusts the signal quality of the abnormal channel, improving the signal quality within the channel and increasing the operating efficiency of the SSD.

[0178] The foregoing has provided a detailed description of a signal quality adjustment method, apparatus, solid-state drive, and medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make various improvements and modifications to the present invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

[0179] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A signal quality adjustment method, characterized in that, include: Monitor the input / output operations of each channel to the flash memory chip; Determine whether the input / output operation corresponding to each channel is normal; If not, then identify the abnormal channel where the input / output operation is abnormal; Obtain the chip enable pin corresponding to the abnormal channel, and obtain the peer chip enable pin corresponding to the chip enable pin; Obtain the non-target chip termination resistance value of the peer chip enable pin based on the input / output operation; Adjust the non-target chip termination resistance value according to a preset step size to adjust the signal quality of the abnormal channel; The step of adjusting the non-target chip terminal resistance value according to a preset step size includes: The current non-target chip termination resistance value is increased according to the preset step size to obtain a new non-target chip termination resistance value; Determine whether the input / output operations of the abnormal channel are normal; If not, the new non-target chip termination resistance value is used as the current non-target chip termination resistance value, and the process returns to the step of increasing the current non-target chip termination resistance value according to the preset step size. If so, then the process ends, completing the signal quality adjustment for the abnormal channel; After confirming that the input / output operation of the abnormal channel is abnormal, the following steps are also included: Determine whether the current non-target chip terminal resistance value has reached the preset resistance value; If not, proceed to the step of using the new non-target chip termination resistance value as the current non-target chip termination resistance value. If so, the number of enable pins of the peer chip is increased by setting the feature function to obtain a new peer chip enable pin corresponding to the chip enable pin; The non-target chip terminal resistance value corresponding to the enable pin of each of the peer chips based on the input / output operation is cleared to zero. Return to the step of increasing the current non-target chip termination resistance value according to the preset step size, so as to increase the termination resistance value of each non-target chip respectively.

2. The signal quality adjustment method according to claim 1, characterized in that, After increasing the number of enable pins of the peer chip by setting feature functions, the method further includes: Determine whether the number of enable pins of the peer chip is greater than a preset number; If so, stop adjusting the signal quality of the abnormal channel and output an alarm message.

3. The signal quality adjustment method according to claim 1, characterized in that, When the input / output operation is a write operation, adjusting the non-target chip termination resistor value according to a preset step size includes: The current non-target chip termination resistance value is increased according to the preset step size to obtain a new non-target chip termination resistance value; Determine whether the write operation on the abnormal channel is normal; If not, the new non-target chip termination resistance value is used as the current non-target chip termination resistance value, and the process returns to the step of increasing the current non-target chip termination resistance value according to the preset step size. If so, then the process ends, completing the signal quality adjustment for the abnormal channel; Correspondingly, when the input / output operation is a read operation, adjusting the non-target chip termination resistor value according to a preset step size includes: The current non-target chip termination resistance value is increased according to the preset step size to obtain a new non-target chip termination resistance value; Determine whether the read operation of the abnormal channel is normal; If not, the new non-target chip termination resistance value is used as the current non-target chip termination resistance value, and the process returns to the step of increasing the current non-target chip termination resistance value according to the preset step size. If so, the process ends, completing the signal quality adjustment for the abnormal channel.

4. The signal quality adjustment method according to claim 3, characterized in that, When the input / output operation is a read operation, after confirming that the read operation corresponding to the channel is abnormal, the method further includes: The read operation will be retried. Determine whether the number of retry attempts exceeds the preset number of retries; If not, return to the step of retrying the read operation; If so, proceed to the step of determining the abnormal channel of the input / output operation.

5. The signal quality adjustment method according to any one of claims 1 to 4, characterized in that, Before monitoring the input / output operations of each channel to the flash memory chip, the method further includes: Initialize the chip termination resistance value corresponding to the chip enable pin of each of the channels; According to the type of the flash memory chip, assign the corresponding peer chip enable pin to the enable pin of each chip in each channel; The corresponding chip enable pins and the peer chip enable pins are located in the same channel.

6. A signal quality adjustment device, characterized in that, include: The monitoring module is used to monitor the input and output operations of each channel to the flash memory chip; The judgment module is used to determine whether the input / output operation corresponding to each channel is normal; if not, the determination module is triggered. The determining module is used to determine the abnormal channel of the abnormal input / output operation; The first acquisition module is used to acquire the chip enable pin corresponding to the abnormal channel and acquire the peer chip enable pin corresponding to the chip enable pin. The second acquisition module is used to acquire the non-target chip termination resistance value of the enable pin of the peer chip based on the input / output operation; An adjustment module is used to adjust the terminal resistance value of the non-target chip according to a preset step size in order to adjust the signal quality of the abnormal channel. The adjustment module includes: The non-target chip termination resistance value enhancement module is used to increase the current non-target chip termination resistance value according to the preset step size to obtain a new non-target chip termination resistance value. An input / output operation anomaly detection module is used to determine whether the input / output operation of the abnormal channel is normal; if not, the processing module is triggered; if yes, the process ends and the signal quality adjustment of the abnormal channel is completed. The processing module is used to take the new non-target chip terminal resistance value as the current non-target chip terminal resistance value and trigger the non-target chip terminal resistance value increase module. Also includes: The preset resistance value judgment module is used to determine whether the current non-target chip terminal resistance value has reached the preset resistance value; if not, the processing module is triggered; if yes, the addition module is triggered. The newly added module is used to increase the number of enable pins of the peer chip by setting feature functions, so as to obtain a new peer chip enable pin corresponding to the chip enable pin; The zeroing module is used to zero out the non-target chip terminal resistance value corresponding to the enable pin of each peer chip based on the input / output operation; and to trigger the non-target chip terminal resistance value increase module to increase the terminal resistance value of each non-target chip respectively.

7. A solid-state drive, characterized in that, include: Flash memory chips are used to store computer programs; The main control chip is used to implement the steps of the signal quality adjustment method as described in any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the signal quality adjustment method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method of controlling on-die termination and system performing the same

    CN108932960A

  • Solid state disk working method and system, electronic equipment and storage medium

    CN110209517A