CN112597002A - Python script based test vector generation method - Google Patents

Python script based test vector generation method Download PDF

Info

Publication number
CN112597002A
CN112597002A CN202011444173.4A CN202011444173A CN112597002A CN 112597002 A CN112597002 A CN 112597002A CN 202011444173 A CN202011444173 A CN 202011444173A CN 112597002 A CN112597002 A CN 112597002A
Authority
CN
China
Prior art keywords
test
vector
generating
test vector
function
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
CN202011444173.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.)
Beijing CEC Huada Electronic Design Co Ltd
Original Assignee
Beijing CEC Huada Electronic Design 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 Beijing CEC Huada Electronic Design Co Ltd filed Critical Beijing CEC Huada Electronic Design Co Ltd
Priority to CN202011444173.4A priority Critical patent/CN112597002A/en
Publication of CN112597002A publication Critical patent/CN112597002A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

A method for generating test vectors based on Python scripts. The method for generating the test vector is used for solving the defects that a simulation environment is needed or time and labor are wasted in the existing test vector generation process. The method comprises the four steps of firstly determining a keyword of a tested function according to the tested function of a tested chip, then filling in and generating a vector function table according to the keyword, then generating a Python script for printing a test vector corresponding to the keyword for generating the vector function table, and finally running the test vector generation script to generate the required test vector. By using the method, the test vectors can be generated automatically in batches with high efficiency, the vector generation period is shortened, and the test cost is reduced.

Description

