A chip verification method, apparatus, device, and storage medium
By generating and comparing the state information in the frame sequence, the training parameters are automatically adjusted, which solves the problem of long time and low efficiency caused by manual configuration in chip verification, and realizes chip verification with rapid determination of training parameters.
Patent Information
- Application Number
- CN202311381731.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-10-24
AI Technical Summary
During the process of verifying chips based on UVM, due to the uncertainty of configuration type and parameters, technicians need to manually configure parameters repeatedly, resulting in long chip verification simulation time and low efficiency.
By generating a frame sequence containing state configuration information and desired state information, comparing them to determine training parameters, and automatically adjusting the initial training parameters until a match is achieved, chip verification is realized.
No manual configuration is required; training parameters can be quickly determined, reducing verification simulation time and improving chip verification efficiency.
Smart Images

Figure CN117436377B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and in particular to a chip verification method, apparatus, device, and storage medium. Background Technology
[0002] With the continuous improvement of integrated circuit theory and the emergence of System-on-Chips (SoCs), engineers have higher requirements for chip functionality and design efficiency. As chips become increasingly larger, chip verification plays an increasingly important role in the entire chip development process. Chip verification is now considered an indispensable part of chip development, effectively verifying whether the chip's functionality meets requirements. Universal Verification Methodology (UVM) is a verification platform development framework that engineers can use to build functional verification environments with standardized hierarchical structures and interfaces. The emergence of UVM has facilitated chip verification.
[0003] Currently, in the process of verifying chips based on UVM, due to the uncertainty of configuration types and parameters, technicians still need to manually configure parameters repeatedly to obtain the correct instructions for chip verification. Because obtaining the correct instructions relies on manual configuration by technicians, it is difficult to quickly obtain the correct commands, resulting in longer chip verification simulation times and reduced verification efficiency. Summary of the Invention
[0004] This application provides a chip verification method, apparatus, device, and storage medium, aiming to solve the problem of low chip verification efficiency.
[0005] To achieve the above objectives, this application adopts the following technical solution:
[0006] Firstly, this application provides a chip verification method, including:
[0007] Based on the initial training parameters, a first frame sequence is generated. The first frame sequence contains state configuration information and expected state information. The state configuration information is used to instruct the chip under test to generate a second frame sequence.
[0008] The desired state information in the first frame sequence is compared with the state information in the second frame sequence to obtain the comparison result;
[0009] Based on the comparison results, the training parameters are determined;
[0010] The chip under test is verified based on the training parameters.
[0011] In one possible implementation, the comparison result is that the expected state information in the first frame sequence is inconsistent with the state information in the second frame sequence, and the training parameters determined based on the comparison result include:
[0012] Based on the comparison results, the state information in the second frame sequence that is different from the expected state information is identified as error information.
[0013] Based on the error information, the initial training parameters are adjusted to obtain the adjusted parameters;
[0014] Based on the adjusted parameters, a third frame sequence is generated. The third frame sequence contains adjusted state configuration information and adjusted desired state information. The adjusted state configuration information is used to instruct the chip under test to generate a fourth frame sequence.
[0015] The adjusted desired state information in the third frame sequence is compared with the state information in the fourth frame sequence to obtain the adjusted comparison result.
[0016] When the adjusted comparison result is consistent with the adjusted expected state information in the third frame sequence and the state information in the fourth frame sequence, the adjusted parameters are determined as the training parameters.
[0017] In one possible implementation, the comparison result is that the expected state information in the first frame sequence is consistent with the state information in the second frame sequence, and the step of determining the training parameters based on the comparison result includes:
[0018] The initial training parameters are determined as the training parameters.
[0019] In one possible implementation, the expected state information in the first frame sequence includes information about the command bit field and information about the state bit field in the first frame sequence; the state information in the second frame sequence includes information about the command bit field and information about the state bit field in the second frame sequence; and the step of comparing the expected state information in the first frame sequence with the state information in the second frame sequence to obtain a comparison result includes:
[0020] The information of the command bit field in the first frame sequence is compared with the information of the command bit field in the second frame sequence;
[0021] When the information of the command bit field in the first frame sequence is consistent with the information of the command bit field in the second frame sequence, the information of the status bit field in the first frame sequence is compared with the information of the status bit field in the second frame sequence to obtain the comparison result.
[0022] In one possible implementation, after comparing the information of the command bit field in the first frame sequence with the information of the command bit field in the second frame sequence, the method further includes:
[0023] When the information of the command bit field in the first frame sequence is inconsistent with the information of the command bit field in the second frame sequence, the initial training parameters are adjusted.
[0024] In one possible implementation, before generating the first training frame sequence based on the initial training parameters, the method further includes:
[0025] In response to a configuration instruction, the initial training parameters are generated, the configuration instruction including the type of the frame sequence.
[0026] In one possible implementation, the type of the frame sequence includes at least one of a second idle sequence IDLE2, a third idle sequence IDLE3, and a distributed management environment sequence DME.
[0027] Second aspect: This application provides a chip verification apparatus, including:
[0028] The system includes a generation unit, a comparison unit, a determination unit, and a verification unit.
[0029] The generation unit is used to generate a first frame sequence based on initial training parameters. The first frame sequence contains state configuration information and expected state information. The state configuration information is used to instruct the chip under test to generate a second frame sequence.
[0030] The comparison unit is used to compare the desired state information in the first frame sequence with the state information in the second frame sequence to obtain a comparison result.
[0031] The determining unit is used to determine training parameters based on the comparison results;
[0032] The verification unit is used to verify the chip under test based on the training parameters.
[0033] In one possible implementation, the comparison result is that the expected state information in the first frame sequence is inconsistent with the state information in the second frame sequence, and the determining unit includes:
[0034] The unit comprises a first determining subunit, a first obtaining subunit, a first generating subunit, a first comparing subunit, and a second determining subunit.
[0035] The first determining subunit is used to determine, based on the comparison result, the state information in the state information of the second frame sequence that is different from the expected state information as error information;
[0036] The first obtaining unit is used to adjust the initial training parameters based on the error information to obtain the adjusted parameters;
[0037] The first generation subunit is used to generate a third frame sequence based on the adjusted parameters. The third frame sequence contains adjusted state configuration information and adjusted desired state information. The adjusted state configuration information is used to instruct the chip under test to generate a fourth frame sequence.
[0038] The first comparison subunit is used to compare the adjusted desired state information in the third frame sequence with the state information in the fourth frame sequence to obtain the adjusted comparison result.
[0039] The second determining subunit is used to determine the adjusted parameters as the training parameters when the adjusted comparison result is the adjusted expected state information in the third frame sequence, which is consistent with the state information in the fourth frame sequence.
[0040] In one possible implementation, the comparison result is that the expected state information in the first frame sequence is consistent with the state information in the second frame sequence, and the determining unit includes: a third determining subunit;
[0041] The third determining subunit is used to determine the initial training parameters as the training parameters.
[0042] In one possible implementation, the desired state information in the first frame sequence includes information about the command bit field and information about the state bit field in the first frame sequence, and the state information in the second frame sequence includes information about the command bit field and information about the state bit field in the second frame sequence. The obtaining unit includes: a second comparison subunit and a second obtaining unit.
[0043] The second comparison subunit is used to compare the information of the command bit field in the first frame sequence with the information of the command bit field in the second frame sequence;
[0044] The second obtaining unit is used to compare the information of the state bit field in the first frame sequence with the information of the state bit field in the second frame sequence when the information of the command bit field in the first frame sequence is consistent with the information of the command bit field in the second frame sequence, and obtain the comparison result.
[0045] In one possible implementation, the apparatus further includes: a transmitting unit;
[0046] The sending unit is used to adjust the initial training parameters when the information of the command bit field in the first frame sequence is inconsistent with the information of the command bit field in the second frame sequence.
[0047] In one possible implementation, the apparatus further includes: a second generation subunit;
[0048] The second generation subunit is configured to generate the initial training parameters in response to a configuration instruction, the configuration instruction including the type of the frame sequence.
[0049] In one possible implementation, the type of the frame sequence includes at least one of a second idle sequence IDLE2, a third idle sequence IDLE3, and a distributed management environment sequence DME.
[0050] Third aspect: This application provides a computer device, the computer device including: a processor and a memory;
[0051] The memory is used to store program code and transmit the program code to the processor;
[0052] The processor is used to execute the steps of a chip verification method as described above, according to the instructions in the program code.
[0053] Fourthly, this application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of a chip verification method as described above.
[0054] Compared with the prior art, this application has the following beneficial effects:
[0055] This application provides a chip verification method, apparatus, device, and storage medium. The method involves generating a first frame sequence based on initial training parameters. This first frame sequence contains state configuration information and desired state information. The state configuration information instructs the chip under test (DUT) to generate a second frame sequence. The desired state information in the first frame sequence is compared with the state information in the second frame sequence to obtain a comparison result. Training parameters are determined based on the comparison result. The DUT is then verified based on these training parameters. In this application, the training parameters can be determined through the comparison result, eliminating the need for manual configuration. This allows for rapid determination of training parameters, shortens verification simulation time, and effectively improves the efficiency of chip verification. Attached Figure Description
[0056] Figure 1 This is a schematic diagram of a chip verification scenario provided in an embodiment of this application;
[0057] Figure 2A flowchart of a chip verification method provided in this application embodiment;
[0058] Figure 3 A flowchart of parameter adjustment provided in an embodiment of this application;
[0059] Figure 4 A flowchart illustrating another parameter adjustment provided in this application embodiment;
[0060] Figure 5 This is a schematic diagram of the structure of a chip verification device provided in an embodiment of this application. Detailed Implementation
[0061] The terms "first," "second," and "third," etc., used in this application specification, claims, and drawings are used to distinguish different objects, not to limit a specific order.
[0062] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0063] Currently, in the process of verifying chips based on UVM, due to the uncertainty of configuration type and configuration parameters, technicians still need to manually configure parameters repeatedly to obtain matching training parameters for chip verification. Because determining the matching training parameters relies on manual configuration by technicians, it is difficult to quickly obtain these matching training parameters, resulting in longer chip verification simulation times and reduced verification efficiency.
[0064] Based on this, this application provides a method, apparatus, device, and storage medium for chip verification. The method involves generating a first frame sequence based on initial training parameters. The first frame sequence contains state configuration information and desired state information. The state configuration information instructs the chip under test (DUT) to generate a second frame sequence. The desired state information in the first frame sequence is compared with the state information in the second frame sequence to obtain a comparison result. Training parameters are determined based on the comparison result. The DUT is then verified based on the training parameters. In this application, the training parameters can be determined through the comparison result, eliminating the need for manual configuration. This allows for rapid determination of training parameters, shortens verification simulation time, and effectively improves the efficiency of chip verification.
[0065] The following is combined with Figure 1 This application introduces an application scenario for chip verification. Figure 1 This is a schematic diagram of a chip verification scenario provided in an embodiment of this application.
[0066] like Figure 1 As shown, the UVM is equipped with a configuration management module, a first verification module, a module under test, and a second verification module. The configuration management module sends initial training parameters to the first verification module. After obtaining the initial training parameters, the first verification module generates a first frame sequence based on these parameters. The first verification module then sends this first frame sequence to the module under test and the second verification module.
[0067] In this application, the Device Under Test (DUT) can be a chip under test. Based on the first frame sequence, the chip can output a second frame sequence containing state information, and send the second frame sequence to a second verification module. The second verification module can compare the second frame sequence with the first frame sequence to detect whether the state information in the second frame sequence is consistent with the expected state information in the first frame sequence.
[0068] If the state information in the second frame sequence is inconsistent with the expected state information in the first frame sequence, it means that the initial training parameters can be determined as the training parameters after training is completed. Based on these training parameters, the chip can be verified.
[0069] If the state information in the second frame sequence is inconsistent with the expected state information in the first frame sequence, it indicates that matching training parameters have not been obtained. In one possible implementation, the second verification module can send an adjustment command to the configuration management module based on the inconsistency. The configuration management module responds to the adjustment command, adjusts the initial training parameters, obtains the adjusted parameters, and repeats the above process based on these adjusted parameters until the second verification module, when comparing the frame sequence output by the chip with the frame sequence output by the first verification module, detects that the state information in the chip's output frame sequence matches the expected state information in the frame sequence output by the first verification module. Training is then complete, and the adjusted parameters at this point are determined as the training parameters. The chip is then verified based on these training parameters.
[0070] The following is combined with Figure 2 This application introduces a chip verification method. Figure 2 This is a flowchart of a chip verification method provided in an embodiment of this application, including steps S101-S104.
[0071] S101. Generate the first frame sequence based on the initial training parameters.
[0072] The first frame sequence contains state configuration information and desired state information. The state configuration information is used to instruct the chip under test to generate the second frame sequence.
[0073] For example, such as Figure 2 As shown in the figure, this is a schematic diagram of a frame sequence structure provided in an embodiment of this application. The frame sequence can store state configuration information and expected state information. Based on the initial training parameters, the parameters of each bit field in the frame sequence can be determined, thereby generating the first frame sequence.
[0074] For example, bits 25 to 27 in the frame sequence structure are used to indicate the length of data that can be received. For instance, if the initial training parameters indicate that the current received data length needs to be maintained, bits 25 to 27 in the generated first frame sequence can be 0b000; if the initial training parameters indicate that reception needs to be in 1x mode, bits 25 to 27 in the generated first frame sequence can be 0b001; if the initial training parameters indicate that reception needs to be in 2x mode, bits 25 to 27 in the generated first frame sequence can be 0b010; and if the initial training parameters indicate that reception needs to be in 4x mode, bits 25 to 27 in the generated first frame sequence can be 0b011.
[0075] In one possible implementation, before generating the first training frame sequence based on the initial training parameters, the method further includes: generating the initial training parameters in response to a configuration instruction, wherein the configuration instruction contains the type of the frame sequence.
[0076] The frame sequence type includes at least one of the following: second idle sequence IDLE2, third idle sequence IDLE3, and distributed management environment sequence DME.
[0077] Specifically, different frame sequence types correspond to different initial training parameters. In this embodiment, initial training parameters are generated based on configuration instructions that include the type of frame sequence to determine the training parameters and verify the chip. In this process, different types of frame sequences can be adapted.
[0078] S102. Compare the desired state information in the first frame sequence with the state information in the second frame sequence to obtain the comparison result.
[0079] Specifically, the expected state information in the first frame sequence represents the expected output state information of the chip after processing the first frame sequence. This expected state information is compared with the state information in the second frame sequence. That is, the expected state information is compared with the actual output state information of the chip after processing the first frame sequence to obtain a comparison result. If the expected state information matches the state information in the second frame sequence, it indicates that the initial training parameters are matching training parameters, and the chip can be verified based on these matching training parameters. If the expected state information does not match the state information in the second frame sequence, it indicates that the initial training parameters are mismatched training parameters, and these initial training parameters can be adjusted to obtain matching training parameters.
[0080] S103. Based on the comparison results, determine the training parameters.
[0081] In one possible implementation, if the comparison result shows that the expected state information in the first frame sequence is inconsistent with the state information in the second frame sequence, the initial training parameters can be adjusted based on the comparison result to obtain matching training parameters. For example... Figure 3 As shown, this figure is a flowchart of parameter adjustment provided in an embodiment of this application.
[0082] S201. Based on the comparison result, the state information in the second frame sequence that is different from the expected state information is determined as error information.
[0083] Specifically, based on the comparison results, it can be determined which bit field in the second frame sequence has a state information that is inconsistent with the expected state information. Then, the initial training parameters can be adjusted based on the state information of that bit field. That is, after identifying the error information, step S202 is executed to adjust the initial training parameters based on the error information, thereby obtaining the adjusted parameters.
[0084] S203. Based on the adjusted parameters, generate the third frame sequence.
[0085] The third frame sequence contains adjusted state configuration information and adjusted desired state information. The adjusted state configuration information is used to instruct the chip under test to generate a fourth frame sequence.
[0086] S204. The adjusted desired state information in the third frame sequence is compared with the state information in the fourth frame sequence to obtain the adjusted comparison result.
[0087] Specifically, in this application, adjustment can be made only for error information. That is, for the bit field corresponding to the state information that is inconsistent with the expected state information in the second frame sequence, the adjusted expected state information in the third frame sequence is compared with the state information in the fourth frame sequence. If they are inconsistent, the above steps are repeated until the expected state information is consistent with the state information in the frame sequence output by the chip.
[0088] S205. When the adjusted comparison result is consistent with the adjusted expected state information in the third frame sequence and the state information in the fourth frame sequence, the adjusted parameters are determined as the training parameters. Therefore, S104 can be executed to verify the chip under test based on the training parameters.
[0089] In one possible implementation, the expected state information in the first frame sequence is compared with the state information in the second frame sequence to obtain a comparison result. If the comparison result shows that the expected state information in the first frame sequence is consistent with the state information in the second frame sequence, it indicates that the initial training parameter is the matching training parameter. The initial training parameter can be directly determined as the training parameter to verify the chip.
[0090] In one possible implementation, the expected state information in the first frame sequence includes information about the command bit field and information about the state bit field in the first frame sequence, and the state information in the second frame sequence includes information about the command bit field and information about the state bit field in the second frame sequence. The step of comparing the expected state information in the first frame sequence with the state information in the second frame sequence to obtain a comparison result includes: comparing the information about the command bit field in the first frame sequence with the information about the command bit field in the second frame sequence; when the information about the command bit field in the first frame sequence matches the information about the command bit field in the second frame sequence, comparing the information about the state bit field in the first frame sequence with the information about the state bit field in the second frame sequence to obtain a comparison result.
[0091] Specifically, by comparing the information of the command bit field in the first frame sequence with the information of the command bit field in the second frame sequence, it can be determined whether the chip has been configured. That is, if the information of the command bit field in the first frame sequence is consistent with the information of the command bit field in the second frame sequence, it means that the chip has been configured. The information of the status bit field in the first frame sequence can be compared with the information of the status bit field in the second frame sequence to avoid detecting the information of the status bit field when the chip has not been successfully configured.
[0092] In one possible implementation, after comparing the information of the command bit field in the first frame sequence with the information of the command bit field in the second frame sequence, the method further includes:
[0093] When the information of the command bit field in the first frame sequence is inconsistent with the information of the command bit field in the second frame sequence, the initial training parameters are adjusted.
[0094] like Figure 4 As shown, this figure is a flowchart of another chip verification method provided in an embodiment of this application. Similar to the above... Figure 2 The difference is that S102 can be specifically implemented through S301-S303.
[0095] S301. Compare the information of the command bit field in the first frame sequence with the information of the command bit field in the second frame sequence. If they match, proceed to S302. Compare the information of the state bit field in the first frame sequence with the information of the state bit field in the second frame sequence to obtain a comparison result. If they do not match, proceed to S303. Adjust the initial training parameters to regenerate the first frame sequence and configure the chip based on the first frame sequence.
[0096] Specifically, if the information in the command bit field in the first frame sequence is inconsistent with the information in the command bit field in the second frame sequence, it indicates that the chip has not been configured and the newly generated first frame sequence needs to be input into the chip to reconfigure the chip.
[0097] In summary, this application provides a chip verification method. It generates a first frame sequence based on initial training parameters. The first frame sequence contains state configuration information and desired state information. The state configuration information instructs the chip under test to generate a second frame sequence. The desired state information in the first frame sequence is compared with the state information in the second frame sequence to obtain a comparison result. Training parameters are determined based on the comparison result. The chip under test is then verified based on the training parameters. In this application, the training parameters can be adjusted from the initial training parameters using the comparison result to obtain the required training parameters for chip verification. This process eliminates the need for manual configuration, allows for rapid determination of training parameters, shortens verification simulation time, and effectively improves the efficiency of chip verification.
[0098] This application provides a chip verification device, see [link to relevant documentation] Figure 5 The figure is a schematic diagram of the structure of a chip verification device provided in an embodiment of this application. Its specific implementation method is consistent with the implementation method and the technical effect achieved in the embodiments of the above method. Some contents will not be repeated.
[0099] Specifically, a chip verification device 1100 includes a generation unit 1101, a comparison unit 1102, a determination unit 1103, and a verification unit 1104;
[0100] The generation unit 1101 is used to generate a first frame sequence based on initial training parameters. The first frame sequence contains state configuration information and expected state information. The state configuration information is used to instruct the chip under test to generate a second frame sequence.
[0101] The comparison unit 1102 is used to compare the expected state information in the first frame sequence with the state information in the second frame sequence to obtain a comparison result;
[0102] The determining unit 1103 is used to determine training parameters based on the comparison results;
[0103] The verification unit 1104 is used to verify the chip under test based on the training parameters.
[0104] In one possible implementation, the comparison result is that the expected state information in the first frame sequence is inconsistent with the state information in the second frame sequence, and the determining unit includes:
[0105] The unit comprises a first determining subunit, a first obtaining subunit, a first generating subunit, a first comparing subunit, and a second determining subunit.
[0106] The first determining subunit is used to determine, based on the comparison result, the state information in the state information of the second frame sequence that is different from the expected state information as error information;
[0107] The first obtaining unit is used to adjust the initial training parameters based on the error information to obtain the adjusted parameters;
[0108] The first generation subunit is used to generate a third frame sequence based on the adjusted parameters. The third frame sequence contains adjusted state configuration information and adjusted desired state information. The adjusted state configuration information is used to instruct the chip under test to generate a fourth frame sequence.
[0109] The first comparison subunit is used to compare the adjusted desired state information in the third frame sequence with the state information in the fourth frame sequence to obtain the adjusted comparison result.
[0110] The second determining subunit is used to determine the adjusted parameters as the training parameters when the adjusted comparison result is the adjusted expected state information in the third frame sequence, which is consistent with the state information in the fourth frame sequence.
[0111] In one possible implementation, the comparison result is that the expected state information in the first frame sequence is consistent with the state information in the second frame sequence, and the determining unit includes: a third determining subunit;
[0112] The third determining subunit is used to determine the initial training parameters as the training parameters.
[0113] In one possible implementation, the desired state information in the first frame sequence includes information about the command bit field and information about the state bit field in the first frame sequence, and the state information in the second frame sequence includes information about the command bit field and information about the state bit field in the second frame sequence. The obtaining unit includes: a second comparison subunit and a second obtaining unit.
[0114] The second comparison subunit is used to compare the information of the command bit field in the first frame sequence with the information of the command bit field in the second frame sequence;
[0115] The second obtaining unit is used to compare the information of the state bit field in the first frame sequence with the information of the state bit field in the second frame sequence when the information of the command bit field in the first frame sequence is consistent with the information of the command bit field in the second frame sequence, and obtain the comparison result.
[0116] In one possible implementation, the apparatus further includes: a transmitting unit;
[0117] The sending unit is used to adjust the initial training parameters when the information of the command bit field in the first frame sequence is inconsistent with the information of the command bit field in the second frame sequence.
[0118] In one possible implementation, the apparatus further includes: a second generation subunit;
[0119] The second generation subunit is configured to generate the initial training parameters in response to a configuration instruction, the configuration instruction including the type of the frame sequence.
[0120] In one possible implementation, the type of the frame sequence includes at least one of a second idle sequence IDLE2, a third idle sequence IDLE3, and a distributed management environment sequence DME.
[0121] In summary, this application provides a chip verification device that generates a first frame sequence based on initial training parameters. The first frame sequence contains state configuration information and desired state information. The state configuration information instructs the chip under test to generate a second frame sequence. The desired state information in the first frame sequence is compared with the state information in the second frame sequence to obtain a comparison result. Training parameters are determined based on the comparison result. The chip under test is then verified based on the training parameters. In this application, the training parameters can be adjusted from the initial training parameters using the comparison result to obtain the correct training parameters for chip verification. This eliminates the need for manual configuration, allows for rapid determination of training parameters, shortens verification simulation time, and effectively improves the efficiency of chip verification.
[0122] This application provides a computer device, the computer device including: a processor and a memory;
[0123] The memory is used to store program code and transmit the program code to the processor;
[0124] The processor is used to execute the steps of a chip verification method as described above, according to the instructions in the program code.
[0125] This application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of a chip verification method as described above.
[0126] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A chip verification method, characterized in that, include: Based on the initial training parameters, a first frame sequence is generated. The first frame sequence contains state configuration information and expected state information. The state configuration information is used to instruct the chip under test to generate a second frame sequence. The desired state information in the first frame sequence is compared with the state information in the second frame sequence to obtain the comparison result; Based on the comparison results, the training parameters are determined; The chip under test is verified based on the training parameters. The expected state information in the first frame sequence includes information from the command bit field and information from the state bit field in the first frame sequence. The state information in the second frame sequence includes information from the command bit field and information from the state bit field in the second frame sequence. The step of comparing the expected state information in the first frame sequence with the state information in the second frame sequence to obtain a comparison result includes: The information of the command bit field in the first frame sequence is compared with the information of the command bit field in the second frame sequence; When the information of the command bit field in the first frame sequence is consistent with the information of the command bit field in the second frame sequence, the information of the status bit field in the first frame sequence is compared with the information of the status bit field in the second frame sequence to obtain the comparison result.
2. The method according to claim 1, characterized in that, The comparison result is that the expected state information in the first frame sequence is inconsistent with the state information in the second frame sequence. The training parameters determined based on the comparison result include: Based on the comparison results, the state information in the second frame sequence that is different from the expected state information is identified as error information. Based on the error information, the initial training parameters are adjusted to obtain the adjusted parameters; Based on the adjusted parameters, a third frame sequence is generated. The third frame sequence contains adjusted state configuration information and adjusted desired state information. The adjusted state configuration information is used to instruct the chip under test to generate a fourth frame sequence. The adjusted desired state information in the third frame sequence is compared with the state information in the fourth frame sequence to obtain the adjusted comparison result; When the adjusted comparison result is consistent with the adjusted expected state information in the third frame sequence and the state information in the fourth frame sequence, the adjusted parameters are determined as the training parameters.
3. The method according to claim 1, characterized in that, The comparison result is that the expected state information in the first frame sequence is consistent with the state information in the second frame sequence. The step of determining the training parameters based on the comparison result includes: The initial training parameters are determined as the training parameters.
4. The method according to claim 1, characterized in that, After comparing the information of the command bit field in the first frame sequence with the information of the command bit field in the second frame sequence, the method further includes: When the information of the command bit field in the first frame sequence is inconsistent with the information of the command bit field in the second frame sequence, the initial training parameters are adjusted.
5. The method according to any one of claims 1-4, characterized in that, Before generating the first frame sequence based on the initial training parameters, the process also includes: In response to a configuration instruction, the initial training parameters are generated, the configuration instruction including the type of the frame sequence.
6. The method according to claim 5, characterized in that, The frame sequence type includes at least one of the following: second idle sequence IDLE2, third idle sequence IDLE3, and distributed management environment sequence DME.
7. A chip verification device, characterized in that, include: The system includes a generation unit, a comparison unit, a determination unit, and a verification unit. The generation unit is used to generate a first frame sequence based on initial training parameters. The first frame sequence contains state configuration information and expected state information. The state configuration information is used to instruct the chip under test to generate a second frame sequence. The comparison unit is used to compare the desired state information in the first frame sequence with the state information in the second frame sequence to obtain a comparison result. The determining unit is used to determine training parameters based on the comparison results; The verification unit is used to verify the chip under test based on the training parameters. The expected state information in the first frame sequence includes information about the command bit field and information about the state bit field in the first frame sequence. The state information in the second frame sequence includes information about the command bit field and information about the state bit field in the second frame sequence. The comparison unit includes: a second comparison subunit and a second acquisition unit. The second comparison subunit is used to compare the information of the command bit field in the first frame sequence with the information of the command bit field in the second frame sequence; The second obtaining unit is used to compare the information of the state bit field in the first frame sequence with the information of the state bit field in the second frame sequence when the information of the command bit field in the first frame sequence is consistent with the information of the command bit field in the second frame sequence, and obtain the comparison result.
8. A computer device, characterized in that, The computer device includes: a processor and a memory; The memory is used to store program code and transmit the program code to the processor; The processor is configured to execute the steps of a chip verification method as described in any one of claims 1-6 according to instructions in the program code.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of a chip verification method as described in any one of claims 1-6.
