Memory test vector generation method

Through the generation method of custom memory test vectors, using communication protocols and pin order, combined with iterative loop writing technology, the complex problem of memory full address test vector writing in the existing technology is solved, and efficient and accurate test vector generation is achieved.

CN119068965APending Publication Date: 2024-12-0358TH RES INST OF CETC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411278887.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In the prior art, the manual writing of full-address test vectors of memory is complex and labor-intensive, and prone to errors. Especially with the increase in memory capacity, the number of test vectors reaches one million or even hundreds of millions of rows, resulting in a cumbersome writing process.

Method used

By determining the communication method and pin order of the memory, a single row test vector is generated, and serial test instruction vectors are written cyclically according to the configuration instructions and storage unit addresses, and combined with iterative loop methods, a full-address test vector is generated, which improves writing efficiency.

Benefits of technology

It greatly improves the generation efficiency of memory test vectors, reduces the occurrence of human errors, simplifies the writing process, and makes full-address testing more efficient and accurate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119068965A_ABST
    Figure CN119068965A_ABST
Patent Text Reader

Abstract

The invention relates to a memory test vector generation method, which comprises the following steps of: carrying out serial coding on a configuration instruction, a memory unit address, a write-in sequence, a cycle index and a memory unit address iteration mode of test instructions such as data read-write and erase of a memory test, calculating an iteration cycle index according to the memory unit address, and generating a memory test vector according to the iteration cycle index. And starting to iteratively loop the serial test instruction vector set, and replacing the address of the storage unit in each iteration loop to generate a full-address test vector, so that the working efficiency is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of memory data testing, and in particular to a memory test vector generating method. Background Art

[0002] At present, EEPROM, FLASH and other memories are widely used in the electronic information industry. In order to ensure their reliability, they must be tested. At present, ATE testing of memories needs to include testing of their full-address data read and write functions. As the capacity of memories is getting larger and larger, the full-address test vectors range from millions to tens of millions or hundreds of millions of lines. The manual writing of test vectors is complex and labor-intensive, and human coding is prone to errors. Summary of the invention

[0003] In order to solve the above technical problems, the present invention provides a memory test vector generation method, which realizes the custom writing of the memory full-address test vector, and includes the following steps:

[0004] Step S1: determining the coding format of the test instruction vector according to the communication mode of the memory under test, and generating a single-row test vector according to the pin sequence of the memory under test;

[0005] Step S2: According to the configuration instruction, storage unit address, data read / write, erase and other test instruction contents, a serial test instruction vector corresponding to each test instruction is cyclically written in the format of a single-line test vector;

[0006] Step S3: According to the configuration instructions, storage unit address, data read / write, erase, and the writing order of these test instructions, a corresponding serial test instruction vector is combined to generate a serial test instruction vector set;

[0007] Step S4: Calculate the number of iteration loops according to the storage unit address, start the iteration loop serial test instruction vector set, and replace the storage unit address in each iteration loop to generate a full address test vector.

[0008] In one embodiment of the present invention, the encoding format of the test instruction vector is determined in step S1, including a memory using the SPI communication protocol whose test vector adopts the rising edge reading and writing data method, and a memory using the I2C communication protocol whose test vector needs to add a check line to each test vector when encoding; then the encoding bit order of the single-line test vector to be generated is determined according to the pin sequence of the memory under test, wherein the pin sequence of the memory under test can be customized by the test engineer, and the initialization state of the memory under test is used as the starting line of the test vector, and the single-line test vector generated thereby is the minimum unit for subsequently writing a test instruction vector set.

[0009] In one embodiment of the present invention, the test instructions of step S2 include: configuration instructions for various functions of the memory, storage unit addresses, data read and write, erase instructions, and loop wait instructions; wherein the serial test instruction vectors corresponding to the data read and write instructions are written in a chessboard code, that is, the data of adjacent bits of the data read and written to the memory must be opposite; the serial test instruction vectors corresponding to the non-data read and write instructions are encoded in a general manner.

[0010] In one embodiment of the present invention, the initial address and the end address of the storage unit address in step S4 are determined by the capacity of the memory under test, and the size of the single read and write data is customized by the test engineer. In order to generate a full-address test vector, the number of times the data needs to be written is calculated based on the capacity of the memory and the size of the single read and write data.

[0011] The above-mentioned technical scheme of the present invention has the following advantages over the prior art: the memory test vector generation method described in the present invention generates a test vector of the full address of the memory by serially encoding the configuration instructions of the memory test, the storage unit address, the writing order, the number of loops, and the storage unit address iteration method of the test instructions such as data reading and writing, erasing, etc., thereby greatly improving the work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments of the present invention in conjunction with the accompanying drawings.

[0013] Figure 1 It is a flow chart of the memory test vector generation method of the present invention. DETAILED DESCRIPTION

[0014] like Figure 1 As shown, this embodiment provides a memory test vector generation method, which implements custom writing of a memory full-address test vector, and includes the following steps:

[0015] First, the coding format of the test instruction vector is determined according to the communication mode of the memory under test. For example, the test vector of the memory using the SPI communication protocol adopts the rising edge reading and writing data mode, and the test vector of the memory using the I2C communication protocol needs to add a check line to each test vector segment during encoding; then, the coding bit sequence of the single-line test vector to be generated is determined according to the pin sequence of the memory under test, wherein the pin sequence of the memory under test can be customized by the test engineer, and the initialization state of the memory under test is used as the starting line of the test vector, and the single-line test vector generated thereby is the minimum unit for the subsequent writing of the test instruction vector set;

[0016] According to the test instruction content that needs to be written, take a single-line test vector as the smallest unit, and loop-write the serial test instruction vector corresponding to each test instruction. For example, if the content of a test instruction needs to be written to 8 bits, loop the single-line test vector for 8 lines, and set the coding bit corresponding to the memory input clock pin of each line vector to the rising edge, and at the same time, set the coding bits corresponding to the memory data write pin of the 8-line vector in sequence to the 8-bit test instruction content that needs to be written. Test instructions include: configuration instructions for multiple functions of the memory, storage unit addresses, data read and write, erase instructions, and loop waiting instructions; the serial test instruction vectors corresponding to data read and write instructions are written in a checkerboard code, that is, the data of adjacent bits of the data read and written to the memory must be opposite; the serial test instruction vectors corresponding to non-data read and write instructions use a general encoding method;

[0017] According to the writing sequence of the test instructions, the corresponding serial test instruction vectors are combined to generate a serial test instruction vector set; for example, if the writing sequence includes 5 test instructions: write enable, write instruction, write address, write data, and loop wait write time, the 5 instructions are written into the corresponding serial test instruction vector, and each segment of the serial test instruction vector is arranged in sequence from top to bottom in this order to form a serial test instruction vector set;

[0018] According to the capacity of the memory, the number of iteration loops is calculated, and the iterative loop serial test instruction vector set is started, and the written storage unit address is replaced in each iteration loop to generate a full address test vector. The initial address and the end address of the storage unit address are determined by the capacity of the tested memory, and the size of the single read and write data is customized by the test engineer (the size of the data written at one time cannot exceed the maximum single write data amount of the memory). To generate a full address test vector, the number of times the data needs to be written is calculated according to the capacity of the memory and the size of the single read and write data. For example: if the capacity of the memory is 1024 addresses, each address can write 8 bits of data, then a total of 8192 bits of data can be written. If 2048 bits of data are written at a time, it needs to be written in 4 times to complete the full address data writing, then it is necessary to iterate the serial test instruction vector set 4 times, and replace the written storage unit address with 0, 256, 512, 768 in each iteration loop, and arrange the 4 groups of serial test instruction vector sets in order from top to bottom to form a full address test vector.

[0019] The memory test vector generation method described in this embodiment generates a test vector for the entire address of the memory by serially encoding the configuration instructions of the memory test, the storage unit address, the writing order of data read and write, erase and other test instructions, the number of loops, and the storage unit address iteration method.

[0020] Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.

Claims

1. A memory test vector generation method, the generation method realizes the custom writing of the memory full address test vector, characterized in that: The steps include: Step S1: determining the coding format of the test instruction vector according to the communication mode of the memory under test, and generating a single-row test vector according to the pin sequence of the memory under test; Step S2: According to the configuration instruction, storage unit address, data read / write, erase and other test instruction contents, a serial test instruction vector corresponding to each test instruction is cyclically written in the format of a single-line test vector; Step S3: According to the configuration instructions, storage unit address, data read / write, erase, and the writing order of these test instructions, a corresponding serial test instruction vector is combined to generate a serial test instruction vector set; Step S4: Calculate the number of iteration loops according to the storage unit address, start the iteration loop serial test instruction vector set, and replace the storage unit address in each iteration loop to generate a full address test vector.

2. The memory test vector generation method according to claim 1, characterized in that: In step S1, the encoding format of the test instruction vector is determined, including a memory using the SPI communication protocol whose test vector adopts the rising edge reading and writing data method, and a memory using the I2C communication protocol whose test vector needs to add a check line to each test vector when encoding; then, the encoding bit order of the single-line test vector to be generated is determined according to the pin sequence of the memory under test, wherein the pin sequence of the memory under test can be customized by the test engineer, and the initialization state of the memory under test is used as the starting line of the test vector, and the single-line test vector generated thereby is the minimum unit for subsequently writing a test instruction vector set.

3. The memory test vector generation method according to claim 1, characterized in that: The test instructions of step S2 include: configuration instructions for various functions of the memory, storage unit addresses, data read and write, erase instructions, and loop wait instructions; the serial test instruction vectors corresponding to the data read and write instructions are written in a chessboard code, that is, the data of adjacent bits of the data read and written to the memory must be opposite; the serial test instruction vectors corresponding to the non-data read and write instructions are encoded in a general way.

4. The memory test vector generation method according to claim 1, wherein: The initial address and the end address of the storage unit address in step S4 are determined by the capacity of the memory under test, and the size of the single read and write data is customized by the test engineer. To generate a full-address test vector, the number of times data needs to be written is calculated based on the capacity of the memory and the size of the single read and write data.