Python script based test vector generation method
Technical Field
The invention belongs to the technical field of chip testing, and particularly relates to a method for generating a test vector based on a Python script.
Background
An Integrated Circuit (IC) test is to detect defects generated in manufacturing, and a test system is generally adopted for testing an IC at present, and a test vector file is required to be configured for system testing, and a test vector generation technology is always a research hotspot in the industry. Generally, test vectors are generated by adopting methods of generating simulation environment and handwriting test vectors, but the simulation vectors cannot be realized at all under the condition of no environment support, and the generation of vectors in tens of thousands of rows by using simulation or handwriting vectors requires great labor and time cost, so that the debugging and updating of the test vectors are not facilitated.
Disclosure of Invention
In order to overcome the defects that the simulation environment is needed or time and labor are wasted in the existing test vector generation process, the invention provides the test vector generation method.
The technical scheme adopted by the invention to solve the technical problem is as follows:
a method for generating a test vector based on a Python script, wherein the method for generating the test vector by the script comprises the following steps:
(1) determining a keyword of the function to be tested according to the function to be tested of the chip to be tested;
(2) filling in and generating a vector function table according to the keywords;
(3) generating a Python script for printing the test vector corresponding to the keyword for generating the vector function table;
(4) and running the test vector generation script to generate the required test vector.
The test functions determined in step (1) are all functions of the chip to be tested, which are determined by the chip to be tested, and the keywords are filled in the vector function generating table in step (2).
And (2) combining each test function by using the keywords appointed in the step (1), wherein each row in the generated vector function table is composed of related keywords and different test items with different behaviors are used for automatically generating the required test vectors in batch, and the keywords not only comprise the functions of the tested chips, but also comprise the names of the test items and the names of the generated test vectors.
And (3) reading the generated vector function table, and correspondingly generating a test vector for printing the test function according to the keywords filled in the table.
And (4) after the preparation of the first three steps, running the test vector generation script in the step (4), generating all vectors required in batch, and finishing the generation of the required vectors.
In one embodiment of the invention, the testing comprises:
determining keywords according to chip test functions, filling a generated vector function table, reading the generated vector function table by using the Python script, and generating test vectors corresponding to the functions according to the generated vector function table.
Compared with the prior art, the invention has the beneficial effects that:
1. the method for generating the test vector is adopted to replace a method for generating the test vector by utilizing a simulation environment, so that the dependence of the test vector generation on the environment is reduced, and the test vector is updated or generated without the simulation environment;
2. the vector required by the test is generated by using a Python script printing mode, so that the real-time performance is higher, the time spent on vector generation is reduced, and the vector generation efficiency is improved;
3. the test vector generation method adopted by the invention is a completely independent test vector test method, and can be used for generating test vectors in a laboratory or being matched with a test machine in a test factory.
Drawings
The invention is further illustrated with reference to the following figures and examples.
FIG. 1 is a vector generation flow diagram of a Python script-based test vector generation method according to the present invention.
Fig. 2 is a vector generation function table of a method for generating a test vector based on a Python script according to an embodiment of the present invention.
Fig. 3 is a generated vector of a method for generating a test vector based on a Python script according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the particular embodiments described herein are illustrative and explanatory only and are not restrictive of the invention.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments in accordance with the present application.
Referring to fig. 1, fig. 2, and fig. 3, fig. 1 is a schematic diagram of a vector generation flow of a method for generating a test vector based on a Python script according to an embodiment of the present invention; FIG. 2 is a function table of a generated vector for a method for generating a test vector based on a Python script according to an embodiment of the present invention; fig. 3 is a generated vector of a method for generating a test vector based on a Python script according to an embodiment of the present invention. Referring to fig. 1, the method includes the following steps:
(1) determining a keyword of the function to be tested according to the function to be tested of the chip to be tested;
(2) filling in and generating a vector function table according to the keywords;
(3) generating a Python script for printing a test vector corresponding to the keyword;
(4) and running the test vector generation script to generate the required test vector.
In this example, taking the Flash memory test vector of the target chip as an example, the tester adopted is a Chroma3360 ATE machine of the china electronic company, and the generated vector is generated according to the format required by the Chroma3360 ATE test machine.
Wherein, the step (1) comprises that the determined test functions are all functions to be tested of the tested chip and are determined by the tested chip;
in this example, the keywords of the functions required by the Flash test chip are determined, such as the keywords of "init _ input", "seri _ mode", "rand _ read _ con" in the CMD column in fig. 2, and the parameters required by the Flash test, such as chip selection, address, data, and the like, are configured;
the step (2) comprises the steps of combining each test function by using the keywords determined in the step (1), wherein each row in a generated vector function table is composed of related keywords and different test items are used for automatically generating the required test vectors in batch, and the keywords not only comprise the functions of the tested chips, but also comprise the names of the test items and the names of the generated test vectors;
reading the generated vector function table, correspondingly printing test vectors of the test function according to keywords filled in the table, wherein each keyword corresponds to a corresponding test vector and comprises an input 0/1, an output L/H and cycle times of each PAD of the chip, and the keywords also comprise parts contained in the test vectors, including the PAD of the chip at the beginning of the vector and the vector at the end of the vector;
and (4) running the script and generating the required test vectors in batches. The ATE test machine provides a stimulation signal for the chip according to the input signal value provided by the function pattern so that the chip executes a corresponding function according to the stimulation signal; and the ATE testing machine compares the signal value output by the chip with the output signal value stored in the function pattern, so as to test the function of the chip Flash.
The above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention as long as the technical effects of the present invention are achieved by the same means. The invention is capable of other modifications and variations in its technical solution and/or its implementation, within the scope of protection of the invention.

Claims (4)

1. A method for generating a test vector based on a Python script is suitable for generating the test vector, and is characterized by comprising the following steps:
(1) determining a keyword of the function to be tested according to the function to be tested of the chip to be tested;
(2) filling in and generating a vector function table according to the keywords;
(3) generating a Python script for printing the test vector corresponding to the keyword for generating the vector function table;
(4) and running the test vector generation script to generate the required test vector.
2. The generate vector function table of claim 1, wherein: and the generated vector function table is a chip test item according to the keyword combination.
3. The method of claim 1, wherein the method for generating test vectors based on Python scripts comprises: the step (3) comprises:
reading keywords in the generated vector function table by a Python script;
and generating a script for printing the test vector according to the vector function generating table.
4. The method of claim 1, wherein the method for generating test vectors based on Python scripts comprises: the step (4) comprises the following steps:
running a Python script to generate a test vector;
the Python script comprises judgment keywords and generates a test vector of each test item line by line.
CN202011444173.4A 2020-12-08 2020-12-08 Python script based test vector generation method Pending CN112597002A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011444173.4A CN112597002A (en) 2020-12-08 2020-12-08 Python script based test vector generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011444173.4A CN112597002A (en) 2020-12-08 2020-12-08 Python script based test vector generation method

