Dependence instruction screening method and device and medium
By splitting the test instruction set of WiFi7 chip into two parts and using the binary search method, the problem of low instruction filtering efficiency in the test instruction set is solved, and the dependency instructions for quickly and accurately filtering out the target instruction is achieved.
Patent Information
- Application Number
- CN202510223923.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-27
- Publication Date
- 2025-06-27
AI Technical Summary
During the production and testing of WiFi7 chips, the simplification and screening efficiency of hundreds of instructions in the test instruction set is low, resulting in inaccurate test results or failure of tests.
By splitting the test instruction set of the target chip into two parts of the instructions, gradually narrowing the test scope, using binary search method to determine whether the instructions of the instruction group will affect the target instruction, and then determining the dependency instructions of the target instruction.
It significantly improves the screening efficiency of dependent instructions, reduces unnecessary testing work, and quickly filters out dependent instructions of target instructions to ensure the accuracy of test results.
Smart Images

Figure CN120216267A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and provides a method, device, and medium for screening dependent instructions. Background Art
[0002] Currently, with the continuous innovation and optimization of WiFi technology and the introduction of the WiFi7 technical standard, major chip manufacturers have developed wireless chips that support WiFi7. The WiFi 7 chips can be integrated into products such as PON, gateways, and routers to achieve more powerful wireless network functions, support faster data transmission, and wider device connections. At the same time, the development of WiFi7 chips can meet the needs of new-generation technologies (such as 8K video, ultra-high-resolution VR, and AI applications), and promote the popularization of smart homes, industrial Internet of Things, and large-scale communications.
[0003] Currently, many companies have developed wireless chips for WiFi7. In order to optimize the test time during the production and testing of wireless chips, it is necessary to simplify hundreds of instructions in the test instruction set. However, deleting instructions will affect the relevant target instructions, resulting in inaccurate test results or test failures. Since there are many instructions in the test instruction set of the chip, if each instruction in the test instruction set is sequentially tested to determine whether it will affect the target instruction, the screening efficiency is low. Summary of the Invention
[0004] This application provides a method, device, and medium for screening dependent instructions to solve the problem of how to improve the screening efficiency of dependent instructions.
[0005] In a first aspect, a method for screening dependent instructions is provided. The method includes the following steps:
[0006] Step 1: Evenly split the test instruction set of the target chip into two parts of instructions;
[0007] Step 2: Store one part of the two parts of instructions in an instruction group, and determine whether the instructions in the instruction group will affect the target instruction;
[0008] Step 3: If it is determined that the instructions in the instruction group will not affect the target instruction, clear the instruction group, and store the other part of the two parts of instructions in the instruction group, and determine whether the instructions in the instruction group will affect the target instruction;
[0009] Step 4: If it is determined that the instructions in the instruction group will affect the target instruction, determine whether the number of instructions in the instruction group is 1;
[0010] Step 5: If the number of instructions is not 1, split the instructions in the instruction group into two parts of instructions, clear the instruction group, and return to Step 2;
[0011] Step 6. If the number of the instructions is 1, determine the instructions in the instruction group as the dependent instructions of the target instruction.
[0012] Optionally, determining whether the instructions in the instruction group affect the target instruction includes:
[0013] Sending the instructions in the instruction group and the target instruction to the target device, and receiving a first execution result of the target instruction;
[0014] If the first execution result contains a preset error message, determine that the instructions in the instruction group affect the target instruction.
[0015] Optionally, before sending the instructions in the instruction group and the target instruction to the target device and receiving the first execution result of the target instruction, the method further includes:
[0016] Saving configuration parameters input by a user in a configuration file;
[0017] Reading the configuration parameters from the configuration file, and connecting to the target device according to the configuration parameters.
[0018] Optionally, sending the instructions in the instruction group and the target instruction to the target device includes:
[0019] Sending the instructions in the instruction group to the target device, and receiving a first response result of the instruction group;
[0020] If the first response result contains an expected instruction line symbol, send the target instruction to the target device.
[0021] Optionally, after sending the instructions in the instruction group to the target device and receiving the first response result of the instruction group, the method further includes:
[0022] If the first response result does not contain an expected instruction line symbol, continue to send the instructions in the instruction group to the target device, and receive a second response result of the instruction group;
[0023] If the second response result does not contain an expected instruction line symbol, continue to send the instructions in the instruction group to the target device, and receive a third response result of the instruction group;
[0024] If the second response result or the third response result contains an expected instruction line symbol, send the target instruction to the target device.
[0025] Optionally, after continuing to send the instructions of the instruction group to the target device and receiving the third response result of the instruction group if the second response result does not include the expected instruction line symbol, the method further includes:
[0026] If the third response result does not include the expected instruction line symbol, a prompt message indicating that the instruction execution fails is displayed.
[0027] Optionally, after determining the instructions of the instruction group as the dependent instructions of the target instruction if the number of instructions is 1, the method further includes:
[0028] Record the dependent instructions in a log file;
[0029] Simplify the test instruction set according to the log file.
[0030] Optionally, before evenly splitting the test instruction set of the target chip into two parts of instructions, the method further includes:
[0031] Send the instructions of the test instruction set and the target instruction to the target device, and receive the second execution result of the target instruction;
[0032] If the second execution result includes a preset error message, it is determined that there are dependent instructions of the target instruction in the test instruction set.
[0033] In a second aspect, the present application provides a computer device, which includes a memory and a processor. A computer program is stored in the memory, and the processor executes the computer program to implement the method for screening dependent instructions described in the first aspect.
[0034] In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the processor executes the computer program to implement the method for screening dependent instructions described in the first aspect.
[0035] Compared with the prior art, the beneficial effects of the present application are as follows:
[0036] The present application provides a method for screening dependency instructions. The method includes the following steps: Step 1, evenly split the test instruction set of the target chip into two parts of instructions; Step 2, store one part of the two parts of instructions into an instruction group, and determine whether the instructions in the instruction group will affect the target instruction; Step 3, if it is determined that the instructions in the instruction group will not affect the target instruction, clear the instruction group, and store the other part of the two parts of instructions into the instruction group, and determine whether the instructions in the instruction group will affect the target instruction; Step 4: if it is determined that the instructions in the instruction group will affect the target instruction, determine whether the number of instructions in the instruction group is 1; Step 5, if the number of instructions is not 1, split the instructions in the instruction group into two parts of instructions, clear the instruction group, and return to Step 2; Step 6, if the number of instructions is 1, determine the instructions in the instruction group as the dependency instructions of the target instruction. By means of binary search, the present application evenly divides the test instruction set into two parts, gradually narrows the test scope, only needs to test a part of the instructions instead of all instructions, which can significantly improve the screening efficiency of the dependency instructions, reduce unnecessary test work, and quickly screen out the dependency instructions of the target instruction. Description of the Drawings
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to the provided drawings.
[0038] Figure 1 It is a schematic structural diagram of a computer device for the hardware operating environment involved in the solution of the embodiment of the present application;
[0039] Figure 2 It is a schematic flowchart of the method for screening dependency instructions provided by the embodiment of the present application;
[0040] Figure 3 It is a schematic diagram of parameter setting provided by the embodiment of the present application.
[0041] Reference signs in the figure: 101 - processor, 102 - communication bus, 103 - network interface, 104 - user interface, 105 - memory. Detailed Embodiments
[0042] To make the objectives, technical solutions, and advantages of this application clearer and more understandable, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all of them. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts belong to the scope of protection of this application. Without conflict, the embodiments in this application and the features in the embodiments can be combined arbitrarily with each other. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0043] To solve the problem of how to improve the screening efficiency of dependent instructions, an embodiment of this application provides a method for screening dependent instructions. This method can be executed by a computer device. Please refer to Figure 1 , which is a schematic structural diagram of a computer device for the hardware operating environment involved in the solution of the embodiment of this application.
[0044] As Figure 1 shown, the computer device may include: a processor 101, such as a Central Processing Unit (CPU), a communication bus 102, a user interface 104, a network interface 103, and a memory 105. Among them, the communication bus 102 is used to realize the connection and communication between these components. The user interface 104 may include a display screen (Display) and an input unit such as a keyboard (Keyboard). The user interface 104 may include a standard wired interface and a wireless interface. The network interface 103 may include a standard wired interface and a wireless interface (such as a Wireless-Fidelity (WI-FI) interface). The memory 105 may be a high-speed Random Access Memory (RAM) or a stable Non-Volatile Memory (NVM), such as a disk memory. Optionally, the memory 105 may also be a storage device independent of the aforementioned processor 101.
[0045] Those skilled in the art can understand that Figure 1 the structure shown in
[0046] does not constitute a limitation on the device, and may include more or fewer components than shown in the figure, or combine some components, or have different component arrangements. Figure 1 shown, the memory 105, as a storage medium, may include an operating system, a network communication module, a user interface module, and a dependent instruction screening device.
[0047] InFigure 1 In the computer device shown, the network interface 103 is mainly used for data communication with a network server; the user interface 104 is mainly used for data interaction with a user; the processor 101 and the memory 105 in the computer device of the present invention can be arranged in the computer device, and the computer device calls, through the processor 101, a screening device for dependent instructions stored in the memory 105 and executes the screening method for dependent instructions provided in the embodiments of the present application.
[0048] Based on Figure 1 the computer device shown, the following introduces Figure 2 a screening method for a dependent instruction shown.
[0049] S201: Evenly split the test instruction set of the target chip into two parts of instructions.
[0050] S202: Store one part of the two parts of instructions into an instruction group.
[0051] S203: Determine whether the instructions in the instruction group will affect the target instruction.
[0052] If it is determined that the instructions in the instruction group (i.e., one part of the two parts of instructions) will not affect the target instruction, then execute S204. If it is determined that the instruction group (i.e., one part of the two parts of instructions) will affect the target instruction, then execute S205.
[0053] S204: Clear the instruction group and store the other part of the two parts of instructions into the instruction group.
[0054] After executing S204, return to S203 to continue execution, that is, determine whether the instructions in the instruction group (i.e., the other part of the two parts of instructions) will affect the target instruction.
[0055] S205: Determine whether the number of instructions in the instruction group is 1.
[0056] If the number of instructions in the instruction group is 1, then execute S207 and determine the instruction in the instruction group as the dependent instruction of the target instruction. If the number of instructions in the instruction group is not 1, then execute S206 and split the instructions in the instruction group into two parts of instructions.
[0057] S206: Split the instructions in the instruction group into two parts of instructions and clear the instruction group.
[0058] After executing S206, return to S202 to continue execution.
[0059] S207: Determine the instruction in the instruction group as the dependent instruction of the target instruction.
[0060] Among them, the target chip can be any chip to be tested, such as the wireless WIFI chip BCM6764L of Broadcom. A dependent instruction refers to an instruction that has a dependency relationship with the target instruction during execution. The dependent instruction will affect the execution result of the target instruction. Only after the dependent instruction is executed completely can the target instruction be correctly executed.
[0061] In the specific implementation process, according to the idea of the dichotomy method, the test instruction set of the target chip is evenly split into two parts, that is, half of the test instruction set. First, determine whether a part of the instructions (for example, the lower half of the instructions) will affect the target instruction. If this part of the instructions (for example, the lower half of the instructions) does not affect the target instruction, then continue to determine whether the other part of the instructions (for example, the upper half of the instructions) will affect the target instruction. If this part of the instructions (for example, the lower half of the instructions) does not affect the target instruction, then this part of the instructions (for example, the lower half of the instructions) is evenly split into two parts, and gradually filtered until there is only one instruction.
[0062] In a possible embodiment, the specific steps for determining whether the instructions in the instruction group will affect the target instruction include:
[0063] Send the instructions in the instruction group and the target instruction to the target device, and receive the first execution result of the target instruction; if the first execution result contains a preset error message, it is determined that the instructions in the instruction group will affect the target instruction.
[0064] In the specific implementation process, after successfully sending the instruction group to the target device, then send the target instruction, receive the first execution result of the target instruction, and then read the error message preset by the user (such as Bad length) from the configuration file. If the first execution result contains the preset error message, it is determined that the execution of the target instruction is affected by the instruction group.
[0065] In a possible embodiment, before sending the instructions in the instruction group and the target instruction to the target device, it is necessary to establish a connection with the target device first. The specific connection steps are as follows:
[0066] Save the configuration parameters input by the user in the configuration file; read the configuration parameters from the configuration file and connect to the target device according to the configuration parameters.
[0067] Please refer to Figure 3, is a schematic diagram of parameter settings provided by an embodiment of this application. Users can set parameters in the interface, including the IP address of the target device (DutIP = 192.168.2.1), the port of the target device (DutPort = 23), the primary user name (User1 = admin) and password (Pwd1 = admin), the secondary user name (User2 = su) and password (Pwd2 = aDm8H%MdA), the login method (LoginMode = T), enabling the network card (EnableCard = T), the IP address of the network card (CardIp = 192.168.2.100), instruction set configuration, the line number of the target instruction in the set (TarCmdIndex = 154), the target instruction exception flag (TarCmdErr = bad length), entering the sh instruction line (ShCmd = T), and other configuration parameters. Among them, the target instruction exception flag is the preset error message.
[0068] When the content in the input box is not empty, after the user makes any changes, the program will automatically save it to the "setting.ini" configuration file according to the control name or identifier for subsequent use or loading. Each control (such as TextBox, ComboBox, etc.) is bound to a parameter key (such as CardIp, DutIp, etc.) in the configuration file. Modifying the control value will trigger a save event in real time. When the value of the control changes, the program listens for the change event (such as TextChanged or SelectedIndexChanged), maps it to the corresponding key (such as CardIp) through the identifier of the control (such as the Name property of the control), and saves the new value to a data structure in memory (such as Dictionary<string,string>), where the key is the name of the control (such as CardIp) and the value is the new value entered in the control.
[0069] Furthermore, during the device login process, the user first enters the network card IP address (CardIp), reads the relevant configuration parameters from the "setting.ini" configuration file using the network card IP address (CardIp) as the key (Key). If the CardIp entered by the user exists in the configuration file, the corresponding configuration parameters are obtained. If the CardIp entered by the user is invalid or does not exist in the configuration file, an error prompt is thrown. Finally, Telnet login or serial connection is performed using the configuration parameters read from the configuration file to connect to the target device.
[0070] In the embodiments of the present application, various configuration parameters are centrally managed through a configuration file. These configuration parameters can be dynamically adjusted according to different test requirements. Without modifying the code every time, only the configuration file needs to be updated, which reduces the operation complexity and can be flexibly used in different environments and test scenarios.
[0071] In a possible embodiment, the specific steps of sending the instructions of the instruction group and the target instruction to the target device include:
[0072] Send the instructions of the instruction group to the target device and receive the first response result of the instruction group; if the first response result contains the expected instruction line symbol, send the target instruction to the target device.
[0073] In the specific implementation process, the Telnet tool can be used to send the instructions of the instruction group to the target device, receive the returned response result, and read the expected instruction line symbols from the configuration file, such as #, >, $. Determine whether the returned response result contains the expected instruction line symbol. If so, it means that the instructions of the instruction group are successfully executed, and the Telnet tool can continue to send the target instruction to the target device.
[0074] Among them, the expected instruction line symbols are pre-set by the user and saved in the configuration file. Please continue to refer to Figure 3 , where Pwd1Symbol => means that the return symbol for the input of the first-level password during Telnet login is ">", and Pwd2Symbol = # means that the return symbol for the input of the second-level password during Telnet login is "#".
[0075] In the embodiments of the present application, by checking whether the response result contains the expected instruction line symbol, it can be confirmed that the target device has correctly received the instructions of the instruction group and started to execute. Only when a valid response is received, the target instruction is sent, which can avoid unnecessary incorrect executions.
[0076] In a possible embodiment, after sending the instructions of the instruction group to the target device and receiving the first response result of the instruction group, the method further includes the following steps:
[0077] If the first response result does not contain the expected instruction line symbol, continue to send the instructions of the instruction group to the target device and receive the second response result of the instruction group; if the second response result does not contain the expected instruction line symbol, continue to send the instructions of the instruction group to the target device and receive the third response result of the instruction group; if the second response result or the third response result contains the expected instruction line symbol, send the target instruction to the target device.
[0078] Considering that the device may be temporarily unavailable due to environmental factors (such as network interruption, hardware failure, etc.), resulting in the failure of instruction execution. In the embodiments of the present application, when the first response result does not contain the expected instruction line symbol, multiple retries can be performed to maximize the chance of successful instruction execution, avoid the failure of instruction execution due to temporary faults or delays, and significantly improve the stability and fault tolerance of the system.
[0079] In a possible embodiment, if the second response result does not contain the expected instruction line symbol, the method further includes: continuing to send the instructions of the instruction group to the target device, and after receiving the third response result of the instruction group.
[0080] If the third response result does not contain the expected instruction line symbol, a prompt message indicating the failure of instruction execution is displayed.
[0081] In the embodiments of the present application, if the response result of the instruction group does not meet the expectation, the instructions of the instruction group are tried to be sent repeatedly 3 times. If the three response results do not meet the expectation, the program operation is terminated and a prompt message is given. The system can also try to restart the Telnet connection to restore the test environment, so as to ensure that subsequent instructions can continue to be executed in a clean environment.
[0082] In a possible embodiment, after determining the dependent instructions of the target instruction, the method further includes:
[0083] Recording the dependent instructions in a log file; simplifying the test instruction set according to the log file.
[0084] In the specific implementation process, first, it is determined whether the logs folder exists. If it does not exist, the logs folder is created first. Secondly, the SaveLogToLocal method is called and the file path (such as logs / logfile.rtf) is passed in. Then, it is judged whether the current thread is the UI thread. If not, it is switched to the UI thread. Then, the content of the control is saved as an rtf file using RichTextBox.SaveFile. If the saving is successful, the log will be stored in the specified path in rtf format; otherwise, an exception is caught when the saving fails to avoid program crash.
[0085] In the embodiment of the present application, all dependent instructions that affect the target instruction will be recorded, and finally a list containing all the dependent instructions that affect the target instruction will be returned. Whether the software finds the dependent instructions or not, the content displayed in the RichTextBox control will be saved as an rtf format file in the end, and cross-thread calls (thread-safe) are supported. The log file will be saved to the specified path, which can be used by the user to record test logs or print information. Also, according to the dependent instructions in the log file, the test instruction set of the target chip can be simplified, thereby saving the sending time of test instructions, optimizing the test efficiency of the chip, and improving the production efficiency of the chip.
[0086] In a possible embodiment, before splitting the test instruction set of the target chip into two groups of instructions, the instruction of the test instruction set and the target instruction can be sent to the target device, and the second execution result of the target instruction can be received; if the second execution result contains a preset error message, it is determined that there are dependent instructions of the target instruction in the test instruction set.
[0087] In the specific implementation process, the Telnet tool can be used to send the instruction of the test instruction set to the target device first. If the returned response result contains the expected command line symbol, it is determined that the execution is successful. Then, the Telnet tool is used to send the target instruction to the target device. If the execution result of the target instruction contains a preset error message (such as Bad length), it is determined that there are dependent instructions of the target instruction in the test instruction set.
[0088] In the embodiment of the present application, the entire test instruction set is tested first to determine whether there are dependent instructions of the target instruction in the test instruction set. If there are, S201 - S207 are executed; if not, S201 - S207 do not need to be executed, which can avoid invalid splitting and screening work.
[0089] The method for screening dependent instructions provided by the embodiment of the present application can be called through the API interface and accepts the following three parameters, including TelnetUtil telnetUtil, List <string>allCommands and int targetCommandIndex, where TelnetUtil telnetUtil is a utility class for sending commands via Telnet, List <string>allCommands contains a list of all the instructions that need to be tested, that is, the test instruction set of the target chip, and int targetCommandIndex is the index of the target instruction.
[0090] The dependency instruction screening method provided by the embodiments of this application finally returns a list, including all the dependency instructions that affect the execution of the target instruction.
[0091] In summary, the embodiments of this application provide a method for screening dependency instructions, which divides all instructions into two parts for testing, gradually narrowing down the scope until only a few instructions remain. This process is similar to the idea of binary search. Each time, by judging whether a certain part of the instructions will affect the target instruction, it is decided which part of the instructions to continue testing. The beneficial effects are as follows:
[0092] 1. Efficient instruction search
[0093] By means of binary search, the instruction list is divided into two parts, gradually narrowing down the scope. Only a part of the instructions need to be tested instead of all instructions, which can significantly improve the efficiency and reduce unnecessary tests.
[0094] 2. Exception handling and fault tolerance mechanism
[0095] Each instruction checks its return result when executed and records it in the log file when an error occurs. If an irrecoverable error is encountered, the system will automatically restart the Telnet connection and continue to execute the subsequent instructions to ensure that the test environment is always in a normal state.
[0096] 3. Flexible configuration and dynamic adjustment
[0097] The setting configuration items are used in the code to control some parameters (such as LoginMode, Pwd1Symbol, Pwd2Symbol, etc.). These configuration parameters can be dynamically adjusted according to different test requirements. This makes the code flexible to use in different environments and test scenarios.
[0098] 4. Scalability
[0099] The current implementation supports binary search for the instruction list, but in the future, it can be further optimized. For example, it can support parallel testing of multiple instructions, or dynamically adjust the splitting strategy according to historical data to further improve the efficiency.
[0100] 5. Log file recording and analysis
[0101] When each instruction is executed, the execution result and error information are recorded. This can help with debugging and analyzing which instructions caused the failure of the target instruction. In addition, the log file information can also be used for subsequent performance analysis and troubleshooting.
[0102] In addition, in one embodiment, the present application further provides a computer device, which includes a processor, a memory, and a computer program stored in the memory. When the computer program is run by the processor, the foregoing method for screening dependent instructions is implemented.
[0103] In addition, in one embodiment, the present application further provides a computer storage medium, on which a computer program is stored. When the computer program is run by the processor, the foregoing method for screening dependent instructions is implemented.
[0104] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disc, or CD-ROM; or may be various devices including one or any combination of the foregoing memories. The computer may be various computing devices including smart terminals and servers.
[0105] In some embodiments, the executable instructions may be in the form of a program, software, software module, script, or code, and may be written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including being deployed as an independent program or being deployed as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0106] As an example, the executable instructions may or may not correspond to a file in the file system, and may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, stored in a single file dedicated to the program being discussed, or, stored in multiple cooperating files (for example, files that hold one or more modules, subroutines, or portions of code).
[0107] As an example, the executable instructions may be deployed to execute on one computing device, or on multiple computing devices located at one location, or, on multiple computing devices distributed at multiple locations and interconnected by a communication network.
[0108] It should be noted that in this text, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article or system comprising a series of elements not only includes those elements but also other elements not expressly listed, or elements inherent to such process, method, article or system. Without further limitation, an element defined by the statement "comprising one..." does not exclude the presence of additional identical elements in the process, method, article or system comprising such element.
[0109] The serial numbers of the embodiments of the present application above are only for description and do not represent the superiority or inferiority of the embodiments.
[0110] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as a read-only memory / random access memory, magnetic disk, optical disk) and includes several instructions for causing a multimedia terminal device to execute the methods described in the various embodiments of the present application.
[0111] The above are only the preferred embodiments of the present application and do not limit the patent scope of the present application accordingly. Any equivalent structural or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.< / string> < / string>
Claims
1. A method for screening dependent instructions, characterized in that: The method comprises the following steps: Step 1: Split the test instruction set of the target chip into two parts of instructions evenly; Step 2: storing one of the two parts of instructions into an instruction group, and determining whether the instructions of the instruction group will affect the target instruction; Step 3: If it is determined that the instructions of the instruction group will not affect the target instruction, the instruction group is cleared, and the other part of the two parts of instructions is stored in the instruction group to determine whether the instructions of the instruction group will affect the target instruction; Step 4: If it is determined that the instruction of the instruction group will affect the target instruction, determine whether the number of instructions of the instruction group is 1; Step 5: If the number of instructions is not 1, split the instructions of the instruction group into two parts, clear the instruction group, and return to step 2; Step 6: If the number of instructions is 1, determine the instructions of the instruction group as dependent instructions of the target instruction.
2. The method for screening dependent instructions according to claim 1, characterized in that: The determining whether the instruction of the instruction group will affect the target instruction includes: Sending the instruction of the instruction group and the target instruction to the target device, and receiving a first execution result of the target instruction; If the first execution result includes preset error information, it is determined that the instructions of the instruction group will affect the target instruction.
3. The method for screening dependent instructions according to claim 2, characterized in that: Before sending the instruction of the instruction group and the target instruction to the target device and receiving the first execution result of the target instruction, the method further includes: Save the configuration parameters entered by the user in the configuration file; The configuration parameters are read from the configuration file, and a connection is established with the target device according to the configuration parameters.
4. The method for screening dependent instructions according to claim 2, characterized in that: The step of sending the instruction of the instruction group and the target instruction to the target device comprises: Sending the command of the command group to the target device, and receiving the first response result of the command group; If the first response result includes the expected instruction line symbol, the target instruction is sent to the target device.
5. The method for screening dependent instructions according to claim 4, characterized in that: After sending the instruction of the instruction group to the target device and receiving the first response result of the instruction group, the method further includes: If the first response result does not include the expected instruction line symbol, continue to send the instruction of the instruction group to the target device and receive the second response result of the instruction group; If the second response result does not include the expected instruction line symbol, continue to send the instruction of the instruction group to the target device and receive the third response result of the instruction group; If the second response result or the third response result includes the expected instruction line symbol, the target instruction is sent to the target device.
6. The method for screening dependent instructions according to claim 5, characterized in that: If the second response result does not include the expected instruction line symbol, then continue to send the instruction of the instruction group to the target device, and after receiving the third response result of the instruction group, the method further includes: If the third response result does not include the expected instruction line symbol, a prompt message indicating that the instruction execution failed is displayed.
7. The method for screening dependent instructions according to claim 1, characterized in that: If the number of instructions is 1, after determining the instruction of the instruction group as a dependent instruction of the target instruction, the method further includes: Recording the dependency instructions into a log file; The test instruction set is simplified according to the log file.
8. The method for screening dependent instructions according to claim 1, characterized in that: Before evenly splitting the test instruction set of the target chip into two parts of instructions, the method further includes: Sending the instructions of the test instruction set and the target instruction to the target device, and receiving a second execution result of the target instruction; If the second execution result includes preset error information, it is determined that there are dependent instructions of the target instruction in the test instruction set.
9. A computer device, characterized in that: The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method for screening dependent instructions as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the processor executes the computer program to implement the method for screening dependent instructions according to any one of claims 1 to 8.
Citation Information
Patent Citations
Built-in equipment based data search method and apparatus, and built-in equipment thereof
CN101477550A
Distributed asynchronous task scheduling method and device, computer equipment and storage medium
CN115357352A
Instruction management method and device, computer, storage medium and program product
CN116841592A
Data processing method and device, equipment, medium and product
CN118467388A
Cited By
Failure positioning method and device in chip simulation test and program product
CN120805839A