CN111104276B - Chip testing system and method - Google Patents

Chip testing system and method Download PDF

Info

Publication number
CN111104276B
CN111104276B CN202010002126.8A CN202010002126A CN111104276B CN 111104276 B CN111104276 B CN 111104276B CN 202010002126 A CN202010002126 A CN 202010002126A CN 111104276 B CN111104276 B CN 111104276B
Authority
CN
China
Prior art keywords
test
chip
tested
terminal
parameters
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.)
Active
Application number
CN202010002126.8A
Other languages
Chinese (zh)
Other versions
CN111104276A (en
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.)
Xiaohua Semiconductor Co ltd
Original Assignee
Xiaohua Semiconductor 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 Xiaohua Semiconductor Co ltd filed Critical Xiaohua Semiconductor Co ltd
Priority to CN202010002126.8A priority Critical patent/CN111104276B/en
Publication of CN111104276A publication Critical patent/CN111104276A/en
Application granted granted Critical
Publication of CN111104276B publication Critical patent/CN111104276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention discloses a chip testing system, which comprises a testing terminal and N chips to be tested of the same kind or different kinds, wherein the N chips are connected with the testing terminal through buses. The chip to be tested adopts a Modbus communication Protocol to realize data interaction with the test terminal, and meanwhile, the data format in the system is defined by Protocol buffers.

Description

Chip testing system and method
Technical Field
The invention relates to the technical field of semiconductors, in particular to a chip verification and test technology.
Background
With the continuous development of chip technology, the chip functions are more and more complex, and in order to ensure the reliability of the chip, functional verification and test are required after the chip design is completed.
Typically, each function of each module of the chip needs to have an independent test item, so for a chip with high internal IP complexity, the number of test items is large, and at the same time, a small batch of chips needs to perform an independent verification test on each chip. When a chip tester changes a test item or parameter, the test of the chip consumes a lot of manpower once the test item changes because a new test program needs to be downloaded again in each chip.
For this phenomenon, it is currently common practice to add multiple test items and add serial port custom communication protocols by using a test program, so as to reduce the work of downloading the test program by the chip, and further gradually improve the automatic test method. However, this approach is limited in that if there are additional test items, the associated test equipment side and the programs on both sides of the chip interior need to be modified simultaneously. And if the subsequent test is carried out by other professional test equipment instead of the Windows system PC, the related test end program also needs to be transplanted again.
Disclosure of Invention
Aiming at part or all of the problems in the prior art, the invention provides a chip test system and a method, when a test item is changed, only a chip end program is required to be modified, and in addition, the system and the method support simultaneous test and verification of multiple chips. The invention provides a chip testing system, which comprises a testing terminal and a chip to be tested, wherein:
the chip to be tested is connected with the test terminal through a bus;
the chip to be tested is used for:
storing a test program and an operation method thereof;
sending the operation method to the test terminal;
receiving test parameters and executing test programs corresponding to the test parameters; and
transmitting the test result to the test terminal;
the test terminal is used for:
receiving and displaying the operation method;
inputting test parameters and sending the test parameters to a chip to be tested; and
and displaying, storing and analyzing the test result.
Further, the operation method, the test parameters and the data format of the test result are defined by protocols.
Further, the chips to be tested may be N chips of the same kind or different kinds, where N is a natural number.
Further, the bus is a CAN bus, and the test terminal is connected with the CAN bus through a CAN-RS232 converter.
Further, the bus is an RS485 bus.
Further, data interaction is achieved between the chip to be tested and the test terminal through a Modbus communication protocol.
The invention also provides a chip testing method, which comprises the following steps:
the method comprises the steps that a test terminal sends an instruction to a chip to be tested to acquire an operation method of a test program of the chip to be tested;
after receiving an operation method sent by the chip to be tested, the test terminal displays the number of test parameters and data types required by the operation method;
the test terminal obtains test parameters and sends the test parameters to the chip to be tested; and
and the test terminal receives the test result sent by the chip to be tested, and displays, stores and analyzes the test result.
Further, the operation method, the test parameters and the data structure of the test result of the chip test program to be tested are defined by protocols.
Further, sending the test parameters to the chip under test includes:
the test terminal sequences the test parameters through protocol buffers and converts the test parameters into binary strings;
the test terminal fills the binary string in a data area of a Modbus communication protocol and sends the binary string to a chip to be tested through a bus; and
and the chip to be tested deserializes the received binary string and executes the test corresponding to the test parameter.
Further, the operation method of the test program and the sending of the test result include:
the chip to be tested sequences the operation method of the test program and the test result through protocols and converts the operation method and the test result into binary strings;
the chip to be tested fills the binary string in a data area of a Modbus communication protocol and sends the binary string to a test terminal through a bus; and
and the test terminal deserializes the received binary string and executes corresponding operation.
According to the chip test system and method provided by the invention, the protocol buffers are applied to chip verification and test, and the discovery operation method mechanism is introduced for the first time, so that the self-adaption of the communication protocol is realized, when the test method is changed and increased, only the program is required to be modified at the chip end, and the program is not required to be modified at the test terminal at the same time.
Drawings
To further clarify the above and other advantages and features of embodiments of the present invention, a more particular description of embodiments of the invention will be rendered by reference to the appended drawings. It is appreciated that these drawings depict only typical embodiments of the invention and are therefore not to be considered limiting of its scope. In the drawings, for clarity, the same or corresponding parts will be designated by the same or similar reference numerals.
FIG. 1 is a schematic diagram of a chip test system according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a Modbus communication protocol data format according to one embodiment of the invention; and
fig. 3 is a flow chart of a chip testing method according to an embodiment of the invention.
Detailed Description
In the following description, the present invention is described with reference to various embodiments. One skilled in the relevant art will recognize, however, that the embodiments may be practiced without one or more of the specific details, or with other alternative and/or additional methods, materials, or components. In other instances, well-known structures, materials, or operations are not shown or described in detail to avoid obscuring aspects of the invention. Similarly, for purposes of explanation, specific numbers, materials and configurations are set forth in order to provide a thorough understanding of the embodiments of the invention. However, the invention is not limited to these specific details. Furthermore, it should be understood that the embodiments shown in the drawings are illustrative representations and are not necessarily drawn to scale.
Reference throughout this specification to "one embodiment" or "the embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment.
It should be noted that the embodiments of the present invention describe the process steps in a specific order, however, this is merely to illustrate the specific embodiment and not to limit the order of the steps. In contrast, in various embodiments of the present invention, the order of the steps may be adjusted according to process adjustments.
Protocol buffers, which are open source items externally published by *** 7 in 2008, are widely used for various structured information storage and exchange as a custom Remote Procedure Call (RPC) system for communication between almost all devices of ***. The main characteristics are as follows: 1. adopting a binary data coding format; 2. and the system supports multiple languages such as C/C++, JAVA, C#, python and the like, and is convenient for cross-platform operation support. The two main characteristics of Protocol buffers enable the Protocol buffers to run on a single chip microcomputer, and the Protocol buffers have good data analysis and cross-platform characteristics and can solve the problem of possible follow-up transplantation.
According to the system and the method for testing the chip, the protocol buffers are applied to chip verification and testing, so that when the testing method is changed and increased, only a program needs to be modified at the chip end, and in addition, the system and the method adopt Modbus communication protocols for communication, so that simultaneous test verification of multiple chips is realized. The invention is further elucidated below in connection with the embodiments with reference to the drawings.
Fig. 1 shows a schematic structural diagram of a chip testing system according to an embodiment of the present invention, as shown in fig. 1, the chip testing system includes a testing terminal 101, and N chips 102 to be tested of the same kind or different kinds connected to the testing terminal 101 through a bus 103, where N is a natural number. In one embodiment of the present invention, the bus is a CAN bus, and the test terminal is connected to the CAN bus 103 through a CAN-RS232 converter 104. In yet another embodiment of the present invention, the bus is an RS485 bus.
The test terminal 101 is configured to obtain an operation method from the chip to be tested 102, and display the number and types of parameters required by the operation method, so that a user can input corresponding test parameters on the test terminal 101, and the test terminal 101 is further configured to send the test parameters to the chip to be tested 102, and receive, display, store and analyze the test result of the chip to be tested 102.
The chip to be tested 102 stores a test program of the chip and an operation method thereof, and is used for executing a corresponding test and sending a test result to the test terminal 101.
The chip to be tested 102 adopts Modbus communication protocol to realize data interaction with the test terminal 101. As shown in fig. 2, the data frame of the Modbus communication Protocol includes an address code 201, a function code 202, a data area 203 and a check code 204, wherein the address code 201 identifies the addresses of the chips to realize the synchronous test of multiple chips, and the data in the data area 203 is the operation method, the test parameters and the test result after being serialized by the protocols.
When multiple chips are tested simultaneously, the chips need to be put into a communication protocol with an address code data format. As shown in fig. 2, protocol buffers are used as data areas of the Modbus communication Protocol, and address areas of the Modbus are used to solve the problem that one test terminal tests a plurality of chips to be tested. On the basis of the communication protocol, the self-adaptive function is developed on the test terminal by improving the communication protocol, and the communication protocol can be suitable for various series of tested chips. The one-time development work of the test terminal is truly realized, and the subsequent modification risk and work are greatly reduced. Only the tested chip end program needs to be modified.
In the internal test program of the tested chip, the operation method of the tested chip can be obtained in the human-computer interface of the test terminal through the corresponding communication protocol. Through the acquired operation method, the test terminal can display the test parameters which need to be transmitted in by the related operation method, including the information of the number, the data type and the like of the parameters. And the test terminal inputs corresponding parameters, and can sequence and transmit data to a corresponding test chip through the optimized protocol buffers. The chip receives the transferred data, performs the related operation after the data is inversely sequenced, and transfers the related data after the related operation is sequenced to the PC of the test terminal through the bus. And the PC end transmits the reverse serialization of the execution data to the operation interface.
Fig. 3 is a flow chart of a chip testing method according to an embodiment of the invention. A chip testing method comprises the following steps:
step 301, define a data format. Defining an operation method, a parameter data structure and a test result data structure of a chip test program to be tested by adopting protocols;
step 302, a test system is built. Downloading a test program to a chip to be tested, and connecting the chip to be tested to a test terminal through a CAN bus or an RS485 bus;
step 303, obtaining an operation method. Transmitting an instruction from the test terminal to acquire an operation method of the chip test program to be tested, after receiving the instruction, the chip to be tested sequences the operation method through protocols buffers, converts the operation method into binary strings, fills the binary strings in a data area of a Modbus communication protocol, and transmits the binary strings to the test terminal through a bus;
step 304, displaying the parameter information. The test terminal receives Modbus data sent by the chip to be tested, then performs deserialization to obtain the operation method, and extracts the number of test parameters and data types required by the operation method by reading the operation method and displays the number and the data types on display equipment of the test terminal;
in step 305, test parameters are input and sent. According to the number of parameters and the data types displayed by the test terminal, a user inputs corresponding test parameters, the test terminal sequences the test parameters through protocol buffers, converts the test parameters into binary strings, fills the binary strings in a data area of a Modbus communication protocol, and sends the binary strings to the chip to be tested through a bus;
at step 306, a test is performed. After the chip to be tested receives Modbus data sent by the test terminal, performing deserialization to obtain the test parameters, and then executing the test;
step 307, send test results. After the test is finished, the chip to be tested sequences the test result through protocol buffers, converts the test result into a binary string, fills the binary string in a data area of a Modbus communication protocol, and sends the binary string to the test terminal through a bus; and
step 308, result analysis. And after receiving Modbus data sent by the chip to be tested, the test terminal performs deserialization to obtain a test result, displays the test result on display equipment of the test terminal, analyzes the test result at the same time, and stores the test result and analysis conclusion in storage equipment of the test terminal.
While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example only, and not limitation. It will be apparent to those skilled in the relevant art that various combinations, modifications, and variations can be made therein without departing from the spirit and scope of the invention. Thus, the breadth and scope of the present invention as disclosed herein should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.

Claims (8)

1. The chip testing system comprises a testing terminal and a chip to be tested, and is characterized in that:
the chip to be tested is connected with the test terminal through a bus;
the chip to be tested is used for:
storing a test program and an operation method thereof, wherein the data format of the operation method is defined by protocols;
sending the operation method to the test terminal;
receiving test parameters and executing a test program corresponding to the test parameters, wherein the data format of the test parameters is defined by Protocol buffers; and
transmitting the test result to the test terminal, wherein the data format of the test result is defined by protocols;
the test terminal is used for:
receiving the operation method and displaying the number and types of parameters required by the operation method;
inputting test parameters and sending the test parameters to a chip to be tested; and
and displaying, storing and analyzing the test result.
2. The system of claim 1, wherein the chips to be tested are N chips of the same type or different types, where N is a natural number.
3. The system of claim 1, wherein the bus is a CAN bus and the test terminal is connected to the CAN bus through a CAN-RS232 converter.
4. The system of claim 1, wherein the bus is an RS485 bus.
5. The system according to any one of claims 1 to 4, wherein data interaction is implemented between the chip under test and the test terminal via a Modbus communication protocol.
6. A chip testing method connects a chip to be tested to a testing terminal through a bus, and is characterized by comprising the following steps:
the method comprises the steps that a test terminal sends an instruction to a chip to be tested to acquire an operation method of a test program of the chip to be tested, wherein a data format of the operation method is defined by Protocol buffers;
after receiving an operation method sent by the chip to be tested, the test terminal displays the number of test parameters and data types required by the operation method;
the method comprises the steps that a test terminal obtains test parameters and sends the test parameters to a chip to be tested, wherein the data format of the test parameters is defined by Protocol buffers; and
and the test terminal receives the test result sent by the chip to be tested, and displays, stores and analyzes the test result, wherein the data format of the test result is defined by protocols.
7. The method of claim 6, wherein transmitting the test parameters to the chip under test comprises:
the test terminal sequences the test parameters through protocol buffers and converts the test parameters into binary strings;
the test terminal fills the binary string in a data area of a Modbus communication protocol and sends the binary string to a chip to be tested through a bus; and
and the chip to be tested deserializes the received binary string and executes the test corresponding to the test parameter.
8. The method of claim 7, wherein the method of operation of the test program and the sending of the test results comprise:
the chip to be tested sequences the operation method of the test program and the test result through protocols and converts the operation method and the test result into binary strings;
the chip to be tested fills the binary string in a data area of a Modbus communication protocol and sends the binary string to a test terminal through a bus; and
and the test terminal deserializes the received binary string and executes corresponding operation.
CN202010002126.8A 2020-01-02 2020-01-02 Chip testing system and method Active CN111104276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010002126.8A CN111104276B (en) 2020-01-02 2020-01-02 Chip testing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010002126.8A CN111104276B (en) 2020-01-02 2020-01-02 Chip testing system and method

Publications (2)

Publication Number Publication Date
CN111104276A CN111104276A (en) 2020-05-05
CN111104276B true CN111104276B (en) 2024-01-26

Family

ID=70425858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010002126.8A Active CN111104276B (en) 2020-01-02 2020-01-02 Chip testing system and method

Country Status (1)

Country Link
CN (1) CN111104276B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118166B (en) * 2020-09-18 2022-05-31 上海国微思尔芯技术股份有限公司 Multi-chip networking system, method and application
CN116820867B (en) * 2023-08-29 2023-12-15 腾讯科技(深圳)有限公司 Chip debugging method and device and chip

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010110048A (en) * 2000-06-03 2001-12-12 박현숙 chip design verification and test apparatus and method
CN106054058A (en) * 2016-04-28 2016-10-26 芯海科技(深圳)股份有限公司 System and method capable of performing testing and temperature control on multiple Sigma-Delta ADC chips
CN106059582A (en) * 2016-04-28 2016-10-26 芯海科技(深圳)股份有限公司 System and method for testing digital-analog mixed signal chip

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7673200B2 (en) * 2007-10-10 2010-03-02 Asix Electronics Corporation Reprogrammable built-in-self-test integrated circuit and test method for the same
US10768230B2 (en) * 2016-05-27 2020-09-08 International Business Machines Corporation Built-in device testing of integrated circuits

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010110048A (en) * 2000-06-03 2001-12-12 박현숙 chip design verification and test apparatus and method
CN106054058A (en) * 2016-04-28 2016-10-26 芯海科技(深圳)股份有限公司 System and method capable of performing testing and temperature control on multiple Sigma-Delta ADC chips
CN106059582A (en) * 2016-04-28 2016-10-26 芯海科技(深圳)股份有限公司 System and method for testing digital-analog mixed signal chip

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Robert C McLeay等."Motif Enrichment Analysis: a unified framework and an evaluation on ChIP data".《BMC Bioinformatics》.2010,第11卷全文. *
彭东阳."高性能DDS芯片测试***设计".《硕士电子期刊·信息科技辑》.2014,第2014年卷(第02期),全文. *

Also Published As

Publication number Publication date
CN111104276A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN107562635B (en) Embedded software test auxiliary system
CN111104276B (en) Chip testing system and method
CN111475417A (en) Automatic testing method, device, equipment and storage medium
CN113553257B (en) Test method, device, storage medium and electronic equipment
CN107171897A (en) A kind of interface test method and data-interface test system
CN108132876B (en) Embedded software object code unit testing method based on injection mode
CN111273153A (en) Automatic testing method, device and system for chip
CN114116364A (en) Chip debugging method, storage medium, related device and system
CN114610640A (en) Fuzzy testing method and system for trusted execution environment of Internet of things
CN107247599B (en) Instrument driving module and instrument driving method
CN102750143B (en) Based on the DSP development approach that MATLAB com component calls
CN108833005B (en) Optical network communication equipment and automatic test kit and method for networking service thereof
CN112770108B (en) Performance test method, device and system and computer readable storage medium
CN105760300A (en) Automatic STK/UTK service testing method and system
CN110399305B (en) BTT module testing method and device
CN115134427B (en) Communication protocol coordination method, device, computer equipment and storage medium
CN114845328B (en) Polymorphism NR radio frequency test system, test case generation method and test method
CN115712537A (en) Low-cost vehicle controller CAN signal simulation system
CN115967660A (en) Method and device for testing CAN protocol conversion, terminal equipment and storage medium
CN111176995A (en) Test method and test system based on big data test case
CN115114145A (en) Method, system and medium for parameterization design of test program set of automatic test system
CN113051173A (en) Test flow arrangement execution method and device, computer equipment and storage medium
CN111367734A (en) Method for carrying out pressure test in testing machine
CN112685031A (en) Analysis method and system for DBC file of fuel cell test system
CN110442548B (en) System on chip and interface data processing method and device thereof

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220725

Address after: 201210 floor 10, block a, building 1, No. 1867, Zhongke Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Applicant after: Xiaohua Semiconductor Co.,Ltd.

Address before: 201210 8th floor, block a, 1867 Zhongke Road, Pudong New Area, Shanghai

Applicant before: HUADA SEMICONDUCTOR Co.,Ltd.

GR01 Patent grant
GR01 Patent grant