Publications (1)

Publication Number Publication Date
CN112597002A true CN112597002A (en) 2021-04-02

Family

ID=75192345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011444173.4A Pending CN112597002A (en) 2020-12-08 2020-12-08 Python script based test vector generation method

Country Status (1)

Country Link
CN (1) CN112597002A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113849419A (en) * 2021-12-02 2021-12-28 上海燧原科技有限公司 Method, system, equipment and storage medium for generating test vector of chip

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101614788A (en) * 2009-07-17 2009-12-30 中国人民解放军63908部队 A kind of method of testing of automatically generated vectors of digital circuit board
CN104484269A (en) * 2014-11-27 2015-04-01 北京广利核系统工程有限公司 Method for automatically generating testing script
US20180260309A1 (en) * 2017-03-11 2018-09-13 Wipro Limited Method and system for semantic test suite reduction
CN110727599A (en) * 2019-10-17 2020-01-24 青岛海信宽带多媒体技术有限公司 Test environment configuration and updating method
CN110955608A (en) * 2019-12-23 2020-04-03 金蝶软件(中国)有限公司 Test data processing method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101614788A (en) * 2009-07-17 2009-12-30 中国人民解放军63908部队 A kind of method of testing of automatically generated vectors of digital circuit board
CN104484269A (en) * 2014-11-27 2015-04-01 北京广利核系统工程有限公司 Method for automatically generating testing script
US20180260309A1 (en) * 2017-03-11 2018-09-13 Wipro Limited Method and system for semantic test suite reduction
CN110727599A (en) * 2019-10-17 2020-01-24 青岛海信宽带多媒体技术有限公司 Test environment configuration and updating method
CN110955608A (en) * 2019-12-23 2020-04-03 金蝶软件(中国)有限公司 Test data processing method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113849419A (en) * 2021-12-02 2021-12-28 上海燧原科技有限公司 Method, system, equipment and storage medium for generating test vector of chip
CN113849419B (en) * 2021-12-02 2022-04-05 上海燧原科技有限公司 Method, system, equipment and storage medium for generating test vector of chip

Similar Documents

Publication Publication Date Title
CN102169846B (en) Method for writing multi-dimensional variable password in parallel in process of testing integrated circuit wafer
CN109524055B (en) Method for positioning failure bit of memory based on SOC ATE and test system
CN113190394B (en) SOC chip-oriented multi-clock-domain concurrent test system and test method thereof
CN113514759B (en) Multi-core test processor and integrated circuit test system and method
CN105069227A (en) Method for establishing functional verification platform on the basis of Wishbone bus design
CN103308846A (en) Method and device for detecting functional performance of integrated chip based on model identification
CN101196553A (en) Method for improving SOC chip testing efficiency
CN115656769A (en) Parallel testing method and device for multiple FPGA chips and computer equipment
CN103345944B (en) Storage device and method for testing storage device through test machine
CN115201529A (en) Novel parallel semiconductor parameter testing system
CN112597002A (en) Python script based test vector generation method
CN110457743A (en) A kind of chip detecting method based on FPGA
CN109283451A (en) A kind of integrated circuit non-defective unit detection system and method
CN115774182B (en) Chip testing method and device based on ATE platform
CN1934655B (en) Method for detecting delay fault in semiconductor memories and test circuit
CN115691632B (en) Test control system and method
CN103165405A (en) Mutli-dimensional variable code real-time generation method through general purpose interface bus (GPIB) interface
CN100375196C (en) Method for reading semiconductor die information in a parallel test and burn-in system
CN108600042B (en) WiFi test method and device for electronic equipment, storage medium and test equipment
CN116244303A (en) Multi-die chip management method, apparatus, computer device, and storage medium
US6785413B1 (en) Rapid defect analysis by placement of tester fail data
Appello et al. Embedded memory diagnosis: An industrial workflow
CN203573309U (en) Testing structure for embedded system memory
CN100389425C (en) Method and equipment for implementing verification of digital-analog mixed type IC
US6243853B1 (en) Development of automated digital libraries for in-circuit testing of printed curcuit boards

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210402

WD01 Invention patent application deemed withdrawn after publication