[go: up one dir, main page]

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 pattern

Info

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
Application number
CN202510506246.4A
Other languages
Chinese (zh)
Inventor
党磊
陈炳艺
梁世亮
林雯辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuzhou Chuangshi Xunlian Information Technology Co ltd
Original Assignee
Fuzhou Chuangshi Xunlian Information Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fuzhou Chuangshi Xunlian Information Technology Co ltd filed Critical Fuzhou Chuangshi Xunlian Information Technology Co ltd
Priority to CN202510506246.4A priority Critical patent/CN120596364A/en
Publication of CN120596364A publication Critical patent/CN120596364A/en
Pending legal-status Critical Current

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

EMMC pressure testing method and system combining PRBS7 with clock code pattern
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)

1.一种结合PRBS7与时钟码型的EMMC压力测试方法,其特征在于:包括如下步骤:1. An EMMC stress test method combining PRBS7 and clock pattern, characterized by comprising the following steps: 步骤S1、基于Python创建一自动测试脚本,通过所述自动测试脚本分别为各总线模式随机生成一PRBS7序列数据以及一时钟码型,设定单次传输的数据块大小;Step S1: Create an automatic test script based on Python, randomly generate a PRBS7 sequence data and a clock pattern for each bus mode through the automatic test script, and set the data block size of a single transmission; 步骤S2、获取输入的携带循环次数、测试间隔时间以及测试数据的压力测试指令,对所述压力测试指令进行校验后解析得到循环次数、测试间隔时间以及测试数据;Step S2: obtaining an input stress test instruction carrying a number of cycles, a test interval, and test data, verifying and parsing the stress test instruction to obtain the number of cycles, the test interval, and the test data; 步骤S3、所述自动测试脚本基于循环次数、测试间隔时间、测试数据、PRBS7序列数据、时钟码型以及数据块大小,对EMMC自动执行压力测试;Step S3, the automatic test script automatically performs stress testing on the EMMC based on the number of cycles, test interval, test data, PRBS7 sequence data, clock pattern and data block size; 步骤S4、所述自动测试脚本在执行压力测试过程中,实时记录测试日志;Step S4: The automatic test script records the test log in real time during the stress test. 步骤S5、所述自动测试脚本基于测试日志自动生成测试报告,展示所述测试报告,并对所述测试报告进行存储以及反馈。Step 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. 2.如权利要求1所述的一种结合PRBS7与时钟码型的EMMC压力测试方法,其特征在于:所述步骤S1具体为:2. The EMMC stress testing method according to claim 1, wherein the step S1 is as follows: 基于Python创建一用于自动执行EMMC压力测试的自动测试脚本,通过所述自动测试脚本分别为各总线模式随机生成一PRBS7序列数据以及一时钟码型,将所述PRBS7序列数据以及时钟码型存储至指定路径,基于预设的更新周期更新所述指定路径存储的PRBS7序列数据以及时钟码型,基于所述总线模式分别设定单次传输的数据块大小;所述总线模式包括1bit、4bit以及8bit。An automatic test script for automatically performing EMMC stress testing is created based on Python. The automatic test script randomly generates a PRBS7 sequence data and a clock code pattern for each bus mode, stores the PRBS7 sequence data and clock code pattern to a specified path, updates the PRBS7 sequence data and clock code pattern stored in the specified path based on a preset update cycle, and sets the data block size for a single transmission based on the bus mode; the bus modes include 1bit, 4bit and 8bit. 3.如权利要求1所述的一种结合PRBS7与时钟码型的EMMC压力测试方法,其特征在于:所述步骤S3具体为:3. The EMMC stress testing method combining PRBS7 and clock pattern according to claim 1, wherein step S3 is specifically: 所述自动测试脚本分别对测试数据进行CRC计算以及哈希计算,得到CRC值以及哈希值,依次遍历各所述总线模式,基于所述总线模式从指定路径匹配对应的PRBS7序列数据以及时钟码型;The automatic test script performs CRC calculation and hash calculation on the test data respectively to obtain CRC value and hash value, traverses each of the bus modes in turn, and matches the corresponding PRBS7 sequence data and clock pattern from the specified path based on the bus mode; 所述自动测试脚本基于数据块大小将测试数据分块写入EMMC,写入过程中叠加所述PRBS7序列数据以及时钟码型,写入完成后基于所述CRC值以及哈希值执行写入完整性校验;再基于所述数据块大小从EMMC中分块读取测试数据,读取过程中叠加所述PRBS7序列数据以及时钟码型,读取完成后基于所述CRC值以及哈希值执行读取完整性校验,以完成一次EMMC压力的循环测试;The automatic test script writes the test data into the EMMC in blocks based on the data block size, superimposes the PRBS7 sequence data and the clock pattern during the writing process, and performs a write integrity check based on the CRC value and the hash value after the writing is completed; then reads the test data from the EMMC in blocks based on the data block size, superimposes the PRBS7 sequence data and the clock pattern during the reading process, and performs a read integrity check based on the CRC value and the hash value after the reading is completed, so as to complete a cycle test of the EMMC pressure; 所述自动测试脚本基于测试间隔时间执行下一次循环测试,直至完成所述循环次数的EMMC压力测试。The automatic test script executes the next cycle test based on the test interval time until the EMMC stress test of the number of cycles is completed. 4.如权利要求1所述的一种结合PRBS7与时钟码型的EMMC压力测试方法,其特征在于:所述步骤S4具体为:4. The EMMC stress testing method combining PRBS7 and clock pattern according to claim 1, wherein step S4 is specifically: 所述自动测试脚本在执行压力测试过程中,实时记录至少包括测试开始时间、测试结束时间、当前测试次数、总测试次数、读写错误次数、错误步骤以及错误率的测试日志。During the execution of the stress test, the automatic test script records in real time a test log including at least the test start time, test end time, current test times, total test times, read and write error times, error steps, and error rate. 5.如权利要求1所述的一种结合PRBS7与时钟码型的EMMC压力测试方法,其特征在于:所述步骤S5具体为:5. The EMMC stress testing method combining PRBS7 and clock pattern according to claim 1, wherein step S5 is specifically: 所述自动测试脚本基于测试日志以及压力测试指令,自动生成携带循环次数、测试间隔时间、测试数据、读写错误次数、错误步骤、错误率以及测试结果的测试报告,通过显示屏展示所述测试报告,并对所述测试报告进行加密存储以及反馈;The automatic test script automatically generates a test report containing the number of cycles, test interval, test data, number of read and write errors, error steps, error rate, and test results based on the test log and stress test instructions, displays the test report on the display screen, and encrypts and stores the test report and provides feedback; 所述测试结果为测试通过或者测试不通过;所述测试报告为HTML格式、PDF格式或者txt格式。The test result is either passed or failed; the test report is in HTML format, PDF format or TXT format. 6.一种结合PRBS7与时钟码型的EMMC压力测试系统,其特征在于:包括如下模块:6. An EMMC stress test system combining PRBS7 and clock pattern, characterized by comprising the following modules: 初始化模块,用于基于Python创建一自动测试脚本,通过所述自动测试脚本分别为各总线模式随机生成一PRBS7序列数据以及一时钟码型,设定单次传输的数据块大小;An initialization module is used to create an automatic test script based on Python, which randomly generates a PRBS7 sequence data and a clock pattern for each bus mode and sets the data block size for a single transmission. 压力测试指令校验解析模块,用于获取输入的携带循环次数、测试间隔时间以及测试数据的压力测试指令,对所述压力测试指令进行校验后解析得到循环次数、测试间隔时间以及测试数据;A stress test instruction verification and parsing module is used to obtain an input stress test instruction carrying a number of cycles, a test interval, and test data, and to verify and parse the stress test instruction to obtain the number of cycles, the test interval, and the test data; 压力测试模块,用于所述自动测试脚本基于循环次数、测试间隔时间、测试数据、PRBS7序列数据、时钟码型以及数据块大小,对EMMC自动执行压力测试;A stress test module is used for the automatic test script to automatically perform stress testing on the EMMC based on the number of cycles, test interval time, test data, PRBS7 sequence data, clock pattern and data block size; 测试日志记录模块,用于所述自动测试脚本在执行压力测试过程中,实时记录测试日志;A test log recording module is used to record the test log in real time during the execution of the stress test by the automatic test script; 测试报告管理模块,用于所述自动测试脚本基于测试日志自动生成测试报告,展示所述测试报告,并对所述测试报告进行存储以及反馈。The test report management module is used for the automatic test script to automatically generate a test report based on the test log, display the test report, and store and provide feedback on the test report. 7.如权利要求6所述的一种结合PRBS7与时钟码型的EMMC压力测试系统,其特征在于:所述初始化模块具体用于:7. An EMMC stress testing system combining PRBS7 and clock pattern according to claim 6, characterized in that: the initialization module is specifically used to: 基于Python创建一用于自动执行EMMC压力测试的自动测试脚本,通过所述自动测试脚本分别为各总线模式随机生成一PRBS7序列数据以及一时钟码型,将所述PRBS7序列数据以及时钟码型存储至指定路径,基于预设的更新周期更新所述指定路径存储的PRBS7序列数据以及时钟码型,基于所述总线模式分别设定单次传输的数据块大小;所述总线模式包括1bit、4bit以及8bit。An automatic test script for automatically performing EMMC stress testing is created based on Python. The automatic test script randomly generates a PRBS7 sequence data and a clock code pattern for each bus mode, stores the PRBS7 sequence data and clock code pattern to a specified path, updates the PRBS7 sequence data and clock code pattern stored in the specified path based on a preset update cycle, and sets the data block size for a single transmission based on the bus mode; the bus modes include 1bit, 4bit and 8bit. 8.如权利要求6所述的一种结合PRBS7与时钟码型的EMMC压力测试系统,其特征在于:所述压力测试模块具体用于:8. The EMMC stress test system combining PRBS7 and clock pattern according to claim 6, wherein the stress test module is specifically used to: 所述自动测试脚本分别对测试数据进行CRC计算以及哈希计算,得到CRC值以及哈希值,依次遍历各所述总线模式,基于所述总线模式从指定路径匹配对应的PRBS7序列数据以及时钟码型;The automatic test script performs CRC calculation and hash calculation on the test data respectively to obtain CRC value and hash value, traverses each of the bus modes in turn, and matches the corresponding PRBS7 sequence data and clock pattern from the specified path based on the bus mode; 所述自动测试脚本基于数据块大小将测试数据分块写入EMMC,写入过程中叠加所述PRBS7序列数据以及时钟码型,写入完成后基于所述CRC值以及哈希值执行写入完整性校验;再基于所述数据块大小从EMMC中分块读取测试数据,读取过程中叠加所述PRBS7序列数据以及时钟码型,读取完成后基于所述CRC值以及哈希值执行读取完整性校验,以完成一次EMMC压力的循环测试;The automatic test script writes the test data into the EMMC in blocks based on the data block size, superimposes the PRBS7 sequence data and the clock pattern during the writing process, and performs a write integrity check based on the CRC value and the hash value after the writing is completed; then reads the test data from the EMMC in blocks based on the data block size, superimposes the PRBS7 sequence data and the clock pattern during the reading process, and performs a read integrity check based on the CRC value and the hash value after the reading is completed, so as to complete a cycle test of the EMMC pressure; 所述自动测试脚本基于测试间隔时间执行下一次循环测试,直至完成所述循环次数的EMMC压力测试。The automatic test script executes the next cycle test based on the test interval time until the EMMC stress test of the number of cycles is completed. 9.如权利要求6所述的一种结合PRBS7与时钟码型的EMMC压力测试系统,其特征在于:所述测试日志记录模块具体用于:9. An EMMC stress testing system combining PRBS7 and clock pattern according to claim 6, characterized in that: the test log recording module is specifically used to: 所述自动测试脚本在执行压力测试过程中,实时记录至少包括测试开始时间、测试结束时间、当前测试次数、总测试次数、读写错误次数、错误步骤以及错误率的测试日志。During the execution of the stress test, the automatic test script records in real time a test log including at least the test start time, test end time, current test times, total test times, read and write error times, error steps, and error rate. 10.如权利要求6所述的一种结合PRBS7与时钟码型的EMMC压力测试系统,其特征在于:所述测试报告管理模块具体用于:10. The EMMC stress testing system combining PRBS7 and clock pattern according to claim 6, wherein the test report management module is specifically used to: 所述自动测试脚本基于测试日志以及压力测试指令,自动生成携带循环次数、测试间隔时间、测试数据、读写错误次数、错误步骤、错误率以及测试结果的测试报告,通过显示屏展示所述测试报告,并对所述测试报告进行加密存储以及反馈;The automatic test script automatically generates a test report containing the number of cycles, test interval, test data, number of read and write errors, error steps, error rate, and test results based on the test log and stress test instructions, displays the test report on the display screen, and encrypts and stores the test report and provides feedback; 所述测试结果为测试通过或者测试不通过;所述测试报告为HTML格式、PDF格式或者txt格式。The test result is either passed or failed; the test report is in HTML format, PDF format or TXT format.
CN202510506246.4A 2025-04-22 2025-04-22 An EMMC stress testing method and system combining PRBS7 and clock pattern Pending CN120596364A (en)

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)

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