Self-test and fault diagnosis method and system for multi-head parallel storage platform

By using majority voting algorithms and improved run-length encoding to compress test vectors, combined with hierarchical hash fault dictionaries and self-test modes, the problems of low efficiency and high cost in fault detection and diagnosis in multi-head parallel storage platforms are solved, achieving efficient and accurate fault location and improved hard drive reliability.

CN123178137APending Publication Date: 2026-11-27SICHUAN SILICON MICROELECTRONICS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611200116.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-10
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies are insufficient for efficiently detecting and diagnosing faults such as electromagnetic crosstalk between tracks, synchronization deviation between multiple heads, and channel linkage failure in multi-head parallel storage platforms. Traditional testing methods are costly, inefficient, have insufficient fault coverage, and are slow in fault dictionary retrieval, failing to meet the real-time testing requirements of multi-head parallel architectures.

Method used

A majority voting algorithm is used to extract the common basis vector and difference vector shared by all channels. Combined with improved run-length encoding to compress test vectors, a hierarchical hash fault dictionary is constructed. Test stimuli are restored in parallel through on-chip decompression circuit. Combined with channel-independent and cross-channel linkage self-test modes, the hash code is used to quickly match fault characteristics to achieve fault location and diagnosis.

Benefits of technology

It significantly improves the fault coverage and location accuracy of multi-head parallel storage platforms, reduces testing costs and time, supports real-time parallel testing of multiple heads, and improves the long-term operational reliability and fault misjudgment rate of hard drives.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178137A_ABST
    Figure CN123178137A_ABST
Patent Text Reader

Abstract

The application relates to a self-test and fault diagnosis method and system of a multi-head parallel storage platform, relates to the technical field of test fault diagnosis, and comprises the following steps: compressed data packets are generated and solidified to on-chip storage media; fixed bit width hash codes of each characteristic vector are calculated according to a hash mapping formula, bottom layer single-channel fault dictionaries and top layer cross-channel coupling fault dictionaries are constructed, and corresponding hash index tables are respectively established; crosstalk strength comprehensive coefficients are calculated according to a crosstalk strength comprehensive coefficient calculation formula, and fault levels are divided according to the value interval of the coefficients; optimal matching entries with a similarity higher than a preset threshold value are screened; a test passing report is generated, and a hard disk normal working mode is restored. The application realizes full life cycle coverage from factory test to service monitoring, and improves long-term operation reliability of the hard disk.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of test and fault diagnosis technology, and more specifically, to a self-testing and fault diagnosis method and system for a multi-head parallel storage platform. Background Technology

[0002] As single-disk storage capacity continues to expand, multi-head architectures with 2-8 independent read / write channels per disk have become the mainstream solution for improving hard drive capacity and read / write performance. This architecture significantly improves data read / write throughput through synchronous parallel operation of multiple heads. However, the shared control circuitry and power supply network among multiple heads leads to new coupled fault modes such as track electromagnetic crosstalk, multi-head synchronization deviation, and channel linkage failure. These faults are absent or have a negligible impact in traditional single-head architectures, but become critical factors affecting system reliability in multi-head parallel scenarios, placing stringent requirements on factory batch testing, online device self-testing, and accurate fault location.

[0003] In existing technologies, traditional hard drive testing relies on external automated test equipment (ATE). The multi-head parallel architecture exponentially increases the number of test channels and the volume of test vector data, directly driving up equipment procurement costs and overall system testing time. Existing single-channel BIST solutions can only detect basic faults in the read / write circuits of a single head, failing to identify faults specific to parallel architectures such as electromagnetic crosstalk between multiple heads, timing synchronization skew, and channel power supply coupling, resulting in insufficient fault coverage. Regarding fault diagnosis, traditional fault dictionaries lack hierarchical classification, uniformly storing single-channel faults and cross-channel coupled faults. This leads to a massive dictionary storage volume, slow linear retrieval speed, high false positive rates in multi-head scenarios, and difficulty in quickly identifying faulty heads and failure types. In terms of test vector compression, general lossless compression algorithms fail to exploit the high data correlation between multi-head channel test vectors, resulting in compression ratios generally below 40%. The accompanying on-chip decompression circuitry is logically complex and has high hardware overhead, failing to meet the timing requirements of synchronous parallel real-time testing of multiple heads. These shortcomings are interconnected and progressively worsen, collectively restricting the efficiency and reliability of multi-head parallel hard drive testing. Summary of the Invention

[0004] The purpose of this invention is to provide a self-testing and fault diagnosis method and system for a multi-head parallel storage platform to improve the aforementioned problems. To achieve the above objective, the technical solution adopted by this invention is as follows: Firstly, this application provides a self-testing and fault diagnosis method for a multi-head parallel storage platform, including: Step S1: Obtain the original test vectors of N head channels, use the majority voting algorithm to extract the common basis vector shared by all channels bit by bit, and generate a differential vector that only records the different bits for each channel. Perform improved run-length encoding compression on the common basis vector and the differential vector respectively, generate a compressed data packet and harden it to the on-chip storage medium. Step S2: Collect single-channel fault response features and cross-channel coupled fault response features through fault injection simulation, extract standardized L-dimensional fault feature vectors for each fault type, calculate fixed-width hash codes for each feature vector according to the hash mapping formula, construct a bottom-level single-channel fault dictionary and a top-level cross-channel coupled fault dictionary, and establish corresponding hash index tables for each, and then solidify them into the on-chip ROM. Step S3: The on-chip decompression circuit reads the compressed data packet, decodes and restores the common basis vector and the differential vector of each channel, and superimposes the differential vector of each channel onto the common basis vector through bitwise XOR operation, and restores the complete test stimulus of N head-specific devices in parallel, and outputs it synchronously to all head channels. Step S4: The multi-head layered built-in self-test subsystem receives the complete test stimulus restored in step S3, performs the test in channel independent self-test mode or cross-channel linkage self-test mode, collects the response waveforms of each channel, calculates the crosstalk intensity comprehensive coefficient according to the crosstalk intensity comprehensive coefficient calculation formula, classifies the fault level according to the value range of the coefficient, and extracts the L-dimensional fault feature vector from the response waveform. Step S5: The hierarchical hash fault dictionary module receives the L-dimensional fault feature vector extracted in step S4, calculates its hash code according to the same hash mapping formula in step S2, and quickly matches the hash code with the hash index table in step S2 to filter out candidate fault entries. According to the current test mode, it selects to search the bottom single-channel fault dictionary or the top cross-channel coupled fault dictionary, calculates the similarity between the candidate entry and the feature vector to be tested according to the normalized Hamming distance similarity formula, filters the best matching entry with a similarity higher than the preset threshold, and outputs the fault head number, failure type, fault level and physical failure location corresponding to the entry, where the fault level includes the fault level judgment result divided in step S4; Step S6: The top-level BIST controller summarizes the fault location information of all channels. If the crosstalk intensity comprehensive coefficient of any channel is determined to be of the severe channel fault level by step S4, a hardware alarm is triggered synchronously and the failed read / write head channel is marked so that the hard drive main controller firmware can perform channel shielding and load reduction protection operations. If the crosstalk intensity comprehensive coefficient of all channels is determined to be of the normal level, a test pass report is generated and the hard drive is restored to normal working mode.

[0005] Preferably, the weighting coefficient is taken as: =0.6、 =0.4; Based on the current hardware specifications of the head channel, the amplitude deviation threshold and timing offset threshold are dynamically configured by the hard drive controller firmware. The fault level classification rules are as follows: A CI < 0.7 is considered normal. When 0.7 ≤ CI < 1.0, it is judged as a mild crosstalk alarm; When CI ≥ 1.0, it is considered a serious channel fault.

[0006] Preferably, each entry in the bottom-level single-channel fault dictionary includes a fault feature hash code, fault type, physical location, and repair suggestion; each entry in the top-level cross-channel coupled fault dictionary includes the number of the faulty head, coupling feature code, fault level, and location conclusion.

[0007] Preferably, the multi-head layered built-in self-test subsystem adopts a time-division multiplexing scheduling mechanism, with multiple head channels sharing a core test algorithm circuit, which is scheduled in time by the top-level BIST controller to support parallel testing of 2 to 8 head channels in a manner that does not exceed the hardware area overhead threshold; wherein the channel independent self-test mode supports two test granularities: full address traversal factory inspection and key address sampling online self-test.

[0008] Secondly, this application also provides a self-testing and fault diagnosis system for a multi-head parallel storage platform, including: Improved generation module: used to obtain the original test vectors of N magnetic head channels, use the majority voting algorithm to extract the common basis vector shared by all channels bit by bit, and generate a differential vector that only records the different bits for each channel. Improved run-length encoding compression is performed on the common basis vector and the differential vector respectively to generate compressed data packets and harden them to on-chip storage media. Extraction and construction module: used to collect single-channel fault response features and cross-channel coupled fault response features through fault injection simulation, extract standardized L-dimensional fault feature vectors for each fault type, calculate fixed-width hash codes for each feature vector according to hash mapping formula, construct the bottom-level single-channel fault dictionary and the top-level cross-channel coupled fault dictionary, and establish corresponding hash index tables for each, and solidify them into on-chip ROM; Decoding and Restoration Module: Used by the on-chip decompression circuit to read compressed data packets, decode and restore the common basis vector and the differential vectors of each channel, and superimpose the differential vectors of each channel onto the common basis vector through bitwise XOR operation, and restore the complete test stimuli of N heads in parallel, and output them synchronously to all head channels; The acquisition and calculation module is used to receive the complete test stimulus restored in step S3 of the multi-head layered built-in self-test subsystem, perform the test in the channel independent self-test mode or the cross-channel linkage self-test mode, acquire the response waveform of each channel, calculate the crosstalk intensity comprehensive coefficient according to the crosstalk intensity comprehensive coefficient calculation formula, classify the fault level according to the value range of the coefficient, and extract the L-dimensional fault feature vector from the response waveform. Extraction and Filtering Module: This module receives the L-dimensional fault feature vector extracted in step S4, calculates its hash code using the same hash mapping formula as in step S2, and quickly matches the hash code with the hash index table in step S2 to filter out candidate fault entries. Based on the current test mode, it selects to search the bottom-level single-channel fault dictionary or the top-level cross-channel coupled fault dictionary. It calculates the similarity between the candidate entry and the feature vector to be tested using the normalized Hamming distance similarity formula, filters out the best matching entry with a similarity higher than a preset threshold, and outputs the fault head number, failure type, fault level, and physical failure location corresponding to the entry. The fault level includes the fault level determination result divided in step S4. Judgment Generation Module: Used by the top-level BIST controller to summarize the fault location information of all channels. If the crosstalk intensity comprehensive coefficient of any channel is determined to be of the severe channel fault level by step S4, a hardware alarm is triggered synchronously and the failed read / write head channel is marked, so that the hard drive main controller firmware can perform channel shielding and load reduction protection operations. If the crosstalk intensity comprehensive coefficient of all channels is determined to be of the normal level, a test pass report is generated and the hard drive is restored to normal working mode.

[0009] Thirdly, this application also provides a self-testing and fault diagnosis device for a multi-head parallel storage platform, including: Memory, used to store computer programs; The processor is used to implement the self-testing and fault diagnosis method of the multi-head parallel storage platform when executing the computer program.

[0010] Fourthly, this application also provides a readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the self-testing and fault diagnosis method based on a multi-head parallel storage platform described above.

[0011] The beneficial effects of this invention are as follows: This invention employs a differential compression framework that uses a majority voting algorithm to extract a common basis vector shared by all channels and generate differential vectors for each channel. It utilizes the high data correlation between multi-channel test vectors for compression, and then uses an improved run-length encoding to achieve secondary lossless compression, resulting in a significant reduction in test data storage capacity. Combined with an on-chip decompression circuit, which uses a decompression mechanism to restore the complete test stimuli of all head channels in parallel through a single-cycle bitwise XOR operation, it eliminates the need for external automatic test equipment to apply test vectors sequentially channel by channel. This can replace most test items of external automatic test equipment, and reduce the test time and equipment procurement costs in batch production simultaneously.

[0012] This invention employs a dual-layer built-in self-test architecture with independent channel self-test mode and cross-channel linked self-test mode. This architecture not only detects independent faults such as single-channel open circuits, short circuits, and gain offsets, but also captures faults specific to multi-head parallel architectures, such as electromagnetic crosstalk, timing synchronization offsets, and power supply coupling, by automatically traversing all heads in pairs for parallel read / write operations. This significantly improves fault coverage. Combined with a layered storage architecture of a bottom-level single-channel fault dictionary and a top-level cross-channel coupled fault dictionary, and a two-level retrieval mechanism that significantly compresses the retrieval range through initial hash code screening followed by fine matching using normalized Hamming distance, the fault dictionary retrieval speed is increased from traditional linear retrieval to constant-level time complexity. This significantly improves fault location accuracy and effectively reduces the false fault rate in multi-head scenarios.

[0013] This invention employs a time-division multiplexing scheduling mechanism through a multi-head layered built-in self-test subsystem, enabling multiple head channels to share a single core test algorithm circuit. This supports arbitrary hardware configurations for multiple head channels with limited hardware area overhead. The on-chip decompression circuit only requires a common base register and multiple differential correction units to achieve parallel decompression, eliminating the need for independent configuration of complete decompression logic for each head. The entire system is integrated within the hard disk controller chip, occupying a small chip area and can be directly integrated into existing commercial hard disk controller chips without significant hardware design modifications.

[0014] This invention supports two test granularities through a channel-independent self-test mode: full address traversal factory inspection and critical address sampling online self-test. It also supports full-scale high-precision fault screening at the factory stage and periodic online self-testing during the service life of the hard drive. Based on the crosstalk intensity comprehensive coefficient judgment result, it implements differentiated reliability strategies such as graded alarm triggering, channel shielding, and load reduction protection, which can provide early warning of potential failures such as head crosstalk and channel aging. This achieves full life cycle coverage from factory testing to service monitoring, improving the long-term operational reliability of the hard drive.

