CN120596364A - An EMMC stress testing method and system combining PRBS7 and clock pattern - Google Patents
An EMMC stress testing method and system combining PRBS7 and clock patternInfo
- Publication number
- CN120596364A CN120596364A CN202510506246.4A CN202510506246A CN120596364A CN 120596364 A CN120596364 A CN 120596364A CN 202510506246 A CN202510506246 A CN 202510506246A CN 120596364 A CN120596364 A CN 120596364A
- Authority
- CN
- China
- Prior art keywords
- test
- emmc
- prbs7
- data
- automatic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention provides an EMMC pressure test method and system combining PRBS7 and clock patterns, which belongs to the technical field of EMMC test, and comprises the steps of S1, creating an automatic test script based on Python, randomly generating PRBS7 sequence data and one Zhong Maxing for each bus pattern through the automatic test script, setting the size of a data block transmitted once, S2, obtaining cycle times, test interval time and test data, S3, automatically executing pressure test on EMMC by the automatic test script based on the cycle times, the test interval time, the test data, the PRBS7 sequence data, the clock patterns and the data block size, S4, recording test logs in real time in the process of executing the pressure test by the automatic test script, S5, automatically generating test reports based on the test logs, displaying the test reports, and storing and feeding back the test reports. The method has the advantages that the testing quality, the testing efficiency and the universality of EMMC pressure testing are greatly improved.
Description
Technical Field
The invention relates to the technical field of EMMC (embedded multi-program code) testing, in particular to an EMMC pressure testing method and system combining PRBS7 with a clock code pattern.
Background
EMMC (EmbeddedMultiMediaCard) is an embedded storage solution integrating a flash memory (NANDFlash) and a Controller (Controller), is widely applied to scenes such as mobile equipment, an internet of things terminal and the like, and an interface supports various bus modes (such as 1bit, 4bit and 8 bit) and realizes data read-write operation through a standardized protocol (such as JEDECeMMC standard).
In the design test process of the board-level EMMC, a pressure test needs to be executed on the EMMC, namely, data read-write operation is executed on the EMMC, and whether the EMMC passes the pressure test is judged based on indexes such as data integrity and the like in the read-write operation process. However, the existing EMMC pressure test method has the following limitations:
1. The method adopts a fixed data mode (such as all 0, all 1 or simple increment mode) to perform read-write operation, cannot cover the complex scene of the EMMC in practical application, further has the defects that the time sequence problem of signals (data transmission signals and data receiving signals) is difficult to effectively detect, the pressure test quality of the EMMC is influenced, 2, the bus mode (1 bit, 4bit and 8 bit) is switched by manual operation, the test result is recorded, the efficiency is low, errors are easy to occur, 3, dynamic pressure test (read-write frequency and read-write times) is not combined in the test process, the stability of the EMMC cannot be comprehensively evaluated, 4, special hardware or expensive tools are required for automatic test, the universality is poor, and the cost is high.
Therefore, how to provide a method and a system for testing EMMC pressure by combining PRBS7 and clock patterns, so as to improve the testing quality, testing efficiency and versatility of EMMC pressure testing, is a technical problem to be solved.
Disclosure of Invention
The invention aims to solve the technical problem of providing an EMMC pressure testing method and system combining PRBS7 and clock code patterns, and the method and system can improve the testing quality, the testing efficiency and the universality of EMMC pressure testing.
In a first aspect, the present invention provides an EMMC pressure testing method combining PRBS7 and clock patterns, including the steps of:
Step S1, creating an automatic test script based on Python, randomly generating PRBS7 sequence data and one time Zhong Maxing for each bus mode through the automatic test script, and setting the size of a data block of single transmission;
s2, acquiring an input pressure test instruction carrying cycle times, test interval time and test data, and analyzing the pressure test instruction after verification to obtain the cycle times, the test interval time and the test data;
step S3, the automatic test script automatically executes pressure test on the EMMC based on the cycle times, the test interval time, the test data, the PRBS7 sequence data, the clock code pattern and the data block size;
Step S4, the automatic test script records a test log in real time in the process of executing the pressure test;
And S5, the automatic test script automatically generates a test report based on the test log, displays the test report, and stores and feeds back the test report.
Further, the step S1 specifically includes:
Creating an automatic test script for automatically executing EMMC pressure test based on Python, randomly generating PRBS7 sequence data and one time Zhong Maxing for each bus mode through the automatic test script, storing the PRBS7 sequence data in time Zhong Maxing to a designated path, updating the PRBS7 sequence data stored in the designated path based on a preset updating period and time Zhong Maxing, and setting the size of a data block of single transmission based on the bus mode, wherein the bus mode comprises 1bit, 4bit and 8bit.
Further, the step S3 specifically includes:
The automatic test script respectively performs CRC calculation and hash calculation on the test data to obtain a CRC value and a hash value, sequentially traverses each bus mode, and matches corresponding PRBS7 sequence data from a specified path based on the bus mode to be Zhong Maxing in time;
The automatic test script writes test data into EMMC in blocks based on the size of the data block, overlaps the PRBS7 sequence data in time Zhong Maxing in the writing process, and executes writing integrity check based on the CRC value and the hash value after the writing is completed; then based on the data block size, reading test data from the EMMC in a blocking way, superposing the PRBS7 sequence data in Zhong Maxing in the reading process, and executing reading integrity check based on the CRC value and the hash value after reading is completed so as to complete a cyclic test of EMMC pressure;
and the automatic test script executes the next circulation test based on the test interval time until the EMMC pressure test of the circulation times is completed.
Further, the step S4 specifically includes:
and in the process of executing the pressure test, the automatic test script records a test log which at least comprises a test start time, a test end time, a current test frequency, a total test frequency, a read-write error frequency, an error step and an error rate in real time.
Further, the step S5 specifically includes:
the automatic test script automatically generates a test report carrying cycle times, test interval time, test data, read-write error times, error steps, error rate and test results based on the test log and the pressure test instruction, displays the test report through a display screen, and encrypts, stores and feeds back the test report;
The test result is that the test passes or the test does not pass, and the test report is in an HTML format, a PDF format or a txt format.
In a second aspect, the present invention provides an EMMC pressure testing system combining PRBS7 with clock pattern, comprising the following modules:
an initialization module, configured to create an automatic test script based on Python, and randomly generate, for each bus mode, PRBS7 sequence data and one time Zhong Maxing through the automatic test script, and set a size of a data block for single transmission;
The pressure test instruction verification analysis module is used for acquiring an input pressure test instruction carrying the cycle times, the test interval time and the test data, and analyzing the pressure test instruction after verification to obtain the cycle times, the test interval time and the test data;
The pressure test module is used for automatically executing pressure test on the EMMC by the automatic test script based on the cycle times, the test interval time, the test data, the PRBS7 sequence data, the clock code pattern and the data block size;
The test log recording module is used for recording the test log in real time in the pressure test execution process of the automatic test script;
and the test report management module is used for automatically generating a test report based on the test log by the automatic test script, displaying the test report, and storing and feeding back the test report.
Further, the initialization module is specifically configured to:
Creating an automatic test script for automatically executing EMMC pressure test based on Python, randomly generating PRBS7 sequence data and one time Zhong Maxing for each bus mode through the automatic test script, storing the PRBS7 sequence data in time Zhong Maxing to a designated path, updating the PRBS7 sequence data stored in the designated path based on a preset updating period and time Zhong Maxing, and setting the size of a data block of single transmission based on the bus mode, wherein the bus mode comprises 1bit, 4bit and 8bit.
Further, the pressure testing module is specifically configured to:
The automatic test script respectively performs CRC calculation and hash calculation on the test data to obtain a CRC value and a hash value, sequentially traverses each bus mode, and matches corresponding PRBS7 sequence data from a specified path based on the bus mode to be Zhong Maxing in time;
The automatic test script writes test data into EMMC in blocks based on the size of the data block, overlaps the PRBS7 sequence data in time Zhong Maxing in the writing process, and executes writing integrity check based on the CRC value and the hash value after the writing is completed; then based on the data block size, reading test data from the EMMC in a blocking way, superposing the PRBS7 sequence data in Zhong Maxing in the reading process, and executing reading integrity check based on the CRC value and the hash value after reading is completed so as to complete a cyclic test of EMMC pressure;
and the automatic test script executes the next circulation test based on the test interval time until the EMMC pressure test of the circulation times is completed.
Further, the test log recording module is specifically configured to:
and in the process of executing the pressure test, the automatic test script records a test log which at least comprises a test start time, a test end time, a current test frequency, a total test frequency, a read-write error frequency, an error step and an error rate in real time.
Further, the test report management module is specifically configured to:
the automatic test script automatically generates a test report carrying cycle times, test interval time, test data, read-write error times, error steps, error rate and test results based on the test log and the pressure test instruction, displays the test report through a display screen, and encrypts, stores and feeds back the test report;
The test result is that the test passes or the test does not pass, and the test report is in an HTML format, a PDF format or a txt format.
The invention has the advantages that:
1. The method comprises the steps of creating an automatic test script through Python, randomly generating PRBS7 sequence data for each bus mode through the automatic test script, setting the size of a data block of single transmission in time Zhong Maxing, then checking an input pressure test instruction, analyzing to obtain the circulation times, test interval time and test data, automatically executing pressure test on EMMC based on the circulation times, the test interval time, the test data, the PRBS7 sequence data, a clock code pattern and the size of the data block by the automatic test script, recording test logs in real time in the process of executing the pressure test, automatically generating test reports based on the test logs, displaying the test reports, storing and feeding back the test reports, namely automatically executing EMMC pressure test through the created automatic test script, avoiding human errors in the test process, having strong universality, combining the PRBS7 sequence data in time Zhong Maxing, effectively simulating real data pressure, covering time sequence anomaly detection of a full signal path, effectively detecting time sequence problem of signals, dynamically adjusting the test pressure in combination with the circulation times and the test interval time, and finally evaluating the pressure of the EMMC, and evaluating the pressure of the EMMC greatly.
2. Through traversing each bus mode in sequence to test in the EMMC pressure test process and carrying out cyclic test on each bus mode by combining the set cyclic times, the problems of time sequence, noise and the like can be rapidly exposed, and further the test quality and the test efficiency of the EMMC pressure test are improved.
3. By creating the automatic test script through the Python, the automatic test script can run across platforms, is adaptive to various hardware environments, and reduces the test cost.
4. The full-flow automation is realized through the automatic test script, namely, from test execution to report generation, manual intervention is reduced, the test efficiency and consistency are improved, the method can be widely applied to EMMC quality verification in the fields of consumer electronics, industrial equipment and the like, and core test support is provided for the development of a high-reliability storage system.
5. PRBS7 sequence data and clock patterns are automatically generated for different bus modes (1/4/8 bit), so that multimode coverage test is supported, and tedious and error of manual configuration is avoided.
6. By setting the cycle times and the test interval time, a long-term pressure scene is simulated, and the test efficiency is improved.
7. By superposing PRBS7 sequence data and clock code patterns, high-frequency signal interference and time sequence jitter in a real environment are simulated, and the test severity is enhanced.
8. Different EMMC equipment configurations are covered by supporting 1/4/8bit bus mode test, and compatibility is improved.
9. And by adopting CRC (cyclic redundancy check) value and hash value to double verify the read-write data integrity, the misjudgment risk is reduced, and the accuracy of the test result is ensured.
10. And simulating an actual data transmission scene by performing blocking operation according to the set data block size, and verifying the stability of the EMMC in blocking processing.
11. The test logs at least comprising the test starting time, the test ending time, the current test times, the total test times, the read-write error times, the error steps and the error rate are recorded, so that the fault point can be conveniently and rapidly positioned, and the debugging efficiency is optimized.
12. And the test report generation supporting the formats of HTML/PDF/txt and the like meets the requirements of different scenes.
13. By encrypting and storing the test report, the data safety is ensured, and an automatic feedback mechanism is supported, so that the test report is convenient to integrate into a quality management system.
14. By checking the pressure test instruction, the input legitimacy is ensured, and the risk of abnormal test is reduced.
15. By combining PRBS7 sequence data, clock code pattern and automatic script technology, the high-efficiency, comprehensive and traceable pressure test of EMMC is realized, the innovation and the practicability are realized, and the urgent requirements of the industrial field on the test of high-reliability storage equipment are met.
Drawings
The invention will be further described with reference to examples of embodiments with reference to the accompanying drawings.
Fig. 1 is a flow chart of a method of EMMC pressure testing combining PRBS7 and clock patterns according to the present invention.
Fig. 2 is a schematic diagram of a pressure test system for EMMC combining PRBS7 and clock patterns according to the present invention.
Detailed Description
The technical scheme of the embodiment of the application has the general idea that the EMMC pressure test is automatically executed through the created automatic test script, manual intervention is not needed in the test process, the test result is recorded, human errors are avoided, the universality is high, the PRBS7 sequence data are combined in time Zhong Maxing in the test, the real data pressure can be effectively simulated, the time sequence abnormality detection of the whole signal path is covered, the time sequence problem of the signal can be effectively detected, the test pressure can be dynamically adjusted in combination with the input cycle number and the test interval time, the stability of the EMMC is comprehensively evaluated, and the test quality, the test efficiency and the universality of the EMMC pressure test are further improved.
Referring to fig. 1 to 2, a preferred embodiment of an EMMC pressure testing method combining PRBS7 and clock patterns according to the present invention includes the following steps:
Step S1, creating an automatic test script based on Python, randomly generating PRBS7 sequence data and one time Zhong Maxing for each bus mode through the automatic test script, and setting the size of a data block of single transmission;
PRBS7 (Pseudo-Random Binary Sequence) is a Pseudo-random binary sequence generation algorithm, the sequence period is 2^7-1=127 bits, PRBS7 is generated through a Linear Feedback Shift Register (LFSR), the PRBS7 has high randomness and repetition controllability, is commonly used for signal integrity test of a communication system and storage equipment, and can effectively simulate random data pressure in a real scene.
The Clock Pattern (Clock Pattern) is a term of art in the fields of digital communications and data transmission, and particularly relates to a binary code sequence with strict periodic alternating changes, such as the Pattern 10101010, which is essentially an equally spaced alternating arrangement of 0 and 1, and this structure appears as a square wave signal in the time domain, and contains a rich number of Clock frequency components.
S2, acquiring an input pressure test instruction carrying cycle times (for example, 1000 times), test interval time and test data, and analyzing the pressure test instruction after verification to obtain the cycle times, the test interval time and the test data;
By setting the cycle times and the test interval time, a long-term pressure scene is simulated, and the test efficiency is improved.
By checking the pressure test instruction, the input legitimacy is ensured, and the risk of abnormal test is reduced.
The analysis after verifying the pressure test instruction specifically comprises the following steps:
the pressure test instruction carries an encrypted message, a time stamp and an MD5 value, wherein the encrypted message is obtained by encrypting the cycle times, the test interval time and the test data through an RSA algorithm and an AES algorithm, and the MD5 value is obtained by carrying out MD5 calculation on the encrypted message and the time stamp;
Analyzing the pressure test instruction to obtain an encrypted message, a time stamp and an MD5 value, performing integrity verification through the MD5 value, performing aging verification through the time stamp, and decrypting the encrypted message through an RSA algorithm and an AES algorithm to obtain cycle times, test interval time and test data. Through multiple encryption and verification, the safety of related data transmission can be effectively improved, and illegal test operation is avoided.
Step S3, the automatic test script automatically executes pressure test on the EMMC based on the cycle times, the test interval time, the test data, the PRBS7 sequence data, the clock code pattern and the data block size;
In specific implementation, the automatic test script calls a system command or a hardware driving interface (such as mmc-uti ls) to control the EMMC to switch the bus mode and read and write data.
Step S4, the automatic test script records a test log in real time in the process of executing the pressure test;
And S5, the automatic test script automatically generates a test report based on the test log, displays the test report, and stores and feeds back the test report.
By combining PRBS7 sequence data, clock code pattern and automatic script technology, the high-efficiency, comprehensive and traceable pressure test of EMMC is realized, the innovation and the practicability are realized, and the urgent requirements of the industrial field on the test of high-reliability storage equipment are met.
The step S1 specifically comprises the following steps:
Creating an automatic test script for automatically executing EMMC pressure test based on Python, randomly generating PRBS7 sequence data and one time Zhong Maxing for each bus mode through the automatic test script, storing the PRBS7 sequence data to a designated path in time Zhong Maxing, updating the PRBS7 sequence data stored in the designated path in time Zhong Maxing based on a preset updating period, and setting the size of a data block to be transmitted in a single mode based on the bus mode, for example, byte transmission in an 8-bit mode and half byte transmission in a 4-bit mode, wherein the bus mode (bit width) comprises 1bit, 4bit and 8bit.
By creating the automatic test script through the Python, the method can run across a platform (Windows/Linux/embedded OS), adapt to various hardware environments and reduce the test cost.
The full-flow automation is realized through the automatic test script, namely, from test execution to report generation, manual intervention is reduced, the test efficiency and consistency are improved, the method can be widely applied to EMMC quality verification in the fields of consumer electronics, industrial equipment and the like, and core test support is provided for the development of a high-reliability storage system.
PRBS7 sequence data and clock patterns are automatically generated for different bus modes (1/4/8 bit), so that multimode coverage test is supported, and tedious and error of manual configuration is avoided.
Different EMMC equipment configurations are covered by supporting 1/4/8bit bus mode test, and compatibility is improved.
The step S3 specifically comprises the following steps:
The automatic test script respectively performs CRC calculation and hash calculation on the test data to obtain a CRC value and a hash value, sequentially traverses each bus mode, and matches corresponding PRBS7 sequence data from a specified path based on the bus mode to be Zhong Maxing in time;
Through traversing each bus mode in sequence to test in the EMMC pressure test process and carrying out cyclic test on each bus mode by combining the set cyclic times, the problems of time sequence, noise and the like can be rapidly exposed, and further the test quality and the test efficiency of the EMMC pressure test are improved.
The automatic test script writes test data into EMMC in blocks based on the size of the data block, overlaps the PRBS7 sequence data in time Zhong Maxing in the writing process, and executes writing integrity check based on the CRC value and the hash value after the writing is completed; then based on the data block size, reading test data from the EMMC in a blocking way, superposing the PRBS7 sequence data in Zhong Maxing in the reading process, and executing reading integrity check based on the CRC value and the hash value after reading is completed so as to complete a cyclic test of EMMC pressure;
By superposing PRBS7 sequence data and clock code patterns, high-frequency signal interference and time sequence jitter in a real environment are simulated, and the test severity is enhanced.
And by adopting CRC (cyclic redundancy check) value and hash value to double verify the read-write data integrity, the misjudgment risk is reduced, and the accuracy of the test result is ensured.
And simulating an actual data transmission scene by performing blocking operation according to the set data block size, and verifying the stability of the EMMC in blocking processing.
And the automatic test script executes the next circulation test based on the test interval time until the EMMC pressure test of the circulation times is completed.
The step S4 specifically includes:
and in the process of executing the pressure test, the automatic test script records a test log which at least comprises a test start time, a test end time, a current test frequency, a total test frequency, a read-write error frequency, an error step and an error rate in real time.
The test logs at least comprising the test starting time, the test ending time, the current test times, the total test times, the read-write error times, the error steps and the error rate are recorded, so that the fault point can be conveniently and rapidly positioned, and the debugging efficiency is optimized.
The step S5 specifically comprises the following steps:
the automatic test script automatically generates a test report carrying cycle times, test interval time, test data, read-write error times, error steps, error rate and test results based on the test log and the pressure test instruction, displays the test report through a display screen, and encrypts, stores and feeds back the test report;
The test result is that the test passes or the test does not pass, and the test report is in an HTML format, a PDF format or a txt format.
And the test report generation supporting the formats of HTML/PDF/txt and the like meets the requirements of different scenes.
By encrypting and storing the test report, the data safety is ensured, and an automatic feedback mechanism is supported, so that the test report is convenient to integrate into a quality management system.
The encrypting the test report specifically comprises the following steps:
And performing MAC calculation on the test report to obtain a MAC value, encrypting the test report into an encryption character string through an RC6 algorithm, equally dividing the encryption character string into a first data block, a second data block and a third data block, encrypting the first data block through an SM4 algorithm to obtain a first encryption data block, encrypting the second data block through an AES256 algorithm to obtain a second encryption data block, encrypting the third data block through an RSA algorithm to obtain a third encryption data block, and encrypting the first encryption data block, the second encryption data block, the third encryption data block and the MAC value through an SM9 algorithm to obtain an encryption report. The security of test report storage can be effectively improved by combining the blocking multilevel encryption with the integrity check of the MAC value.
The preferred embodiment of the EMMC pressure testing system combining PRBS7 and clock code pattern comprises the following modules:
an initialization module, configured to create an automatic test script based on Python, and randomly generate, for each bus mode, PRBS7 sequence data and one time Zhong Maxing through the automatic test script, and set a size of a data block for single transmission;
PRBS7 (Pseudo-Random Binary Sequence) is a Pseudo-random binary sequence generation algorithm, the sequence period is 2^7-1=127 bits, PRBS7 is generated through a Linear Feedback Shift Register (LFSR), the PRBS7 has high randomness and repetition controllability, is commonly used for signal integrity test of a communication system and storage equipment, and can effectively simulate random data pressure in a real scene.
The Clock Pattern (Clock Pattern) is a term of art in the fields of digital communications and data transmission, and particularly relates to a binary code sequence with strict periodic alternating changes, such as the Pattern 10101010, which is essentially an equally spaced alternating arrangement of 0 and 1, and this structure appears as a square wave signal in the time domain, and contains a rich number of Clock frequency components.
The pressure test instruction verification analysis module is used for acquiring an input pressure test instruction carrying cycle times (for example, 1000 times), test interval time and test data, and analyzing the pressure test instruction after verification to obtain the cycle times, the test interval time and the test data;
By setting the cycle times and the test interval time, a long-term pressure scene is simulated, and the test efficiency is improved.
By checking the pressure test instruction, the input legitimacy is ensured, and the risk of abnormal test is reduced.
The analysis after verifying the pressure test instruction specifically comprises the following steps:
the pressure test instruction carries an encrypted message, a time stamp and an MD5 value, wherein the encrypted message is obtained by encrypting the cycle times, the test interval time and the test data through an RSA algorithm and an AES algorithm, and the MD5 value is obtained by carrying out MD5 calculation on the encrypted message and the time stamp;
Analyzing the pressure test instruction to obtain an encrypted message, a time stamp and an MD5 value, performing integrity verification through the MD5 value, performing aging verification through the time stamp, and decrypting the encrypted message through an RSA algorithm and an AES algorithm to obtain cycle times, test interval time and test data. Through multiple encryption and verification, the safety of related data transmission can be effectively improved, and illegal test operation is avoided.
The pressure test module is used for automatically executing pressure test on the EMMC by the automatic test script based on the cycle times, the test interval time, the test data, the PRBS7 sequence data, the clock code pattern and the data block size;
In specific implementation, the automatic test script calls a system command or a hardware driving interface (such as mmc-uti ls) to control the EMMC to switch the bus mode and read and write data.
The test log recording module is used for recording the test log in real time in the pressure test execution process of the automatic test script;
and the test report management module is used for automatically generating a test report based on the test log by the automatic test script, displaying the test report, and storing and feeding back the test report.
By combining PRBS7 sequence data, clock code pattern and automatic script technology, the high-efficiency, comprehensive and traceable pressure test of EMMC is realized, the innovation and the practicability are realized, and the urgent requirements of the industrial field on the test of high-reliability storage equipment are met.
The initialization module is specifically configured to:
Creating an automatic test script for automatically executing EMMC pressure test based on Python, randomly generating PRBS7 sequence data and one time Zhong Maxing for each bus mode through the automatic test script, storing the PRBS7 sequence data to a designated path in time Zhong Maxing, updating the PRBS7 sequence data stored in the designated path in time Zhong Maxing based on a preset updating period, and setting the size of a data block to be transmitted in a single mode based on the bus mode, for example, byte transmission in an 8-bit mode and half byte transmission in a 4-bit mode, wherein the bus mode (bit width) comprises 1bit, 4bit and 8bit.
By creating the automatic test script through the Python, the method can run across a platform (Windows/Linux/embedded OS), adapt to various hardware environments and reduce the test cost.
The full-flow automation is realized through the automatic test script, namely, from test execution to report generation, manual intervention is reduced, the test efficiency and consistency are improved, the method can be widely applied to EMMC quality verification in the fields of consumer electronics, industrial equipment and the like, and core test support is provided for the development of a high-reliability storage system.
PRBS7 sequence data and clock patterns are automatically generated for different bus modes (1/4/8 bit), so that multimode coverage test is supported, and tedious and error of manual configuration is avoided.
Different EMMC equipment configurations are covered by supporting 1/4/8bit bus mode test, and compatibility is improved.
The pressure test module is specifically used for:
The automatic test script respectively performs CRC calculation and hash calculation on the test data to obtain a CRC value and a hash value, sequentially traverses each bus mode, and matches corresponding PRBS7 sequence data from a specified path based on the bus mode to be Zhong Maxing in time;
Through traversing each bus mode in sequence to test in the EMMC pressure test process and carrying out cyclic test on each bus mode by combining the set cyclic times, the problems of time sequence, noise and the like can be rapidly exposed, and further the test quality and the test efficiency of the EMMC pressure test are improved.
The automatic test script writes test data into EMMC in blocks based on the size of the data block, overlaps the PRBS7 sequence data in time Zhong Maxing in the writing process, and executes writing integrity check based on the CRC value and the hash value after the writing is completed; then based on the data block size, reading test data from the EMMC in a blocking way, superposing the PRBS7 sequence data in Zhong Maxing in the reading process, and executing reading integrity check based on the CRC value and the hash value after reading is completed so as to complete a cyclic test of EMMC pressure;
By superposing PRBS7 sequence data and clock code patterns, high-frequency signal interference and time sequence jitter in a real environment are simulated, and the test severity is enhanced.
And by adopting CRC (cyclic redundancy check) value and hash value to double verify the read-write data integrity, the misjudgment risk is reduced, and the accuracy of the test result is ensured.
And simulating an actual data transmission scene by performing blocking operation according to the set data block size, and verifying the stability of the EMMC in blocking processing.
And the automatic test script executes the next circulation test based on the test interval time until the EMMC pressure test of the circulation times is completed.
The test logs at least comprising the test starting time, the test ending time, the current test times, the total test times, the read-write error times, the error steps and the error rate are recorded, so that the fault point can be conveniently and rapidly positioned, and the debugging efficiency is optimized.
The test log recording module is specifically used for:
and in the process of executing the pressure test, the automatic test script records a test log which at least comprises a test start time, a test end time, a current test frequency, a total test frequency, a read-write error frequency, an error step and an error rate in real time.
The test report management module is specifically configured to:
the automatic test script automatically generates a test report carrying cycle times, test interval time, test data, read-write error times, error steps, error rate and test results based on the test log and the pressure test instruction, displays the test report through a display screen, and encrypts, stores and feeds back the test report;
The test result is that the test passes or the test does not pass, and the test report is in an HTML format, a PDF format or a txt format.
And the test report generation supporting the formats of HTML/PDF/txt and the like meets the requirements of different scenes.
By encrypting and storing the test report, the data safety is ensured, and an automatic feedback mechanism is supported, so that the test report is convenient to integrate into a quality management system.
The encrypting the test report specifically comprises the following steps:
And performing MAC calculation on the test report to obtain a MAC value, encrypting the test report into an encryption character string through an RC6 algorithm, equally dividing the encryption character string into a first data block, a second data block and a third data block, encrypting the first data block through an SM4 algorithm to obtain a first encryption data block, encrypting the second data block through an AES256 algorithm to obtain a second encryption data block, encrypting the third data block through an RSA algorithm to obtain a third encryption data block, and encrypting the first encryption data block, the second encryption data block, the third encryption data block and the MAC value through an SM9 algorithm to obtain an encryption report. The security of test report storage can be effectively improved by combining the blocking multilevel encryption with the integrity check of the MAC value.
In summary, the invention has the advantages that:
1. The method comprises the steps of creating an automatic test script through Python, randomly generating PRBS7 sequence data for each bus mode through the automatic test script, setting the size of a data block of single transmission in time Zhong Maxing, then checking an input pressure test instruction, analyzing to obtain the circulation times, test interval time and test data, automatically executing pressure test on EMMC based on the circulation times, the test interval time, the test data, the PRBS7 sequence data, a clock code pattern and the size of the data block by the automatic test script, recording test logs in real time in the process of executing the pressure test, automatically generating test reports based on the test logs, displaying the test reports, storing and feeding back the test reports, namely automatically executing EMMC pressure test through the created automatic test script, avoiding human errors in the test process, having strong universality, combining the PRBS7 sequence data in time Zhong Maxing, effectively simulating real data pressure, covering time sequence anomaly detection of a full signal path, effectively detecting time sequence problem of signals, dynamically adjusting the test pressure in combination with the circulation times and the test interval time, and finally evaluating the pressure of the EMMC, and evaluating the pressure of the EMMC greatly.
2. Through traversing each bus mode in sequence to test in the EMMC pressure test process and carrying out cyclic test on each bus mode by combining the set cyclic times, the problems of time sequence, noise and the like can be rapidly exposed, and further the test quality and the test efficiency of the EMMC pressure test are improved.
3. By creating the automatic test script through the Python, the automatic test script can run across platforms, is adaptive to various hardware environments, and reduces the test cost.
4. The full-flow automation is realized through the automatic test script, namely, from test execution to report generation, manual intervention is reduced, the test efficiency and consistency are improved, the method can be widely applied to EMMC quality verification in the fields of consumer electronics, industrial equipment and the like, and core test support is provided for the development of a high-reliability storage system.
5. PRBS7 sequence data and clock patterns are automatically generated for different bus modes (1/4/8 bit), so that multimode coverage test is supported, and tedious and error of manual configuration is avoided.
6. By setting the cycle times and the test interval time, a long-term pressure scene is simulated, and the test efficiency is improved.
7. By superposing PRBS7 sequence data and clock code patterns, high-frequency signal interference and time sequence jitter in a real environment are simulated, and the test severity is enhanced.
8. Different EMMC equipment configurations are covered by supporting 1/4/8bit bus mode test, and compatibility is improved.
9. And by adopting CRC (cyclic redundancy check) value and hash value to double verify the read-write data integrity, the misjudgment risk is reduced, and the accuracy of the test result is ensured.
10. And simulating an actual data transmission scene by performing blocking operation according to the set data block size, and verifying the stability of the EMMC in blocking processing.
11. The test logs at least comprising the test starting time, the test ending time, the current test times, the total test times, the read-write error times, the error steps and the error rate are recorded, so that the fault point can be conveniently and rapidly positioned, and the debugging efficiency is optimized.
12. And the test report generation supporting the formats of HTML/PDF/txt and the like meets the requirements of different scenes.
13. By encrypting and storing the test report, the data safety is ensured, and an automatic feedback mechanism is supported, so that the test report is convenient to integrate into a quality management system.
14. By checking the pressure test instruction, the input legitimacy is ensured, and the risk of abnormal test is reduced.
15. By combining PRBS7 sequence data, clock code pattern and automatic script technology, the high-efficiency, comprehensive and traceable pressure test of EMMC is realized, the innovation and the practicability are realized, and the urgent requirements of the industrial field on the test of high-reliability storage equipment are met.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that the specific embodiments described are illustrative only and not intended to limit the scope of the invention, and that equivalent modifications and variations of the invention in light of the spirit of the invention will be covered by the claims of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202510506246.4A CN120596364A (en) | 2025-04-22 | 2025-04-22 | An EMMC stress testing method and system combining PRBS7 and clock pattern |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202510506246.4A CN120596364A (en) | 2025-04-22 | 2025-04-22 | An EMMC stress testing method and system combining PRBS7 and clock pattern |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN120596364A true CN120596364A (en) | 2025-09-05 |
Family
ID=96896848
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202510506246.4A Pending CN120596364A (en) | 2025-04-22 | 2025-04-22 | An EMMC stress testing method and system combining PRBS7 and clock pattern |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN120596364A (en) |
-
2025
- 2025-04-22 CN CN202510506246.4A patent/CN120596364A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7342892B2 (en) | Controlled exception-based routing protocol validation | |
| CN110362497A (en) | Cover the automation api interface test method and system of full unusual character | |
| US11036507B2 (en) | Processor testing using pairs of counter incrementing and branch instructions | |
| CN114116351A (en) | Chip verification method, device, equipment and readable medium | |
| CN120596364A (en) | An EMMC stress testing method and system combining PRBS7 and clock pattern | |
| US8370685B2 (en) | Electronic device and method for testing serial signals | |
| CN102307121B (en) | Multimedia terminal self checking method and device | |
| US11494262B2 (en) | Electronic device having one-time-programmable (OTP) memory and method for writing and reading OTP memory | |
| CN113933627B (en) | Method for automatically testing and verifying electronic product and related product thereof | |
| CN112363975A (en) | Interaction method and interaction system for configuration software and FPGA | |
| CN112015119A (en) | Debug control circuit and debug control method | |
| CN118796699A (en) | A scene reproduction method, device and storage medium based on fault log | |
| JP2004101203A (en) | Failure analysis system for logic lsi and failure analysis method | |
| CN117392929A (en) | Picture simulation test method and device and electronic equipment | |
| CN104731671A (en) | Error insertion device and method and verification equipment and method of error correcting code circuit | |
| CN103326820B (en) | The online method for stitching of command code | |
| CN115840703B (en) | A server platform firmware elasticity testing method, device, electronic device and storage medium | |
| KR20010007046A (en) | Process for recovering operational or error information for software modules of software on board a digital apparatus and associated digital apparatus | |
| CN120742074A (en) | Mainboard function detection method and system based on dynamic monitoring signals | |
| CN119829325A (en) | Verification method and device for memory ECC (error correction code) function, electronic equipment and storage medium | |
| CN119541608A (en) | A storage device testing system and a storage device testing method | |
| CN119719042A (en) | Programming log analysis method, device, equipment and storage medium based on unified diagnostic service protocol | |
| CN118945544A (en) | A system for safely reading earphone aging results and implementation method thereof | |
| CN114116439A (en) | Debugging information output method, device, software debugging device and storage medium | |
| CN115481041A (en) | A code module testing method, device, equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |