Event processing method, test machine, device, computer equipment and program product

By monitoring and matching event identification information, a corresponding behavior execution program is generated and executed, which solves the problem of being unable to execute user-defined logic in the existing technology and achieves the flexibility and efficiency of semiconductor testing equipment.

CN118860682APending Publication Date: 2024-10-29HANGZHOU CHANGCHUAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410808900.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing semiconductor test equipment cannot execute user-defined code logic after a test event occurs, resulting in a lack of flexibility and customization in the test process.

Method used

By listening to event identification information, query and generate target events, match the current state with the defined event state, and execute the corresponding behavior execution program to implement user-defined behavior execution.

Benefits of technology

It realizes the accurate execution of user-defined behavior execution programs after the occurrence of test events, improves the flexibility and customization of the test process, ensures that each test event can be processed correctly, and improves the security and efficiency of the event triggering mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860682A_ABST
    Figure CN118860682A_ABST
Patent Text Reader

Abstract

The invention relates to an event processing method, a test machine, a device, computer equipment and a computer program product. The method comprises the following steps: monitoring event identification information; querying an event processing program corresponding to the event identification information, and generating a target event based on the event processing program; acquiring the current state of the system; matching the target event, the current state, a defined event and an event state; under the condition that the target event is successfully matched with the defined event and the current state is successfully matched with the event state, a behavior execution program corresponding to a matched event is executed to obtain an event processing result, and the matched event is that the event state is successfully matched with the current state. And the defined event is successfully matched with the target event. By adopting the method, the user-defined behavior execution program can be accurately executed after the test event occurs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of semiconductor technology, and in particular to an event processing method, a test machine, a device, a computer equipment and a computer program product. Background Art

[0002] With the continuous development of semiconductor manufacturing and testing technology, docking equipment is widely used in the testing process of semiconductor devices to perform quality tests on semiconductor packaged chips and sort out finished products that pass the test and those that fail the test.

[0003] Specifically, the docking device communicates with the test control device to implement the test.

[0004] However, the test event processing code logic is bundled with the test machine software and cannot execute user-defined code logic after a test event occurs. Summary of the invention

[0005] Based on this, it is necessary to provide an event processing method, a testing machine, a device, a computer equipment and a computer program product that can accurately execute a user-defined behavior execution program after a test event occurs in response to the above technical problems.

[0006] In a first aspect, the present application provides an event processing method, the method comprising:

[0007] Monitor event identification information;

[0008] Querying an event processing program corresponding to the event identification information, and generating a target event based on the event processing program;

[0009] Get the current status of the system;

[0010] Matching the target event, the current state, the defined events, and the event state;

[0011] When the target event successfully matches the defined event and the current state successfully matches the event state, the behavior execution program corresponding to the matching event is executed to obtain an event processing result, wherein the matching event is a defined event in which the event state successfully matches the current state and matches the target event.

[0012] In one of the optional embodiments, the monitoring event identification information includes at least one of the following:

[0013] Monitor the communication data with the sorting machine and / or the probe station to obtain event identification information; or

[0014] Monitor the event identification information sent by the behavior execution program.

[0015] In one of the optional embodiments, the querying of the event processing program corresponding to the event identification information and generating the target event based on the event processing program includes:

[0016] Check whether the event identification information exists in the event definition file;

[0017] When the event identification information exists in the event definition file, obtaining an event processing program corresponding to the event identification information;

[0018] A target event corresponding to the event identification information is generated through the event processing program.

[0019] In one of the optional embodiments, the method further includes:

[0020] Calling an application program interface to obtain operation parameters corresponding to the event identification information;

[0021] When the operation parameters are consistent with the operation parameters stored in the event definition file, the step of generating a target event through the event processing program is continued.

[0022] In one of the optional embodiments, matching the target event, the current state, the defined event, and the event state includes:

[0023] Obtaining state definition information of each defined event in the state definition file;

[0024] Matching the target event with each of the defined events;

[0025] In the case where the target event matches the defined event successfully, matching the current state with the start state of the defined event that matches successfully;

[0026] In the case where the current state matches the start state of the successfully matched defined event, it is determined that the target event matches the defined event successfully and the current state matches the event state successfully.

[0027] In one of the optional embodiments, executing the behavior execution program corresponding to the matching event to obtain the event processing result includes:

[0028] Querying each execution program identifier corresponding to the matching event;

[0029] Obtaining a behavior execution program corresponding to the execution program identifier;

[0030] Execute the behavior execution program to obtain the event processing result.

