CN115934432A - Multifunctional testing method for DSP chip - Google Patents

Multifunctional testing method for DSP chip Download PDF

Info

Publication number
CN115934432A
CN115934432A CN202110961638.1A CN202110961638A CN115934432A CN 115934432 A CN115934432 A CN 115934432A CN 202110961638 A CN202110961638 A CN 202110961638A CN 115934432 A CN115934432 A CN 115934432A
Authority
CN
China
Prior art keywords
test
dsp
tested
dsp chip
gpio
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
CN202110961638.1A
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 Zhenxing Metrology and Test Institute
Original Assignee
Beijing Zhenxing Metrology and Test Institute
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 Zhenxing Metrology and Test Institute filed Critical Beijing Zhenxing Metrology and Test Institute
Priority to CN202110961638.1A priority Critical patent/CN115934432A/en
Publication of CN115934432A publication Critical patent/CN115934432A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

The invention discloses a multifunctional testing method of a DSP chip, belongs to the technical field of electronic component detection, and solves the problem that the existing testing method cannot meet the testing requirement of a high-performance DSP. The method comprises the following steps: the ATE is electrified and configured with a DSP chip to be tested based on a DSP configuration program stored in the plug-in FLASH; the ATE judges whether the test items are relevant to the peripheral equipment, if so, the ATE enables pins relevant to the corresponding test items in the DSP chip to be tested to be connected with the peripheral equipment through a control relay; otherwise, the ATE enables all pins in the DSP chip to be tested to be connected with the ATE by controlling a relay; sending a GPIO test interaction instruction corresponding to the test item to the DSP chip by ATE; the DSP chip to be tested runs a test configuration subprogram corresponding to the test item based on the received GPIO test interaction instruction, and outputs a test observation signal; and the ATE judges whether the test item passes the test or not based on the collected test observation signals.

Description

