Self-test method, test device and computer-readable storage medium
Testing special integrated chips through self-test methods reduces test costs and resource dependence, achieves full coverage testing, supports multiple test modes, and solves the problem of high test costs in the existing technology.
Patent Information
- Application Number
- CN202110400249.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-14
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-04-14
AI Technical Summary
The testing cost of existing application-specific integrated chips is high, mainly because ATPG testing requires a large amount of additional logic and wiring resources.
Provide a self-test method by controlling the dedicated integrated chip to switch to self-test mode, start the clock phase-locked loop, and perform write and read operations on each memory unit to obtain test results and reduce the use of additional logic and wiring resources. rely.
It reduces test costs, improves test efficiency, achieves full coverage testing of dedicated integrated chips, supports multiple test modes, and can test chips with logical core unit PE fault tolerance.
Smart Images

Figure CN113190389B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a self-test method, a test device, and a computer-readable storage medium. Background Art
[0002] Application Specific Integrated Circuit (ASIC) is an integrated circuit designed for a specific purpose, specifically refers to an integrated circuit designed and manufactured to meet the requirements of specific users and specific electronic systems. The characteristics of an application-specific integrated circuit are that it is oriented to the needs of specific users. Compared with general-purpose integrated circuits, application-specific integrated circuits have the advantages of smaller size, lower power consumption, improved reliability, improved performance, enhanced confidentiality, and lower cost when mass-produced.
[0003] Among them, dedicated integrated chips for multi-way parallel processing of big data based on high-bandwidth storage architecture are becoming more and more widely used. For example, dedicated integrated chips integrate logical core units (process elements, PEs) of thousands of multi-way processing units and are used for parallel "mining".
[0004] Since the shipment volume of ASICs is very large, it is necessary to test and screen ASICs to improve the yield of ASICs. Currently, ASICs are tested through ATPG (Automatic Test Pattern Generation), but ATPG testing requires a lot of additional logic and wiring resources, resulting in high testing costs. Summary of the invention
[0005] The present application provides a self-test method, a test device and a computer-readable storage medium to solve the technical problem of high test cost.
[0006] In order to solve the above technical problems, a technical solution adopted by the present application is to provide a self-test method. The self-test method is used to test a dedicated integrated chip, and the dedicated integrated chip is provided with multiple storage units. The self-test method includes:
[0007] Controlling the dedicated integrated chip to switch to a self-test mode through a first logic signal, and starting a clock phase-locked loop of the dedicated integrated chip;
[0008] Controlling the operation of the clock phase-locked loop of the dedicated integrated chip through a reference clock signal to obtain the state of the clock phase-locked loop;
[0009] In response to the clock phase-locked loop being in a locked state, write and read operations are performed on each of the storage units to obtain a test result.
[0010] The operations of writing and reading each of the storage units include:
[0011] Writing preset data into each of the storage units;
[0012] Reading first data from each of the storage units;
[0013] Compare the first data with the corresponding preset data to obtain a comparison result;
[0014] In response to the first data being identical to the corresponding preset data, obtaining a first comparison result;
[0015] In response to the first data being different from the corresponding preset data, a second comparison result is obtained.
[0016] Wherein, obtaining the test result includes:
[0017] receiving a plurality of output signals obtained based on comparison results of all the storage units, and determining whether the plurality of output signals are all 1;
[0018] In response to the multiple output signals all being 1, it is determined that the ASIC test is successful;
[0019] In response to at least one of the output signals being not 1, it is determined that the ASIC test fails.
[0020] The multiple output signals obtained based on the comparison results of all the storage units include:
[0021] In response to the comparison results of all the storage units being the first comparison result, the plurality of output signals are all 1;
[0022] In response to the comparison result of at least one of the storage units being the second comparison result, the corresponding output signal is not 1.
[0023] The dedicated integrated chip is provided with a plurality of first pins, and the controlling the dedicated integrated chip to switch to the self-test mode by the first logic signal includes:
[0024] Inputting the first logic signal to the plurality of first pins;
[0025] In response to all of the first logic signals being at the first level, the application specific integrated circuit is controlled to switch to the self-test mode.
[0026] The dedicated integrated chip further includes a plurality of logic core units and a plurality of on-chip network units, each of the storage units and each of the logic core units are respectively connected to the corresponding on-chip network units, and after the step of starting the clock phase-locked loop of the dedicated integrated chip, the self-test method further includes:
[0027] Determining whether to test all the logic core units based on the second logic signal;
[0028] In response to the second logic signal being at the first level, all the logic core units are tested, and the step of controlling the operation of the clock phase-locked loop of the application-specific integrated chip through the reference clock signal is executed;
[0029] In response to the second logic signal being at a second level, the step of controlling the operation of the clock phase-locked loop of the application-specific integrated circuit through the reference clock signal is performed.
[0030] The dedicated integrated chip is provided with a plurality of second pins, and the determining whether to test the logic core unit of the dedicated integrated chip by the second logic signal includes:
[0031] Waiting for a first preset time, and inputting the second logic signal to the plurality of second pins;
[0032] After the step of controlling the operation of the clock phase-locked loop of the ASIC by using the reference clock signal, the self-test method further comprises:
[0033] Counting the test time, and comparing the test time with a preset time;
[0034] In response to the test time being greater than or equal to the preset time, a plurality of output signals are acquired, the test time is reset, and the step of obtaining the test result is performed.
[0035] In order to solve the above technical problems, another technical solution adopted by the present application is: to provide a test device. The test device is provided with a dedicated integrated chip, and the dedicated integrated chip includes multiple logic core units, multiple on-chip network units, multiple storage units and multiple first pins. Each of the logic core units and each of the storage units is respectively connected to the corresponding on-chip network unit, and each row of the on-chip network unit is correspondingly provided with two first pins. The test device is used to test the dedicated integrated chip through multiple first pins, and the test device includes a processor and a memory; a computer program is stored in the memory, and the processor is used to execute the computer program to implement the above self-test method.
[0036] To solve the above technical problem, another technical solution adopted by the present application is to provide a computer-readable storage medium having program instructions stored therein, which can be executed to implement the above self-test method.
[0037] The self-test method of the present application includes: controlling the dedicated integrated chip to switch to the self-test mode through a first logic signal, and starting the clock phase-locked loop of the dedicated integrated chip; controlling the clock phase-locked loop of the dedicated integrated chip to run through a reference clock signal, and obtaining the state of the clock phase-locked loop; in response to the clock phase-locked loop being in a locked state, performing write and read operations on each of the storage units to obtain a test result. That is, the present application obtains a test result by inputting a first logic signal to the dedicated integrated chip and by inputting a reference clock signal to the dedicated integrated chip, and in response to the clock phase-locked loop being in a locked state, performing write and read operations on each storage unit; therefore, the present application does not require a large amount of additional logic and wiring resources, reducing the test cost; in addition, the present application further reduces the test cost by reusing the pins of the dedicated integrated chip without increasing the pins of the dedicated integrated chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 It is a flowchart of an embodiment of the self-test method of the present application;
[0040] Figure 2 It is a schematic diagram of the framework of the application's dedicated integrated chip and test device;
[0041] Figure 3 yes Figure 1 A schematic diagram of a flow chart of an embodiment of step S103;
[0042] Figure 4 yes Figure 3 A schematic diagram of a flow chart of an embodiment of step S304;
[0043] Figure 5 yes Figure 2 A schematic structural diagram of an embodiment of a dedicated integrated chip;
[0044] Figure 6 It is a flowchart of another embodiment of the self-test method of the present application;
[0045] Figure 7 yes Figure 6A flow chart of an embodiment of step S503;
[0046] Figure 8 It is a schematic diagram of the framework of an embodiment of the testing device of the present application;
[0047] Fig. 9 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION
[0048] The present application is further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only used to illustrate the present application, but are not intended to limit the scope of the present application. Similarly, the following examples are only some embodiments of the present application rather than all embodiments, and all other embodiments obtained by those of ordinary skill in the art without making creative work are within the scope of protection of the present application.
[0049] See also Figure 1-2 As shown, Figure 1 It is a flowchart of an embodiment of the self-test method of the present application;
[0050] Figure 2 The self-test method of the present application is used to test the dedicated integrated chip 20 (ie, the dedicated integrated chip 20 to be tested), that is, the test device 10 tests the dedicated integrated chip 20 through the self-test method of the present application.
[0051] like Figure 2 As shown, the test device 10 is provided with a dedicated integrated chip 20 for testing the dedicated integrated chip 20. For example, the test device 10 is provided with a test platform, and the dedicated integrated chip 20 is arranged on the test platform.
[0052] The dedicated integrated chip 20 is provided with a plurality of first pins 21, a plurality of second pins 22, a clock pin 23, and a plurality of output pins 24, wherein the dedicated integrated chip 20 is connected to the test device 10, for example, the plurality of first pins 21 and the clock pin 23 of the dedicated integrated chip 20 are connected to the test device 10. Optionally, the total number of the first pins 21 is equal to the total number of the second pins 22.
[0053] like Figure 1 As shown, the self-test method of this embodiment includes the following steps:
[0054] S101 : controlling the ASIC 20 to switch to a self-test mode through a first logic signal, and starting a clock phase-locked loop of the ASIC 20 .
[0055] When the test device 10 tests the dedicated integrated chip 20, the test device 10 is powered on to enable the test device 10 to work normally. When the test device 10 works normally, the test device 10 generates a first logic signal, and controls the dedicated integrated chip 20 to switch to a self-test mode through the first logic signal. For example, the test device 10 can input a first logic signal to a first pin 21 of the dedicated integrated chip 20, and the dedicated integrated chip 20 switches to a self-test mode (also referred to as a test mode or a detection mode) based on the first logic signal, so as to control the dedicated integrated chip 20 to switch to a self-test mode through the first logic signal. In other embodiments, the test device 10 can receive a test instruction and generate a first logic signal based on the test instruction.
[0056] The dedicated integrated chip 20 is further provided with a clock phase locked loop (PLL), which can also be called a phase locked loop, for integrating the clock signal to enable the high frequency device to work normally. For example, the clock phase locked loop can continuously adjust the clock phase of the local crystal oscillator according to the phase of the external signal until the phases of the two signals are synchronized.
[0057] Optionally, the test device 10 may input a first logic signal to the plurality of first pins 21, wherein the first logic signal includes a first level (high level) and a second level (low level). In response to the plurality of first pins 21 receiving all first logic signals at the first level, the test device 10 controls the dedicated integrated chip 20 to switch to the self-test mode.
[0058] Further, when the ASIC 20 switches to the self-test mode, the clock phase-locked loop of the ASIC 20 is started, that is, the ASIC 20 controls the clock phase-locked loop to start based on the first logic signal.
[0059] S102: Control the operation of the clock phase-locked loop of the ASIC 20 through the reference clock signal to obtain the state of the clock phase-locked loop.
[0060] The test device 10 controls the operation of the clock phase-locked loop of the application-specific integrated chip 20 through the reference clock signal to obtain the state of the clock phase-locked loop. For example, after the test device 10 inputs the first logic signal to the first pin 21 of the application-specific integrated chip 20, the test device 10 waits for a third preset time, and the test device 10 inputs the reference clock signal to the clock pin 23 of the application-specific integrated chip 20, and the clock phase-locked loop operates based on the reference clock signal.
[0061] The test device 10 obtains the state of the clock phase-locked loop, that is, the test device 10 can query the state of the clock phase-locked loop through the internal dedicated integrated chip 20. The test device 10 further determines whether the state of the clock phase-locked loop is in a locked state; if the test device 10 determines that the state of the clock phase-locked loop is in a locked state, it enters step S103; if the test device 10 determines that the state of the clock phase-locked loop is not in a locked state, it returns to the step of the test device 10 determining whether the state of the clock phase-locked loop is in a locked state.
[0062] For example, the test device 10 obtains the state of the clock phase-locked loop, i.e., PLL lock (PLL lock signal), from the dedicated integrated chip 20, and determines whether PLL lock is 1; if so, the clock phase-locked loop of the dedicated integrated chip 20 is locked and outputs stably, and enters step S103; if not, returns to the step of determining whether PLL lock is 1.
[0063] S103: In response to the clock phase-locked loop being in a locked state, write and read operations are performed on each storage unit to obtain a test result.
[0064] In response to the clock phase-locked loop being in a locked state, the test device 10 performs write and read operations on each storage unit. The dedicated integrated chip 20 is provided with a plurality of storage units, and the test device 10 performs write and read operations on each storage unit to implement the write and read operations of the test device 10 on all storage units, thereby implementing the test of all storage units. The test device 10 obtains the test results based on the write and read operations on all storage units, and the test results include test success and test failure.
[0065] In this embodiment, a first logic signal is input to the dedicated integrated chip 20 through the test device 10 to switch the dedicated integrated chip 20 to the self-test mode; a reference clock signal is input to the dedicated integrated chip 20 through the test device 10 to control the operation of the clock phase-locked loop of the dedicated integrated chip 20; in response to the clock phase-locked loop being in a locked state, write and read operations are performed on each storage unit to obtain a test result; therefore, this embodiment does not require a large amount of additional logic and wiring resources, thereby reducing the test cost; in addition, this embodiment reuses the pins of the dedicated integrated chip 20, and there is no need to increase the pins of the dedicated integrated chip 20, thereby further reducing the test cost.
[0066] like Figure 3 As shown, step S103 includes the following steps:
[0067] S301: Writing preset data into each storage unit.
[0068] In response to the clock phase-locked loop being in a locked state, the test device 10 writes preset data to each storage unit, so that the test device 10 writes the preset data to all storage units. For example, the test device 10 is pre-set with preset data and writes the preset data to each storage unit; or the dedicated integrated chip 20 is pre-set with preset data, and the test device 10 controls the dedicated integrated chip 20 to write the preset data to each storage unit.
[0069] S302: Read first data from each storage unit.
[0070] After the test device 10 writes preset data to each storage unit, the test device 10 reads first data from each storage unit, wherein the data read from each storage unit by the test device 10 can be referred to as first data, which does not mean that the data read from each storage unit by the test device 10 must be the same.
[0071] S303: Compare the first data with corresponding preset data to obtain a comparison result.
[0072] The test device 10 compares the first data with the corresponding preset data to obtain a comparison result, wherein the comparison result includes a first comparison result and a second comparison result, so the test device 10 obtains multiple comparison results for multiple storage units. In other embodiments, the dedicated integrated chip 20 compares the first data with the corresponding preset data to obtain a comparison result.
[0073] In response to the first data being the same as the corresponding preset data, the ASIC 20 obtains a first comparison result. In response to the first data being different from the corresponding preset data, the ASIC 20 obtains a second comparison result. Optionally, the first comparison result may be correct, and the second comparison result may be wrong.
[0074] For example, the test device 10 is pre-set with preset data A, and the preset data A is written into the storage unit B1, the storage unit B2 and the storage unit B3 respectively. The test device 10 reads data C1, data C2 and data C3 from the storage unit B1, the storage unit B2 and the storage unit B3 respectively. Among them, data C1, data C2 and data C3 can all be called first data. The test device 10 compares data C1, data C2 and data C3 with the preset data A respectively. If data C1 and data C2 are respectively the same as the preset data A, the dedicated integrated chip 20 obtains two first comparison results; if data C3 is different from the preset data A, the dedicated integrated chip 20 obtains the second comparison result; therefore, the dedicated integrated chip 20 obtains three comparison results.
[0075] Alternatively, the dedicated integrated chip 20 is pre-set with preset data A1, preset data A2 and preset data A3, and the preset data A1, preset data A2 and preset data A3 are written into the storage unit B1, storage unit B2 and storage unit B3 respectively. The dedicated integrated chip 20 reads data C1, data C2 and data C3 from the storage unit B1, storage unit B2 and storage unit B3 respectively. The dedicated integrated chip 20 compares the data C1, data C2 and data C3 with the preset data A1, preset data A2 and preset data A3 respectively. If the data C1 is the same as the preset data A1, the dedicated integrated chip 20 obtains the first comparison result; if the data C2 is different from the preset data A2, the dedicated integrated chip 20 obtains the second comparison result; if the data C3 is the same as the preset data A3, the dedicated integrated chip 20 obtains the first comparison result; therefore, the dedicated integrated chip 20 obtains three comparison results.
[0076] This embodiment writes preset data into each storage unit and obtains first data from each storage unit, thereby implementing write and read operations on all storage units of the application specific integrated chip 20, and can achieve full coverage testing on all storage units.
[0077] S304: receiving a plurality of output signals obtained based on comparison results of all storage units, and determining whether the plurality of output signals are all 1.
[0078] The test device 10 receives multiple output signals based on the comparison results of all storage cells, wherein the multiple output pins 24 of the dedicated integrated chip 20 are used for the multiple output signals, and the test device 10 receives the multiple output signals through the multiple output pins 24 of the dedicated integrated chip 20 .
[0079] S305: In response to the multiple output signals all being 1, it is determined that the test of the ASIC 20 is successful.
[0080] S306: In response to at least one output signal not being 1, it is determined that the test of the ASIC 20 has failed.
[0081] When the test device 10 responds to multiple output signals that are all 1, the test result of the dedicated integrated chip 20 by the test device 10 is a successful test; when the test device 10 responds to at least one output signal that is not 1, the test result of the dedicated integrated chip 20 is a failed test, that is, the test result of the dedicated integrated chip 20 by the test device 10 is a failed test, so as to implement test screening of the dedicated integrated chip 20 and improve the yield of the dedicated integrated chip 20. In addition, the test device 10 determines the test result of the dedicated integrated chip 20 by reading the status of multiple output pins 24, thereby reducing the test time and improving the test efficiency.
[0082] like Figure 4 As shown, step S304 includes the following steps:
[0083] S401: In response to the comparison results of all storage units being the first comparison result, a plurality of output signals are all 1.
[0084] The ASIC 20 obtains the comparison results of all the storage units, and determines whether the comparison results of all the storage units are the first comparison results; in response to the comparison results of all the storage units being the first comparison results, the multiple output signals output by the ASIC 20 are all 1, that is, each output pin 24 of the ASIC 20 outputs 1. In response to the comparison result of at least one storage unit being the second comparison result, the process proceeds to step S402.
[0085] S402: In response to the comparison result of at least one storage unit being a second comparison result, a corresponding output signal is not 1.
[0086] In response to the comparison result of at least one storage unit being the second comparison result, the dedicated integrated chip 20 obtains an output signal corresponding to the storage unit that is not 1 (for example, the output signal is a low level 0), and the multiple output signals output by the dedicated integrated chip 20 include an output signal that is not 1.
[0087] In this embodiment, the test device 10 obtains the test result of the ASIC 20 based on the multiple output signals obtained based on the comparison results of all the storage units, which can improve the test effect.
[0088] In a specific embodiment, if Figure 5 As shown, the dedicated integrated chip 20 further includes a plurality of logical core units PE (process element), a plurality of network on chip units NOC (network on chip) and a plurality of storage units 25, and the plurality of storage units disclosed in the above embodiment are storage units 25. Among them, the plurality of network on chip units NOC can be distributed in a matrix, for example, the network on chip units NOC00-NOC03 are arranged along rows, and the network on chip units NOC00-NOC30 are arranged along columns. And the plurality of network on chip units NOC arranged along rows are connected in sequence, and the plurality of network on chip units NOC arranged along columns are connected in sequence, for example, the network on chip units NOC00-NOC03 are connected in sequence, and the network on chip units NOC00-NOC30 are connected in sequence. Each logical core unit PE and each storage unit 25 are respectively connected to the corresponding network on chip unit NOC, for example, the network on chip units NOC00-NOC02 are respectively connected to one storage unit 25, the network on chip unit NOC03 is connected to two storage units 25, and the network on chip units NOC01-NOC31 are respectively connected to one logical core unit PE.
[0089] Further, the dedicated integrated chip 20 is provided with a plurality of first pins 21, a plurality of second pins 22, a clock pin 23 and a plurality of output pins 24, and the test device 10 is connected to the plurality of first pins 21 and the plurality of second pins 22 to test the dedicated integrated chip 20 through the plurality of first pins 21 and the plurality of second pins 22; each row of the on-chip network unit NOC is correspondingly provided with two first pins 21 and two second pins 22, that is, the dedicated integrated chip 20 is provided with 8 first pins 21 and 8 second pins 22. For example, the on-chip network units NOC00-NOC03 are correspondingly provided with two first pins 21 and two second pins 22, the first pin 21 is pin ca0, the second pin 21 is pin ca1, and the clock pin 23 is pin ck_t. In other embodiments, the test device 10 can reuse the 8 first pins 21 to realize the functions of the 8 second pins 22, for example, the test device 10 only provides the 8 first pins 21, and does not need to provide the second pins 22; the plurality of output pins 24 can also reuse the 8 first pins 21.
[0090] Optionally, the test device 10 is provided with a plurality of BIST logic units 11, and BIST is a circuit module for testing, which can directly generate test stimuli and detect test responses. The plurality of BIST logic units 11 are used to generate a first logic signal and a second logic signal, and receive a plurality of output signals of the application-specific integrated chip 20, and generate test results based on the plurality of output signals. The total number of BIST logic units 11 may be equal to the total number of first pins 21, for example, the test device 10 is provided with 8 BIST logic units 11, and two BIST logic units 11 are correspondingly provided for a plurality of on-chip network units NOC arranged along a row. In other embodiments, the total number of BIST logic units 11 may be set to other values, such as 4, 6, or 7.
[0091] Based on the self-test method of the above embodiment, the eight BIST logic units 11 input the first logic signal to the corresponding first pin 21 respectively, that is, pull the input of the first pin 21 high, so that the dedicated integrated chip 20 is switched to the self-test mode, and the clock phase-locked loop of the dedicated integrated chip 20 is started. The test device 10 waits for a third preset time, inputs a reference clock signal to the clock pin 23 of the dedicated integrated chip 20, and the clock phase-locked loop runs based on the reference clock signal. In response to the clock phase-locked loop being in a locked state, the test device 10 writes and reads each storage unit 25 through the eight BIST logic units 11 to receive multiple output signals of the dedicated integrated chip 20, and generates test results based on the multiple output signals, so as to realize that the test device 10 tests the dedicated integrated chip 20.
[0092] The present application provides another embodiment of a self-test method, such as Figure 6As shown, the self-test method includes the following steps:
[0093] S501 : Controlling the ASIC 20 to switch to a self-test mode through a first logic signal, and starting a clock phase-locked loop of the ASIC 20 .
[0094] Step S501 is the same as step S101 and will not be described again here.
[0095] S502: Determine whether to test all the logic core units PE based on the second logic signal.
[0096] The eight BIST logic units 11 of the test device 10 input the second logic signal to each second pin 22. In response to the second logic signal being at the first level, that is, the second logic signal being at a high level, the test device 10 needs to test all logic core units PE and enter step S503; in response to the second logic signal being at the second level, that is, the second logic signal being at a low level, the test device 10 does not need to test all logic core units PE and directly enters step S503.
[0097] Optionally, after the test device 10 inputs the first logic signal to each first pin 21, the test device 10 waits for a first preset time, and inputs a second logic signal to each second pin 22. The first preset time is 1 us. In other embodiments, the first preset time is within the range of 1-5 us.
[0098] S503: Control the operation of the clock phase-locked loop of the ASIC 20 through the reference clock signal to obtain the state of the clock phase-locked loop.
[0099] After the test device 10 inputs the second logic signal to each second pin 22, the test device 10 waits for a second preset time, and inputs a reference clock signal to the clock pin 23. The second preset time is 1us. In other embodiments, the second preset time is within the range of 1-5us.
[0100] In addition, the third preset time in the above embodiment is equal to the sum of the first preset time and the second preset time.
[0101] Step S503 is further the same as step S102 and will not be described again herein.
[0102] S504: In response to the clock phase-locked loop being in a locked state, write and read operations are performed on each storage unit 25 to obtain a test result.
[0103] The difference between step S504 and step S103 is that in response to the second logic signal being at the first level, the test device 10 needs to test all logic core units PE. Therefore, before the test device 10 performs write and read operations on each storage unit 25, the test device 10 further tests all logic core units PE. For example, the test device 10 inputs second preset data to each logic core unit PE, and each logic core unit PE outputs second data based on the second preset data, compares the second data with the corresponding second preset data, and obtains the comparison results of all logic core units PE. The test device 10 obtains the test results based on the comparison results of all logic core units PE and the comparison results of all storage units 25.
[0104] This embodiment determines whether to test all logical core units PE based on the second logic signal, that is, the self-test mode includes testing all logical core units PE and all storage units 25, or the self-test mode includes only testing all storage units 25, thereby supporting multiple test modes and being able to test a dedicated integrated chip 20 with fault tolerance of logical core units PE, thereby increasing the test range.
[0105] like Figure 7 As shown, after the clock phase-locked loop of the application-specific integrated chip 20 is controlled to run by the reference clock signal in step S503, the self-test method further includes the following steps:
[0106] S601: Count the test time and compare the test time with the preset time.
[0107] After the test device 10 inputs the reference clock signal to the clock pin 23, the test device 10 starts to count the test time and compares the test time with the preset time. Before the test device 10 obtains the test result, the test device 10 determines that the test time is greater than or equal to the preset time, that is, in response to the test time being greater than or equal to the preset time, it enters step S602; the test device 10 determines that the test time is less than the preset time, that is, in response to the test time being less than the preset time, it returns to the step of comparing the test time with the preset time.
[0108] S602: In response to the test time being greater than or equal to the preset time, a plurality of output signals are acquired and the test time is reset.
[0109] In response to the test time being greater than or equal to the preset time, the test device 10 acquires multiple output signals of the ASIC 20 and resets the test time, i.e., the test time is reset to zero. The test device 10 obtains the test result based on the multiple output signals of the ASIC 20, i.e., executes the step of obtaining the test result in step S504.
[0110] This embodiment counts the test time and compares the test time with the preset time, so that the test can be completed in time when an error occurs in the test device 10 (for example, the test device 10 crashes), thereby improving the accuracy and test efficiency of the test device 10.
[0111] When the test device 10 obtains a test failure as a test result, the self-test method of the present application further analyzes the ASIC 20 that has failed the test, so as to discard the ASIC 20 .
[0112] The present application further performs simulation test on the dedicated integrated chip 20 based on the above self-test method, and obtains simulation results: the test device 10 tests the dedicated integrated chip 20 through the above self-test method, and the test coverage rate can reach 99.8%. Therefore, the self-test method of the present application does not require a large amount of additional logic and wiring resources, and can complete the full coverage test of the logic of the dedicated integrated chip 20. In addition, the test device 10 can also test multiple dedicated integrated chips 20 at the same time, realize parallel testing, and improve test efficiency.
[0113] In summary, the self-test method of the present application does not require a large amount of additional logic and wiring resources, and can complete the full coverage test of the logic of the dedicated integrated chip 20, thereby reducing the test cost. In addition, the self-test method of the present application reuses the pins of the dedicated integrated chip 20, without adding additional pins, and waits for a fixed test time (millisecond level) to complete the test of the dedicated integrated chip 20, so the test time is short, further reducing the test cost. In addition, the self-test method of the present application supports multiple test modes, and can test the dedicated integrated chip 20 with the fault tolerance capability of the logic core unit PE, thereby increasing the test range.
[0114] The present application further proposes a testing device, such as Figure 8 As shown, the test device 10 includes a processor 71 and a memory 72; the memory 72 stores a computer program, and the processor 71 is used to execute the computer program to implement the self-test method disclosed in the above embodiment. The test device 10 is provided with a dedicated integrated chip 20 for testing the dedicated integrated chip 20.
[0115] The present application further proposes a computer-readable storage medium, such as Fig. 9 As shown, the computer readable storage medium 80 of this embodiment is used to store the program instructions 810 of the above embodiment, and the program instructions 810 can be executed to implement the control method of the above embodiment. The program instructions 810 have been described in detail in the above method embodiment, and will not be repeated here.
[0116] The computer-readable storage medium 80 of this embodiment may be, but is not limited to, a USB flash drive, an SD card, a PD optical drive, a mobile hard disk, a large-capacity floppy drive, a flash memory, a multimedia memory card, a server, etc.
[0117] In addition, if the above functions are implemented in the form of software functions and sold or used as independent products, they can be stored in a storage medium readable by a mobile terminal, that is, the present application also provides a storage device storing program data, the program data can be executed to implement the method of the above embodiment, and the storage device can be, for example, a USB flash drive, an optical disk, a server, etc. In other words, the present application can be embodied in the form of a software product, which includes a number of instructions for enabling a smart terminal to execute all or part of the steps of the method described in each embodiment.
[0118] In the description of the present application, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, mechanisms, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, mechanisms, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0119] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0120] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0121] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (which can be a personal computer, server, network device or other system that can fetch instructions from the instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory unit (RAM), a read-only memory unit (ROM), an erasable and programmable read-only memory unit (EPROM or flash memory unit), an optical fiber device, and a portable compact disk read-only memory unit (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other medium, and then editing, interpreting or processing in other suitable ways as necessary, and then storing it in a computer storage unit. The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent mechanism or equivalent process transformation made by using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, is also included in the patent protection scope of the present application.
Claims
1. A self-test method, characterized in that: Used to test a dedicated integrated chip, the dedicated integrated chip is provided with a plurality of storage units, the dedicated integrated chip further comprises a plurality of logic core units and a plurality of on-chip network units, each of the storage units and each of the logic core units are respectively connected to the corresponding on-chip network unit, the self-test method comprises: Controlling the dedicated integrated chip to switch to a self-test mode through a first logic signal, and starting a clock phase-locked loop of the dedicated integrated chip; Controlling the operation of the clock phase-locked loop of the dedicated integrated chip through a reference clock signal to obtain the state of the clock phase-locked loop; In response to the clock phase-locked loop being in a locked state, performing write and read operations on each of the storage units to obtain a test result; After the step of starting the clock phase-locked loop of the dedicated integrated chip, the self-test method further comprises: Determining whether to test all the logic core units based on the second logic signal; In response to the second logic signal being at the first level, all the logic core units are tested, and the step of controlling the operation of the clock phase-locked loop of the application-specific integrated chip through the reference clock signal is executed; In response to the second logic signal being at a second level, the step of controlling the operation of the clock phase-locked loop of the application-specific integrated circuit through the reference clock signal is performed.
2. The self-test method according to claim 1, characterized in that: The operations of writing and reading each of the storage units include: Writing preset data into each of the storage units; Reading first data from each of the storage units; Compare the first data with the corresponding preset data to obtain a comparison result; In response to the first data being identical to the corresponding preset data, obtaining a first comparison result; In response to the first data being different from the corresponding preset data, a second comparison result is obtained.
3. The self-test method according to claim 2, characterized in that: The test results obtained include: receiving a plurality of output signals obtained based on comparison results of all the storage units, and determining whether the plurality of output signals are all 1; In response to the multiple output signals all being 1, it is determined that the ASIC test is successful; In response to at least one of the output signals being not 1, it is determined that the ASIC test fails.
4. The self-test method according to claim 3, characterized in that: The multiple output signals obtained based on the comparison results of all the storage units include: In response to the comparison results of all the storage units being the first comparison result, the plurality of output signals are all 1; In response to the comparison result of at least one of the storage units being the second comparison result, the corresponding output signal is not 1.
5. The self-test method according to claim 1, characterized in that: The dedicated integrated chip is provided with a plurality of first pins, and the controlling the dedicated integrated chip to switch to the self-test mode by the first logic signal includes: Inputting the first logic signal to the plurality of first pins; In response to all of the first logic signals being at the first level, the application specific integrated circuit is controlled to switch to the self-test mode.
6. The self-test method according to claim 1, characterized in that: The dedicated integrated chip is provided with a plurality of second pins, and the determining whether to test the logic core unit of the dedicated integrated chip by the second logic signal includes: Waiting for a first preset time, inputting the second logic signal to the plurality of second pins.
7. The self-test method according to claim 1, characterized in that: The dedicated integrated chip is provided with a clock pin, and the clock phase-locked loop of the dedicated integrated chip is controlled to operate by a reference clock signal, including: Waiting for a second preset time, and inputting the reference clock signal to the clock pin; After the step of controlling the operation of the clock phase-locked loop of the ASIC by using the reference clock signal, the self-test method further comprises: Counting the test time, and comparing the test time with a preset time; In response to the test time being greater than or equal to the preset time, a plurality of output signals are acquired, the test time is reset, and the step of obtaining the test result is performed.
8. A testing device, characterized in that: The test device is provided with a dedicated integrated chip, which includes multiple logic core units, multiple on-chip network units, multiple storage units and multiple first pins. Each of the logic core units and each of the storage units are respectively connected to the corresponding on-chip network unit, and each row of the on-chip network units is correspondingly provided with two first pins. The test device is used to test the dedicated integrated chip through multiple first pins. The test device includes a processor and a memory; a computer program is stored in the memory, and the processor is used to execute the computer program to implement the steps of the self-test method as described in any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program instructions, and the program instructions can be executed to implement the steps of the self-test method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Testing control method, circuit and system
CN108693465A