[0031] In one of the optional embodiments, after executing the behavior execution program corresponding to the matching event to obtain the event processing result, the method includes:

[0032] After the behavior execution programs corresponding to the matching events are all executed, the end state in the state definition file is obtained as the current state of the system.

[0033] In one of the optional embodiments, the method further includes:

[0034] In the case of performing a preset operation on an event, performing a preset operation on the association between the event identification information, the event, and the event processing program, wherein the preset operation includes a new operation or a modification operation;

[0035] Execute a preset operation on the state definition information corresponding to the event, wherein the state definition information includes a start state, an execution program identifier, and an end state;

[0036] The preset operation is performed on the behavior execution program corresponding to the execution program identifier.

[0037] In one of the optional embodiments, the method further includes:

[0038] In the case of deleting an event, deleting the stored event identification information from the event definition file;

[0039] After the monitoring event identification information, it also includes:

[0040] When no event processing program corresponding to the event identification information is found from the event definition file, the event identification information is ignored.

[0041] In a second aspect, the present application further provides a testing machine, the testing machine comprising:

[0042] at least one docking device;

[0043] at least one test head;

[0044] A test control device communicates with the docking device and the test head respectively; the test control device is used to execute the event processing method described in any one of the above embodiments to process events in the test process.

[0045] In a third aspect, the present application further provides an event processing device, the device comprising:

[0046] A monitoring module, used for monitoring event identification information;

[0047] An event processing module, used for querying an event processing program corresponding to the event identification information, and generating a target event based on the event processing program;

[0048] A state matching module, used to obtain the current state of the system, and match the target event, the current state, the defined events and the event state;

[0049] A program execution module is used to execute a behavior execution program corresponding to the matching event to obtain an event processing result when the target event successfully matches the defined event and the current state successfully matches the event state, wherein the matching event is a defined event in which the event state successfully matches the current state and successfully matches the target event.

[0050] In a fourth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described in any one of the above embodiments when executing the computer program.

[0051] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method described in any one of the embodiments.

[0052] The above-mentioned event processing method, test machine, device, computer equipment and computer program product, after monitoring the event identification information, obtains the event processing corresponding to the event identification information, and then generates a target event based on the event processing program, and when the target event successfully matches the defined event and the current state successfully matches the event state, executes the behavior execution program corresponding to the matching event to obtain the event processing result, wherein the matching event is a defined event whose event state successfully matches the current state and successfully matches the target event, thereby ensuring that the user-defined behavior execution program is accurately executed for different test events. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions 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 related drawings can be obtained based on these drawings without paying creative work.

[0054] Figure 1 is a schematic diagram of a testing machine in one embodiment;

[0055] Figure 2 A structural block diagram of a docking device service module in an embodiment;

[0056] Figure 3A schematic diagram of a flow chart of an event processing method in an embodiment;

[0057] Figure 4 A flowchart of a matching step in an embodiment;

[0058] Figure 5 A flowchart of a newly added event in an embodiment;

[0059] Figure 6 is a timing diagram of an event processing method in an embodiment;

[0060] Figure 7 A flowchart of a test process in a test scenario in an embodiment;

[0061] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0063] The event processing method provided in the embodiment of the present application can be applied to Figure 1 In the test machine shown in the figure, the test machine includes at least one docking device and at least one test head. The test control device communicates with the docking device and the test head respectively.

[0064] The docking device may include a sorting machine and / or a probe station, and the docking device may be a docking device from different manufacturers. Optionally, the docking device may include only a sorting machine; or the docking device includes only a probe station; or the docking device includes a sorting machine and a probe station. It should be noted that the number of sorting machines and probe stations is not limited.

[0065] The test control device includes a docking device service module and a docking device adapter. The docking device service module is used to receive access requests to the docking device generated during the event execution program processing and to obtain and modify the status of the system; the docking device adapter is used to process the docking device access request to access the docking device, specifically, determine the device control library of the API (Application Programming Interface) corresponding to the access request of the docking device, and access the corresponding docking device based on the device control library.

[0066] In one of the optional embodiments, in combination Figure 2As shown, the docking device service module includes a monitoring module, an event processing module, a state matching module, a program execution module and an API module. The monitoring module is used to monitor at least one of the event identification information in the communication data with the docking device and the event identification information sent by the behavior execution program inside the system. The event processing module is used to generate a target event based on the event identification information; optionally, the event processing module can generate the target event based on the event identification information, the event definition file and the event processing program, as shown below. The state matching module is used to match the target event, the current state of the system with the defined events and the states of the events; optionally, the defined events and the states of the events can be stored in the state definition file. The program execution module is used to execute the corresponding behavior execution program on the premise of successful matching, for example, execute the behavior execution program corresponding to the matching event to obtain the event processing result; optionally, the behavior execution program of each event can be stored in the behavior definition file. The API module is used to receive an access request to the docking device generated during the processing of the event execution program, and access the system or docking device through the access request, for example, calling the device control library to access the docking device. The API module can be divided into three types, including APIs for obtaining test result data from the test system, APIs for obtaining device information from the docked device, and APIs related to event and status management. This application focuses on APIs related to event and status management.

[0067] It should be noted that the events involved in the present application are test events, which may include but are not limited to a test start event TestSuitStart, a test end event TestSuitEnd, a wafer test start event WaferStart, a wafer test end event WaferEnd, a batch test start event LotStart, and a batch test end event Lotend.

[0068] In the above embodiment, user-defined behavior execution programs are executed for different test events respectively. The separation of the test machine software and the user-defined behavior execution program requires supporting the dynamic addition of user-defined behavior execution programs without changing the test machine software architecture and code logic.

[0069] In an exemplary embodiment, Figure 3 As shown, an event processing method is provided, which is applied to Figure 1 Test control equipment in, in particular, for Figure 2 The docking device service module in the example is used to illustrate, including the following steps 302 to 310. Among them:

[0070] S302: Monitor event identification information.

[0071] The event identification information includes an operation code of the event, which may be stored in the communication data with the docking device. In other embodiments, the operation code may also be generated during the execution of the behavior execution program. Each event identification information corresponds to an event.

[0072] In one of the optional embodiments, monitoring event identification information includes at least one of the following: monitoring communication data with a sorting machine and / or a probe station to obtain event identification information; or monitoring event identification information sent by a behavior execution program. The event identification information obtained from the communication data of the sorting machine and / or the probe station is event identification information of an external event; the event identification information sent by the behavior execution program is event identification information of an internal event.

[0073] Among them, the monitoring module in the docking device service module can monitor the communication data with the sorting machine and / or the probe station, and obtain event identification information from the communication data. In other embodiments, the monitoring module in the docking device service module can monitor the data obtained during the execution of the behavior execution program, and obtain event identification information from the monitored data. In other embodiments, the monitoring module in the docking device service module can monitor the communication data with the sorting machine and / or the probe station, and monitor the data obtained during the execution of the behavior execution program, and obtain event identification information from the communication data, and obtain event identification information from the monitored data.

[0074] Specifically, the docking device service module connects and communicates with the docking device through the communication protocol GPIO, and the docking device service module monitors and processes the communication data sent by the docking device in real time. Specifically, the monitoring module in the docking device service module parses the external event operation code (OPCODE) received from the docking device, and sends the external event operation code (OPCODE) to the event processing module.

[0075] The monitoring module in the docking device service module parses the internal event operation code (OPCODE) sent from the execution behavior program, and sends the internal event operation code (OPCODE) to the event processing module.

[0076] One point that needs to be explained is that the monitoring of the communication data with the docking device and the monitoring of the execution result of the execution behavior program can be performed in parallel.

[0077] The above monitoring of event identification information adopts the mode of active event notification. Users do not need to consume thread resources to regularly poll and query events, avoiding the waste of thread resources caused by queries when events do not occur. In addition, in the polling event mode, if the polling interval is longer than the event conversion time, there may be a risk of missing events. For example: the event occurrence sequence (ABC), AB event conversion is 30 seconds, BC event conversion is 30 seconds, and the polling interval is 50 seconds. When querying event A for 50 seconds, the next event obtained by querying the event is event C, and event B will be missed. With active event notification, events and event processing logic codes are one-to-one corresponding, and the design avoids the occurrence of this problem.

[0078] S304: Query the event processing program corresponding to the event identification information, and generate a target event based on the event processing program.

[0079] The event handler is used to generate the target event, and the event handler corresponds to the event identification information. Optionally, one event identification information may correspond to only one event handler, or may correspond to multiple event handlers. When corresponding to multiple event handlers, there is an execution order between the multiple event handlers, and the execution order may be defined in the event definition file, and one point that needs to be explained is that the multiple event handlers include at least one event generation program. For example, after the event processing module receives the event identification information, it will execute all event handlers corresponding to the event identification information, and the event processing module will execute the event handlers in the order defined in the event definition file.

[0080] The event definition file is a file for defining events, and the event definition file may include at least one event definition. In other embodiments, the defined events may be stored in other ways, such as in a table, which is not specifically limited here. In one optional embodiment, after receiving the event identification information, the event processing module reads the event definition file and matches the event identification information with the event identification information of each defined event in the event definition file to obtain the corresponding event execution program.

[0081] For ease of understanding, an optional format of the event definition file is given:

[0082] Base Event=>Event ID(Event Handler Programs, Param);

[0083] Base Event is the event name, Event Handler Programs is the event handler, and Param is the parameter, which includes event identification information.

[0084] After you have the format of the event definition file, you can define the event, for example:

[0085] TestStart=>GPIB (PH_Event_Check, 0x36) indicates that the operation code (OPCODE) received through GPIB is 0x36, corresponding to the generation of the TestStart event.

[0086] WaferStart=>GPIB (PH_Event_Check, 0x37) indicates that the operation code (OPCODE) received through GPIB is 0x37, corresponding to the generation of the WaferStart event.

[0087] TestEnd=>USER(USER_Event_Check, 0x48) indicates that the received user-defined event (OPCODE) is 0x48, and a TestEnd event is generated accordingly.

[0088] DeviceError=>ERROR(ERROR_Event_Check, 0x61) indicates that the received device failure event (OPCODE) is 0x61, and a DeviceError event is generated accordingly.

[0089] In this embodiment, after the event processing module receives the event identification information, it reads the event processing file, and then matches the event identification information with the event identification information of each defined event in the event processing file, so as to determine the corresponding event execution program, and execute the event execution program to generate a target event. The target event may include a test event and a user-defined event.

[0090] S306: Obtain the current status of the system.

[0091] The current state of the system refers to the current state of the test system of the test machine (the test system in this application can be understood as a software system), such as the start test state, the end test state, the equipment failure state, etc.

[0092] S308: Match the target event, the current state, the defined events, and the event state.

[0093] Among them, matching the target event, the current state, the defined events and the event state includes: matching the target event with the defined event and matching the current state with the event state. One point that needs to be explained is that the event matching and the state matching can be parallel or in a sequence, for example, matching the event first and then matching the state, or matching the state first and then matching the event.

[0094] It should be noted that the defined events and event states are stored in a state definition file, which includes state definition information, including events, event states corresponding to the events, and behavior execution programs between the event states. Optionally, the behavior execution program is characterized by a behavior execution program identifier. In other embodiments, the defined events and event states are stored in a state definition table, and no specific restrictions are made on the storage method of the defined events and event states in the state definition file.

[0095] For ease of understanding, an optional format of a state definition file is given:

[0096] <Event1,Event2,…> => <stat-start><Runner ID 1><Runner ID 2><…> <state-end>

[0097] Specifically, the state definition file example:

[0098] <teststart> => <standby> <2005> <testing>It indicates that the TestStart event includes the standby event state and the testing event state. The behavior execution program 2005 needs to be executed between the two event states to indicate the corresponding behavior execution program.

[0099] <testend> => <testing> <2006> <standby>It indicates that the TestEnd event includes the testing event state and the standby event state. The behavior execution program 2006 needs to be executed between the two event states to indicate the corresponding behavior execution program.

[0100] After obtaining the state definition file, the state matching module matches the target event, the current state, the events defined in the state definition file, and the event state.

[0101] S310: When the target event successfully matches the defined event and the current state successfully matches the event state, execute the behavior execution program corresponding to the matching event to obtain the event processing result, wherein the matching event is a defined event whose event state successfully matches the current state and successfully matches the target event.

[0102] Specifically, the state matching module matches the target event, the current state, the events defined in the state definition file, and the event state to obtain a matching result. When the target event matches the defined event successfully and the current state matches the event state successfully, the defined events and event states that have been matched successfully in the state definition file can be determined, thereby determining the behavior execution program corresponding to the defined event and event state, and then executing the behavior execution program to complete the event processing.

[0103] Optionally, the process of obtaining the behavior execution program can be implemented through a behavior definition file, which includes a plurality of behavior execution programs, and the behavior execution program includes a behavior execution program identifier and a corresponding behavior execution program. Therefore, in this embodiment, after obtaining the successfully matched target event and event state in the state definition file during the matching process, the behavior execution program identifier corresponding to the target event and event state is obtained, and then the behavior execution program corresponding to the execution program identifier is obtained from the behavior definition file.

[0104] The above event processing method, after monitoring the event identification information, obtains the event processing corresponding to the event identification information, and then generates the target event based on the event processing program, and when the target event successfully matches the defined event, and the current state successfully matches the event state, executes the behavior execution program corresponding to the matching event to obtain the event processing result, wherein the matching event is a defined event whose event state successfully matches the current state and successfully matches the target event, thus ensuring that the user-defined behavior execution program is accurately executed for different test events. It also improves the security and efficiency of the event triggering mechanism, avoids missing test events, and each test event can be correctly delivered and mapped to the event processing program, improves the event triggering efficiency, and avoids unnecessary resource consumption.

[0105] In one of the optional embodiments, the target event generation step, i.e., querying the event handler corresponding to the event identification information and generating the target event based on the event handler, includes: querying whether there is event identification information in the event definition file; if there is event identification information in the event definition file, obtaining the event handler corresponding to the event identification information; and generating the target event corresponding to the event identification information through the event handler.

[0106] As mentioned above, the event definition file is a file used to define an event, and the event definition file may include at least one event definition.

[0107] The event definition file can be modified by the user, for example, deleting some defined events, adding new events or modifying defined events, wherein modifying a defined event includes modifying the event execution program and parameters of the defined event.

[0108] After receiving the event identification information, the event processing module queries whether the event identification information exists in the event definition file; if the event identification information exists in the event definition file, the event processing program corresponding to the event identification information is obtained. The event processing program may include one or more, which is not specifically limited here, but the event processing program at least includes an event generation program, so that the target event corresponding to the event identification information is generated through the event generation program.

[0109] In one of the optional embodiments, the method further includes: calling an application program interface to obtain operation parameters corresponding to the event identification information; and when the operation parameters are consistent with the operation parameters stored in the event definition file, continuing to execute the step of generating the target event through the event handler.

[0110] In this embodiment, the event processing program may include an event verification program and an event generation program, wherein the event verification program is used to call an application program interface to obtain an operation parameter corresponding to the event identification information, and the event generation program is used to generate a target event corresponding to the event identification information after the event verification program outputs a verification result. The operation parameter corresponds to the operation code.

[0111] The event handler will call the API to obtain the operation parameters during execution. Then it will determine whether the operation parameters obtained by the API are consistent with the parameters (Param) defined in the event definition file. If they are consistent, the defined target event will be generated, for example:

[0112] TestStart=>GPIB(PH_Event_Check, 0x36);

[0113] When executing the event handler: PH_Event_Check, the PH_Event_Check program will call the API to obtain the operation parameters received from the communication data with the docking device during execution. If the operation code corresponding to the received operation parameters is equal to 0x36, a TestStart event is generated.

[0114] In one of the optional embodiments, in combination Figure 4 As shown, Figure 4 The flowchart of a matching step in an embodiment, the matching step, that is, matching the target event, the current state, the defined event and the event state, includes:

[0115] S402: Acquire status definition information of each event defined in the status definition file.

[0116] The state definition file stores the state definition information of each defined event, and the state definition information includes the event, the event state corresponding to the event, and the behavior execution program between the event states. Optionally, the behavior execution program is characterized by a behavior execution program identifier.

[0117] S404: Match the target event with each defined event.

[0118] Matching the target event with each defined event may be matching the name of the target event with each defined event.

[0119] S406: When the target event matches the defined event successfully, the current state is matched with the start state of the defined event that matches successfully.

[0120] The start state is the first state of a defined event that matches successfully, as shown in the state definition file above. <state-start>.

[0121] When the target event successfully matches the defined event, the start state of the successfully matched defined event is obtained, and then the current state is matched with the start state.

[0122] S408: When the current state matches the start state of the successfully matched defined event, it is determined that the target event matches the defined event successfully and the current state matches the event state successfully.

[0123] When the current state successfully matches the start state of a defined event that has been matched successfully, it means that the target event has been matched successfully with the defined event, and the current state has been matched successfully with the event state. Therefore, the behavior execution program of the corresponding matching event in the state definition file can be obtained, for example, by sending the behavior execution program identifier to the program execution module, so that the program execution module can obtain the behavior execution program corresponding to the execution program identifier.

[0124] In one of the optional embodiments, executing the behavior execution program corresponding to the matching event to obtain the event processing result includes: querying each execution program identifier corresponding to the matching event; obtaining the behavior execution program corresponding to the execution program identifier; and executing the behavior execution program to obtain the event processing result.

[0125] Specifically, the behavior execution program can be implemented through a behavior definition file, or a table, etc. The storage method of the behavior execution program is not limited here. For convenience, an optional format of the behavior definition file is given:

[0126] <Runner ID> =><Runner Programs>

[0127] Specific examples are:

[0128] <2005> => <userteststartprogram1>It indicates the behavior execution program with the behavior execution program identifier of 2005;

[0129] <2006> => <userteststartprogram2>Indicates the behavior execution program with the behavior execution program ID 2006.

[0130] After receiving the behavior execution program identifier, the program execution module will query the behavior definition file and find the behavior execution program corresponding to the program execution module.

[0131] Optionally, the behavior execution program identifier mentioned above may be a number of the behavior execution program.

[0132] The corresponding behavior execution program name is found according to the behavior execution program identifier defined in the behavior definition file. If the behavior execution program identifiers 2005 and 2006 are received, the user-defined behavior execution program UserTestStartProgram1 and the behavior execution program UserTestStartProgram2 are found and executed according to the behavior definition file.

[0133] The program execution module executes the behavior execution program according to the order and name defined in the behavior definition file. The system searches for the behavior execution program with the same name in a unified directory according to the name defined in the behavior definition file, and then dynamically executes the behavior execution program.

[0134] In one of the optional embodiments, during the execution of the behavior execution program, an API can be called to communicate with the docking device. The API internally implements communication with the docking device through the device control library and sends the test results to the docking device.

[0135] In one of the optional embodiments, during the execution of the behavior execution program, an API may be called to communicate with the system service. For example, during the data processing during the execution of the behavior execution program, the test result information may be obtained by calling an API interface.

[0136] In one of the optional embodiments, after executing the behavior execution program corresponding to the matching event to obtain the event processing result, it includes: after the behavior execution programs corresponding to the matching event are all executed, obtaining the end state in the state definition file as the current state of the system.

[0137] After the behavior execution program is executed, the program execution module will set the current state according to the end state defined in the state definition file to facilitate the correct execution of the next event.

[0138] In one of the optional embodiments, the present application also relates to operations on events, wherein the operations on events include at least one of a new operation, a modification operation, and a deletion operation, and these operations will be described below.

[0139] The following steps may be included for adding operations and modifying operations: when performing preset operations on an event, performing preset operations on the relationship between event identification information, events, and event handlers, the preset operations include adding operations or modifying operations; performing preset operations on state definition information corresponding to the event, the state definition information includes a start state, an execution program identifier, and an end state; and performing preset operations on the behavior execution program corresponding to the execution program identifier.

[0140] The deletion operation may include the following steps: when deleting an event, deleting the stored event identification information from the event definition file; after monitoring the event identification information, it also includes: when no event handler corresponding to the event identification information is found in the event definition file, ignoring the event identification information.

[0141] In addition to paying attention to common test events (Lot Start, Lot End, Wafer Start, WaferEnd, Test Start, Test End), users are also supported to add custom event types. For example, for new equipment or equipment from different manufacturers, users can define new events and add pseudo events (system internal transfer events).

[0142] In one of the optional embodiments, in combination Figure 5 As shown, Figure 5 This is a flowchart of a newly added event in an embodiment. In this embodiment, a mapping relationship between a newly added event number, a basic event name, and a corresponding event handler is added to an event definition file; an event handler is written, and when an event occurs, the event handler is executed to determine whether an event is generated or what event is generated. A start state and event are added to a state definition file. When a defined event occurs, if the current state is equal to the start state, the corresponding behavior execution program identifier is found. A mapping relationship between a behavior execution program identifier and a behavior execution program is added to a behavior definition file. When the behavior execution program identifier is received, the corresponding behavior execution program is found and executed.

[0143] Similarly, when modifying an event, you only need to modify the corresponding content in the event definition file, state definition file, and behavior definition file to modify the event. This supports dynamic addition and modification of user-defined code logic without changing the test machine software architecture and code logic.

[0144] In this embodiment, the deletion operation has an advantage: the user can customize the test events that he is concerned about in the event definition file, and can remove or not define the test events that he is not concerned about. For example, if the user only wants to process the (Lot End, Wafer End) events now, the user can define only these two events in the event definition file, then no other events will be generated in the system, thereby avoiding the generation of unnecessary events to achieve the purpose of simplifying the system process and saving system overhead.

[0145] For ease of understanding, combined Figure 2 Each module shown in the figure gives a timing diagram, specifically combined with Figure 6 As shown, Figure 6 The present invention is a timing diagram of an event processing method in an embodiment. In this embodiment, communication data communicated with a docking device is sent to a monitoring module, and data generated during the execution of a behavior execution program is sent to the monitoring module. The monitoring module can parse the communication data and the data generated during the execution of the behavior execution program to obtain event identification information, and then send the event identification information to the event processing module. The event processing module queries the event definition file to obtain an event processing program, executes the event processing program to call an API to obtain corresponding operation parameters, and if the event identification information corresponding to the operation parameters is verified, the event processing program generates a target event and sends the target event to a state matching module. The state matching module reads the state definition file, matches the target event, the current state, the defined events in the state definition file, and the event state. If the match is successful, the behavior execution program identification corresponding to the matching event is sent to the program execution module. The program execution module queries the behavior definition file to obtain the behavior execution program corresponding to the behavior execution program identification, and then executes the behavior execution program to obtain the event processing result. During the execution of the behavior execution program, the API can be used to communicate with the docking device and the test system. After the behavior execution programs are all executed, the system state is set based on the end state in the state definition file.

[0146] For ease of understanding, Figure 7 A flowchart of a test process under the test scenario is given. In this embodiment, the docking device service module (corresponding to Figure 7 PH Service) obtains device information through GPIB, including Wafer basic information, WaferX, Y, EnableSite and other information.

[0147] The docking device service module PH Service obtains the event notification of the docking device through GPIB, including event identification information, and obtains whether the docking device is in the ready state. At the same time, it corresponds to two event notifications Lot End and Wafer End respectively, and maps them to the specified event handler to generate the target event. OIServer obtains Enable Site information and Enable Test information from the docking device service module.

[0148] OIServer sends the target event to the docking device service module, which is mapped to the specified behavior execution program, including Lot Start, Wafer Start, and Test Start. The behavior execution program will be executed after the specified event is triggered.

[0149] After the Site Server receives the StartTest notification, the Tester starts executing the test.

[0150] After the test is completed, Site Server will send the End Test event and the test results to System Server.

[0151] The System Server sends the event type to the docking device service module, corresponds to the Test End event notification, and maps it to the specified behavior execution program. The test results are returned to the docking device Prober / Handler.

[0152] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0153] Based on the same inventive concept, the embodiment of the present application also provides an event processing device for implementing the event processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more event processing device embodiments provided below can refer to the limitations on the event processing method above, and will not be repeated here.

[0154] In an exemplary embodiment, in combination with the above Figure 2 As shown, an event processing device is provided, comprising:

[0155] A monitoring module, used for monitoring event identification information;

[0156] An event processing module, used for querying an event processing program corresponding to the event identification information, and generating a target event based on the event processing program;

[0157] The state matching module is used to obtain the current state of the system and match the target event, the current state, the defined events and the event state;

[0158] The program execution module is used to execute the behavior execution program corresponding to the matching event to obtain the event processing result when the target event successfully matches the defined event and the current state successfully matches the event state, wherein the matching event is a defined event whose event state successfully matches the current state and successfully matches the target event.

[0159] In one of the optional embodiments, the monitoring module is used to monitor the event identification information based on any of the following: monitoring the communication data with the sorting machine to obtain the event identification information; or

[0160] Monitors the event identifier information sent by the behavior executor.

[0161] In one of the optional embodiments, the above-mentioned event processing module is specifically used to query whether there is event identification information in the event definition file; when event identification information exists in the event definition file, obtain the event handler corresponding to the event identification information; and generate a target event corresponding to the event identification information through the event handler.

[0162] In one of the optional embodiments, the above-mentioned event processing module is specifically used to call an application program interface to obtain operation parameters corresponding to the event identification information; when the operation parameters are consistent with the operation parameters stored in the event definition file, continue to execute the step of generating the target event through the event handler.

[0163] In one of the optional embodiments, the above-mentioned state matching module is specifically used to obtain the state definition information of each defined event in the state definition file; match the target event with each defined event; when the target event successfully matches the defined event, match the current state with the start state of the successfully matched defined event; when the current state matches the start state of the successfully matched defined event, it is determined that the target event successfully matches the defined event and the current state successfully matches the event state.

[0164] In one of the optional embodiments, the above-mentioned program execution module is specifically used to query each execution program identifier corresponding to the matching event; obtain the behavior execution program corresponding to the execution program identifier; and execute the behavior execution program to obtain the event processing result.

[0165] In one of the optional embodiments, the above-mentioned program execution module is specifically used to obtain the end state in the state definition file as the current state of the system after the behavior execution programs corresponding to the matching events are all executed.