Multifunctional testing method for DSP chip
Technical Field
The invention relates to the technical field of electronic component detection, in particular to a multifunctional testing method for a DSP chip.
Background
DSP, i.e. digital signal processor. DSP has been developed rapidly and widely used from birth to the present; the system has the advantages of high integration level, good stability, strong programmability, high speed, strong embeddable performance, convenient interface and integration, large data processing throughput and high reliability; due to its ultra-high performance-price ratio, various functions and stable performance, it has been widely used as a core chip in various aspects such as industrial control and data processing. The diversified market demands further promote the rapid development of the DSP functions towards the aspects of diversification, high speed, high integration and the like, and a virtuous circle is formed, so that the DSP is developed vigorously in the aspects of process and functions.
Digital circuit testing, which generally involves applying stimuli to a device directly using ATE test equipment while observing whether the device response is consistent with expectations; the unprogrammed DSP device has no functional output, and cannot apply excitation to directly observe response through the test bench, so that much inconvenience is brought to the test process; the configuration program must be written in the DSP chip in advance, and the DSP self-starting observation device outputs after being electrified. The testing method has great limitation, and cannot be realized by a DSP without an internal FLASH.
At present, 5000 and 6000 series DSPs are applied in the market, and have rich peripheral interfaces, including IO interfaces, interrupt interfaces, timer interfaces, memory interfaces, bus protocol interfaces, high-speed data transmission interfaces and the like; because the function is powerful and complicated, most of the pins of the DSP multiplex a plurality of functions, the protocol of the protocol interface is complex, direct communication with the test board is difficult, the speed of the high-speed data transmission interface can reach hundreds of M or even more than 1GHZ, and the test board can not meet the test requirement at all.
Disclosure of Invention
In view of the foregoing analysis, embodiments of the present invention provide a multifunctional testing method for a DSP chip, so as to solve the problem that the existing testing method cannot meet the testing requirement of a high-performance DSP.
The embodiment of the invention provides a multifunctional testing method of a DSP chip, which comprises the following steps:
a DSP chip to be tested is configured on the basis of a DSP configuration program stored in the plug-in FLASH; the DSP configuration program is adapted to the test items of the DSP chip to be tested, and comprises a test configuration subprogram corresponding to each test item;
the ATE judges whether the test items are relevant to the peripheral equipment, if so, the ATE enables pins relevant to the corresponding test items in the DSP chip to be tested to be connected with the peripheral equipment through a control relay; otherwise, enabling all pins in the DSP chip to be tested to be connected with the ATE by the ATE through controlling a relay;
sending a GPIO test interaction instruction corresponding to the test item to the DSP chip by ATE;
the DSP chip to be tested runs a test configuration subprogram corresponding to the test item based on the received GPIO test interaction instruction, and outputs a test observation signal;
and the ATE judges whether the test item passes the test or not based on the collected test observation signals.
On the basis of the method, the invention also makes the following improvements:
further, the test configuration subprogram is used for responding to the GPIO test interaction instruction, executing data processing and judgment operation matched with the test item, and outputting a test observation signal after verification passes;
all the test configuration subroutines are uniformly placed in a WHILE loop.
Further, the DSP configuration program also comprises GPIO initialization configuration used for carrying out power-on configuration on the DSP chip to be tested;
the GPIO initialization configuration is used for configuring the input and output states of GPIO ports in the DSP chip to be tested according to the test items; the GPIO port configured as the input port is used for receiving the GPIO test interaction instruction, and the GPIO port configured as the output port is used for outputting the test observation signal.
Further, when the test items corresponding to the GPIO test interactive instructions received by the DSP chip to be tested are peripheral related test items:
the DSP chip to be tested runs a test configuration subprogram corresponding to the peripheral related test item based on the received GPIO test interactive instruction corresponding to the peripheral related test item:
the DSP chip to be tested writes specific data into the peripheral through the pins related to the corresponding test items, reads the data in the peripheral through the pins related to the corresponding test items, judges whether the read data is consistent with the written specific data or not, and if so, the DSP chip to be tested outputs the level with the variable height of the fixed frequency through the GPIO output port to be used as a test observation signal of the peripheral related test items;
if the ATE collects the test observation signals of the appointed peripheral related test items in the expected time, the test of the peripheral related test items passes, otherwise, the test of the peripheral related test items does not pass.
Further, the peripheral related class test items include one or more of the following: the method comprises the following steps of testing a memory interface, testing a bus protocol interface and testing a high-speed data transmission interface.
Furthermore, the peripheral used for completing the memory interface test by matching with the DSP chip to be tested is a plug-in memory matched with a memory interface;
the peripheral used for matching the DSP chip to be tested to finish the bus protocol interface test is a plug-in protocol chip matched with a bus protocol interface or an FPGA loaded with an IP core;
the peripheral used for matching the DSP chip to be tested to finish the high-speed data transmission interface test is a plug-in data transmission chip matched with the high-speed data transmission interface.
Further, the peripheral irrelevant test items comprise data processing module tests;
when the test item corresponding to the GPIO test interactive instruction received by the DSP chip to be tested is a data processing module test:
the DSP chip to be tested runs a test configuration subprogram corresponding to the data processing module test based on the received GPIO test interaction instruction corresponding to the data processing module test:
the DSP runs a data processing algorithm in a test configuration subprogram corresponding to the test of the data processing module and judges a data processing result in the DSP, and if the data processing result is consistent with an expected result, the DSP chip to be tested outputs a high-low level with fixed frequency change as a test observation signal of the test of the data processing module through the GPIO output port;
and if the ATE acquires the test observation signal tested by the appointed data processing module in the expected time, the data processing module passes the test, otherwise, the data processing module fails the test.
Further, the peripheral irrelevant test items also comprise I/O function tests;
when the test item corresponding to the GPIO test interactive instruction received by the DSP chip to be tested is an I/O function test:
the DSP chip to be tested runs a test configuration subprogram corresponding to the I/O function test based on the received GPIO test interaction instruction corresponding to the I/O function test:
all GPIO ports in the DSP configuration program are configured as output ports; outputting continuously changing high and low levels as test observation signals of the I/O function test through all GPIO output ports of the DSP chip to be tested according to a certain frequency;
subsequently, restoring the GPIO initialization configuration in the DSP configuration program;
if the ATE collects the test observation signals of the appointed I/O function test in the expected time, the I/O function test is passed, otherwise, the I/O function test is not passed.
Further, prior to the power-up configuration,
downloading the DSP configuration program to a plug-in FLASH of the DSP chip to be tested in the following way, including:
accessing an upper computer to a JTAG interface of the DSP chip to be tested, and accessing the plug-in FLASH to a FLASH interface of the DSP chip to be tested;
the upper computer compiles the DSP configuration program, downloads the compiled DSP configuration program and a secondary bootstrap program into an internal RAM of the DSP chip to be tested, and runs the secondary bootstrap program, wherein the DSP configuration program in the internal RAM is downloaded into the plug-in FLASH through the FLASH interface;
then, the user can use the device to perform the operation,
and controlling all pins of the DSP chip to be tested by the ATE, connecting and testing the DSP chip to be tested, and then performing the connection and testing after the connection and testing are passed by the ATE.
Further, the DSP configuration program also comprises kernel initialization configuration and configuration of each module register; wherein,
the kernel initialization configuration is used for initializing the kernel of the DSP chip to be tested;
and the configuration of each module register is used for carrying out initialization configuration on each module register.
Compared with the prior art, the invention can realize at least one of the following beneficial effects:
the multifunctional testing method of the DSP chip disclosed by the invention can cut the testing items according to the testing requirements, and can realize the multifunctional testing of the high-performance DSP;
meanwhile, the testing method utilizes the GPIO testing interaction instruction to realize the interaction between ATE and DSP, and the vein is clear;
in addition, the testing method makes full use of the programmable function of the DSP, and carries out qualification judgment in the DSP, thereby greatly reducing the difficulty of testing PATTERN and compiling testing programs;
finally, for peripheral related test items, the plug-in chip can be used for testing the DSP chip, and dependence of the test process on ATE test equipment is greatly reduced.
In the invention, the technical schemes can be combined with each other to realize more preferable combination schemes. Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
The drawings are only for purposes of illustrating particular embodiments and are not to be construed as limiting the invention, wherein like reference numerals are used to designate like parts throughout.
FIG. 1 is a flow chart of a multi-functional testing method of a DSP chip according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a connection relationship when downloading a DSP configuration program according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a connection relationship between a DSP chip to be tested and a peripheral device according to an embodiment of the present invention;
FIG. 4 is a flowchart of a multi-function testing method of another DSP chip according to an embodiment of the present invention;
FIG. 5 is a diagram of the hardware connection for the multiplexing memory interface test according to the embodiment of the present invention;
FIG. 6 is a flowchart illustrating the testing of the multiplexing memory interface according to an embodiment of the invention.
Detailed Description
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate preferred embodiments of the invention and together with the description, serve to explain the principles of the invention and not to limit the scope of the invention.
One embodiment of the present invention discloses a method for testing a DSP chip based on ATE, and a flowchart is shown in fig. 1 and 4, and includes the following steps:
step S1: a DSP chip to be tested is configured on the basis of a DSP configuration program stored in the plug-in FLASH; the DSP configuration program is adapted to the test items of the DSP chip to be tested, and comprises a test configuration subprogram corresponding to each test item;
step S2: the ATE judges whether the test items are relevant to the peripheral equipment, if so, the ATE enables pins relevant to the corresponding test items in the DSP chip to be tested to be connected with the peripheral equipment through a control relay; otherwise, the ATE enables all pins in the DSP chip to be tested to be connected with the ATE by controlling a relay;
and step S3: sending a GPIO test interaction instruction corresponding to the test item to the DSP chip by ATE;
and step S4: the DSP chip to be tested runs a test configuration subprogram corresponding to the test item based on the received GPIO test interaction instruction, and outputs a test observation signal;
step S5: and the ATE judges whether the test item passes the test based on the acquired test observation signal.
Preferably, before executing the step S1, a DSP configuration program adapted to a test item of a DSP chip to be tested is compiled, and the DSP configuration program is downloaded to a plug-in FLASH of the DSP chip to be tested; the DSP configuration program comprises a test configuration subprogram corresponding to each test item;
preferably, the test configuration subprogram is configured to respond to the GPIO test interaction instruction, perform data processing and judgment operations matched to the test item, and output a test observation signal after verification passes; and all the test configuration subprograms are uniformly placed in a WHILE loop to wait for the arrival of a test interaction instruction so as to carry out actual test.
Preferably, the DSP configuration program further includes GPIO initialization configuration, which is used to perform power-on configuration on the DSP chip to be tested;
the GPIO initialization configuration is used for configuring the input and output states of GPIO ports in the DSP chip to be tested according to the test items; the GPIO port configured as the input port is used for receiving the GPIO test interaction instruction, and the GPIO port configured as the output port is used for outputting the test observation signal.
For example, the data of the GPIO port configured as the input port can be determined according to the number of the test items in the test items; if 8 test items exist, 3 GPIO ports are set as input ports, if 16 test items exist, 4 GPIO ports are set as input ports, and the like; the design process of the test project should comprehensively consider the performance of the device, and cover all the peripheral and core functions of the chip as much as possible to meet the test requirements.
In addition, the DSP configuration program in this embodiment may further include:
the kernel initialization configuration is used for initializing the kernel of the DSP chip to be tested so as to normally start the DSP chip to be tested;
the configuration of each module register is used for carrying out the initialization configuration of each module register, so that the calling of each subsequent configuration subprogram is facilitated;
in this embodiment, each test item corresponds to an agreed GPIO test interaction command and a test configuration subroutine.
Preferably, in this embodiment, the model of the plug-in FLASH is selected according to the capacity of the DSP configuration program. When the DSP configuration program is downloaded to the plug-in FLASH of the DSP chip to be tested, a schematic connection relationship diagram is shown in fig. 2, and includes:
accessing an upper computer (namely a PC) to a JTAG interface of the DSP chip to be detected, and accessing the plug-in FLASH to a FLASH interface of the DSP chip to be detected;
and the upper computer compiles the DSP configuration program, downloads the compiled DSP configuration program and a secondary bootstrap program into an internal RAM of the DSP chip to be tested, and runs the secondary bootstrap program, wherein the DSP configuration program in the internal RAM is downloaded into the plug-in FLASH through the FLASH interface.
In the process, an external power supply can be used for supplying power, and the external power supply adjusts the voltage through the power management chip and respectively supplies power to the DSP chip to be tested and the plug-in FLASH. After the computer is powered on, the PC establishes connection with the DSP chip to be tested through the JTAG interface, the compiled configuration program is downloaded into the internal RAM of the DSP, the secondary bootstrap program is operated at the moment, and the DSP configuration program of the internal RAM can be downloaded into the FLASH through the FLASH interface. In the test process, the DSP chip to be tested and the plug-in FLASH are powered by ATE equipment, and after the test is powered on, as long as the communication between the DSP chip to be tested and the plug-in FLASH is normal, the DSP chip to be tested can automatically load a DSP configuration program from the plug-in FLASH without additional control.
Prior to performing the power-up configuration, the ATE performs the following operations:
the ATE controls all pins of the DSP chip to be tested to be connected to the ATE, the DSP chip to be tested is subjected to connection test, and the electrifying configuration is carried out after the connection test is passed;
preferably, the connection testing process can be realized by adopting a flow pressure measuring mode.
In the step S1, the plug-in FLASH is connected to a FLASH interface of the DSP chip to be tested to supply power to the DSP chip to be tested, and the DSP chip to be tested is powered on and automatically started. The DSP completes power-on configuration according to the DSP configuration program, meanwhile, read-write testing of the internal registers is completed based on configuration of all module registers in the DSP configuration program, after the DSP completes the power-on configuration, the DSP will be in a loop and wait until a GPIO test interaction instruction sent by the ATE is received, and the DSP starts to execute subsequent testing.
It should be noted that, after power-on configuration, if the DSP chip to be tested is normally started and operated, the FLASH interface in the DSP chip to be tested is normal, and meanwhile, the ATE executes the test of the test item; otherwise, the ATE stops executing the test of the test item.
Preferably, the present embodiment provides two sets of power supply systems for the test interface board, which are respectively an ATE power supply and an external power supply, as shown in fig. 3 below. The external power supply is an interface, all chips including the DSP chip to be tested are powered through the power management chip and are used for online debugging of the DSP and debugging of communication among modules (mainly used during debugging before ATE, ATE supplies power to all devices in the testing process, and the external power supply interface is disconnected); the ATE power supply is used for actual test, and different power ports of the ATE are used for supplying power to external matched chips such as a memory, an FPGA (field programmable gate array) and a bus protocol chip, so that accurate test and flexible control of power consumption of each chip in a test process can be realized.
The schematic diagram of the connection relationship between the DSP chip to be tested and the peripheral is shown in fig. 3: the intelligent power supply comprises main peripheral equipment and a connection mode of two sets of power supplies, wherein black arrowhead-free oblique lines indicate that the connection relation can be switched through a relay. And in the testing process, the ATE testing equipment provides a power supply for the DSP chip, so that the DSP chip can be normally started. In step S2, the pin of the DSP chip is connected to an ATE digital channel or an external device by using the function of the alternative relay, and a relay control power supply and a control signal are both provided by the ATE test board. And switching the relay control signals when the test is started, so that all pins of the DSP are connected to the ATE for connection test, and the chips are guaranteed to be connected perfectly. The relay control signals are grouped and switched, so that the memory interface of the DSP is connected to the plug-in FLASH, power is supplied to the DSP at the moment, and the DSP realizes power-on self-starting. And the DSP completes power-on configuration according to the configuration program and simultaneously completes read-write test of the internal register, and the DSP can wait in a cycle after completing the power-on configuration until receiving a test instruction sent by the ATE through the GPIO, and the DSP starts to execute subsequent test.
The process of step S4 and step S5 differs for a specific test item, and, in particular,
when the test item corresponding to the GPIO test interaction instruction received by the DSP chip to be tested is a peripheral related test item, the step S4 executes the following operations:
the DSP chip to be tested runs a test configuration subprogram corresponding to the peripheral related test item based on the received GPIO test interaction instruction corresponding to the peripheral related test item:
the DSP chip to be tested writes specific data into the peripheral through the pins related to the corresponding test items, reads the data in the peripheral through the pins related to the corresponding test items, judges whether the read data is consistent with the written specific data or not, and if so, the DSP chip to be tested outputs the level with the variable height of the fixed frequency through the GPIO output port to be used as a test observation signal of the peripheral related test items;
at this time, step S5 performs the following operations:
if the ATE collects the test observation signals of the appointed peripheral related test items in the expected time, the test of the peripheral related test items passes, otherwise, the test of the peripheral related test items does not pass.
Preferably, the peripheral related class test items include one or more of: the test method comprises the following steps of memory interface test, bus protocol interface test and high-speed data transmission interface test. The peripheral used for completing the memory interface test by matching with the DSP chip to be tested is a plug-in memory matched with a memory interface; the peripheral used for matching the DSP chip to be tested to finish the bus protocol interface test is a plug-in protocol chip matched with a bus protocol interface or an FPGA loaded with an IP core; the peripheral used for matching the DSP chip to be tested to finish the high-speed data transmission interface test is a plug-in data transmission chip matched with the high-speed data transmission interface.
In order to better understand the technical solution of the present application, the present embodiment further introduces each peripheral related class test item in more detail, as follows:
(1) Memory interface testing
The DSP memory interface can be generally externally connected with one or more memories such as SRAM, FLASH, SDRAM, ZBTRAM and the like; the FLASH interface is used for power-on self-starting, which has been discussed above, and if the DSP can be started and operated normally, the subsequent test item passes normally, which indicates that the FLASH interface is intact, and no separate test is required. Therefore, the memory interface test in this embodiment does not include the test of the FLASH interface. And when testing other memory interfaces of the DSP, data reading, writing and transmission are required to be carried out on the external memory through the DSP, so that the memory interfaces are ensured to be intact.
For DSP chips, some memory interfaces are special, and only one type of memory can be connected with the memory interfaces; some memory interfaces are multiplexed, (ZBTRAM and SDRAM memory interfaces are typically multiplexed, with specific hardware connections as shown in fig. 5 below), which can be connected to several different memories. For the special interface, selecting a memory with proper type and capacity on hardware to be connected with a corresponding DSP interface, and performing writing-reading-erasing operations on the memory through a DSP configuration subprogram program, wherein the read data is the same as the written data, so that the corresponding DSP memory interface can be proved to work normally; for a multiplexing memory interface, different types of memories are simultaneously connected to a memory interface corresponding to a DSP, and the difference is that the enable signals (generally controlled by a given GPIO) of the memories are directly sent by the DSP, and the other enable signals are controlled by the DSP through an inverter, so that the two memories can occupy the same DSP resource but can be subjected to time division multiplexing. The multiplexed memory interface test hardware connection diagram is shown in fig. 5.
The method comprises the steps that each memory interface test corresponds to a GPIO instruction, when a DSP receives a specific memory test instruction sent by ATE, the memory test is started (at the moment, the DSP is powered on and self-starting is completed), ATE test equipment controls a relay to switch, a memory is connected with DSP data and a control pin, the DSP receives the instruction and then executes the memory test, specific data are written into the memory in a whole chip and then read, whether the read data are consistent with the written data or not is judged, the memory needing to be erased carries out erasing operation, whether the read data are null or not is judged correctly, the DSP sends a level with certain frequency and high-low variation through a specific GPIO output port, the ATE test equipment collects the level with the expected high-low variation in expected time, the DSP memory interface test is passed, and otherwise the test is not passed.
The specific flow of the mux memory interface test is shown in fig. 6.
(2) Bus protocol interface testing
The high-performance DSP has rich bus protocol interfaces, which generally comprise an IIC protocol interface, a CAN bus protocol interface, a UART bus protocol interface, an HPI bus protocol interface, a PCI bus protocol interface and the like. Typically, testing these bus interface chips requires the ATE to emulate the communication protocol of the particular bus interface, such that the protocol chips communicate data with the ATE. This approach not only requires the engineering developer to have a detailed understanding of the bus protocol, but also to program a large number of test paterns to apply stimuli conforming to the communication protocol using ATE and to make high and low level decisions on the output of each cycle; for the response bit field, because of the inconsistency of the interface chip, a large amount of redundant operations need to be added, and the misjudgment of the chip is avoided; for a high-performance DSP with a rich protocol interface chip, the testing method can be realized, but has ultrahigh requirements on engineering technical developers, needs a large amount of debugging and tests, and can ensure the stability and the effectiveness of the test by repeatedly adjusting the test PATTERN; the test method has huge workload on the whole, and the test passing rate is not high because the ATE does not have a specific communication protocol.
The embodiment provides a method for testing a plug-in specific protocol chip, which comprises the following steps: and the DSP chip is connected with the DSP chip by using a specific protocol, and the DSP pin is switched between the plug-in equipment and the ATE by using the relay. The IIC protocol interface is tested, and the memory with the IIC protocol is connected with the DSP; testing a CAN bus protocol interface, and connecting the CAN bus protocol interface of the DSP by using a CAN bus controller SJA 1000T; testing a UART bus protocol interface, and connecting the UART bus protocol interface with the UART protocol interface of the DSP by using a UART bus transceiver; in order to reduce the complexity of the test interface board, a proper FPGA and a configuration memory can be selected, different IP cores are loaded through the FPGA, time division multiplexing is carried out on the FPGA, so that the FPGA simulates different bus protocol chips at different moments, and the bus protocol interface test is completed by matching with the DSP.
Taking IIC protocol interface test as an example, an IIC test subprogram is pre-programmed by a configuration program and placed in a WHILE loop, when an IIC interface test instruction received by a GPIO interface is received, IIC test is started to be executed, at the moment, an IIC protocol interface of a DSP is connected to an IIC protocol memory by a relay control interface, the IIC test subprogram starts to write data into the memory through the IIC interface of the DSP, then the data is read out, whether the written data is consistent with the read data is judged, and whether the IIC protocol interface of the DSP is intact is judged.
(3) High speed data transfer interface testing
The high-performance DSP has wide application, part of the DSPs are provided with high-speed data transmission interfaces, and the high-speed data transmission interfaces can transmit high-speed signals of hundreds of MHZ even of GHZ, and the test requirements of the high-speed data transmission interfaces of the DSPs are difficult to meet for general ATE test equipment. The test method of the embodiment comprises the following steps: the method comprises the steps of externally connecting a high-speed data transmission chip, writing a DSP and an external chip transmission control subprogram in a DSP configuration program, executing high-speed data transmission through GPIO instructions sent by ATE test equipment, reading back transmitted data, comparing whether the read-back data is consistent with the transmitted data inside the DSP, sending high and low levels with fixed frequency change through GPIO output ports after comparison is passed, and collecting the levels by ATE to judge the performance of a high-speed transmission interface.
For the peripheral irrelevant test items, the ATE directly executes the test of the corresponding test items based on the DSP configuration program. Specifically, the peripheral independent test items include the following test items:
(1) I/O functional testing
When the test item corresponding to the GPIO test interactive instruction received by the DSP chip to be tested is an I/O function test, the step S4 executes the following operations:
the DSP chip to be tested runs a test configuration subprogram corresponding to the I/O function test based on the received GPIO test interactive instruction corresponding to the I/O function test:
all GPIO ports in the DSP configuration program are configured as output ports; outputting continuously changing high and low levels as test observation signals of the I/O function test through all GPIO output ports of the DSP chip to be tested according to a certain frequency;
subsequently, restoring the GPIO initialization configuration in the DSP configuration program;
at this time, step S5 performs the following operations:
if the ATE collects test observation signals of the appointed I/O function test in the expected time, the I/O function test is passed, otherwise, the I/O function test is not passed.
(2) Timer testing
When the test item corresponding to the GPIO test interaction instruction received by the DSP chip to be tested is a timer test, the step S4 executes the following operations:
the DSP chip to be tested runs a test configuration subprogram corresponding to the timer test based on the received GPIO test interaction instruction corresponding to the timer test:
after the timing time is up, the DSP chip to be tested outputs a level switching signal through the GPIO output port to be used as a test observation signal for testing the timer;
if the ATE collects the test observation signals of the promissory timer test within the expected time, the timer test is passed, otherwise, the timer test is not passed.
(3) Data processing module testing
The DSP has a powerful data processing capability, and when a certain algorithm is processed by the DSP, one or more data processing modules, such as a mathematical operation module, etc., inside the DSP associated with the operation of the algorithm are called at the same time. Therefore, when the data processing module is tested, a data processing algorithm, such as a data processing algorithm commonly used in engineering, such as a Fourier transform algorithm, an image processing algorithm and the like, can be directly written in a test configuration subprogram corresponding to the test of the data processing module.
When the test item corresponding to the GPIO test interactive instruction received by the DSP chip to be tested is a data processing module test, the step S4 executes the following operations:
the DSP chip to be tested runs a test configuration subprogram corresponding to the test of the data processing module based on the received GPIO test interactive instruction corresponding to the test of the data processing module:
the DSP runs a data processing algorithm in a test configuration subprogram corresponding to the test of the data processing module, the judgment of a data processing result is carried out in the DSP, and if the data processing result is consistent with an expected result, the DSP chip to be tested outputs a high and low level with fixed frequency change through the GPIO output port to be used as a test observation signal for the test of the data processing module;
at this time, step S5 performs the following operations:
and if the ATE acquires the test observation signal of the appointed data processing module test in the expected time, the data processing module passes the test, otherwise, the data processing module does not pass the test.
Preferably, in order to perform a relatively comprehensive test on the data processing module, the algorithm in the test configuration subprogram corresponding to the test item can call multiple types of data processing modules; alternatively, multiple algorithms are written, each invoking one or more types of data processing modules.
(4) Parameter testing
Preferably, the parametric test may comprise:
inputting a high-level leakage current IIH test, inputting a low-level leakage current IIL test, outputting a high-level VOH test and outputting a low-level VOL test;
it should be noted that, the parameter testing process needs to be combined with the setting of the DSP configuration program.
1) Input high level leakage current IIH test
When the test item corresponding to the GPIO test interaction instruction received by the DSP chip to be tested is an input high-level leakage current test, step S4 performs the following operations:
the DSP chip to be tested operates a test configuration subprogram corresponding to the input high-level leakage current test based on the received GPIO test interactive instruction corresponding to the input high-level leakage current test:
all GPIO ports in the DSP configuration program are configured as input ports; after appointed time, restoring the GPIO initialization configuration in the DSP configuration program;
in appointed time, the ATE acquires leakage current flowing through each GPIO port as a test observation signal for inputting a high-level leakage current test in a vcc voltage test mode;
at this time, step S5 performs the following operations:
and if the drain current which is acquired by the ATE and flows through each GPIO port is smaller than the maximum drain current of the GPIO port, the input high-level drain current test is passed, otherwise, the input high-level drain current test is not passed.
2) IIL test for input low level leakage current
When the test item corresponding to the GPIO test interaction instruction received by the DSP chip to be tested is an input low-level leakage current test, step S4 performs the following operations:
the DSP chip to be tested operates a test configuration subprogram corresponding to the input low-level leakage current test based on the received GPIO test interactive instruction corresponding to the input low-level leakage current test:
all GPIO ports in the DSP configuration program are configured as input ports; after appointed time, restoring the GPIO initialization configuration in the DSP configuration program;
in a scheduled time, the ATE collects leakage current flowing through each GPIO port in a 0v voltage test mode and takes the leakage current as a test observation signal for inputting a low-level leakage current test;
at this time, step S5 performs the following operations:
and if the drain current which is acquired by the ATE and flows through each GPIO port is smaller than the maximum drain current of the GPIO port, the input low-level drain current test is passed, otherwise, the input low-level drain current test is not passed.
3) Output high level VOH test
When the test item corresponding to the GPIO test interaction instruction received by the DSP chip to be tested is an output high level test, step S4 performs the following operations:
the DSP chip to be tested operates a test configuration subprogram corresponding to the high level test based on the received GPIO test interactive instruction corresponding to the high level test:
all GPIO ports in the DSP configuration program are configured as output ports; outputting a high level as a test observation signal of an output high level test according to a certain frequency through all GPIO output ports of the DSP chip to be tested;
then, restoring the GPIO initialization configuration in the DSP configuration program;
at this time, step S5 performs the following operations:
and if the voltage output by each GPIO port acquired by the ATE is higher than the minimum value of the high level voltage, outputting that the high level test passes, otherwise, outputting that the high level test does not pass.
4) Output low level VOL test
When the test item corresponding to the GPIO test interaction instruction received by the DSP chip to be tested is an output low level test, the step S4 executes the following operations:
the DSP chip to be tested operates a test configuration subprogram corresponding to the low-level VOL test based on the received GPIO test interactive instruction corresponding to the low-level test:
all GPIO ports in the DSP configuration program are configured as output ports; outputting a low level as a test observation signal for outputting a low level test according to a certain frequency through all GPIO output ports of the DSP chip to be tested;
subsequently, restoring the GPIO initialization configuration in the DSP configuration program;
at this time, step S5 performs the following operations:
and if the voltage output by each GPIO port acquired by the ATE is lower than the highest value of the low-level voltage, outputting that the low-level test is passed, otherwise, outputting that the low-level test is not passed.
The DSP configuration program is arranged in the plug-in FLASH, the power-on self-starting is realized in the testing process, the problem that the internal FLASH memory DSP is not used for testing is solved, the complicated operations of programming, testing and erasing are avoided, and the one-key testing can be realized.
The GPIO port is used for realizing communication between ATE test equipment and the DSP, complex functions of the DSP are differentiated, only single function test is carried out at the same time, the test process is simplified, and the test difficulty is reduced.
The external interface of the DSP is inspected by using the plug-in protocol chip and the FPGA, all excitations are sent by the DSP and are judged in the DSP, so that not only is the function of the DSP fully inspected, but also the complicated test PATTERN writing is avoided.
In the whole testing process, ATE testing equipment only needs to provide a power supply and GPIO (general purpose input/output) interaction signals and judges whether the GPIO outputs high and low levels with fixed frequency at an expected time to complete the testing, so that the difficulty in programming the PATTERN is greatly reduced.
The relays are used for switching in groups, so that the DSP pins are ensured to be continuously switched between the peripheral and the ATE in the testing process, and the functional test and the parameter test are conveniently switched.
This patent utilizes external high-speed communication chip, realizes the test to DSP high-speed data transmission interface, has reduced the dependence of test process to ATE high-speed signal for the test of high performance DSP can be accomplished to the most basic testboard.
Those skilled in the art will appreciate that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program, which is stored in a computer readable storage medium, to instruct related hardware. The computer readable storage medium is a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention.

Claims (10)

1. A multifunctional testing method of a DSP chip is characterized by comprising the following steps:
a DSP chip to be tested is configured on the basis of a DSP configuration program stored in the plug-in FLASH; the DSP configuration program is adapted to the test items of the DSP chip to be tested, and comprises a test configuration subprogram corresponding to each test item;
the ATE judges whether the test items are relevant to the peripheral equipment, if so, the ATE enables pins relevant to the corresponding test items in the DSP chip to be tested to be connected with the peripheral equipment through a control relay; otherwise, the ATE enables all pins in the DSP chip to be tested to be connected with the ATE by controlling a relay;
sending a GPIO test interaction instruction corresponding to the test item to the DSP chip by ATE;
the DSP chip to be tested runs a test configuration subprogram corresponding to the test item based on the received GPIO test interaction instruction, and outputs a test observation signal;
and the ATE judges whether the test item passes the test based on the acquired test observation signal.
2. The multifunctional test method of DSP chip of claim 1,
the test configuration subprogram is used for responding to the GPIO test interactive instruction, executing data processing and judgment operation matched with the test item, and outputting a test observation signal after verification is passed;
all the test configuration subroutines are uniformly placed in a WHILE loop.
3. The multi-functional test method of DSP chip of claim 2,
the DSP configuration program also comprises GPIO initialization configuration used for carrying out power-on configuration on the DSP chip to be tested;
the GPIO initialization configuration is used for configuring the input and output states of GPIO ports in the DSP chip to be tested according to the test items; the GPIO port configured as the input port is used for receiving the GPIO test interaction instruction, and the GPIO port configured as the output port is used for outputting the test observation signal.
4. The multi-functional test method of DSP chip of claim 3,
when the test items corresponding to the GPIO test interaction instruction received by the DSP chip to be tested are peripheral related test items:
the DSP chip to be tested runs a test configuration subprogram corresponding to the peripheral related test item based on the received GPIO test interactive instruction corresponding to the peripheral related test item:
the DSP chip to be tested writes specific data into the peripheral through the pins related to the corresponding test items, reads the data in the peripheral through the pins related to the corresponding test items, judges whether the read data is consistent with the written specific data or not, and if so, the DSP chip to be tested outputs the level with the variable height of the fixed frequency through the GPIO output port to be used as a test observation signal of the peripheral related test items;
if the ATE collects the test observation signals of the appointed peripheral related test items in the expected time, the test of the peripheral related test items passes, otherwise, the test of the peripheral related test items does not pass.
5. The ATE-based DSP testing method of claim 4, wherein the peripheral related class test items comprise one or more of: the test method comprises the following steps of memory interface test, bus protocol interface test and high-speed data transmission interface test.
6. The ATE-based DSP testing method of claim 5,
the peripheral used for completing the memory interface test by matching with the DSP chip to be tested is a plug-in memory matched with a memory interface;
the peripheral used for matching the DSP chip to be tested to finish the bus protocol interface test is a plug-in protocol chip matched with a bus protocol interface or an FPGA loaded with an IP core;
the peripheral used for matching the DSP chip to be tested to finish the high-speed data transmission interface test is a plug-in data transmission chip matched with the high-speed data transmission interface.
7. The multifunctional test method of DSP chip of claim 3,
the peripheral irrelevant test items comprise data processing module tests;
when the test item corresponding to the GPIO test interactive instruction received by the DSP chip to be tested is a data processing module test:
the DSP chip to be tested runs a test configuration subprogram corresponding to the test of the data processing module based on the received GPIO test interactive instruction corresponding to the test of the data processing module:
the DSP runs a data processing algorithm in a test configuration subprogram corresponding to the test of the data processing module, the judgment of a data processing result is carried out in the DSP, and if the data processing result is consistent with an expected result, the DSP chip to be tested outputs a high and low level with fixed frequency change through the GPIO output port to be used as a test observation signal for the test of the data processing module;
and if the ATE acquires the test observation signal of the appointed data processing module test in the expected time, the data processing module passes the test, otherwise, the data processing module does not pass the test.
8. The multifunctional test method of DSP chip of claim 3,
the peripheral irrelevant test items also comprise I/O function tests;
when the test item corresponding to the GPIO test interaction instruction received by the DSP chip to be tested is an I/O function test:
the DSP chip to be tested runs a test configuration subprogram corresponding to the I/O function test based on the received GPIO test interactive instruction corresponding to the I/O function test:
all GPIO ports in the DSP configuration program are configured as output ports; outputting continuously changing high and low levels as test observation signals of the I/O function test through all GPIO output ports of the DSP chip to be tested according to a certain frequency;
subsequently, restoring the GPIO initialization configuration in the DSP configuration program;
if the ATE collects test observation signals of the appointed I/O function test in the expected time, the I/O function test is passed, otherwise, the I/O function test is not passed.
9. The multifunctional test method of DSP chip according to claim 1, characterized in that, prior to said power-up configuration,
downloading the DSP configuration program to a plug-in FLASH of the DSP chip to be tested in the following way, including:
accessing an upper computer to a JTAG interface of the DSP chip to be tested, and accessing the plug-in FLASH to a FLASH interface of the DSP chip to be tested;
the upper computer compiles the DSP configuration program, downloads the compiled DSP configuration program and a secondary bootstrap program into an internal RAM of the DSP chip to be tested, and runs the secondary bootstrap program, wherein the DSP configuration program in the internal RAM is downloaded into the plug-in FLASH through the FLASH interface;
then, the user can use the device to perform the operation,
and controlling all pins of the DSP chip to be tested to be connected on the ATE by the ATE, performing connection test on the DSP chip to be tested, and performing power-on configuration after the connection test is passed.
10. The multifunctional testing method of the DSP chip according to any of the claims 1 to 9, wherein the DSP configuration program further comprises a kernel initialization configuration and a configuration of each module register; wherein,
the kernel initialization configuration is used for initializing the kernel of the DSP chip to be tested;
and the configuration of each module register is used for carrying out initialization configuration on each module register.
CN202110961638.1A 2021-08-20 2021-08-20 Multifunctional testing method for DSP chip Pending CN115934432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110961638.1A CN115934432A (en) 2021-08-20 2021-08-20 Multifunctional testing method for DSP chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110961638.1A CN115934432A (en) 2021-08-20 2021-08-20 Multifunctional testing method for DSP chip