[0015] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing embodiments of the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a schematic diagram of the self-testing and fault diagnosis method of the multi-head parallel storage platform described in this embodiment of the invention. Figure 2 This is a schematic diagram of the self-testing and fault diagnosis system structure of the multi-head parallel storage platform described in this embodiment of the invention; Figure 3 This is a schematic diagram of the self-testing and fault diagnosis device structure of the multi-head parallel storage platform described in this embodiment of the invention; Figure 4 This is a flowchart of the multi-head hierarchical BIST dual-mode test execution in the self-testing and fault diagnosis method of the multi-head parallel storage platform described in this embodiment of the invention. Figure 5 This is a schematic diagram of the hierarchical hash fault dictionary storage structure and hierarchical matching logic in the self-testing and fault diagnosis method of the multi-head parallel storage platform described in this embodiment of the invention. Figure 6 This is a block diagram illustrating the principle of the adaptive differential test vector offline compression algorithm in the self-testing and fault diagnosis method of the multi-head parallel storage platform described in this embodiment of the invention.

[0018] In the diagram: 701, Improved generation module; 702, Extraction and construction module; 703, Decoding and restoration module; 704, Acquisition and calculation module; 705, Extraction and filtering module; 706, Judgment and generation module; 800, Self-testing and fault diagnosis equipment for multi-head parallel storage platform; 801, Processor; 802, Memory; 803, Multimedia component; 804, I / O interface; 805, Communication component. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, 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, not all, of the embodiments of the present invention. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.

[0020] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this invention, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0021] Example 1:

[0022] This embodiment provides a self-testing and fault diagnosis method for a multi-head parallel storage platform.

[0023] See Figure 1 The figure shows that the method includes steps S1, S2, S3, S4, S5 and S6.

[0024] Step S1: Obtain the original test vectors of N head channels, use the majority voting algorithm to extract the common basis vector shared by all channels bit by bit, and generate a differential vector that only records the different bits for each channel. Perform improved run-length encoding compression on the common basis vector and the differential vector respectively, generate a compressed data packet and harden it to the on-chip storage medium. Step S2: Collect single-channel fault response features and cross-channel coupled fault response features through fault injection simulation, extract standardized L-dimensional fault feature vectors for each fault type, calculate fixed-width hash codes for each feature vector according to the hash mapping formula, construct a bottom-level single-channel fault dictionary and a top-level cross-channel coupled fault dictionary, and establish corresponding hash index tables for each, and then solidify them into the on-chip ROM. Step S3: The on-chip decompression circuit reads the compressed data packet, decodes and restores the common basis vector and the differential vector of each channel, and superimposes the differential vector of each channel onto the common basis vector through bitwise XOR operation, and restores the complete test stimulus of N head-specific devices in parallel, and outputs it synchronously to all head channels. Step S4: The multi-head layered built-in self-test subsystem receives the complete test stimulus restored in step S3, performs the test in channel independent self-test mode or cross-channel linkage self-test mode, collects the response waveforms of each channel, calculates the crosstalk intensity comprehensive coefficient according to the crosstalk intensity comprehensive coefficient calculation formula, classifies the fault level according to the value range of the coefficient, and extracts the L-dimensional fault feature vector from the response waveform. Step S5: The hierarchical hash fault dictionary module receives the L-dimensional fault feature vector extracted in step S4, calculates its hash code according to the same hash mapping formula in step S2, and quickly matches the hash code with the hash index table in step S2 to filter out candidate fault entries. According to the current test mode, it selects to search the bottom single-channel fault dictionary or the top cross-channel coupled fault dictionary, calculates the similarity between the candidate entry and the feature vector to be tested according to the normalized Hamming distance similarity formula, filters the best matching entry with a similarity higher than the preset threshold, and outputs the fault head number, failure type, fault level and physical failure location corresponding to the entry, where the fault level includes the fault level judgment result divided in step S4; Step S6: The top-level BIST controller summarizes the fault location information of all channels. If the crosstalk intensity comprehensive coefficient of any channel is determined to be of the severe channel fault level by step S4, a hardware alarm is triggered synchronously and the failed read / write head channel is marked so that the hard drive main controller firmware can perform channel shielding and load reduction protection operations. If the crosstalk intensity comprehensive coefficient of all channels is determined to be of the normal level, a test pass report is generated and the hard drive is restored to normal working mode.

[0025] Specifically, in step S1, the common basis vectors are generated bit by bit according to the following majority voting rule:

[0026] In the formula, Here is the current bit sequence number being processed, and N is the total number of head channels. Let j be the binary value of the j-th bit of the i-th channel. To count the total number of channels where the j-th position is equal to b out of N channels, To find the value of b that maximizes the statistical quantity, we will use it as the j-th value of the common basis; Compression ratio is calculated using the following formula:

[0027] In the formula, M is the total number of bits in a single original test vector. The storage length of the common basis vector after compression using improved run-length encoding. This represents the total number of bits of raw data from all N channels without compression. The storage length after common base compression. Let be the storage length of the differential mask after compression for the i-th channel. This represents the total storage length of all data after compression. This refers to the compression ratio.

[0028] Specifically, in step S3, the parallel restoration is performed according to the following formula:

[0029] In the formula, This represents the true value of the j-th bit of the complete test vector for the i-th channel after decompression and recovery. Let j be the value of the j-th element in the common basis vector. This represents the value of the j-th bit in the difference vector of the i-th channel. For bitwise XOR operation; N-channel magnetic head synchronously and in parallel perform restoration operation to achieve single-cycle multi-channel vector synchronous output.

[0030] Specifically, in step S4, the cross-channel linkage self-test mode includes: automatically traversing all pairs of magnetic heads, and collecting the linkage response waveform after electromagnetic crosstalk and power supply coupling interference in a synchronous parallel read / write manner with the target magnetic head and the interfering magnetic head; the crosstalk intensity comprehensive coefficient CI is calculated according to the following formula: Amplitude crosstalk rate:

[0031] In the formula, This is a single-head reference response sequence; This is the linkage response sequence when the interfering magnetic heads are in parallel; The length of the sampling sequence; This represents the maximum amplitude of the signal. Timing offset:

[0032] In the formula, The maximum sliding distance of the accumulated result; Crosstalk strength comprehensive coefficient:

[0033] In the formula, , These are the weighting coefficients. The amplitude deviation threshold, This is the time-series offset threshold.

[0034] Specifically, the weighting coefficient takes the value of =0.6、 =0.4; Based on the current hardware specifications of the head channel, the amplitude deviation threshold and timing offset threshold are dynamically configured by the hard drive controller firmware. The fault level classification rules are as follows: A CI < 0.7 is considered normal. When 0.7 ≤ CI < 1.0, it is judged as a mild crosstalk alarm; When CI ≥ 1.0, it is considered a serious channel fault.

[0035] In step S5, the hash mapping is performed according to the following formula:

[0036] In the formula, Let L be the L-dimensional feature vector to be tested. Represents amplitude deviation, There are a total of L features, including time series offset. For each dimension of feature hash coefficients, For bitwise XOR operation, For modulo compression, K is the number of bits in the hash code, compressing the merged, extremely long number into a fixed-length short code. The final output fault hash is a short code; 3 to 5 candidate fault entries are quickly selected from the hash index table using the hash code.

[0037] In step S5, the normalized Hamming distance similarity is calculated according to the following formula:

[0038] In the formula, This is the binary feature string of the currently measured fault; The binary feature string of a standard fault in the dictionary; Let L be the total number of bits in two binary strings of equal length, where the corresponding digits are different; L is the total number of bits in the feature. To match similarity, take the following values: ; The candidate item with the largest S value among those with similarity higher than the preset threshold is selected as the optimal matching result, and the corresponding faulty head number, failure type, failure level and physical failure location are output. The default value of the preset similarity threshold is 0.85, and it is dynamically adjusted by the top-level BIST controller by receiving configuration instructions from external test equipment or hard drive firmware.

[0039] Each entry in the bottom-level single-channel fault dictionary includes a fault feature hash code, fault type, physical location, and repair suggestions; each entry in the top-level cross-channel coupled fault dictionary includes the number of the faulty head, coupling feature code, fault level, and location conclusion.

[0040] The multi-head layered built-in self-test subsystem adopts a time-division multiplexing scheduling mechanism. Multiple head channels share a core test algorithm circuit, which is scheduled by the top-level BIST controller in a time-division manner to support parallel testing of 2 to 8 head channels in a way that does not exceed the hardware area overhead threshold. Among them, the channel independent self-test mode supports two test granularities: full address traversal factory inspection and key address sampling online self-test.

[0041] See Figure 4-6 This invention utilizes a multi-head parallel read / write hard disk controller chip as its platform, with the entire system integrated within the controller chip. Taking a four-head parallel architecture as an example, the hardware configuration is as follows: The top-level BIST scheduling controller is implemented using a finite state machine. It integrates a test instruction register group, configuration parameter latch, and status monitoring unit. It is used to receive test instructions issued by external test equipment or hard disk firmware, configure test modes, read and write address ranges and feature matching similarity thresholds, coordinate the scheduling of the entire test process, and summarize the test diagnostic results of each channel.

[0042] The adaptive differential vector decompression module is configured with a common base register, four differential correction units, and an improved run-length encoding / decoding circuit. The common base register is a parallel output register, with its output connected to the inputs of the four differential correction units. Each differential correction unit includes a differential register and a bitwise XOR operation logic array, corresponding to the four head channels respectively. The improved run-length encoding / decoding circuit internally includes a continuous segment counter, used to restore the complete binary sequence based on the continuous segment records during decoding. In the offline stage, this module extracts the common base vector based on the majority voting principle and generates the differential vector for each channel, performing improved run-length encoding secondary compression to generate compressed data packets; in the online stage, it synchronously and in parallel decodes and restores the complete test stimulus specific to each of the four heads.

[0043] The multi-head hierarchical built-in self-test subsystem comprises four channel-level independent self-test units and cross-channel linked self-test logic units. Each independent self-test unit integrates test stimulus generation circuitry, response acquisition circuitry, and fault feature extraction circuitry. The cross-channel linked self-test logic unit includes a channel pairing control subunit, which sequentially selects each head combination according to a preset pairing traversal order and controls the target channel and interfering channels to perform read and write operations synchronously. A time-division multiplexing scheduler is configured within the top-level BIST controller, using a time-slice rotation method to time-division multiplex the core test algorithm circuitry among the channels.

[0044] The hierarchical hash fault dictionary module includes on-chip read-only memory (ROM) storage units and hash matching retrieval circuitry. The ROM is divided into a bottom-level single-channel fault dictionary area and a top-level cross-channel coupled fault dictionary area. The bottom-level single-channel fault dictionary area stores feature entries for independent faults such as single-channel head open circuits, short circuits, gain deviations, and timing violations. Each entry includes a fault feature hash code, fault type code, physical location code, and repair suggestion code. The top-level cross-channel coupled fault dictionary area stores feature entries for crosstalk exceeding limits, synchronization phase offset, and power supply noise coupling faults caused by multi-head linkage. Each entry includes a mask of the participating faulty head number, coupling feature code, fault level code, and location conclusion code. Each dictionary area is configured with a hash index table, using the hash code as the key to store address pointers to the corresponding dictionary entries. The hash matching retrieval circuitry includes a hash calculation subcircuit, a hash bucket read control subcircuit, a similarity calculation subcircuit, and a comparison decision subcircuit. These subcircuits are cascaded to complete the entire process from hash code calculation to the output of the optimal matching entry.

[0045] This invention comprises two main stages: offline preprocessing and on-chip real-time testing.

[0046] During the offline preprocessing stage, the adaptive differential test vector compression module first obtains the original test vectors for all head channels. Taking a four-head channel and a single-channel 1024-bit test vector as an example, the original test vectors of each channel are aligned bit by bit, and then a majority vote is performed bit by bit: the values ​​of the same bit in the four channels are counted. If the number of channels with a value of 1 in that bit is greater than the number of channels with a value of 0, then the common basis vector is set to 1 in that bit; otherwise, it is set to 0. This rule is repeated for all bits to generate a complete common basis vector. Then, the original test vector of each channel is XORed bit by bit with the common basis vector: an XOR result of 0 indicates that the bit is consistent with the common basis and does not need to be recorded; an XOR result of 1 indicates that the bit differs from the common basis and its position and value need to be recorded. The difference information of each channel is summarized into the difference vector of that channel. Then, improved run-length encoding compression is performed on the common basis vector and the four-way difference vector respectively. The improved run-length encoding does not store each 0 or 1 bit individually. Instead, it scans the data string to be encoded bit by bit from the beginning. Whenever a consecutive identical digit is encountered, the value of that digit and the number of consecutive occurrences are recorded. If the current bit differs from the previous bit, the recording of the current consecutive segment ends and a new consecutive segment begins. The recording results of each consecutive segment are concatenated to form the compressed data packet. This encoding method is lossless compression. During decompression, the complete data string corresponding to the corresponding value is restored by consecutive bits, which can restore the original data to 100%. After all vector compression is completed, the compressed data packet is burned to the on-chip storage unit of the hard disk controller.

[0047] Meanwhile, during the pre-silicon verification phase, response characteristics of various faults are collected through fault injection simulation. Specifically, independent fault types such as single-channel open circuit, short circuit, gain offset, and timing violation are injected into the simulation model, as well as cross-channel coupled fault types such as multi-head crosstalk, synchronization deviation, and power coupling. Simulations are run under each fault condition, and response waveforms for each channel are collected. For each fault response waveform obtained from the simulation, a standardized L-dimensional fault feature vector is extracted using a fault feature extraction circuit. This feature vector contains multi-dimensional fault features such as amplitude deviation, delay offset, and bit error distribution. Subsequently, each feature value is multiplied by the corresponding dimension's hash coefficient, and a bitwise XOR operation is performed on the product of all dimensions. The XOR result is truncated into a fixed-width hash code. This hash code serves as the index key for the fault entry. Feature entries of single-channel independent faults are categorized to construct a bottom-level single-channel fault dictionary, and feature entries of cross-channel coupled faults are categorized to construct a top-level cross-channel coupled fault dictionary. A hash index table is established for each dictionary, mapping each hash code to the corresponding dictionary entry's storage address pointer in read-only memory. After the dictionary construction is completed, the underlying single-channel fault dictionary, the top-level cross-channel coupled fault dictionary, and the corresponding hash index table are all permanently stored in the on-chip read-only memory.

