Chip testing method, device, computer equipment and storage medium
By deleting redundant operations from the set of optional logical operations and using only user-selected operations for chip testing, the problem of excessive resource occupation in the traditional method is solved, resource saving and timing convergence are achieved, and the accuracy and accuracy of the test are improved. User experience.
Patent Information
- Application Number
- CN202311818991.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-12-27
AI Technical Summary
Traditional chip testing methods occupy a large amount of internal chip resources when verifying chip functions, resulting in difficulty in timing convergence and excessive resource usage, making it impossible to test normally.
By deleting logical operations not selected by the user from the optional logical operation set, a redundant logical operation set is formed, and only the user-selected logical operations are used to test the functional modules of the target chip to achieve resource saving and timing convergence.
It effectively saves the internal resources of the chip, improves the timing convergence of the chip test, avoids excessive resource usage, and improves the accuracy of the test and the user experience.
Smart Images

Figure CN117783839B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip testing technology, and specifically to chip testing methods, devices, computer equipment and storage media. Background Art
[0002] With the rapid development of chip technology, there are more and more types and functions of chips, and more and more functional modules are integrated into chips. This requires that necessary testing methods be adopted before the chip is used to perform functional tests on the internal signals of the chip to check whether the functional modules in the chip are correct.
[0003] In order to ensure the completeness of chip functions, traditional chip testing methods will perform all executable logical operations on the signals to be tested inside the chip to verify the functions of the functional modules in the chip. However, this will occupy resources such as memory space inside the chip, making it difficult to converge the timing, and even exceeding the usage of internal chip resources, making it impossible to perform normal testing.
[0004] Therefore, how to save chip internal resources during chip testing has become a technical problem that urgently needs to be solved. Summary of the invention
[0005] In view of this, the present application provides a chip testing method, apparatus, computer equipment and storage medium to solve the problem of how to save chip internal resources during chip testing.
[0006] In a first aspect, the present application provides a chip testing method, the method comprising:
[0007] In response to a logic operation selection instruction input by a user, determining a selected logic operation from a set of selectable logic operations;
[0008] Deleting the selected logical operation from the optional logical operation set, and using the remaining logical operations in the optional logical operation set as a redundant logical operation set;
[0009] In response to a module selection instruction input by a user, determining at least one functional module to be tested in the target chip;
[0010] Deleting the logic operations in the redundant logic operation set from the functions to be verified of each functional module to be tested;
[0011] The functions to be verified of each functional module to be tested are tested respectively according to each selected logical operation to obtain the test result of the target chip.
[0012] In the above technical solution, all logic operations in the optional logic operation set that are not selected by the user are taken as a redundant logic operation set, and the logic operations in the redundant logic operation set are deleted from the to-be-verified functions of each functional module to be tested, and only the logic operations selected by the user are used to test the functional modules to be tested in the target chip. This achieves the purpose of allowing users to select the logic operations to be tested when testing the chip, avoids the situation of testing all logic operations, saves internal chip resources, and is conducive to timing convergence during chip testing.
[0013] In some optional embodiments, the method further comprises:
[0014] In response to an instruction input by a user to reselect a logical operation, determining a target logical operation selected by the user from a set of selectable logical operations;
[0015] Deleting the target logical operation from the optional logical operation set, and determining the remaining logical operations as the to-be-replaced logical operation set;
[0016] Determine whether each functional module to be tested is in the testing process;
[0017] If each functional module to be tested is in the testing process, monitoring whether each functional module to be tested has completed the testing process;
[0018] If each functional module to be tested completes the test process, each logic operation in the redundant logic operation set is replaced by each logic operation in the to-be-replaced logic operation set, so as to test the to-be-verified function of each functional module to be tested according to the target logic operation later;
[0019] If the functional modules to be tested are not in the testing process, the logical operations in the redundant logical operation set are replaced by the logical operations in the to-be-replaced logical operation set, so as to test the functions to be verified of the functional modules to be tested according to the target logical operations later.
[0020] In the above technical solution, the user can reselect the target logic operation in the optional logic operation set, and use the remaining logic operations in the optional logic operation set without the target logic operation as the logic operation set to be replaced. Then, when each functional module to be tested finishes the test process or is not in the test process, the logic operation in the original redundant logic operation set is replaced with the logic operation in the logic operation set to be replaced, and then the updated redundant logic operation set can be relied on to continue to test the functions to be verified of each functional module to be tested. The user can select the logic operation autonomously and multiple times, and can also test the functions to be verified of the functional module to be tested according to the reselected target logic operation when the logic operation is not selected for the first time, so as to retest the chip, adapt to the changes in user needs in chip testing, and thus improve the accuracy of chip testing.
[0021] In some optional embodiments, the method further comprises:
[0022] In the process of testing each functional module to be tested, for each functional module to be tested, determining whether the occupancy rate of the memory space in the target chip by the functional module to be tested is greater than a preset threshold value corresponding to the functional module to be tested;
[0023] If the occupancy rate is greater than a preset threshold, the test result is determined to be a target chip test failure;
[0024] Obtain the preset logic operation set corresponding to the target chip;
[0025] Determine whether all selected logical operations exist in the preset logical operation set;
[0026] If there is at least one selected logical operation that does not exist in the preset logical operation set, revelation information is added to the test result, and the revelation information is used to suggest the user to select a logical operation in the preset logical operation set.
[0027] In the above technical scheme, a preset logic operation set is set for the target chip, and a threshold value is set for the occupancy rate of the memory space in the target chip for each functional module to be tested. When the target chip test fails due to excessive occupancy rate during the test process, the user can be provided with inspiration information for suggesting the user to select a logic operation in the preset logic operation set based on whether all the selected logic operations exist in the preset logic operation set, which facilitates the user to clearly identify the logic operation to be selected, thereby improving the user's usage experience.
[0028] In some optional embodiments, after adding the revelation information to the test result, the method further includes:
[0029] Get the corresponding priority of each functional module to be tested;
[0030] Selecting at least one target functional module from each functional module to be tested in order of priority from low to high, the target functional module being a functional module to be tested whose occupancy rate of the memory space of the target chip is greater than its own corresponding preset threshold;
[0031] Information indicating deletion of the test of the target functional module is added to the revelation information.
[0032] In the above technical solution, the corresponding priority of the functional module to be tested is obtained, and at least one target functional module whose occupancy rate is greater than its own corresponding preset threshold is selected from each functional module to be tested in order of priority from low to high, and information on deleting the test of the low-priority target functional module is provided to the user to ensure that after the test fails, the chip test-related adjustment strategy can be provided to the user and it can be ensured that the high-priority functional modules to be tested can be retested as much as possible in the subsequent period.
[0033] In some optional embodiments, the method further comprises:
[0034] During the testing of each functional module to be tested, determining whether the total occupancy rate of the memory space in the target chip is greater than a preset total occupancy rate;
[0035] If the total occupancy rate is greater than the preset total occupancy rate, the test result is determined to be a target chip test failure, and the total occupancy rate and the occupancy rate of each functional module to be tested on the memory space in the target chip are displayed in the test result.
[0036] In the above technical scheme, during the process of testing each functional module to be tested, the total occupancy rate of the chip memory space is monitored to determine whether it reaches a preset total occupancy rate to determine whether the chip test has failed, thereby avoiding the situation where only the functions to be verified of each functional module to be tested are tested, resulting in the test results being successful but cannot be applied to the chip.
[0037] In some optional embodiments, the method further comprises:
[0038] In response to a test stop operation instruction input by a user, determining whether the target chip is in a test process;
[0039] If the target chip is in the process of testing, the test process is stopped, and the occupancy rate of the memory space in the target chip by the tested functional modules that have been tested during the test process is displayed.
[0040] In the above technical solution, in response to the test stop operation instruction input by the user, if the target chip is in the test process, the test process is stopped, and the occupancy rate of the memory space in the target chip by the functional modules to be tested that have been tested during the test process is displayed, thereby meeting the user's need to stop the chip test process midway, and facilitating the user to clearly understand the current occupancy rate of the memory space of the target chip, thereby improving user experience.
[0041] In a second aspect, the present application provides a chip testing device, the device comprising:
[0042] A first response module, configured to determine a selected logical operation from a set of optional logical operations in response to a logical operation selection instruction input by a user;
[0043] A first deletion module, used for deleting the selected logic operation from the optional logic operation set, and taking the remaining logic operations in the optional logic operation set as a redundant logic operation set;
[0044] A second response module, configured to determine at least one functional module to be tested in the target chip in response to a module selection instruction input by a user;
[0045] A second deleting module, used to delete the logic operations in the redundant logic operation set from the functions to be verified of each functional module to be tested;
[0046] The test module is used to test the functions to be verified of each functional module to be tested according to each selected logical operation, and obtain the test result of the target chip.
[0047] In some optional embodiments, the device further comprises:
[0048] A third response module, configured to determine a target logical operation selected by the user from the set of optional logical operations in response to an instruction input by the user to reselect a logical operation;
[0049] A third deleting module, used to delete the target logical operation from the optional logical operation set, and determine the remaining logical operations as the set of logical operations to be replaced;
[0050] The first judgment module is used to judge whether each functional module to be tested is in the testing process;
[0051] A monitoring module, used for monitoring whether each functional module to be tested has completed the testing process if each functional module to be tested is in the testing process;
[0052] A replacement module, used for replacing each logic operation in the redundant logic operation set with each logic operation in the to-be-replaced logic operation set if each to-be-tested functional module has completed the test process, so as to facilitate the subsequent testing of the to-be-verified functions of each to-be-tested functional module according to the target logic operation;
[0053] The replacement module is also used to replace each logic operation in the redundant logic operation set with each logic operation in the to-be-replaced logic operation set if each functional module to be tested is not in the testing process, so as to facilitate the subsequent testing of the to-be-verified functions of each functional module to be tested according to the target logic operation.
[0054] In a third aspect, the present application provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the chip testing method of any embodiment of the above-mentioned first aspect by executing the computer instructions.
[0055] In a fourth aspect, the present application provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the chip testing method of any embodiment of the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0057] Figure 1 is a schematic flow chart of a chip testing method according to an embodiment of the present application;
[0058] Figure 2 is a flow chart of another chip testing method according to an embodiment of the present application;
[0059] Figure 3 is a flow chart of another chip testing method according to an embodiment of the present application;
[0060] Figure 4 is a structural block diagram of a chip testing device according to an embodiment of the present application;
[0061] Figure 5 It is a schematic diagram of the hardware structure of the computer device of an embodiment of the present application. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of this application.
[0063] The current chip testing method only considers the completeness of chip functions and implements all logical operations without considering resource usage and whether users need all logical operations. This will occupy chip memory and other resources, increase chip resource utilization, make timing difficult to converge, and even exceed resource usage.
[0064] In fact, when users test a chip, not all logic operations need to be implemented, so the embodiment of the present application provides a chip testing method, which allows users to select the required logic operations according to their needs while providing all logic operations, thereby saving chip internal resources and facilitating timing convergence. The chip testing method of the present application is described in detail below.
[0065] According to an embodiment of the present application, a chip testing method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0066] In an embodiment of the present application, a chip testing method is provided, which can be used in computer equipment, such as a server, a desktop computer or a notebook computer, etc. Figure 1 is a flow chart of a chip testing method according to an embodiment of the present application. Figure 1 As shown, the process includes the following steps:
[0067] Step S101 : in response to a logic operation selection instruction input by a user, determining a selected logic operation from a set of optional logic operations.
[0068] Among them, the logical operations in the optional logical operation set include but are not limited to equal to 1, equal to 0, take the rising edge, take the falling edge, take the double edge, logical AND, AND-NON, OR, OR-NON, XOR and XOR. The online debugging page at the front end displays all the logical operations in the optional logical operation set to the user, and the user can select at least one logical operation in the optional logical operation set in the online debugging page, so that the computer device can determine the selected logical operation. The specific implementation method of the user selecting at least one logical operation in the optional logical operation set can be to click on a certain logical operation, or to click on the selection box before the logical operation, or to drag the logical operation to a specific position in the online debugging page, etc., and the embodiments of the present application do not make specific restrictions.
[0069] Step S102: Delete the selected logic operation from the optional logic operation set, and use the remaining logic operations in the optional logic operation set as a redundant logic operation set.
[0070] The selected logic operation is deleted from the optional logic operation set, and the remaining logic operations in the optional logic operation set are used as a redundant logic operation set.
[0071] Step S103 , in response to the module selection instruction input by the user, determining at least one functional module to be tested in the target chip.
[0072] Functional modules that may need to be tested in the target chip will be pre-imported into the debugging application to which the online debugging page belongs. The computer device will receive the module selection instruction input by the user in the online debugging page to select the functional module to be tested, and filter out the functional module to be tested selected by the user from all the imported functional modules to obtain at least one functional module to be tested. If the functional module to be tested selected by the user is not filtered out from all the functional modules, information indicating that the selected functional module to be tested does not exist is displayed to the user to remind the user to import the functional module to be tested. The debugging application can be any electronic design automation (EDA) software, such as Synopsys, Cadence or Mentor.
[0073] Step S104: deleting the logic operations in the redundant logic operation set from the functions to be verified of each functional module to be tested.
[0074] The function to be verified includes all logic operations in the optional logic operation set. Each logic operation in the function to be verified of each functional module to be tested that exists in the redundant logic operation set is deleted, so that the logic operations that the user does not need can be removed.
[0075] Step S105 , testing the to-be-verified functions of each to-be-tested functional module according to each selected logical operation, and obtaining the test result of the target chip.
[0076] The computer device will use the debugging application to test each selected logic operation in the function to be verified of the redundant logic operation set of each functional module to be tested, and then obtain the test results of the target chip. By testing only the selected logic operations, some unnecessary sampling triggering methods can be reduced during the test process, thereby saving chip internal resources.
[0077] In the embodiment of the present application, all logic operations in the optional logic operation set that are not selected by the user are taken as a redundant logic operation set, and the logic operations in the redundant logic operation set are deleted from the to-be-verified functions of each functional module to be tested, and only the logic operations selected by the user are used to test the functional modules to be tested in the target chip. This achieves the purpose of allowing the user to select the logic operations to be tested when testing the chip, avoids the situation of testing all logic operations, saves internal chip resources, and is conducive to timing convergence during chip testing.
[0078] In order to improve user experience while saving internal chip resources, an embodiment of the present application provides another chip testing method, which can provide users with enlightenment information when the internal resources of the chip reach the upper limit, and guide the user to reselect the logical operation. Figure 2is a flow chart of another chip testing method according to an embodiment of the present application. The chip testing method can be used for computer equipment, such as a server, a desktop computer or a notebook computer, etc. Figure 2 As shown, the process includes the following steps:
[0079] Step S201 : in response to a logic operation selection instruction input by a user, determining a selected logic operation from a set of optional logic operations.
[0080] Step S202: Delete the selected logic operation from the optional logic operation set, and use the remaining logic operations in the optional logic operation set as a redundant logic operation set.
[0081] Step S203 , in response to the module selection instruction input by the user, determining at least one functional module to be tested in the target chip.
[0082] Step S204: deleting the logic operations in the redundant logic operation set from the functions to be verified of each functional module to be tested.
[0083] Step S205 , testing the to-be-verified functions of each to-be-tested functional module according to each selected logical operation, and obtaining the test result of the target chip.
[0084] For details of steps S201 to S205, see Figure 1 Steps S101 to S105 of the illustrated embodiment are not described in detail here.
[0085] Step S206 , during the process of testing each functional module to be tested, for each functional module to be tested, determining whether the occupancy rate of the memory space in the target chip by the functional module to be tested is greater than a preset threshold value corresponding to the functional module to be tested.
[0086] The preset threshold corresponding to each functional module to be tested can be set by itself, and the embodiment of the present application does not make specific restrictions. In the process of testing each functional module to be tested, the computer device can integrate each functional module to be tested through the debugging application and calculate the occupancy rate of each functional module to be tested on the memory space in the target chip, and compare the size relationship between the occupancy rate of each functional module to be tested on the memory space in the target chip and its corresponding preset threshold, so as to determine whether the occupancy rate of each functional module to be tested is greater than its corresponding preset threshold.
[0087] Step S207: if the occupancy rate is greater than a preset threshold, it is determined that the test result is that the target chip test fails.
[0088] If there is at least one functional module to be tested whose occupancy rate of the memory space in the target chip is greater than its own corresponding preset threshold, the test result is determined to be a target chip test failure.
[0089] Step S208, obtaining a preset logic operation set corresponding to the target chip.
[0090] The preset logic operation set can be set by yourself, and the embodiment of the present application does not impose any specific restrictions. The preset logic operation set corresponding to the target chip is obtained by reading the preset logic operation set associated with the target chip in the debugging application.
[0091] Step S209: determining whether all selected logical operations exist in the preset logical operation set.
[0092] Each selected logical operation is searched in the preset logical operation set. If a selected logical operation is found, it is determined that the selected logical operation exists in the preset logical operation set; otherwise, the selected logical operation does not exist in the preset logical operation set.
[0093] Step S210: if at least one of the selected logical operations does not exist in the preset logical operation set, then revelation information is added to the test result.
[0094] Among them, the revelation information is used to suggest the user to select a logical operation in the preset logical operation set. If there is at least one selected logical operation that does not exist in the preset logical operation set, it can be determined that the failure of the target chip test may be due to the excessive number of selected logical operations or too complex and thus occupying too much memory space. At this time, the revelation information can be added to the test result to avoid the next time when each functional module to be tested is tested, the target chip test fails due to excessive memory space occupancy. For example, taking the preset logical operation set as equal to 1 and taking the rising edge, and all the selected logical operations as taking double edges, taking the rising edge, taking the falling rising edge, and NAND as an example, the revelation information can be "change the selected logical operation to equal to 1 and taking the rising edge", or it can be "delete taking double edges, taking the falling rising edge, and NAND, and select equal to 1".
[0095] Step S211, obtaining the corresponding priority of each functional module to be tested.
[0096] The priority level corresponding to each functional module to be tested can be set by itself, and the embodiment of the present application does not impose any specific restrictions. The priority level associated with each functional module to be tested is read by the debugging module to obtain the priority level corresponding to each functional module to be tested.
[0097] Step S212: selecting at least one target functional module from the functional modules to be tested in order of priority from low to high.
[0098] The target functional module is a functional module to be tested whose occupancy rate of the memory space of the target chip is greater than its own corresponding preset threshold. In order of priority from low to high, each functional module to be tested is traversed to obtain a target functional module whose occupancy rate of the memory space of the target chip is greater than its own corresponding preset threshold.
[0099] Step S213: adding information instructing to delete the test on the target functional module to the revelation information.
[0100] The information for instructing to delete the test of the target functional module is added to the revelation information, and all the target functional modules are sorted in the information in order of priority from low to high, so as to remind the user to delete the functional modules with lower priority first.
[0101] Optionally, in order to improve the accuracy of chip testing, during the process of testing each functional module to be tested, it is also possible to monitor whether the total occupancy rate of the chip's internal resources reaches an upper limit to determine whether the chip test has failed, so as to avoid the situation where the test result is successful but cannot be applied to the chip due to only testing the to-be-verified functions of each functional module to be tested. Specifically, during the process of testing each functional module to be tested, it is determined whether the total occupancy rate of all functional modules to be tested on the target chip's memory space is greater than the preset total occupancy rate; if the total occupancy rate is greater than the preset total occupancy rate, the test result is determined to be a target chip test failure, and the total occupancy rate and the occupancy rate of each functional module to be tested on the target chip's memory space are displayed in the test result.
[0102] The preset total occupancy rate can be set voluntarily, and the embodiments of the present application do not impose specific restrictions. In the process of testing each functional module to be tested, the total occupancy rate of the memory space of the target chip by all the functional modules to be tested can be calculated by the debugging application, and then the size relationship between the total occupancy rate and the preset total occupancy rate can be compared to determine whether the total occupancy rate is greater than the preset total occupancy rate, so that when the total occupancy rate is greater than the preset total occupancy rate, the test of each functional module to be tested is stopped, and the test result is determined to be a target chip test failure, and the total occupancy rate and the occupancy rate of the memory space in the target chip by each functional module to be tested are displayed in the test result.
[0103] Optionally, in addition to monitoring whether the total occupancy rate of the memory space in the target chip by all functional modules to be tested is greater than a preset total occupancy rate, the total occupancy rate of other resources in the target chip (for example, look-up tables (LUT), input-output interfaces (IO) or communication interfaces, etc.) may be monitored during the testing of each functional module to be tested, so as to determine that the test result is a target chip test failure when the total occupancy rate of other resources is greater than a corresponding threshold value.
[0104] In the embodiment of the present application, a preset logic operation set is set for the target chip, and a threshold is set for the occupancy rate of the memory space in the target chip for each functional module to be tested. When the target chip test fails due to excessive occupancy rate during the test process, the user can be provided with information for suggesting the user to select the logic operation in the preset logic operation set based on whether all the selected logic operations exist in the preset logic operation set, so as to facilitate the user to clearly identify the logic operation to be selected, thereby improving the user's experience. In addition, the corresponding priority of the functional module to be tested can be obtained, and at least one target functional module with an occupancy rate greater than its corresponding preset threshold is selected from each functional module to be tested in order from low to high priority, and the user is provided with information for deleting the test of the low-priority target functional module, so as to ensure that after the test fails, the user can be provided with an adjustment strategy related to the chip test and ensure that the high-priority functional module to be tested can be retested as much as possible in the subsequent period.
[0105] In order to improve the accuracy of chip testing, when a user finds that some logic operations need to be added or reduced during on-board debugging of the chip after chip testing, the user can reselect the logic operations in the optional logic operation set to retest the chip, thereby improving the accuracy of chip testing. The embodiment of the present application provides another chip testing method, which can be used for computer equipment, such as a server, a desktop computer or a laptop computer, etc. Figure 2 is a flow chart of another chip testing method according to an embodiment of the present application. Figure 3 As shown, the process includes the following steps:
[0106] Step S301 : In response to a logic operation selection instruction input by a user, a selected logic operation is determined from a set of optional logic operations.
[0107] Step S302: Delete the selected logic operation from the optional logic operation set, and use the remaining logic operations in the optional logic operation set as a redundant logic operation set.
[0108] Step S303 : in response to the module selection instruction input by the user, determining at least one functional module to be tested in the target chip.
[0109] Step S304: Delete the logic operations in the redundant logic operation set from the functions to be verified of each functional module to be tested.
[0110] Step S305 , testing the to-be-verified functions of each to-be-tested functional module according to each selected logical operation, and obtaining the test result of the target chip.
[0111] For details of steps S301 to S305, see Figure 2 Steps S201 to S205 of the illustrated embodiment are not described in detail here.
[0112] Optionally, in order to meet the user's need to stop the chip testing process midway, thereby improving the user's physical examination, the chip testing method may also include the following steps (1) to (2):
[0113] Step (1), in response to a test stop operation instruction input by a user, determining whether the target chip is in a test process.
[0114] The user can input the test stop operation instruction on the online debugging page, and the computer device can monitor whether the target chip is in the test process through the debugging software.
[0115] Step (2), if the target chip is in the process of testing, the test process is stopped, and the occupancy rate of the memory space in the target chip by the tested functional modules that have been tested during the test process is displayed.
[0116] If the target chip is in the testing process, the testing of each functional module to be tested is stopped, thereby stopping the testing process, and the occupancy rate of the memory space in the target chip by the functional modules to be tested that have been tested during the testing process is displayed on the online debugging page.
[0117] If the target chip is not in the testing process, information indicating that no test is currently being performed is displayed.
[0118] Step S306 : in response to the instruction input by the user to reselect a logical operation, determining a target logical operation selected by the user from the set of optional logical operations.
[0119] Step S307: Delete the target logical operation from the optional logical operation set, and determine the remaining logical operations as the to-be-replaced logical operation set.
[0120] Step S306 to step S307 and Figure 1 In the embodiment shown, step S102 to step S103 are similar and will not be described in detail here. Figure 1 The logical operations selected in the illustrated embodiments are different, for example, Figure 1 In the illustrated embodiment, the logic operation selected by the user from the selectable logic operation set in the online debugging page is taking the rising edge, logical AND, NAND, and OR, and the secondary user selects multiple target logic operations from the selectable logic operation set, namely taking the falling edge, logical AND, NAND, OR, and equal to 1.
[0121] Step S308, determining whether each functional module to be tested is in the testing process.
[0122] Whether each target chip is in the testing process can be determined through the monitor in the debugging application. If so, each functional module to be tested is in the testing process; if not, each functional module to be tested is not in the testing process.
[0123] Step S309: if each functional module to be tested is in the testing process, monitoring whether each functional module to be tested has finished the testing process.
[0124] After determining that each functional module to be tested is in the test process, continue to judge whether the target chip has completed the test process through the monitor in the debugging application. If it has ended, each functional module to be tested has ended the test process. If it has not ended, each functional module to be tested has not ended the test process.
[0125] Step S310, if each functional module to be tested completes the test process, each logic operation in the redundant logic operation set is replaced by each logic operation in the to-be-replaced logic operation set, so as to subsequently test the to-be-verified functions of each functional module to be tested according to the target logic operation to obtain the test result of the target chip.
[0126] If it is determined that the test process of each functional module to be tested has ended, each logical operation in the redundant logical operation set will be replaced by each logical operation in the to-be-replaced logical operation set, and the logical operations in the redundant logical operation set will be deleted from the functions to be verified of each functional module to be tested, and then the functions to be verified of each functional module to be tested will be retested according to the target logical operation.
[0127] If it is determined that the test process of each functional module to be tested has not been completed, then the monitoring of whether each functional module to be tested has completed the test process is continued until each functional module to be tested completes the test process and the process proceeds to step S205.
[0128] Step S311 , if the functional modules to be tested are not in the testing process, then the logical operations in the redundant logical operation set are replaced with the logical operations in the replacement logical operation set, so as to test the functions to be verified of the functional modules to be tested according to the target logical operations later.
[0129] If it is determined that each functional module to be tested is not in the testing process, each logical operation in the redundant logical operation set is replaced by each logical operation in the to-be-replaced logical operation set, and the logical operations in the redundant logical operation set are deleted from the functions to be verified of each functional module to be tested, and then the functions to be verified of each functional module to be tested are retested according to the target logical operation to obtain the test results of the target chip again.
[0130] In the embodiment of the present application, the user can reselect the target logic operation in the optional logic operation set, and use the remaining logic operations in the optional logic operation set excluding the target logic operation as the logic operation set to be replaced. Then, when each functional module to be tested ends the test process or is not in the test process, the logic operation in the original redundant logic operation set is replaced with the logic operation in the logic operation set to be replaced, and then the updated redundant logic operation set can be relied on to continue to test the functions to be verified of each functional module to be tested. The user can select the logic operation autonomously and multiple times, and can also test the functions to be verified of the functional module to be tested according to the reselected target logic operation when the logic operation is not selected for the first time, so as to retest the chip, adapt to the changes in user needs in chip testing, and thus improve the accuracy of chip testing.
[0131] In an application scenario, taking the debugging application as a comprehensive tool and the online debugging page as the GUI (Graphics User Interface) interface of the comprehensive tool as an example, the user uses the online debugging function of the comprehensive tool to test several functional modules to be tested in a chip. Specifically, the user selects the required logical function through the GUI interface of the comprehensive tool, that is, selects the required logical operation from the optional logical operation set. Compared with the traditional comprehensive tool, the GUI interface will list all logical operations (for example, equal to 1, equal to 0, take the rising edge, take the falling edge, take the double edge, logical AND, NAND, OR, NOR, XOR and XOR) on the interface, allowing the user to check, and then the computer device will select the corresponding functional module to be tested for synthesis according to the user's selection through the comprehensive tool, and remove the logical operation that the user does not need (that is, the logical operation that the user has not selected) to achieve the purpose of saving resources. The user's choice of logical operation function will not affect the online debugging function, but will reduce the triggering mode of sampling that the user does not need. When the user finds that some logical operations need to be added or reduced during the on-board debugging process, he can reselect through the GUI interface and then re-synthesize.
[0132] In this embodiment, a chip testing device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0133] This embodiment provides a chip testing device, such as Figure 4 As shown, including:
[0134] A first response module 410 is used to determine a selected logical operation from a set of optional logical operations in response to a logical operation selection instruction input by a user;
[0135] A first deletion module 420, configured to delete the selected logic operation from the optional logic operation set, and use the remaining logic operations in the optional logic operation set as a redundant logic operation set;
[0136] A second response module 430 is used to determine at least one functional module to be tested in the target chip in response to a module selection instruction input by a user;
[0137] A second deleting module 440 is used to delete the logic operations in the redundant logic operation set from the functions to be verified of each functional module to be tested;
[0138] The testing module 450 is used to test the functions to be verified of each functional module to be tested according to each selected logical operation, and obtain the test result of the target chip.
[0139] In some optional embodiments, the device further comprises:
[0140] A third response module, configured to determine a target logical operation selected by the user from the set of optional logical operations in response to an instruction input by the user to reselect a logical operation;
[0141] A third deleting module, used to delete the target logical operation from the optional logical operation set, and determine the remaining logical operations as the set of logical operations to be replaced;
[0142] The first judgment module is used to judge whether each functional module to be tested is in the testing process;
[0143] A monitoring module, used for monitoring whether each functional module to be tested has completed the testing process if each functional module to be tested is in the testing process;
[0144] A replacement module, used for replacing each logic operation in the redundant logic operation set with each logic operation in the to-be-replaced logic operation set if each to-be-tested functional module has completed the test process, so as to facilitate the subsequent testing of the to-be-verified functions of each to-be-tested functional module according to the target logic operation;
[0145] The replacement module is also used to replace each logic operation in the redundant logic operation set with each logic operation in the to-be-replaced logic operation set if each functional module to be tested is not in the testing process, so as to facilitate the subsequent testing of the to-be-verified functions of each functional module to be tested according to the target logic operation.
[0146] In some optional embodiments, the device further comprises:
[0147] The second judgment module is used to judge, during the process of testing each functional module to be tested, whether the occupancy rate of the memory space in the target chip by the functional module to be tested is greater than a preset threshold value corresponding to the functional module to be tested;
[0148] A first determination module, configured to determine that the test result is a target chip test failure if the occupancy rate is greater than a preset threshold;
[0149] A first acquisition module is used to acquire a preset logic operation set corresponding to the target chip;
[0150] A third judgment module is used to judge whether all selected logical operations exist in the preset logical operation set;
[0151] The first adding module is used to add revelation information to the test result if at least one selected logical operation does not exist in the preset logical operation set, where the revelation information is used to suggest the user to select a logical operation in the preset logical operation set.
[0152] In some optional embodiments, after adding the revelation information to the test result, the following is further included:
[0153] The second acquisition module is used to obtain the corresponding priority of each functional module to be tested;
[0154] A selection module, used to select at least one target function module from each function module to be tested in order of priority from low to high, the target function module being a function module to be tested whose occupancy rate of the memory space of the target chip is greater than its own corresponding preset threshold;
[0155] The second adding module is used to add information instructing to delete the test of the target functional module in the revelation information.
[0156] In some optional embodiments, the device further comprises:
[0157] The fourth judgment module is used to judge whether the total occupancy rate of the memory space in the target chip is greater than the preset total occupancy rate during the test of each functional module to be tested;
[0158] The second determination module is used to determine the test result as a target chip test failure if the total occupancy rate is greater than a preset total occupancy rate, and display the total occupancy rate and the occupancy rate of each functional module to be tested on the memory space in the target chip in the test result.
[0159] In some optional embodiments, the device further comprises:
[0160] A fifth judgment module, configured to judge whether the target chip is in the test process in response to a test stop operation instruction input by a user;
[0161] The stop module is used to stop the test process if the target chip is in the test process, and display the occupancy rate of the memory space in the target chip by the tested functional modules in the test process.
[0162] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0163] The chip testing device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0164] The present application also provides a computer device having the above Figure 4 The chip testing device is shown.
[0165] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present application, such as Figure 5 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.
[0166] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0167] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0168] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0169] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0170] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0171] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0172] The embodiment of the present application also provides a computer-readable storage medium. The above method according to the embodiment of the present application can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0173] Although the embodiments of the present application are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A chip testing method, It is characterized in that The method comprises: In response to a logic operation selection instruction input by a user, determining a selected logic operation from a set of selectable logic operations; Deleting the selected logic operation from the optional logic operation set, and using the remaining logic operations in the optional logic operation set as a redundant logic operation set; In response to the module selection instruction input by the user, determining at least one functional module to be tested in the target chip; Deleting the logic operations in the redundant logic operation set from the functions to be verified of each of the function modules to be tested; According to each of the selected logic operations, the functions to be verified of each of the functional modules to be tested are tested respectively to obtain the test results of the target chip; wherein each selected logic operation in the functions to be verified of the set of redundant logic operations deleted of each functional module to be tested is tested; The method further comprises: In response to an instruction input by the user to reselect a logical operation, determining a target logical operation selected by the user from the set of optional logical operations; Deleting the target logical operation from the optional logical operation set, and determining the remaining logical operations as the to-be-replaced logical operation set; Determine whether each of the functional modules to be tested is in the testing process; If each of the functional modules to be tested is in the testing process, monitoring whether each of the functional modules to be tested has finished the testing process; If each of the functional modules to be tested completes the test process, each logic operation in the redundant logic operation set is replaced by each logic operation in the to-be-replaced logic operation set, so as to subsequently test the to-be-verified function of each of the functional modules to be tested according to the target logic operation; If each of the functional modules to be tested is not in the testing process, each logic operation in the redundant logic operation set is replaced by each logic operation in the to-be-replaced logic operation set, so as to test the to-be-verified functions of each of the functional modules to be tested according to the target logic operation later; The method further comprises: In the process of testing each of the functional modules to be tested, for each of the functional modules to be tested, determining whether the occupancy rate of the memory space in the target chip by the functional module to be tested is greater than a preset threshold value corresponding to the functional module to be tested; If the occupancy rate is greater than the preset threshold, determining that the test result is that the target chip test fails; Obtaining a preset logic operation set corresponding to the target chip; Determining whether all the selected logical operations exist in the preset logical operation set; If there is at least one of the selected logical operations that does not exist in the preset logical operation set, revelation information is added to the test result, where the revelation information is used to suggest the user to select a logical operation in the preset logical operation set.
2. The method according to claim 1, It is characterized in that After adding the revelation information to the test result, the method further includes: Obtaining the corresponding priority of each of the functional modules to be tested; Selecting at least one target functional module from each of the functional modules to be tested in the order of priority from low to high, wherein the target functional module is a functional module to be tested whose occupancy rate of the memory space of the target chip is greater than its own corresponding preset threshold; Information for indicating deletion of the test on the target functional module is added to the revelation information.
3. The method according to claim 1 or 2, It is characterized in that The method further comprises: In the process of testing each of the functional modules to be tested, determining whether the total occupancy rate of the memory space in the target chip is greater than a preset total occupancy rate; If the total occupancy rate is greater than a preset total occupancy rate, the test result is determined to be a test failure of the target chip, and the total occupancy rate and the occupancy rate of each of the functional modules to be tested on the memory space in the target chip are displayed in the test result.
4. The method according to claim 1 or 2, It is characterized in that The method further comprises: In response to a test stop operation instruction input by a user, determining whether the target chip is in a test process; If the target chip is in the testing process, the testing process is stopped, and the occupancy rate of the memory space in the target chip by the tested functional modules that have been tested in the testing process is displayed.
5. A chip testing device, It is characterized in that The device comprises: A first response module, configured to determine a selected logical operation from a set of optional logical operations in response to a logical operation selection instruction input by a user; A first deleting module, configured to delete the selected logic operation from the optional logic operation set, and use the remaining logic operations in the optional logic operation set as a redundant logic operation set; A second response module, configured to determine at least one functional module to be tested in the target chip in response to the module selection instruction input by the user; A second deleting module, used for deleting the logic operations in the redundant logic operation set from the functions to be verified of each of the function modules to be tested; A test module, used to test the functions to be verified of each of the functional modules to be tested according to each of the selected logical operations, and obtain the test results of the target chip; wherein each selected logical operation in the functions to be verified of the set of redundant logical operations of each functional module to be tested is tested; The device also includes: A third response module, configured to determine the target logical operation selected by the user from the set of optional logical operations in response to the instruction input by the user to reselect the logical operation; A third deleting module, configured to delete the target logic operation from the optional logic operation set, and determine the remaining logic operations as the to-be-replaced logic operation set; A judging module, used to judge whether each of the functional modules to be tested is in the testing process; A monitoring module, used for monitoring whether each of the functional modules to be tested has completed the testing process if each of the functional modules to be tested is in the testing process; A replacement module, used for replacing each logic operation in the redundant logic operation set with each logic operation in the to-be-replaced logic operation set if each of the to-be-tested function modules completes the test process, so as to facilitate subsequent testing of the to-be-verified functions of each of the to-be-tested function modules according to the target logic operation; The replacement module is further used to replace each logic operation in the redundant logic operation set with each logic operation in the to-be-replaced logic operation set if each of the to-be-tested functional modules is not in the test process, so as to facilitate subsequent testing of the to-be-verified functions of each of the to-be-tested functional modules according to the target logic operation; The device also includes: A second judgment module is used to judge, during the process of testing each of the functional modules to be tested, whether the occupancy rate of the memory space in the target chip by the functional module to be tested is greater than a preset threshold value corresponding to the functional module to be tested for each of the functional modules to be tested; A first determination module, configured to determine that the test result is a test failure of the target chip if the occupancy rate is greater than the preset threshold; A first acquisition module, used to acquire a preset logic operation set corresponding to the target chip; A third judgment module, used to judge whether all the selected logical operations exist in the preset logical operation set; The first adding module is used to add revelation information to the test result if at least one of the selected logical operations does not exist in the preset logical operation set, wherein the revelation information is used to suggest the user to select a logical operation in the preset logical operation set.
6. A computer device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the chip testing method according to any one of claims 1 to 4 by executing the computer instructions.
7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, which are loaded and executed by a processor to implement the chip testing method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Functional test method and device for programmable logic device and computer storage medium
CN109543212A
FPGA integrated circuit layout optimization method and device, equipment and storage medium
CN115238638A
Self test method and apparatus for identifying partially defective memory
CN1786929A
Scan testing using scan frames with embedded commands
US20070234154A1