Publications (1)

Publication Number Publication Date
CN115934432A true CN115934432A (en) 2023-04-07

Family

ID=86649487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110961638.1A Pending CN115934432A (en) 2021-08-20 2021-08-20 Multifunctional testing method for DSP chip

Country Status (1)

Country Link
CN (1) CN115934432A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234831A (en) * 2023-11-14 2023-12-15 鹏钛存储技术(南京)有限公司 Chip function test method and system based on multi-core CPU
CN118277176A (en) * 2024-04-28 2024-07-02 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Processor reliability test method, device, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234831A (en) * 2023-11-14 2023-12-15 鹏钛存储技术(南京)有限公司 Chip function test method and system based on multi-core CPU
CN117234831B (en) * 2023-11-14 2024-01-26 鹏钛存储技术(南京)有限公司 Chip function test method and system based on multi-core CPU
CN118277176A (en) * 2024-04-28 2024-07-02 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Processor reliability test method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113330322B (en) Automated test equipment using system-on-chip test controller
US7478281B2 (en) System and methods for functional testing of embedded processor-based systems
US9152520B2 (en) Programmable interface-based validation and debug
US5715433A (en) Dynamic software model for emulating hardware
CN115934432A (en) Multifunctional testing method for DSP chip
CN100422953C (en) On-line debugging method for SoC system using HDL to expand serial port
US20070245199A1 (en) Application Specific Distributed Test Engine Architecture System And Method
CN115933579A (en) ATE-based DSP chip test system
US10997343B1 (en) In-system scan test of chips in an emulation system
JP4334463B2 (en) Semiconductor integrated circuit test apparatus and method
CN104407882B (en) A kind of board card device
CN114019938A (en) Microcontroller chip communication interface test system and method thereof
CN202614902U (en) Function testing device for digital signal processor (DSP) chip
CN109213680A (en) Automated testing method based on embedded system simulation device
CN103000230A (en) Nonvolatile memory IP core test and verify exploitation system
CN112198423B (en) Test excitation generation unit in FPGA chip
CN114325333A (en) High-efficiency normalized SOC (system on chip) system level verification method and device
US11156660B1 (en) In-system scan test of electronic devices
CN115904826A (en) ATE-based DSP test method
Khalifa Extendable generic base verification architecture for flash memory controllers based on UVM
JP2002323993A (en) Single chip microcomputer, testing method therefor and test program
CN113866596B (en) Power consumption testing method, power consumption testing device and storage medium
Ostendorff et al. A new approach for adaptive failure diagnostics based on emulation test
CN111913097B (en) Test circuit and test method for testing SoC function and SoC
US20050192791A1 (en) Method for emulating an integrated circuit and semiconductor chip for practicing the method

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