Verification environment generation method and device for chip reuse component, equipment and medium
By determining the target verification environment template and integrating keywords and content generation verification environment, the problem of inefficient verification of chip reuse components is solved, and a shared verification environment for reuse components of the same component type is realized, which improves verification efficiency.
Patent Information
- Application Number
- CN202411995409.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-29
AI Technical Summary
In the prior art, the verification efficiency of chip reuse components is low, and an independent verification environment is needed for each component, resulting in serious reduction in efficiency.
By obtaining the component type of the target reuse component in the target graphics processor chip, determining the target verification environment template, and integrating the target keywords and target content through the verification environment generator to generate the verification environment corresponding to the target reuse component.
It realizes that reuse components of the same component type share a verification environment, which improves the verification efficiency of chip reuse components.
Smart Images

Figure CN119903811A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of chip verification technology, and in particular to a verification environment generation method, device, equipment and medium for a chip reuse component. Background Art
[0002] With the rapid development of large-scale integrated circuit technology, the number of gates in integrated circuits continues to increase, and accordingly, the logic scale of chips is becoming more and more complex. At the same time, the iteration speed of chip products is increasingly required. Therefore, before the chip is put on the market, it is necessary to conduct efficient simulation verification on each chip.
[0003] Since the inside of the chip is a complex system composed of multiple components, when verifying the chip, it may be necessary to verify the multiple components inside the chip separately. In the prior art, a hardware design description language is usually used to write the design to be tested corresponding to each component based on the chip design specification, and to write the corresponding reference model. Then, the verification platform is connected with the help of Universal Verification Methodology (UVM). After that, the verification platform inputs stimuli with certain constraints to the design to be tested and the reference model respectively to verify whether the design to be tested meets the chip design specifications.
[0004] However, since each different component has its own input and output signals, as well as constraints on the input signals, different components cannot share a verification environment. If the existing method is used, for each component in the chip, even if it is a reused component with a similar structure, it is necessary to build a corresponding verification environment for each component, which seriously affects the efficiency of the verification work. Therefore, how to achieve reused components of the same component type to share a verification environment and improve the verification efficiency of chip reused components is a problem that needs to be solved urgently. Summary of the invention
[0005] The present invention provides a verification environment generation method, device, equipment and medium for a chip reuse component, which can solve the problem of low verification efficiency of the chip reuse component.
[0006] According to one aspect of the present invention, a verification environment generation method for a chip reuse component is provided, which is applicable to a reuse component in a graphics processor chip, and includes:
[0007] Acquire a target reusable component in a target graphics processor chip, and determine a component type of the target reusable component and a target content corresponding to the target reusable component;
[0008] Determining a target verification environment template according to the component type of the target reused component; wherein the target verification environment template includes a target keyword;
[0009] The target keywords and target contents are integrated through a verification environment generator to generate a target verification environment corresponding to the target reuse component.
[0010] According to another aspect of the present invention, a verification environment generation device for a chip reuse component is provided, which is applicable to a reuse component in a graphics processor chip, and includes:
[0011] A data acquisition module, used to acquire a target reuse component in a target graphics processor chip, and determine a component type of the target reuse component and a target content corresponding to the target reuse component;
[0012] A template determination module, used to determine a target verification environment template according to the component type of the target reused component; wherein the target verification environment template includes a target keyword;
[0013] The environment generation module is used to integrate the target keywords and target content through the verification environment generator to generate a target verification environment corresponding to the target reuse component.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for generating a verification environment for a chip reuse component described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions for enabling a processor to implement the method for generating a verification environment for a chip reuse component as described in any embodiment of the present invention when the computer instructions are executed.
[0019] The technical solution of the present invention determines a target verification environment template containing target keywords according to the component type of the target reused component in the target graphics processor chip; then, integrates the target keywords and the target content corresponding to the target reused component through a verification environment generator to generate a target verification environment corresponding to the target reused component, thereby solving the problem of low verification efficiency of chip reused components, enabling reused components of the same component type to share a verification environment, and improving the verification efficiency of chip reused components.
[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0022] Figure 1 is a flowchart of a method for generating a verification environment for a chip reuse component provided in Embodiment 1 of the present invention;
[0023] Figure 2 is a flow chart of a method for generating a verification environment for a chip reuse component provided in Embodiment 2 of the present invention;
[0024] Figure 3 is a flowchart of an optional method for generating a verification environment for a chip reuse component provided in accordance with a second embodiment of the present invention;
[0025] Figure 4 It is a schematic diagram of the structure of a verification environment generating device for a chip reuse component provided in Embodiment 3 of the present invention;
[0026] Figure 5 It is a structural schematic diagram of an electronic device for implementing the verification environment generation method of a chip reuse component according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "target", "selected", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] Figure 1 The flowchart of a verification environment generation method for a chip reuse component provided in the first embodiment of the present invention is applicable to the case of verifying a reuse component in a graphics processor chip. The method can be executed by a verification environment generation device for a chip reuse component. The verification environment generation device for a chip reuse component can be implemented in the form of hardware and / or software. The verification environment generation device for a chip reuse component can be configured in an electronic device, and can be integrated in a computer device, for example. Figure 1 As shown, the method includes:
[0031] S110: Acquire a target reusable component in a target graphics processor chip, and determine a component type of the target reusable component and a target content corresponding to the target reusable component.
[0032] Among them, the target graphics processor chip may refer to a graphics processor (Graphics Processing Unit, GPU) chip whose internal components need to be verified. The target reused component may refer to certain components with similar structures in the target graphics processor chip. Usually, a graphics processor chip is composed of multi-level modules such as unit blocks, component modules, chip subsystems, and GPU intellectual property cores (Intellectual Property, IP), and the above-mentioned multi-level modules are usually composed of components of the same type. For example, there are multiple modules in the graphics processor chip that use arithmetic logic units (Arithmetic Logic Unit, ALU). Therefore, components that are used by multiple multi-level modules can be called reused components.
[0033] Among them, the component type may refer to the functional type corresponding to the target reuse component. Exemplarily, if the target reuse component is ALU, it can be known through the naming of ALU that the component type corresponding to the target reuse component is an arithmetic logic type. The target content may refer to the special part that needs to be extracted in the target reuse component. Exemplarily, if the target reuse component is ALU, the target content may be input and output signals, constraints of input signals, and functional coverage of input signals. Usually, the target content corresponding to the target reuse component needs to be determined according to the component type of the target reuse component. The target reuse components of different component types may have different corresponding target contents, which is not limited in the embodiments of the present invention.
[0034] S120. Determine a target verification environment template according to the component type of the target reusable component; wherein the target verification environment template includes a target keyword.
[0035] Among them, the target verification environment template may refer to a verification template determined according to the component type of the target reuse component. The target verification environment template can be used to make the final verification environment meet the verification requirements of the target reuse component. It is worth noting that the target verification environment template can always include sub-templates that implement various functions. Exemplarily, if the target reuse component is ALU, the target verification environment template may include a driver template, a monitor template, a comparator template, a direct programming interface (DPI) template, a report generator template, and an excitation signal generator template.
[0036] The target keyword may refer to the identifier that needs to be left blank in each sub-template of the target verification environment template. Since reused components of the same component type cannot share code in the target content part, the part representing the target content in each sub-template of the target verification environment template needs to be left blank to facilitate the subsequent generation of the verification environment.
[0037] For example, if the target reuse component is an ALU, keywords KEYWORD__INPUT_1 and KEYWORD_INPUT_2 may be added to the location where the target content is recorded in the driver template. Keywords KEYWORD_CONSTRAINT_1 and KEYWORD_CONSTRAINT_2 may be added to the location where the target content is recorded in the stimulus signal generator template. And keywords KEYWORD_COVERGROUP_1 and KEYWORD_COVERGROUP_2 may be added to the location where the target content is recorded in the monitor template.
[0038] S130: Integrate the target keywords and target content through a verification environment generator to generate a target verification environment corresponding to the target reuse component.
[0039] The verification environment generator may refer to a device that integrates target keywords and target content. Generally, reused components of the same component type may share the same verification environment generator. The target verification environment may refer to the verification environment corresponding to the target reused component.
[0040] The technical solution of the embodiment of the present invention determines a target verification environment template containing target keywords according to the component type of the target reuse component in the target graphics processor chip; then, integrates the target keywords and the target content corresponding to the target reuse component through a verification environment generator to generate a target verification environment corresponding to the target reuse component, thereby solving the problem of low verification efficiency of chip reuse components, enabling reuse components of the same component type to share a verification environment, and improving the verification efficiency of chip reuse components.
[0041] Embodiment 2
[0042] Figure 2 A flowchart of a verification environment generation method for a chip reuse component provided in the second embodiment of the present invention is provided. This embodiment is refined based on the above-mentioned embodiment. In this embodiment, the operation of integrating the target keywords and target content through a verification environment generator to generate a target verification environment corresponding to the target reuse component is specifically refined. Specifically, it may include: determining the matching content in the target content according to the target keywords in the target verification environment template through the verification environment generator; filling the matching content into the corresponding position of the target keyword in the target verification environment template through the verification environment generator to generate a target verification environment corresponding to the target reuse component. Figure 2 As shown, the method includes:
[0043] S210: Acquire a target reusable component in a target graphics processor chip, and determine a component type of the target reusable component.
[0044] Specifically, the target graphics processor chip that needs to be verified and the target reused component in the target graphics processor chip that needs to be verified can be determined according to actual engineering requirements, and the component type of the target reused component can be determined.
[0045] S220: Acquire a target reusable component and a candidate reusable component of the same component type as the target reusable component.
[0046] The candidate reuse component may refer to a reuse component of the same component type as the target reuse component in the target GPU chip. For example, if the target reuse component is ALU1 in the target GPU chip, the candidate reuse component may be ALU2 in the target GPU chip.
[0047] S230: Obtain the difference content between the target reuse component and the candidate reuse component as the target content.
[0048] The difference content may refer to the content having a numerical difference between the target reuse component and the candidate reuse component.
[0049] Specifically, if the target reuse component is ALU1 and the selected reuse component is ALU2, the input and output signals, the constraints of the input signals and the functional coverage of the input signals can be used as the difference content, and the input and output signals corresponding to the target reuse component ALU1: INPUT_1, INPUT_2, OUTPUT_1 and OUTPUT_2, the constraints of the input signals: CONSTRAINT_1, CONSTRAINT_2 and CONSTRAINT_3 and the functional coverage of the input signals: COVERGROUP_1, COVERGROUP_2 and COVERGROUP_3 can be used as the target content.
[0050] It is worth noting that a target content keyword template may also be established according to the component type of the target reused component, and then the target content corresponding to the target reused component may be directly matched, which is not limited in the embodiment of the present invention.
[0051] S240. Determine a target verification environment template according to the component type of the target reusable component; wherein the target verification environment template includes a target keyword.
[0052] Specifically, after determining the component type of the target reused component, a corresponding target environment verification template may be matched according to the component type, thereby providing an effective basis for subsequent operations.
[0053] S250: Determine matching content in the target content according to the target keywords in the target verification environment template through the verification environment generator.
[0054] The matching content may refer to information corresponding to the target keyword in the target content. For example, if the target keyword is KEYWORD_COVERGROUP_1 in the monitor template, the matching content in the target content may be COVERGROUP_1 in the function coverage of the input signal.
[0055] In an optional embodiment, determining matching content in the target content based on target keywords in the target verification environment template through a verification environment generator may include: matching the target keywords in the target verification environment template through a verification environment generator, and determining matching content in the target content corresponding to the target keywords based on the target keywords.
[0056] Specifically, the verification environment generator can read the content in the target verification environment template, and grab each target keyword in the target verification environment template, and then determine the matching content in the target content according to the keyword. Therefore, the target verification environment template can be used to match the matching content in the target reused component, which improves the content extraction efficiency of the reused components of the same component type and provides an effective basis for subsequent operations.
[0057] S260: Fill the matching content into the corresponding position of the target keyword in the target verification environment template through the verification environment generator to generate a target verification environment corresponding to the target reuse component.
[0058] Specifically, after the target keyword is captured, the matching content corresponding to the target keyword in the target signal can be filled into the target verification environment template. Exemplarily, the input and output signals INPUT_1, INPUT_2, OUTPUT_1 and OUTPUT_2 in the target content are filled into the driver template, the constraints CONSTRAINT_1, CONSTRAINT_2 and CONSTRAINT_3 of the input signal are added to the stimulus signal generator template, and the functional coverage of the input signal COVERGROUP_1, COVERGROUP_2 and COVERGROUP_3 are filled into the monitor template. Thus, the target verification environment corresponding to the target reuse component is generated.
[0059] S270, triggering the execution of the target verification environment to implement verification of the target reused component; wherein the target verification environment includes: a signal generator, a driver, a monitor, a comparator, a report generator and an excitation signal generator.
[0060] Among them, the signal generator may refer to a device that generates an input signal corresponding to the target reuse component. The driver may refer to a device that injects the input signal generated by the signal generator into the test code corresponding to the target reuse component and the reference model corresponding to the target reuse component. The monitor may refer to a device that monitors the output signal. The comparator may refer to a device that compares the output signal of the test code corresponding to the target reuse component with the output signal of the reference model corresponding to the target reuse component. The report generator may refer to a device that generates a verification report based on the comparison result of the comparator. The stimulus signal generator may refer to a device that generates constraint conditions corresponding to the input signal.
[0061] In an optional embodiment, the triggering and executing of the target verification environment to realize the verification of the target reuse component may include: triggering and executing the target verification environment, obtaining the data signal matching the target reuse component through the driver, and transmitting it to the target reuse component and the target reference model; receiving the first output signal corresponding to the target reuse component and the second output signal corresponding to the target reference model through the monitor, and transmitting the first output signal and the second output signal to the comparator; comparing the first output signal and the second output signal through the comparator, generating a comparison result and transmitting the comparison result to the report generator; generating the verification result corresponding to the target reuse component through the report generator to realize the verification of the target reuse component.
[0062] The target reference model may refer to a model having the same functional implementation as the target reuse component. Usually, the target reference model is written in a different language than the target reuse component. The first output signal may refer to an output signal generated after the test code corresponding to the target reuse component receives an input signal. The second output signal may refer to an output signal generated after the target reference model receives an input signal.
[0063] Specifically, after generating the target verification environment corresponding to the target reuse component, a trigger debugging method can be used to obtain the input signal corresponding to the target reuse component through the driver, and inject the input signal into the test code corresponding to the target reuse component and the target reference model, and then, monitor the first output signal generated by the target reuse component when the input signal enters, and the second output signal output by the target reference model, and transmit the first output signal and the second output signal to the comparator, and further, compare the first output signal and the second output signal through the comparator, generate a comparison result and transmit the comparison result to the report generator, and finally, generate the verification result corresponding to the target reuse component through the report generator, exemplarily, if the comparison result is consistent, the verification result can be passed; if the comparison result is inconsistent, the verification result can be that the target reuse component has an abnormality or the target reference model has an abnormality. In this way, the verification of the target reuse component is achieved.
[0064] In an optional embodiment, before obtaining the data signal matching the target reuse component through the driver, it also includes: determining the constraint conditions corresponding to the target reuse component through an excitation signal generator; and generating a data signal corresponding to the target reuse component that satisfies the constraint conditions through a signal generator.
[0065] Specifically, before obtaining the data signal matching the target reuse component through the driver, it is necessary to first determine the constraint conditions of the input signal corresponding to the target reuse component through the excitation signal generator, and then generate the input signal that satisfies the constraint conditions corresponding to the target reuse component through the signal generator. Then, the input signal can be input into the target reuse component and the target reference model through the driver to complete the subsequent target reuse component verification process.
[0066] The technical solution of the embodiment of the present invention determines the target content by the difference content of the candidate reused component of the same component type as the target reused component, and then determines the target verification environment template according to the component type of the target reused component, and determines the matching content in the target content according to the target keyword in the target verification environment template through the verification environment generator, and then fills the matching content into the corresponding position of the target keyword in the target verification environment template through the verification environment generator to generate a target verification environment corresponding to the target reused component, and finally, triggers the execution of the target verification environment to realize the verification of the target reused component, which solves the problem of low verification efficiency of chip reused components, and can realize that reused components of the same component type share a verification environment, thereby improving the verification efficiency of chip reused components.
[0067] Figure 3 The flowchart of a verification environment generation method for an optional chip reuse component provided by an embodiment of the present invention is shown. Specifically, first, the target reuse component in the target graphics processor chip is determined according to the actual engineering requirements, and the component type of the target reuse component is determined, and then, the candidate reuse component of the same component type as the target reuse component is determined, and the target content of the target reuse component is determined by the difference between the target reuse component and the candidate reuse component. At the same time, the target verification environment template is determined according to the component type of the target reuse component, and further, the target keyword in the target verification environment template is matched by the verification environment generator, and the matching content corresponding to the target keyword in the target content is determined according to the target keyword, and the matching content is filled into the corresponding position of the target keyword in the target verification environment template by the verification environment generator, so as to generate a target verification environment corresponding to the target reuse component.
[0068] Embodiment 3
[0069] Figure 4 This is a schematic diagram of the structure of a verification environment generation device for a chip reuse component provided in Embodiment 3 of the present invention. Figure 4 As shown, the device includes: a data acquisition module 310, a template determination module 320 and an environment generation module 330;
[0070] The data acquisition module 310 is used to acquire a target reuse component in a target graphics processor chip, and determine a component type of the target reuse component and a target content corresponding to the target reuse component;
[0071] The template determination module 320 is used to determine a target verification environment template according to the component type of the target reusable component; wherein the target verification environment template includes a target keyword;
[0072] The environment generation module 330 is used to integrate the target keywords and target content through a verification environment generator to generate a target verification environment corresponding to a target reusable component.
[0073] The technical solution of the embodiment of the present invention determines a target verification environment template containing target keywords according to the component type of the target reuse component in the target graphics processor chip; then, integrates the target keywords and the target content corresponding to the target reuse component through a verification environment generator to generate a target verification environment corresponding to the target reuse component, thereby solving the problem of low verification efficiency of chip reuse components, enabling reuse components of the same component type to share a verification environment, and improving the verification efficiency of chip reuse components.
[0074] Optionally, the data acquisition module 310 may be specifically used for:
[0075] Acquire a target reuse component and a candidate reuse component of the same component type as the target reuse component;
[0076] The difference content between the target reuse component and the candidate reuse component is obtained as the target content.
[0077] Optionally, the environment generation module 330 may specifically include: a content matching unit and an environment generation unit;
[0078] Wherein, the content matching unit is used to determine the matching content in the target content according to the target keyword in the target verification environment template through the verification environment generator;
[0079] The environment generation unit is used to fill the matching content into the corresponding position of the target keyword in the target verification environment template through the verification environment generator, and generate a target verification environment corresponding to the target reuse component.
[0080] Optionally, the verification environment generating device for the chip reuse component may further include: a component verification module, which is used to trigger the execution of the target verification environment after the target verification environment corresponding to the target reuse component is generated by integrating the target keywords and target content through the verification environment generator, so as to realize the verification of the target reuse component; wherein, the target verification environment includes: a signal generator, a driver, a monitor, a comparator, a report generator and an excitation signal generator.
[0081] Optional component verification module, which can be used to:
[0082] Triggering the execution of the target verification environment, obtaining the data signal matched by the target reuse component through the driver, and transmitting it to the target reuse component and the target reference model;
[0083] receiving, through a monitor, a first output signal corresponding to a target reuse component and a second output signal corresponding to a target reference model, and transmitting the first output signal and the second output signal to a comparator;
[0084] Comparing the first output signal and the second output signal by a comparator, generating a comparison result and transmitting the comparison result to a report generator;
[0085] The verification result corresponding to the target reused component is generated by the report generator to realize the verification of the target reused component.
[0086] Optionally, the verification environment generating device of the chip reuse component may also include: a signal generating module, which is used to determine the constraint conditions corresponding to the target reuse component through an excitation signal generator before obtaining the data signal matching the target reuse component through the driver; and generate a data signal satisfying the constraint conditions corresponding to the target reuse component through the signal generator.
[0087] Optional, content matching unit, which can be used to:
[0088] The target keyword in the target verification environment template is matched by the verification environment generator, and the matching content corresponding to the target keyword in the target content is determined according to the target keyword.
[0089] The verification environment generation device for a chip reuse component provided in an embodiment of the present invention can execute the verification environment generation method for a chip reuse component provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0090] Embodiment 4
[0091] Figure 5A schematic diagram of an electronic device 410 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0092] like Figure 5 As shown, the electronic device 410 includes at least one processor 420, and a memory connected to the at least one processor 420 in communication, such as a read-only memory (ROM) 430, a random access memory (RAM) 440, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 420 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 430 or the computer program loaded from the storage unit 490 to the random access memory (RAM) 440. In the RAM 440, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 420, the ROM 430, and the RAM 440 are connected to each other via a bus 450. An input / output (I / O) interface 460 is also connected to the bus 450.
[0093] Multiple components in the electronic device 410 are connected to the I / O interface 460, including: an input unit 470, such as a keyboard, a mouse, etc.; an output unit 480, such as various types of displays, speakers, etc.; a storage unit 490, such as a disk, an optical disk, etc.; and a communication unit 4100, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 4100 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0094] The processor 420 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 420 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 420 performs the various methods and processes described above, such as a verification environment generation method for a chip reuse component.
[0095] The method includes:
[0096] Acquire a target reusable component in a target graphics processor chip, and determine a component type of the target reusable component and a target content corresponding to the target reusable component;
[0097] Determining a target verification environment template according to the component type of the target reused component; wherein the target verification environment template includes a target keyword;
[0098] The target keywords and target contents are integrated through a verification environment generator to generate a target verification environment corresponding to the target reuse component.
[0099] In some embodiments, the verification environment generation method of the chip reuse component may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 490. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 410 via the ROM 430 and / or the communication unit 4100. When the computer program is loaded into the RAM 440 and executed by the processor 420, one or more steps of the verification environment generation method of the chip reuse component described above may be performed. Alternatively, in other embodiments, the processor 420 may be configured to execute the verification environment generation method of the chip reuse component in any other appropriate manner (e.g., by means of firmware).
[0100] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0101] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0102] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0103] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0104] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0105] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0106] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0107] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for generating a verification environment for a chip reuse component, applicable to a reuse component in a graphics processor chip, characterized in that: The method comprises: Acquire a target reusable component in a target graphics processor chip, and determine a component type of the target reusable component and a target content corresponding to the target reusable component; Determining a target verification environment template according to the component type of the target reused component; wherein the target verification environment template includes a target keyword; The target keywords and target contents are integrated through a verification environment generator to generate a target verification environment corresponding to the target reuse component.
2. The method according to claim 1, characterized in that Determining the target content corresponding to the target reuse component includes: Acquire a target reuse component and a candidate reuse component of the same component type as the target reuse component; The difference content between the target reuse component and the candidate reuse component is obtained as the target content.
3. The method according to claim 1, characterized in that The step of integrating the target keywords and the target content through a verification environment generator to generate a target verification environment corresponding to the target reuse component includes: Determine matching content in the target content according to target keywords in the target verification environment template by using the verification environment generator; The matching content is filled into the corresponding position of the target keyword in the target verification environment template by the verification environment generator to generate a target verification environment corresponding to the target reuse component.
4. The method according to claim 1, characterized in that: After the target keywords and target contents are integrated by the verification environment generator to generate a target verification environment corresponding to the target reuse component, the method further includes: The target verification environment is triggered to execute, so as to realize the verification of the target reuse component; wherein the target verification environment includes: a signal generator, a driver, a monitor, a comparator, a report generator and an excitation signal generator.
5. The method according to claim 4, characterized in that The triggering and executing the target verification environment to implement verification of the target reuse component includes: Triggering the execution of the target verification environment, obtaining the data signal matched by the target reuse component through the driver, and transmitting it to the target reuse component and the target reference model; receiving, through a monitor, a first output signal corresponding to a target reuse component and a second output signal corresponding to a target reference model, and transmitting the first output signal and the second output signal to a comparator; Comparing the first output signal and the second output signal by a comparator, generating a comparison result and transmitting the comparison result to a report generator; The verification result corresponding to the target reused component is generated by the report generator to realize the verification of the target reused component.
6. The method according to claim 4, characterized in that Before obtaining the data signal matching the target reuse component through the driver, the method further includes: Determine the constraint conditions corresponding to the target reuse component through the stimulus signal generator; A data signal satisfying the constraint condition corresponding to the target reuse component is generated by a signal generator.
7. The method according to claim 3, characterized in that The step of determining the matching content in the target content according to the target keyword in the target verification environment template by the verification environment generator includes: The target keyword in the target verification environment template is matched by the verification environment generator, and the matching content corresponding to the target keyword in the target content is determined according to the target keyword.
8. A verification environment generation device for a chip reuse component, suitable for reuse components in a graphics processor chip, characterized in that: include: A data acquisition module, used to acquire a target reuse component in a target graphics processor chip, and determine a component type of the target reuse component and a target content corresponding to the target reuse component; A template determination module, used to determine a target verification environment template according to the component type of the target reused component; wherein the target verification environment template includes a target keyword; The environment generation module is used to integrate the target keywords and target content through the verification environment generator to generate a target verification environment corresponding to the target reuse component.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the verification environment generation method for a chip reuse component according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the verification environment generation method for a chip reuse component according to any one of claims 1 to 7 when executed.