[0048] During the on-chip real-time testing phase, external test equipment or hard drive firmware sends a test start command to the top-level BIST controller. The top-level BIST controller triggers a decompression enable signal, and the on-chip decompression circuit reads the compressed data packet from the on-chip storage medium. The decoder first decodes the compressed data packet segment by segment according to the reverse process of improved run-length encoding, restoring the common basis vector and the differential vectors of the four channels. The common basis vector is loaded into the common basis register, and each differential vector is loaded into the differential correction unit of the corresponding channel. Subsequently, the four differential correction units synchronously perform restoration operations: each channel performs a bitwise XOR operation between the common basis vector and the differential vector of its own channel, and the XOR result is output to the excitation input terminal of the corresponding head channel. All four channels synchronously obtain complete test excitation data within a single clock cycle, ensuring the timing consistency of multi-head parallel testing.

[0049] The top-level BIST controller controls the multi-head layered built-in self-test subsystem to perform tests in either channel-independent self-test mode or cross-channel linkage self-test mode, based on the configured test mode indicator bit.

[0050] In independent self-test mode, the independent self-test units of each head channel start in parallel. The test stimulus generation circuit of each channel applies the received test stimulus to the read / write channel of the head, and the response acquisition circuit synchronously acquires the output response waveform of each channel. The test address range is executed according to the configuration parameters: if configured for factory full inspection mode, all memory addresses are traversed; if configured for online self-test mode, only key sampling addresses are traversed. After the response acquisition of each channel is completed, the fault feature extraction circuit extracts features such as amplitude deviation and time delay offset from the response waveform, forms a standardized L-dimensional fault feature vector, and transmits it along with the channel number to the hierarchical hash fault dictionary module.

[0051] In the cross-channel linkage self-test mode, the channel pairing control subunit automatically traverses all pairwise combinations of the magnetic heads in a preset order. Taking a four-channel system as an example, it traverses six pairing combinations in sequence: Channel 1 and Channel 2, Channel 1 and Channel 3, Channel 1 and Channel 4, Channel 2 and Channel 3, Channel 2 and Channel 4, and Channel 3 and Channel 4. For each pairing, the top-level controller simultaneously selects the test stimuli for both the target channel and the interference channel, enabling the two channels to perform read and write operations synchronously, and acquiring the linkage response waveforms of the target channel and the interference channel under the current interference conditions. After the response waveform acquisition is completed, the crosstalk fault quantification algorithm circuit analyzes the linkage response waveform of each channel: First, it compares the linkage response sequence of the currently interfered channel with the reference response sequence of that channel point by point, calculates the ratio of the absolute value of the amplitude deviation at each sampling point to the maximum signal range, and then averages the ratios of all sampling points to obtain the average amplitude interference level; simultaneously, it slides the linkage response sequence relative to the reference response sequence bit by bit to calculate the cross-correlation value, finds the sliding amount corresponding to the maximum cross-correlation value, and this sliding amount is the timing offset; then, it multiplies the ratio of the amplitude interference level to the amplitude deviation threshold by the amplitude weighting coefficient, and adds the ratio of the absolute value of the timing offset to the timing offset threshold by the timing weighting coefficient, and sums the two to obtain the crosstalk intensity comprehensive coefficient. The amplitude deviation threshold and timing offset threshold are pre-configured by the hard disk controller firmware according to the hardware specifications of the current head channel, with the amplitude weighting coefficient fixed at 60% and the timing weighting coefficient fixed at 40%. After the crosstalk intensity comprehensive coefficient is calculated, the fault level is determined according to the following rules: a comprehensive coefficient less than 0.7 is considered normal; a comprehensive coefficient greater than or equal to 0.7 and less than 1.0 is considered a mild crosstalk alarm; and a comprehensive coefficient greater than or equal to 1.0 is considered a severe channel fault. The fault feature extraction circuit for each channel combines multi-dimensional features such as amplitude deviation, timing offset, and bit error distribution into an L-dimensional fault feature vector, which, along with the channel number, crosstalk intensity comprehensive coefficient, and fault level determination result, is transmitted to the hierarchical hash fault dictionary module.

[0052] After receiving the L-dimensional fault feature vector to be tested, the hierarchical hash fault dictionary module first calculates the fixed-width hash code of the vector according to the same hash mapping formula as the offline pre-constructed module: multiplying each feature value by the corresponding dimension's hash coefficient and performing a bitwise XOR operation, then truncating the XOR result into a fixed-width hash code. Subsequently, using this hash code as the index key, the module queries the hash index table to locate the corresponding hash bucket, reads the storage addresses of several candidate fault entries from the hash bucket, and completes the initial screening.

[0053] After initial screening, the hierarchical hash fault dictionary module determines the retrieval level based on the current test mode indicator bit of the top-level BIST controller. If the current mode is independent self-test, only the bottom-level single-channel fault dictionary is retrieved; if the current mode is linked self-test, the bottom-level single-channel fault dictionary is retrieved first. After determining the retrieval level, the standard feature vectors stored in each candidate fault entry are read sequentially from the selected dictionary. The feature vector to be tested is compared bit by bit with each candidate standard feature vector. The total number of dimensions where the two differ in the same dimension is counted as the Hamming distance. The Hamming distance is divided by the total number of bits in the feature vector to obtain the normalized distance. The normalized distance is then subtracted by one to obtain the matching similarity. The calculated similarity is compared with a preset threshold: if the similarity is lower than the threshold, the candidate entry is discarded and the next entry is compared; if the similarity is higher than the threshold, the candidate entry and its similarity value are retained. After all candidate entries are compared, the one with the highest similarity among the retained entries is selected as the optimal matching result. If the similarity of all candidate entries in the bottom-level single-channel fault dictionary is lower than the preset threshold, and the current mode is linked self-test, then the system switches to the top-level cross-channel coupled fault dictionary for a secondary search. The faulty head number, failure type, fault level, and physical failure location are read from the best matching entry, and packaged together with the crosstalk strength comprehensive coefficient and fault level determination result, and transmitted back to the top-level BIST controller. The default value of the preset similarity threshold is 0.85, and it is dynamically adjusted by the top-level BIST controller based on configuration instructions received from external testing equipment or hard drive firmware.

[0054] After receiving fault location information from each channel, the top-level BIST controller first integrates the test status of all channels to generate a standardized system-wide test report. It then determines the fault level based on the comprehensive crosstalk intensity coefficient of all channels: if all channels are determined to be at the normal level, a test pass report is generated and the hard drive controller firmware is instructed to restore the hard drive to normal operating mode. If the comprehensive crosstalk intensity coefficient of any channel is determined to be at the severe channel fault level, a hardware alarm signal is immediately generated, the failed head channel number and its fault type are marked in the test report, and the report is sent to the hard drive controller firmware. Upon receiving the severe fault report, the hard drive controller firmware calls the channel shielding program to isolate the failed channel from subsequent read / write operations and calls the load reduction protection program to adjust the operating parameters of the remaining normal channels to compensate for performance loss. If the fault level of all channels does not reach the severe fault level but a mild crosstalk alarm exists, a test report is generated and sent to the firmware, which then decides whether to trigger preventative maintenance or adjust operating parameters.

[0055] The following example, using a specific factory test scenario of a four-head parallel hard drive, illustrates the complete implementation process of this invention.

[0056] The hard drive controller chip integrates four head channels, and all channels need to be tested with full address traversal during the factory testing phase.