[0166] In one of the optional embodiments, the above-mentioned device also includes: an event operation module, which is used to perform preset operations on the association between event identification information, events and event handlers when performing preset operations on events, and the preset operations include adding operations or modifying operations; performing preset operations on state definition information corresponding to the event, and the state definition information includes a start state, an execution program identifier and an end state; and performing preset operations on the behavior execution program corresponding to the execution program identifier.

[0167] In one of the optional embodiments, the event operation module may also be used to delete the stored event identification information from the event definition file when deleting an event;

[0168] The above-mentioned monitoring module can also be used to ignore the event identification information when no event processing program corresponding to the event identification information is found in the event definition file.

[0169] Each module in the above event processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0170] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 8 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, an event processing method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0171] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0172] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0173] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0174] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0175] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0176] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0177] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims. < / standby> < / testing> < / testend> < / testing> < / standby> < / teststart>

Claims

1. An event processing method, characterized in that: The method comprises: Monitor event identification information; Querying an event processing program corresponding to the event identification information, and generating a target event based on the event processing program; Get the current status of the system; Matching the target event, the current state, the defined events, and the event state; When the target event successfully matches the defined event and the current state successfully matches the event state, the behavior execution program corresponding to the matching event is executed to obtain an event processing result, wherein the matching event is a defined event in which the event state successfully matches the current state and successfully matches the target event.

2. The method according to claim 1, characterized in that The monitoring event identification information includes at least one of the following: Monitor the communication data with the sorting machine and / or the probe station to obtain event identification information; or Monitor the event identification information sent by the behavior execution program.

3. The method according to claim 2, characterized in that The querying of the event processing program corresponding to the event identification information and generating the target event based on the event processing program includes: Check whether the event identification information exists in the event definition file; When the event identification information exists in the event definition file, obtaining an event processing program corresponding to the event identification information; A target event corresponding to the event identification information is generated through the event processing program.

4. The method according to claim 3, characterized in that The method further comprises: Calling an application program interface to obtain operation parameters corresponding to the event identification information; When the operation parameters are consistent with the operation parameters stored in the event definition file, the step of generating a target event through the event processing program is continued.

5. The method according to claim 3, characterized in that: The matching of the target event, the current state, the defined event, and the event state includes: Obtaining state definition information of each defined event in the state definition file; Matching the target event with each of the defined events; In the case where the target event successfully matches the defined event, matching the current state with the start state of the successfully matched defined event; In the case where the current state matches the start state of the successfully matched defined event, it is determined that the target event matches the defined event successfully and the current state matches the event state successfully.

6. The method according to claim 5, characterized in that The executing the behavior execution program corresponding to the matching event to obtain the event processing result includes: Querying each execution program identifier corresponding to the matching event; Obtaining a behavior execution program corresponding to the execution program identifier; Execute the behavior execution program to obtain the event processing result.

7. The method according to claim 5, characterized in that: After executing the behavior execution program corresponding to the matching event to obtain the event processing result, the method includes: After the behavior execution programs corresponding to the matching events are all executed, the end state in the state definition file is obtained as the current state of the system.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In the case of performing a preset operation on an event, performing a preset operation on the association between the event identification information, the event, and the event processing program, wherein the preset operation includes a new operation or a modification operation; Execute a preset operation on the state definition information corresponding to the event, wherein the state definition information includes a start state, an execution program identifier, and an end state; The preset operation is performed on the behavior execution program corresponding to the execution program identifier.

9. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In the case of deleting an event, deleting the stored event identification information from the event definition file; After the monitoring event identification information, it also includes: When no event processing program corresponding to the event identification information is found from the event definition file, the event identification information is ignored.

10. A testing machine, characterized in that: The testing machine comprises: at least one docking device; at least one test head; A test control device communicates with the docking device and the test head respectively; the test control device is used to execute the event processing method described in any one of claims 1 to 9 to process events in the test process.

11. An event processing device, characterized in that: The device comprises: A monitoring module, used for monitoring event identification information; An event processing module, used for querying an event processing program corresponding to the event identification information, and generating a target event based on the event processing program; A state matching module, used to obtain the current state of the system, and match the target event, the current state, the defined events and the event state; A program execution module is used to execute a behavior execution program corresponding to the matching event to obtain an event processing result when the target event successfully matches the defined event and the current state successfully matches the event state, wherein the matching event is a defined event in which the event state successfully matches the current state and successfully matches the target event.

12. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.