Verification method and device based on low-power-consumption design, medium and equipment
By encapsulating and verifying the data of the simulation device in multiple low-power modes, the problems of single functions and poor reusability of the low-power design verification method in the prior art are solved, effective verification of multiple interfaces and modes is achieved, and verification efficiency is improved.
Patent Information
- Application Number
- CN202510231427.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-06-13
AI Technical Summary
The existing verification methods for low-power designs have single function verification, poor reusability, and are difficult to reuse in different design scenarios or functional modules.
By obtaining the data to be verified and multiple target interface types of the simulated device to be verified in multiple low-power modes, generating configuration information, encapsulate the data to be verified and the configuration information, sending it to the simulated device to be verified for low-power simulation operation, obtaining the actual operation results, and comparing them with the predicted results to determine the verification results of the low-power mode.
Verification of multiple low-power modes of various different interface types is realized, not only to realize multiple functions at the same time, but also meet the needs of strong reusability, improving the verification efficiency of low-power designs.
Smart Images

Figure CN120145953A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuit verification, and particularly to a verification method, device, medium and equipment based on low-power design. Background Art
[0002] With the rapid development of technology, remarkable progress has been made in fields such as artificial intelligence, 5G communication, big data centers, and automotive electronics. The rapid development of these fields has made low-power design no longer limited to portable electronic devices, but has become a key requirement for more terminal products. These terminal products have increasingly high requirements for chip performance. Although the development of chip manufacturing processes has promoted the continuous improvement of transistor integration and enhanced chip performance, it has also led to more severe chip heat dissipation problems. Therefore, low-power design is particularly important in the current electronics industry.
[0003] Currently, low-power design is mainly achieved through technologies such as dynamic voltage and frequency scaling (DVFS), clock gating, and power gating. No matter which technology is used for low-power design, verification is required to verify whether the low-power design affects the normal function of the chip, whether the power consumption index meets the standard, and whether the switching of the chip in different power consumption modes is normal.
[0004] Existing verification methods for low-power design usually adopt directed testing, that is, testing a specific function mode under a certain low-power mode. Although this method can verify some functions, its verification is single and the reusability is poor, making it difficult to be reused in different design scenarios or functional modules. Therefore, a verification method for low-power design that can meet diverse verification requirements is needed. Summary of the Invention
[0005] In view of this, the present invention provides a verification method, device, medium and equipment based on low-power design, mainly aiming to solve the problems that the function verification of existing verification methods for low-power design is single, the reusability is poor, and it is difficult to be reused in different design scenarios or functional modules.
[0006] According to one aspect of the present application, a verification method based on low-power design is provided, and the method includes:
[0007] Obtain the data to be verified and multiple target interface types of the analog device to be verified in multiple low-power modes;
[0008] Based on each of the low-power modes and each of the target interface types, generate configuration information, encapsulate the data to be verified and the configuration information, obtain the encapsulated data corresponding to each of the target interface types, and send the encapsulated data to the simulation device to be verified, so that the simulation device to be verified performs low-power simulation operation according to the encapsulated data and outputs the actual operation result corresponding to the target interface type;
[0009] Based on the encapsulated data, predict the low-power operation result of the simulation device to be verified to obtain a prediction result;
[0010] Compare the actual operation result and the prediction result, and determine the verification result of each low-power mode according to the comparison result.
[0011] Optionally, the generating configuration information based on each of the low-power modes and each of the target interface types, encapsulating the data to be verified and the configuration information, and obtaining the encapsulated data corresponding to each of the target interface types includes:
[0012] Configure the information of the simulation device to be verified in each low-power mode according to the low-power mode of the simulation device to be verified to obtain mode configuration information;
[0013] Configure the target interface of the simulation device to be verified according to each target interface type of the simulation device to be verified to obtain interface configuration information;
[0014] For each target interface type, encapsulate the interface configuration information, the mode configuration information in multiple low-power modes, and the data to be verified to obtain the encapsulated data corresponding to each target interface type.
[0015] Optionally, the encapsulating the interface configuration information, the mode configuration information in multiple low-power modes, and the data to be verified to obtain the encapsulated data corresponding to each target interface type includes:
[0016] For each low-power mode, combine the mode configuration information in the low-power mode and the data to be verified to obtain the combined data to be verified in each low-power mode;
[0017] Encapsulate the interface configuration information and the combined data to be verified in multiple low-power modes in a preset low-power mode verification order to obtain the encapsulated data corresponding to each target interface type.
[0018] Optionally, the comparing the actual operation result and the prediction result, and determining the verification result of each low-power mode according to the comparison result includes:
[0019] If the actual operation result is exactly the same as the predicted result, the low-power design passes the verification. If the actual operation result is not exactly the same as the predicted result, the low-power design fails the verification.
[0020] Optionally, after the step that if the actual operation result is not exactly the same as the predicted result, the low-power design fails the verification, the verification method further includes:
[0021] Obtaining the difference between the actual operation result and the predicted result, generating verification modification information according to the difference, and sending the verification modification information to the simulation device to be verified.
[0022] Optionally, the target interface type includes at least one of SPI interface type, I 2 C interface type, UART interface type, APB interface type, AHB interface type, AXI interface type, and ASB interface type.
[0023] According to another aspect of the present application, a verification device based on a low-power design is provided, including:
[0024] An acquisition module, configured to acquire data to be verified and multiple target interface types of a simulation device to be verified in multiple low-power modes;
[0025] An encapsulation module, configured to generate configuration information based on each low-power mode and each target interface type, perform encapsulation processing on the data to be verified and the configuration information, obtain encapsulated data corresponding to each target interface type, and send the encapsulated data to the simulation device to be verified, so that the simulation device to be verified performs low-power simulation operation according to the encapsulated data and outputs an actual operation result corresponding to the target interface type;
[0026] A prediction module, configured to predict the low-power operation result of the simulation device to be verified based on the encapsulated data to obtain a predicted result;
[0027] A comparison module, configured to compare the actual operation result and the predicted result, and determine the verification result of each low-power mode according to the comparison result.
[0028] Optionally, the encapsulation module is further configured to:
[0029] Configure the information of the simulation device to be verified in each low-power mode according to the low-power mode of the simulation device to be verified to obtain mode configuration information;
[0030] Configure the target interfaces of the to-be-verified simulation device according to each target interface type of the to-be-verified simulation device to obtain interface configuration information;
[0031] For each target interface type, encapsulate the interface configuration information, the mode configuration information in multiple low-power modes, and the to-be-verified data to obtain the encapsulated data corresponding to each target interface type.
[0032] Optionally, the encapsulation module is further configured to:
[0033] For each low-power mode, combine the mode configuration information in the low-power mode and the to-be-verified data to obtain the to-be-verified combined data in each low-power mode;
[0034] Encapsulate the interface configuration information and the to-be-verified combined data in multiple low-power modes according to a preset verification order of low-power modes to obtain the encapsulated data corresponding to each target interface type.
[0035] Optionally, the comparison module is further configured to:
[0036] If the actual operation result is exactly the same as the predicted result, the low-power design passes the verification; if the actual operation result is not exactly the same as the predicted result, the low-power design fails the verification.
[0037] Optionally, the verification device based on the low-power design further includes:
[0038] An output module, configured to obtain the difference between the actual operation result and the predicted result, generate verification modification information according to the difference, and send the verification modification information to the to-be-verified simulation device.
[0039] Optionally, the target interface type includes at least one of SPI interface type, I 2 C interface type, UART interface type, APB interface type, AHB interface type, AXI interface type, and ASB interface type.
[0040] According to another aspect of the present application, there is provided a storage medium in which at least one executable instruction is stored, and the executable instruction causes a processor to perform operations corresponding to the above-mentioned verification method based on low-power design.
[0041] According to another aspect of the present application, there is provided a computer device, including: a processor, a memory, a communication interface, and a communication bus, and the processor, the memory, and the communication interface complete communication with each other through the communication bus;
[0042] The memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the above verification method based on low-power design.
[0043] By means of the above technical solutions, the technical solutions provided by the embodiments of the present invention at least have the following advantages:
[0044] A verification method, device, equipment and medium based on low-power design provided by the present application obtain data to be verified and target interface types in each low-power mode, generate configuration information based on the low-power mode and the target interface type, encapsulate the data to be verified and the configuration information in multiple low-power modes according to the target interface type to obtain encapsulated data corresponding to each target interface type, send the encapsulated data to the simulation device to be verified, obtain the actual operation result of the simulation device to be verified running according to the encapsulated data, predict the low-power operation result of the simulation device to be verified, compare the actual operation result and the predicted result, and verify the legality of the low-power design according to the comparison result. It can verify multiple low-power modes of multiple different interface types, not only realize the simultaneous verification of multiple functions, but also meet the requirement of strong reusability, and improve the verification efficiency of the low-power design.
[0045] The above description is only an overview of the technical solution of the present invention. In order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description. And in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable, the specific embodiments of the present invention are specifically exemplified below. Description of the Drawings
[0046] By reading the following detailed description of the preferred embodiments, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present invention. And throughout the drawings, the same reference numerals are used to represent the same components. In the drawings:
[0047] Figure 1 Shows a flowchart of a verification method based on low-power design provided by an embodiment of the present application;
[0048] Figure 2 Shows a flowchart of another verification method based on low-power design provided by an embodiment of the present application;
[0049] Figure 3 Shows a block diagram of a verification device based on low-power design provided by an embodiment of the present application;
[0050] Figure 4 Shows a schematic structural diagram of a computer device provided by an embodiment of the present invention.
[0051] Among them,
[0052] Figure 3 Among them: 302 - acquisition module; 304 - encapsulation module; 306 - prediction module; 308 - comparison module;
[0053] Figure 4 Among them: 402 - processor; 404 - communication interface; 406 - memory; 408 - communication bus; 410 - program. Specific implementation manners
[0054] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments may be combined with each other.
[0055] To further elaborate on the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following will describe in detail the specific implementation manners, structures, features, and their effects of the application according to the present invention with reference to the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "embodiment" does not necessarily refer to the same embodiment. In addition, the specific features, structures, or characteristics in one or more embodiments may be combined in any suitable form.
[0056] Aiming at the problem that the functional verification of the current verification method for low-power design is single, the reusability is poor, and it is difficult to be reused in different design scenarios or functional modules, the embodiment of the present application provides a verification method based on low-power design, as Figure 1 shown, this method includes:
[0057] 102: Obtain the data to be verified and multiple target interface types of the analog device to be verified in multiple low-power modes;
[0058] 104: Based on each low-power mode and each target interface type, generate configuration information, perform encapsulation processing on the data to be verified and the configuration information, obtain the encapsulated data corresponding to each target interface type, and send the encapsulated data to the analog device to be verified, so that the analog device to be verified performs low-power simulation operation according to the encapsulated data and outputs the actual operation result corresponding to the target interface type;
[0059] 106: Predict the low-power operation result of the analog device to be verified based on the encapsulated data to obtain a prediction result;
[0060] 108: Compare the actual operation result and the prediction result, and determine the verification result of each low-power mode according to the comparison result.
[0061] Specifically, the main body of the verification method based on low-power design is the verification platform, such as the verification platform built based on Synopsys VCS software, the verification platform built based on Cadence Incisive software, etc. The simulation device to be verified is a simulation device through software simulation. There are many types of low-power modes. From the perspective of electronic devices, they include standby mode, sleep mode, flight mode, etc. From the perspective of integrated circuits, they include gated clock mode, power gating mode, dynamic voltage and frequency adjustment mode, etc. When performing low-power design verification, different low-power modes are set, and verification is carried out under different low-power modes. Each low-power mode corresponds to matching configuration information and data to be verified.
[0062] Generally, multiple interfaces are set on the simulation device to be verified, such as SPI interface, UART interface, etc. In some low-power modes, the functions of these interfaces are among the functions to be verified. Therefore, it is necessary to set the interface information corresponding to these interfaces in different low-power modes. According to the data protocols of the interface types, the interface configuration information, mode configuration information, and data to be verified in different low-power modes are combined in a preset order, and then the combined data is encapsulated to obtain the encapsulated data corresponding to the target interface type. The encapsulated data is sent to the simulation device to be verified. After receiving the encapsulated data, the simulation device to be verified parses the encapsulated data, then configures according to the parsed data, performs an operation according to the data to be verified after the configuration is completed, and finally outputs the actual operation result after the operation is completed to the verification platform.
[0063] The verification platform makes a low-power verification prediction of the simulation device to be verified based on the encapsulated data, obtains a prediction result, compares the prediction result with the actual operation result of the simulation device to be verified, and determines whether the verification is qualified according to the comparison result.
[0064] This application provides a verification method based on low-power design. Compared with the prior art, it obtains the data to be verified and the target interface type in each low-power mode, generates configuration information based on the low-power mode and the target interface type, encapsulates the data to be verified and the configuration information in multiple low-power modes according to the target interface type to obtain the encapsulated data corresponding to each target interface type, sends the encapsulated data to the simulation device to be verified, obtains the actual operation result of the simulation device to be verified running according to the encapsulated data, makes a prediction of the low-power operation result of the simulation device to be verified, compares the actual operation result and the prediction result, and verifies the legality of the low-power design according to the comparison result. It can verify multiple low-power modes of multiple different interface types, not only realizing the simultaneous verification of multiple functions, but also meeting the requirement of strong reusability, and improving the verification efficiency of low-power design.
[0065] In an embodiment of the present invention, for further limitation and illustration, as Figure 2As shown, based on each low-power mode and each target interface type, configuration information is generated, and the data to be verified and the configuration information are encapsulated to obtain the encapsulated data corresponding to each target interface type, including:
[0066] 202: Configure the information of the analog device to be verified in each low-power mode according to the low-power mode of the analog device to be verified to obtain mode configuration information;
[0067] 204: Configure the target interface of the analog device to be verified according to each target interface type of the analog device to be verified to obtain interface configuration information;
[0068] 206: For each target interface type, combine the mode configuration information in each low-power mode and the data to be verified to obtain the combined data to be verified in each low-power mode;
[0069] 208: Package and process the interface configuration information and the combined data to be verified in multiple low-power modes in the preset low-power mode verification order to obtain the encapsulated data corresponding to each target interface type.
[0070] In this embodiment, there are multiple low-power modes usually to be verified, and the configuration information of each low-power mode is different. Therefore, according to different low-power modes, the mode configuration information corresponding to this low-power mode is generated. At the same time, the data to be verified corresponding to the function to be verified in each low-power mode is also different. Therefore, the mode configuration information and the data to be verified in each low-power mode are generated, and the mode configuration information and the data to be verified in each low-power mode are combined together to obtain the combined data to be verified in each low-power model.
[0071] Taking the target interface type including the SPI interface type and the APB interface type as an example, if the interface data type is the SPI data type, configure the SPI interface type to obtain the SPI interface configuration information. Based on the SPI interface protocol, package and process the interface configuration information and the combined data to be verified in multiple low-power modes in the preset low-power mode verification order to obtain the encapsulated data corresponding to the SPI interface type; if the interface data type is the APB data type, configure the APB interface type to obtain the APB interface configuration information. Based on the APB interface protocol, package and process the interface configuration information and the combined data to be verified in multiple low-power modes in the preset low-power mode verification order to obtain the encapsulated data corresponding to the APB interface type.
[0072] Correspondingly, the simulation device to be verified receives the encapsulated data through the interface, parses the encapsulated data, and based on the parsed data, identifies the interface setting information, mode configuration information, and data to be verified. It sets the interface according to the interface configuration information, sets the low-power mode according to the mode configuration information, and executes the function to be verified based on the data to be verified.
[0073] In one embodiment, the actual operation result and the predicted result are compared, and based on the comparison result, the verification result of each low-power mode is determined, including:
[0074] If the actual operation result is exactly the same as the predicted result, the low-power design passes the verification; if the actual operation result is not exactly the same as the predicted result, the low-power design fails the verification.
[0075] Specifically, if the configured target interface type is the SPI interface, the actual operation data is collected and compared with the predicted result obtained by prediction under the encapsulated data corresponding to the SPI target interface; if the configured target interface type is the APB interface, the actual operation data is collected and compared with the predicted result obtained by prediction under the encapsulated data corresponding to the APB target interface. If the actual operation result is exactly the same as the predicted result, the low-power design passes the verification, and the configuration and functions of the low-power mode all pass the inspection. If the actual operation result is not exactly the same as the predicted result, the low-power design fails the verification, the difference between the actual operation result and the predicted result is obtained, and based on the difference, verification modification information is generated and sent to the simulation device to be verified.
[0076] In one embodiment, the target interface type includes at least one of the SPI interface type, I 2 C interface type, UART interface type, APB interface type, AHB interface type, AXI interface type, and ASB interface type.
[0077] Specifically, many interface types are set on the device to be verified, and data communication is carried out with other devices, platforms, or servers through these interfaces. The corresponding target interface type is selected according to the verification requirements, the interface data is configured according to the selected target interface type, and then the interface configuration information, the data to be verified, and the configuration information under each low-power mode are encapsulated together to obtain the encapsulated data corresponding to the target interface type.
[0078] In one embodiment, the main body of the verification method based on low-power design is a verification platform, such as a verification platform built based on Synopsys VCS software, a verification platform built based on Cadence Incisive software, etc. The simulation device to be verified is a simulation device through software simulation. There are many components on the verification platform, and these components process data. Taking the verification of low-power design for the SPI interface as an example, the complete process is as follows:
[0079] First, the init_sequence (a sequence component) generates initialization information about the SPI interface, that is, interface configuration information. The DUT (abbreviation for Device Under Test, which is the simulation device to be verified in this application) completes the initialization operation according to the interface configuration information and selects the SPI interface.
[0080] Second, the pmu_sequence (a sequence component) signal is randomly generated through the pmu_transaction structure at the top level (pmu_transaction represents a transaction for interacting with the power management unit, containing various information related to power management and used to describe an operation on the power management unit). The DUT is configured through the pmu_sequence signal to turn on the low-power mode configuration switch, configure the corresponding mode switching register, and wait for the operation to complete. The pmu_sequence signal is also mode configuration information.
[0081] Third, the spi_sequence (a sequence component) signal is generated based on the spi_transaction (a transaction class object that represents a transaction for interacting with the SPI interface) structure. After detecting the generation of the above two-step configuration information, the corresponding register part configured through the interface is sent to the spi_driver (a component). The spi_driver obtains the data to be verified of the DUT, encapsulates the configuration information and the data to be verified to obtain encapsulated data, and transmits the encapsulated data to the SPI interface of the DUT.
[0082] In the fourth step, spi_monitor (a component) respectively detects the information transmitted by the output interface of the DUT and the information sent by the spi_driver to the DUT, and transmits the information transmitted by the output interface of the DUT and the information sent by the spi_driver to the DUT to the pmu_model (Power Management Unit reference model, a component in the verification environment). The pmu_model will simulate the low-power operation of the DUT based on the information sent by the spi_driver to the DUT, predict the information of the DUT output interface, that is, the prediction result, and the information transmitted by the output interface of the DUT is the actual operation result.
[0083] In the fifth step, the pmu_model sends the prediction result and the actual operation result to the scoreboard (a verification component), and the scoreboard performs unified post-processing on the prediction result and the actually collected operation result and then conducts comparative analysis on the data.
[0084] In the sixth step, based on the data comparison information and the information of the system operation, it is finally obtained whether the verification of the low-power mode of the DUT passes.
[0085] In one embodiment, the complete process of verifying the low-power design through the APB interface is as follows:
[0086] First, in the init_sequence, initialization information about the APB interface, that is, interface configuration information, is generated. The DUT completes the initialization operation according to the interface configuration information and selects the APB interface.
[0087] In the second step, the pmu_sequence signal is randomly generated through the top-level pmu_transaction structure, and the DUT is configured through the pmu_sequence signal so that the DUT is configured to turn on the low-power mode configuration switch and configure the corresponding mode switching register. The pmu_sequence signal is also mode configuration information.
[0088] In the third step, the apb_sequence is generated based on the apb_transaction structure. After detecting the generation of the above two-step configuration information, the corresponding register part configured through the interface is sent to the apb_driver. The spi_driver obtains the data to be verified of the DUT, encapsulates the configuration information and the data to be verified to obtain the encapsulated data, and transmits the encapsulated data to the APB interface of the DUT.
[0089] Step 4: The apb_monitor respectively detects the information transmitted by the output interface of the DUT and the information sent by the apb_driver to the DUT, and transmits the information transmitted by the output interface of the DUT and the information sent by the spi_driver to the DUT to the pmu_model. The pmu_model will simulate the low-power operation of the DUT based on the information sent by the spi_driver to the DUT, predict the information of the DUT output interface, that is, the prediction result, and the information transmitted by the output interface of the DUT is the actual operation result.
[0090] Step 5: The pmu_model sends the prediction result and the actual operation result to the scoreboard, and the scoreboard performs unified post-processing on the prediction result and the actually collected operation result and then conducts comparative analysis on the data.
[0091] Step 6: According to the data comparison information and the information of the system operation, it is finally obtained whether the verification of the low-power mode of the DUT is passed.
[0092] The above operations for the SPI and APB interfaces are all a complete transmission. Multiple different low-power modes can be respectively configured for switching, different register configurations can be used, and repeated tests can be carried out. At the same time, different low-power scenarios can also be simulated to test the extreme operations or abnormal operations of the DUT.
[0093] Since there are many modes and boundary conditions in the low-power design, randomization and repeated iteration can be carried out multiple times to verify all boundary conditions. Appropriate targeted test cases can be supplemented to ensure complete verification. The power consumption environment in different scenarios can also be simulated by changing the data information of the config for exception handling of the environment, so as to verify the stability of the DUT. When building the platform, the DUT is defaulted to a black box for operation, reducing the dependence on the DUT. Therefore, the verification method based on low-power design provided by this application has better portability.
[0094] Further, as an implementation of the above Figure 1 shown method, an embodiment of the present invention provides a verification device based on low-power design, as Figure 3 shown, the device includes:
[0095] An acquisition module 302, configured to acquire the data to be verified and multiple target interface types of the simulation device to be verified in multiple low-power modes;
[0096] The encapsulation module 304 is used to generate configuration information based on each low-power mode and each target interface type, perform encapsulation processing on the data to be verified and the configuration information, obtain the encapsulated data corresponding to each target interface type, and send the encapsulated data to the simulation device to be verified, so that the simulation device to be verified performs low-power simulation operation according to the encapsulated data and outputs the actual operation result corresponding to the target interface type;
[0097] The prediction module 306 is used to predict the low-power operation result of the simulation device to be verified based on the encapsulated data, and obtain the prediction result;
[0098] The comparison module 308 is used to compare the actual operation result and the prediction result, and determine the verification result of each low-power mode according to the comparison result.
[0099] This application provides a verification device based on low-power design. Compared with the prior art, it obtains the data to be verified and the target interface type under each low-power mode, generates configuration information based on the low-power mode and the target interface type, encapsulates the data to be verified and the configuration information under multiple low-power modes according to the target interface type to obtain the encapsulated data corresponding to each target interface type, sends the encapsulated data to the simulation device to be verified, obtains the actual operation result of the simulation device to be verified running according to the encapsulated data, predicts the low-power operation result of the simulation device to be verified, compares the actual operation result and the prediction result, and verifies the legality of the low-power design according to the comparison result. It can verify multiple low-power modes of multiple different interface types, not only realize the simultaneous verification of multiple functions, but also meet the requirement of strong reusability, and improve the verification efficiency of the low-power design.
[0100] Optionally, the test data determination module is further used for:
[0101] Carry out continuous casting simulation on the specimen model based on a preset three-dimensional thermal-mechanical coupling model, and obtain the thermal simulation diagram of the continuous casting billet temperature field and the strain rate change diagram of the continuous casting billet;
[0102] Based on the thermal simulation diagram of the continuous casting billet temperature field, determine the temperature range of the high-temperature tensile test, and determine multiple test temperatures based on the temperature range;
[0103] Based on the strain rate change diagram of the continuous casting billet, determine the strain rate change range of the high-temperature tensile test, and determine multiple test strain rates based on the strain rate change range.
[0104] In one embodiment, the encapsulation module is further used for:
[0105] Configure the information of the simulation device to be verified in each low-power mode according to the low-power mode of the simulation device to be verified, and obtain the mode configuration information;
[0106] Configure the target interfaces of the simulation device to be verified according to each target interface type of the simulation device to be verified, so as to obtain interface configuration information;
[0107] For each target interface type, encapsulate the interface configuration information, the mode configuration information under multiple low-power modes, and the data to be verified to obtain the encapsulated data corresponding to each target interface type.
[0108] In one embodiment, the encapsulation module is further configured to:
[0109] For each low-power mode, combine the mode configuration information under the low-power mode and the data to be verified to obtain the combined data to be verified under each low-power mode;
[0110] Encapsulate the interface configuration information and the combined data to be verified under multiple low-power modes according to the preset verification order of the low-power mode to obtain the encapsulated data corresponding to each target interface type.
[0111] In one embodiment, the comparison module is further configured to:
[0112] If the actual operation result is exactly the same as the predicted result, the low-power design passes the verification; if the actual operation result is not exactly the same as the predicted result, the low-power design fails the verification.
[0113] In one embodiment, the verification device based on the low-power design further includes:
[0114] An output module, configured to obtain the difference between the actual operation result and the predicted result, generate verification modification information according to the difference, and send the verification modification information to the simulation device to be verified.
[0115] In one embodiment, the target interface type includes at least one of the SPI interface type, the I 2 C interface type, the UART interface type, the APB interface type, the AHB interface type, the AXI interface type, and the ASB interface type.
[0116] According to an embodiment of the present invention, there is provided a storage medium storing at least one executable instruction, and the computer executable instruction can execute the verification method based on the low-power design in any of the above method embodiments.
[0117] Figure 4 The structure diagram of a computer device provided according to an embodiment of the present invention is shown, and the specific implementation of the computer device is not limited in the specific embodiments of the present invention.
[0118] Such as Figure 4As shown in the figure, the computer device may include: a processor 402, a communications interface 404, a memory 406, and a communication bus 408.
[0119] Among them: The processor 402, the communications interface 404, and the memory 406 communicate with each other through the communication bus 408.
[0120] The communications interface 404 is used to communicate with network elements of other devices such as clients or other servers.
[0121] The processor 402 is used to execute the program 410, and specifically can execute the relevant steps in the above-mentioned embodiments of the verification method based on low-power design.
[0122] Specifically, the program 410 may include program code, and the program code includes computer operation instructions.
[0123] The processor 402 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention. One or more processors included in the computer device may be of the same type of processor, such as one or more CPUs; or may be of different types of processors, such as one or more CPUs and one or more ASICs.
[0124] The memory 406 is used to store the program 410. The memory 406 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.
[0125] The program 410 is specifically used to cause the processor 402 to perform the following operations:
[0126] Obtain the data to be verified and various target interface types of the analog device to be verified in various low-power modes;
[0127] Based on each low-power mode and each target interface type, generate configuration information, perform encapsulation processing on the data to be verified and the configuration information, obtain the encapsulated data corresponding to each target interface type, and send the encapsulated data to the analog device to be verified, so that the analog device to be verified performs low-power simulation operation according to the encapsulated data and outputs the actual operation result corresponding to the target interface type;
[0128] Based on the encapsulated data, predict the low-power operation result of the analog device to be verified to obtain a prediction result;
[0129] Compare the actual operation results with the predicted results, and determine the verification results of each low-power mode according to the comparison results.
[0130] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. In one embodiment, they can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order than here, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module to be implemented. In this way, the present invention is not limited to any specific combination of hardware and software.
[0131] The above embodiments are only exemplary embodiments of the present application and are not used to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art can make various modifications or equivalent replacements within the essence and protection scope of the present application, and such modifications or equivalent replacements should also be regarded as falling within the protection scope of the present application.
Claims
1. A verification method based on low power consumption design, characterized in that: include: Obtain the verification data of the simulated device to be verified in multiple low-power modes and multiple target interface types; Based on each of the low-power modes and each of the target interface types, configuration information is generated, the data to be verified and the configuration information are encapsulated to obtain encapsulated data corresponding to each of the target interface types, and the encapsulated data is sent to the simulation device to be verified, so that the simulation device to be verified performs low-power simulation operation according to the encapsulated data and outputs an actual operation result corresponding to the target interface type; Based on the packaging data, predicting the low power consumption operation result of the simulation device to be verified to obtain a prediction result; The actual operation result is compared with the prediction result, and a verification result of each low power consumption mode is determined according to the comparison result.
2. The verification method based on low power design as claimed in claim 1, characterized in that: The generating of configuration information based on each of the low power consumption modes and each of the target interface types, encapsulating the data to be verified and the configuration information, and obtaining encapsulated data corresponding to each of the target interface types, includes: According to the low power consumption mode of the simulated device to be verified, information of the simulated device to be verified in each of the low power consumption modes is configured to obtain mode configuration information; According to each target interface type of the simulated device to be verified, the target interface of the simulated device to be verified is configured to obtain interface configuration information; For each target interface type, the interface configuration information, the mode configuration information in multiple low power consumption modes and the data to be verified are encapsulated to obtain encapsulated data corresponding to each target interface type.
3. The verification method based on low power design as claimed in claim 2, characterized in that: The encapsulating the interface configuration information, the mode configuration information in the multiple low power consumption modes and the data to be verified to obtain encapsulated data corresponding to each of the target interface types includes: For each of the low power consumption modes, combining the mode configuration information and the data to be verified in the low power consumption mode to obtain the combined data to be verified in each of the low power consumption modes; According to the preset low power mode verification order, the interface configuration information and the combined data to be verified in multiple low power modes are encapsulated and processed to obtain encapsulated data corresponding to each of the target interface types.
4. The verification method based on low power design as claimed in claim 1, characterized in that: The comparing the actual operation result with the prediction result, and determining the verification result of each low power consumption mode according to the comparison result, includes: If the actual operation result and the predicted result are completely the same, the low power design is verified; if the actual operation result and the predicted result are not completely the same, the low power design is not verified.
5. The verification method based on low power design as claimed in claim 4, characterized in that: If the actual operation result and the predicted result are not completely the same, then the low power design fails the verification, and the verification method further includes: The difference between the actual operation result and the predicted result is obtained, verification modification information is generated according to the difference, and the verification modification information is sent to the simulation device to be verified.
6. The verification method based on low power design according to any one of claims 1 to 5, characterized in that: The target interface type includes SPI interface type, I 2 At least one interface type among C interface type, UART interface type, APB interface type, AHB interface type, AXI interface type and ASB interface type.
7. A verification device based on low power consumption design, characterized in that: include: An acquisition module, used for acquiring data to be verified and multiple target interface types of the simulated device to be verified in multiple low power consumption modes; An encapsulation module is used to generate configuration information based on each of the low-power modes and each of the target interface types, encapsulate the data to be verified and the configuration information, obtain encapsulated data corresponding to each of the target interface types, and send the encapsulated data to the simulation device to be verified, so that the simulation device to be verified performs low-power simulation operation according to the encapsulated data and outputs an actual operation result corresponding to the target interface type; A prediction module, used to predict the low power consumption operation result of the simulation device to be verified based on the packaging data to obtain a prediction result; A comparison module is used to compare the actual operation result with the prediction result, and determine the verification result of each low power consumption mode according to the comparison result.
8. The verification device based on low power consumption design as claimed in claim 7, characterized in that: The packaging module is also used for: According to the low power consumption mode of the simulated device to be verified, information of the simulated device to be verified in each of the low power consumption modes is configured to obtain mode configuration information; According to each target interface type of the simulated device to be verified, the target interface of the simulated device to be verified is configured to obtain interface configuration information; For each target interface type, the interface configuration information, the mode configuration information in multiple low power consumption modes and the data to be verified are encapsulated to obtain encapsulated data corresponding to each target interface type.
9. A storage medium storing at least one executable instruction, wherein the executable instruction enables a processor to execute an operation corresponding to the verification method based on low power consumption design as claimed in any one of claims 1 to 6.
10. A computer device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the verification method based on low power consumption design as described in any one of claims 1-6.