[0057] In the offline preprocessing stage, the test vector compression module acquires 1024-bit raw test vectors for each of the four channels. The total raw data size is 4096 bits. After extracting the common basis vector through majority voting, the total difference bits of the differential vectors for the four channels are 320 bits. After secondary compression of the common basis vector and differential vector through improved run-length encoding, the total stored data size is approximately 920 bits. The compression rate reaches approximately 77.5%. The compressed data package is burned into the on-chip storage unit. Simultaneously, the response characteristics of single-channel and cross-channel coupled faults are collected in advance through fault injection simulation, a standardized 16-dimensional fault feature vector is extracted and a hash code is calculated to construct a bottom-level single-channel fault dictionary (128 entries) and a top-level cross-channel coupled fault dictionary (64 entries), which are then stored in the on-chip read-only memory.

[0058] During the on-chip online testing phase, the external testing equipment sends a test start command to the top-level BIST controller, configuring the test mode as independent self-test mode, the address range as full address traversal, and the similarity threshold as 0.85. The top-level BIST controller triggers the decompression enable signal, and the on-chip decompression circuit reads the compressed data packet, decodes and restores the common basis vector and the four differential vectors. The four differential correction units synchronously perform XOR operations, and output four complete test stimuli to each head channel in parallel within a single cycle.

[0059] Each channel's independent self-test unit starts in parallel, traversing all memory addresses to perform read and write tests. Assume that the response acquisition result of channel one at a certain address shows an amplitude deviation characteristic value that is too high, while the responses of channels two through four are normal. The fault feature extraction circuit of each channel extracts a sixteen-dimensional fault feature vector from the response waveform. The feature vector of channel one is transmitted to the hierarchical hash fault dictionary module.

[0060] The hash matching retrieval circuit calculates the hash code of the feature vector of channel one and queries the hash index table, finding a hash bucket containing four candidate entries. Since the current test mode is independent self-test mode, the retrieval path is limited to the underlying single-channel fault dictionary. The similarity calculation sub-circuit compares the standard feature vectors of the four candidate entries sequentially. One single-channel gain offset fault entry has a similarity of 0.92, higher than the threshold of 0.85, and is selected as the optimal match. This entry outputs the fault head number as channel one, the failure type as gain offset, the fault level as a general fault, and the physical failure location as the output of the channel one preamplifier. After receiving this location information, the top-level BIST controller summarizes it along with the normal status information of channels two through four, generating a test report and submitting it to the firmware. Since this fault is a general fault rather than a severe channel fault, the system records the fault information but does not trigger a channel masking operation, and the hard drive proceeds to the next process.

[0061] Assuming that in another test batch, the top-level BIST controller is configured in cross-channel linkage self-test mode. The channel pairing control subunit sequentially traverses all heads in pairs. Taking channel 1 and channel 2 as an example, after the two channels synchronously perform read and write operations, the linkage response waveform of channel 1 is collected. The crosstalk fault quantification judgment algorithm calculates that the amplitude interference level exceeds the amplitude deviation threshold, and the timing offset also exceeds the timing offset threshold. The calculated crosstalk intensity comprehensive coefficient is 1.15, which is greater than or equal to 1.0, and is judged as a severe channel fault. The fault feature extraction circuit extracts a sixteen-dimensional fault feature vector and transmits it to the hash matching retrieval circuit. After initial screening of the hash code, no matching entry higher than the threshold is found in the bottom single-channel dictionary, and the retrieval path automatically switches to the top-level cross-channel coupling fault dictionary. A crosstalk fault entry between channel 1 and channel 2 is matched from the top-level dictionary, with a similarity of 0.94. The output fault head number is channel 1 and channel 2, the failure type is electromagnetic crosstalk, the fault level is severe channel fault, and the physical failure location is the power supply coupling path between the input terminal of the channel 1 read / write amplifier and the output terminal of the channel 2 drive circuit. Upon receiving this location information, the top-level BIST controller immediately generates a hardware alarm signal, marks channels one and two as failed channels, and generates a test report to be submitted to the firmware. The firmware calls the channel masking program to remove channels one and two from the address mapping table, and calls the load reduction protection program to adjust the operating parameters of channels three and four, allowing the hard drive to continue operating with the remaining two channels.

[0062] It should be noted that this invention can be applied to the following typical scenarios: 1. Factory-delivered system testing scenario: After the hard drive is assembled, before leaving the factory, all head channels are subjected to independent self-tests with full address traversal and cross-channel linkage self-tests to ensure that all single-channel functions and inter-channel coupling indicators meet the factory specifications.

[0063] 2. Online periodic self-test scenario: When the hard drive is running normally in the user environment, the firmware periodically triggers online self-test of key addresses to quickly screen for potential faults such as channel aging and crosstalk performance degradation, and provides early warning.

[0064] 3. Fault diagnosis and location scenario: When the hard drive experiences read / write abnormalities, the firmware triggers a diagnostic mode test to quickly locate the faulty head number, failure type, and physical failure location, providing a basis for repair decisions.

[0065] 4. Reliability protection trigger scenario: When a serious channel failure is detected during online testing, channel shielding and load reduction protection are automatically triggered to prevent the failure from spreading and to ensure data integrity and system availability.

[0066] Example 2:

[0067] like Figure 2 As shown, this embodiment provides a self-testing and fault diagnosis system for a multi-head parallel storage platform. See [link to documentation]. Figure 2 The system includes: Improved generation module 701: used to obtain the original test vectors of N magnetic head channels, use the majority voting algorithm to extract the common basis vector shared by all channels bit by bit, and generate a differential vector that only records the different bits for each channel. Improved run-length encoding compression is performed on the common basis vector and the differential vector respectively to generate a compressed data packet and harden it to the on-chip storage medium. Extraction Module 702: Used to collect single-channel fault response features and cross-channel coupled fault response features through fault injection simulation, extract standardized L-dimensional fault feature vectors for each fault type, calculate fixed-width hash codes for each feature vector according to the hash mapping formula, construct a bottom-level single-channel fault dictionary and a top-level cross-channel coupled fault dictionary, and establish corresponding hash index tables for each, and then solidify them into on-chip ROM. Decoding and Restoration Module 703: Used by the on-chip decompression circuit to read compressed data packets, decode and restore the common basis vector and the differential vectors of each channel, and superimpose the differential vectors of each channel onto the common basis vector through bitwise XOR operation, restore the complete test stimuli of N heads in parallel, and output them synchronously to all head channels. Acquisition and calculation module 704: used for receiving the complete test stimulus restored in step S3 of the multi-head layered built-in self-test subsystem, performing the test in channel independent self-test mode or cross-channel linkage self-test mode, acquiring the response waveform of each channel, calculating the crosstalk intensity comprehensive coefficient according to the crosstalk intensity comprehensive coefficient calculation formula, classifying the fault level according to the value range of the coefficient, and extracting the L-dimensional fault feature vector from the response waveform. Extraction and filtering module 705: The hierarchical hash fault dictionary module receives the L-dimensional fault feature vector extracted in step S4, calculates its hash code according to the same hash mapping formula in step S2, and quickly matches the hash code with the hash index table in step S2 to filter out candidate fault entries. According to the current test mode, it selects to search the bottom single-channel fault dictionary or the top cross-channel coupled fault dictionary, calculates the similarity between the candidate entry and the feature vector to be tested according to the normalized Hamming distance similarity formula, filters the best matching entry with a similarity higher than a preset threshold, and outputs the fault head number, failure type, fault level and physical failure location corresponding to the entry, where the fault level includes the fault level judgment result divided in step S4; Judgment Generation Module 706: Used by the top-level BIST controller to summarize the fault location information of all channels. If the crosstalk intensity comprehensive coefficient of any channel is determined to be of the severe channel fault level by step S4, a hardware alarm is triggered synchronously and the failed read / write head channel is marked, so that the hard drive main controller firmware can perform channel shielding and load reduction protection operations. If the crosstalk intensity comprehensive coefficient of all channels is determined to be of the normal level, a test pass report is generated and the hard drive is restored to normal working mode.

[0068] It should be noted that the specific methods by which each module performs operations in the system described in the above embodiments have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0069] Example 3:

[0070] Corresponding to the above method embodiments, this embodiment also provides a self-testing and fault diagnosis device for a multi-head parallel storage platform. The self-testing and fault diagnosis device for a multi-head parallel storage platform described below and the self-testing and fault diagnosis method for a multi-head parallel storage platform described above can be referred to in correspondence.

[0071] Figure 3 This is a block diagram illustrating a self-test and fault diagnosis device 800 for a multi-head parallel storage platform according to an exemplary embodiment. Figure 3As shown, the self-test and fault diagnosis device 800 of the multi-head parallel storage platform includes a processor 801 and a memory 802. The self-test and fault diagnosis device 800 also includes one or more of a multimedia component 803, an I / O interface 804, and a communication component 805.

[0072] The processor 801 controls the overall operation of the self-test and fault diagnosis device 800 of the multi-head parallel storage platform to complete all or part of the steps in the self-test and fault diagnosis method of the multi-head parallel storage platform described above. The memory 802 stores various types of data to support the operation of the self-test and fault diagnosis device 800 of the multi-head parallel storage platform. This data may include, for example, instructions for any application or method operating on the self-test and fault diagnosis device 800 of the multi-head parallel storage platform, as well as application-related data, such as contact data, sent and received messages, images, audio, video, etc. The memory 802 can be implemented using any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The multimedia component 803 may include a screen and an audio component. The screen may be, for example, a touchscreen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 802 or transmitted via the communication component 805. The audio component also includes at least one speaker for outputting audio signals. I / O interface 804 provides an interface between processor 801 and other interface modules, such as keyboards, mice, or buttons. These buttons can be virtual or physical. Communication component 805 is used for wired or wireless communication between the self-test and fault diagnosis device 800 of the multi-head parallel storage platform and other devices. Wireless communication includes, for example, Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or one or more combinations thereof. Therefore, the corresponding communication component 805 may include a Wi-Fi module, a Bluetooth module, or an NFC module.

[0073] In an exemplary embodiment, the self-test and fault diagnosis device 800 of the multi-head parallel storage platform may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the self-test and fault diagnosis method of the multi-head parallel storage platform described above.

[0074] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided. When executed by a processor, these program instructions implement the steps of the self-test and fault diagnosis method for the multi-head parallel storage platform described above. For example, the computer-readable storage medium may be the memory 802 including the program instructions described above. These program instructions may be executed by the processor 801 of the self-test and fault diagnosis device 800 for the multi-head parallel storage platform to complete the self-test and fault diagnosis method for the multi-head parallel storage platform described above.

[0075] Example 4:

[0076] Corresponding to the above method embodiments, this embodiment also provides a readable storage medium. The readable storage medium described below and the self-testing and fault diagnosis method of a multi-head parallel storage platform described above can be referred to each other.

[0077] A computer program is stored on a readable storage medium, and when the computer program is executed by a processor, it implements the steps of the self-testing and fault diagnosis method of the multi-head parallel storage platform in the above method embodiments.

[0078] The readable storage medium can specifically be a USB flash drive, external hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, or any other readable storage medium capable of storing program code.

[0079] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.

Claims

1. A self-testing and fault diagnosis method for a multi-head parallel storage platform, characterized in that, include: Step S1: Obtain the original test vectors of N head channels, use the majority voting algorithm to extract the common basis vector shared by all channels bit by bit, and generate a differential vector that only records the different bits for each channel. Perform improved run-length encoding compression on the common basis vector and the differential vector respectively, generate a compressed data packet and harden it to the on-chip storage medium. Step S2: Collect single-channel fault response features and cross-channel coupled fault response features through fault injection simulation, extract standardized L-dimensional fault feature vectors for each fault type, calculate fixed-width hash codes for each feature vector according to the hash mapping formula, construct a bottom-level single-channel fault dictionary and a top-level cross-channel coupled fault dictionary, and establish corresponding hash index tables for each, and then solidify them into the on-chip ROM. Step S3: The on-chip decompression circuit reads the compressed data packet, decodes and restores the common basis vector and the differential vector of each channel, and superimposes the differential vector of each channel onto the common basis vector through bitwise XOR operation, and restores the complete test stimulus of N head-specific devices in parallel, and outputs it synchronously to all head channels. Step S4: The multi-head layered built-in self-test subsystem receives the complete test stimulus restored in step S3, performs the test in channel independent self-test mode or cross-channel linkage self-test mode, collects the response waveforms of each channel, calculates the crosstalk intensity comprehensive coefficient according to the crosstalk intensity comprehensive coefficient calculation formula, classifies the fault level according to the value range of the coefficient, and extracts the L-dimensional fault feature vector from the response waveform. Step S5: The hierarchical hash fault dictionary module receives the L-dimensional fault feature vector extracted in step S4, calculates its hash code according to the same hash mapping formula in step S2, and quickly matches the hash code with the hash index table in step S2 to filter out candidate fault entries. According to the current test mode, it selects to search the bottom single-channel fault dictionary or the top cross-channel coupled fault dictionary, calculates the similarity between the candidate entry and the feature vector to be tested according to the normalized Hamming distance similarity formula, filters the best matching entry with a similarity higher than the preset threshold, and outputs the fault head number, failure type, fault level and physical failure location corresponding to the entry, where the fault level includes the fault level judgment result divided in step S4; Step S6: The top-level BIST controller summarizes the fault location information of all channels. If the crosstalk intensity comprehensive coefficient of any channel is determined to be of the severe channel fault level by step S4, a hardware alarm is triggered synchronously and the failed read / write head channel is marked so that the hard drive main controller firmware can perform channel shielding and load reduction protection operations. If the crosstalk intensity comprehensive coefficient of all channels is determined to be of the normal level, a test pass report is generated and the hard drive is restored to normal working mode.

2. The self-testing and fault diagnosis method for a multi-head parallel storage platform according to claim 1, characterized in that, In step S1, the common basis vectors are generated bit by bit according to the following majority voting rule: In the formula, Here is the current bit sequence number being processed, and N is the total number of head channels. Let j be the binary value of the j-th bit of the i-th channel. To count the total number of channels where the j-th position is equal to b out of N channels, To find the value of b that maximizes the statistical quantity, we will use it as the j-th value of the common basis; Compression ratio is calculated using the following formula: In the formula, M is the total number of bits in a single original test vector. The storage length of the common basis vector after compression using improved run-length encoding. This represents the total number of bits of raw data from all N channels without compression. The storage length after common base compression. Let be the storage length of the differential mask after compression for the i-th channel. This represents the total storage length of all data after compression. This refers to the compression ratio.

3. The self-testing and fault diagnosis method for a multi-head parallel storage platform according to claim 1, characterized in that, In step S3, the parallel restoration is performed according to the following formula: In the formula, This represents the true value of the j-th bit of the complete test vector for the i-th channel after decompression and recovery. Let j be the value of the j-th element in the common basis vector. This represents the value of the j-th bit in the difference vector of the i-th channel. For bitwise XOR operation; N-channel magnetic head synchronously and in parallel perform restoration operation to achieve single-cycle multi-channel vector synchronous output.

4. The self-testing and fault diagnosis method for a multi-head parallel storage platform according to claim 1, characterized in that, In step S4, the cross-channel linkage self-test mode includes: automatically traversing all pairwise combinations of magnetic heads, and collecting the linkage response waveform after electromagnetic crosstalk and power supply coupling interference in a synchronous parallel read / write manner with the target magnetic head and the interfering magnetic head; the crosstalk intensity comprehensive coefficient CI is calculated according to the following formula: Amplitude crosstalk rate: In the formula, This is a single-head reference response sequence; This is the linkage response sequence when the interfering magnetic heads are in parallel; The length of the sampling sequence; This represents the maximum amplitude of the signal. Timing offset: In the formula, The maximum sliding distance of the accumulated result; Crosstalk strength comprehensive coefficient: In the formula, , These are the weighting coefficients. The amplitude deviation threshold, This is the time-series offset threshold.

5. The self-testing and fault diagnosis method for a multi-head parallel storage platform according to claim 1, characterized in that, The weighting coefficient is taken as: =0.6、 =0.4; Based on the current hardware specifications of the head channel, the amplitude deviation threshold and timing offset threshold are dynamically configured by the hard drive controller firmware. The fault level classification rules are as follows: A CI < 0.7 is considered normal. When 0.7 ≤ CI < 1.0, it is judged as a mild crosstalk alarm; When CI ≥ 1.0, it is considered a serious channel fault.

6. The self-testing and fault diagnosis method for a multi-head parallel storage platform according to claim 1, characterized in that, In step S5, the hash mapping is performed according to the following formula: In the formula, Let L be the L-dimensional feature vector to be tested. Represents amplitude deviation, There are a total of L features, including time series offset. For each dimension of feature hash coefficients, For bitwise XOR operation, For modulo compression, K is the number of bits in the hash code, compressing the merged, extremely long number into a fixed-length short code. The final output fault hash is a short code; 3 to 5 candidate fault entries are quickly selected from the hash index table using the hash code.

7. The self-testing and fault diagnosis method for a multi-head parallel storage platform according to claim 1, characterized in that, In step S5, the normalized Hamming distance similarity is calculated according to the following formula: In the formula, This is the binary feature string of the currently measured fault; The binary feature string of a standard fault in the dictionary; Let L be the total number of bits in two binary strings of equal length, where the corresponding digits are different; L is the total number of bits in the feature string. To match similarity, take the following values: ; The candidate item with the largest S value among those with similarity higher than the preset threshold is selected as the optimal matching result, and the corresponding faulty head number, failure type, failure level and physical failure location are output. The default value of the preset similarity threshold is 0.85, and it is dynamically adjusted by the top-level BIST controller by receiving configuration instructions from external test equipment or hard drive firmware.

8. The self-testing and fault diagnosis method for a multi-head parallel storage platform according to claim 1, characterized in that, Each entry in the underlying single-channel fault dictionary includes a fault feature hash code, fault type, physical location, and repair suggestions; Each entry in the top-level cross-channel coupled fault dictionary includes the number of the faulty head involved, the coupling feature code, the fault level, and the location conclusion.

9. The self-testing and fault diagnosis method for a multi-head parallel storage platform according to claim 1, characterized in that, The multi-head layered built-in self-test subsystem adopts a time-division multiplexing scheduling mechanism. Multiple head channels share a core test algorithm circuit, which is scheduled by the top-level BIST controller in a time-division manner to support parallel testing of 2 to 8 head channels in a way that does not exceed the hardware area overhead threshold. Among them, the channel independent self-test mode supports two test granularities: full address traversal factory inspection and key address sampling online self-test.

10. A self-testing and fault diagnosis system for a multi-head parallel storage platform, based on the self-testing and fault diagnosis method for a multi-head parallel storage platform as described in claim 1, characterized in that, include: Improved generation module: used to obtain the original test vectors of N magnetic head channels, use the majority voting algorithm to extract the common basis vector shared by all channels bit by bit, and generate a differential vector that only records the different bits for each channel. Improved run-length encoding compression is performed on the common basis vector and the differential vector respectively to generate compressed data packets and harden them to on-chip storage media. Extraction and construction module: used to collect single-channel fault response features and cross-channel coupled fault response features through fault injection simulation, extract standardized L-dimensional fault feature vectors for each fault type, calculate fixed-width hash codes for each feature vector according to hash mapping formula, construct the bottom-level single-channel fault dictionary and the top-level cross-channel coupled fault dictionary, and establish corresponding hash index tables for each, and solidify them into on-chip ROM; Decoding and Restoration Module: Used by the on-chip decompression circuit to read compressed data packets, decode and restore the common basis vector and the differential vectors of each channel, and superimpose the differential vectors of each channel onto the common basis vector through bitwise XOR operation, and restore the complete test stimuli of N heads in parallel, and output them synchronously to all head channels; The acquisition and calculation module is used to receive the complete test stimulus restored in step S3 of the multi-head layered built-in self-test subsystem, perform the test in the channel independent self-test mode or the cross-channel linkage self-test mode, acquire the response waveform of each channel, calculate the crosstalk intensity comprehensive coefficient according to the crosstalk intensity comprehensive coefficient calculation formula, classify the fault level according to the value range of the coefficient, and extract the L-dimensional fault feature vector from the response waveform. Extraction and Filtering Module: This module receives the L-dimensional fault feature vector extracted in step S4, calculates its hash code using the same hash mapping formula as in step S2, and quickly matches the hash code with the hash index table in step S2 to filter out candidate fault entries. Based on the current test mode, it selects to search the bottom-level single-channel fault dictionary or the top-level cross-channel coupled fault dictionary. It calculates the similarity between the candidate entry and the feature vector to be tested using the normalized Hamming distance similarity formula, filters out the best matching entry with a similarity higher than a preset threshold, and outputs the fault head number, failure type, fault level, and physical failure location corresponding to the entry. The fault level includes the fault level determination result divided in step S4. Judgment Generation Module: Used by the top-level BIST controller to summarize the fault location information of all channels. If the crosstalk intensity comprehensive coefficient of any channel is determined to be of the severe channel fault level by step S4, a hardware alarm is triggered synchronously and the failed read / write head channel is marked, so that the hard drive main controller firmware can perform channel shielding and load reduction protection operations. If the crosstalk intensity comprehensive coefficient of all channels is determined to be of the normal level, a test pass report is generated and the hard drive is restored to normal working mode.