CN112989752B - Simulation method, simulation device, terminal equipment and medium for power supply scheme - Google Patents

Simulation method, simulation device, terminal equipment and medium for power supply scheme Download PDF

Info

Publication number
CN112989752B
CN112989752B CN201911322002.1A CN201911322002A CN112989752B CN 112989752 B CN112989752 B CN 112989752B CN 201911322002 A CN201911322002 A CN 201911322002A CN 112989752 B CN112989752 B CN 112989752B
Authority
CN
China
Prior art keywords
simulation
file
instantiation
power supply
path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911322002.1A
Other languages
Chinese (zh)
Other versions
CN112989752A (en
Inventor
高辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Intellifusion Technologies Co Ltd
Original Assignee
Shenzhen Intellifusion Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Intellifusion Technologies Co Ltd filed Critical Shenzhen Intellifusion Technologies Co Ltd
Priority to CN201911322002.1A priority Critical patent/CN112989752B/en
Publication of CN112989752A publication Critical patent/CN112989752A/en
Application granted granted Critical
Publication of CN112989752B publication Critical patent/CN112989752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application is applicable to the technical field of simulation, and provides a simulation method, a simulation device, a terminal device and a medium of a power supply scheme, wherein the simulation method of the power supply scheme is characterized in that an acquired power supply instantiation file and a simulation path instantiation file are configured into a top layer file for describing the power supply scheme according to a preset top layer file configuration strategy, and information in the top layer file is used for describing the corresponding relation between each instantiation power supply and an instantiation path in the power supply scheme, so that simulation operation on all instantiation power supplies contained in the power supply scheme can be realized according to the top layer file and the simulation path instantiation file by executing a preset simulation script, and the phenomenon that driving simulation cannot be carried out on all instantiation power supplies is avoided, so that the simulation of the power supply scheme is more accurate.

Description

Simulation method, simulation device, terminal equipment and medium for power supply scheme
Technical Field
The present application relates to the field of simulation technologies, and in particular, to a simulation method and apparatus for a power supply scheme, a terminal device, and a computer readable storage medium.
Background
In the design process of integrated circuits, it is often required to design a corresponding power scheme according to the circuit requirements. For example, when integrated circuits realize various functions, different circuit units need to be designed, and corresponding power supply units, namely, corresponding power supply schemes need to be customized for the circuit units. When designing a power supply scheme, the attribute and the working strategy of the power supply unit need to be configured by using a specific tool, namely, a power supply instantiation file for describing an instantiation power supply working strategy is created, and then a complete power supply scheme is configured based on the power supply instantiation file. After the power supply scheme is designed, the power supply scheme is simulated, namely, the designed power supply scheme is simulated through a simulation tool, the working condition of the power supply scheme in a circuit is simulated, and then a reference basis is provided for analysis and improvement of the power supply scheme.
However, when the power supply scheme is simulated by using the conventional simulation scheme, since a plurality of instantiation power supplies are defined in the power supply scheme, all instantiation power supplies cannot be completely simulated, i.e. simulation driving cannot be performed on all instantiation power supplies during automatic simulation operation. For example, when the power scheme includes two or more instantiation power sources with the same configuration, only one instantiation power source is simulated and driven in the simulation process, and simulation operation cannot be performed on other instantiation power sources which are not simulated and driven. Therefore, the simulation method of the existing power supply scheme has the problem of inaccurate simulation.
Disclosure of Invention
In view of the above, the embodiments of the present application provide a power supply scheme simulation method, a simulation apparatus, a terminal device, and a computer readable storage medium, so as to solve the problem of inaccurate simulation existing in the existing power supply scheme simulation method.
A first aspect of an embodiment of the present application provides a simulation method for a power supply scheme, including:
acquiring a power supply instantiation file and a simulation path instantiation file; the power supply instantiation file is used for describing a working strategy of an instantiation power supply, and the simulation path instantiation file is used for describing an instantiation path of the instantiation power supply;
According to a preset top-level file configuration strategy, a top-level file for describing a power supply scheme is obtained based on the power supply configuration file and the simulation path instantiation file configuration; the information in the top-level file is used for describing the corresponding relation between each instantiated power supply and an instantiated path in the power supply scheme;
executing a preset simulation script, and performing simulation operation of a power supply scheme according to the top-level file and the simulation path instantiation file.
Further, the top-level file configuration strategy is used for describing the configuration mode of the pointing statement;
the configuring, according to a preset top-level file configuration policy, the top-level file for describing the power scheme based on the power configuration file and the simulation path instantiation file includes:
determining the number N of the instantiated power supplies based on the simulation path instantiation file; wherein N is an integer greater than 1;
According to the configuration mode of the pointing statement, based on the power supply configuration file and the simulation path instantiation file, configuring N sections of first pointing statement and N sections of second pointing statement;
and combining the N sections of the first pointing sentences and the N sections of the second pointing sentences to obtain a top-level file.
Further, executing the preset simulation script, and performing the simulation operation of the power supply scheme according to the top file and the simulation path instantiation file, including:
Importing the preset simulation script, the top-level file and the simulation path instantiation file into a simulation tool;
Executing the preset simulation script through the simulation tool, and constructing an execution environment for the top-level file and the simulation path instantiation file;
and executing the top file and the simulation path instantiation file to perform simulation operation of a power supply scheme under the execution environment by the simulation tool.
Further, the preset simulation script comprises a power scheme pointing statement;
executing the preset simulation script through the simulation tool, and constructing an execution environment for the top-level file and the simulation path instantiation file, wherein the execution environment comprises the following steps:
Executing the power scheme pointing statement through the simulation tool, and constructing an execution environment for the power scheme described by the top-level file and the instantiation path described by the simulation path instantiation file.
Further, the executing, by the simulation tool, the simulation operation of the power scheme by the top-level file and the simulation path instantiation file in the execution environment includes:
determining each target instantiation power supply from the power supply scheme according to each section of the first pointing statement by the simulation tool in the simulation environment, and determining a target instantiation path corresponding to each target instantiation power supply according to each section of the second pointing statement;
and carrying out simulation operation on each target instantiation power supply based on the target instantiation path corresponding to each target instantiation power supply through the simulation tool.
Further, the determining the number N of the instantiated power supplies based on the simulation path instantiation file includes:
analyzing the simulation path instantiation file to determine the number X of instantiation paths; wherein X is an integer greater than 1;
and identifying the number X of the instantiation paths as the number N of the instantiation power sources.
Further, after the step of executing the preset simulation script and performing the simulation operation of the power scheme according to the top-level file and the simulation path instantiation file, the method further includes:
acquiring target data of the simulation operation;
Calling a data summarizing tool to manufacture a data display file according to the target data;
And displaying the data display file.
A second aspect of an embodiment of the present application provides a simulation apparatus for a power supply scheme, including:
The first acquisition unit is used for acquiring a power supply instantiation file and a simulation path instantiation file; the power supply instantiation file is used for describing a working strategy of an instantiation power supply, and the simulation path instantiation file is used for describing an instantiation path of the instantiation power supply;
The configuration unit is used for configuring a top-level file for describing a power supply scheme based on the power supply configuration file and the simulation path instantiation file according to a preset top-level file configuration strategy; the information in the top-level file is used for describing the corresponding relation between each instantiated power supply and an instantiated path in the power supply scheme;
And the execution unit is used for executing a preset simulation script and carrying out simulation operation of a power supply scheme according to the top-level file and the simulation path instantiation file.
A third aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the terminal device, where the processor implements steps of a simulation method of a power supply scheme provided by a first scheme when the computer program is executed.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the simulation method of the power scheme provided by the first scheme.
A fifth aspect of the embodiments of the present application provides a computer program product for, when run on a terminal device, causing the terminal device to perform the steps of the simulation method of the power scheme as set forth in any one of the first aspects above.
The simulation method, the simulation device, the terminal equipment and the computer readable storage medium for implementing the power supply scheme provided by the embodiment of the application have the following beneficial effects:
According to the simulation method for the power supply scheme, the obtained power supply instantiation files and simulation path instantiation files are configured into the top-level files for describing the power supply scheme according to the preset top-level file configuration strategy, and because the information in the top-level files is used for describing the corresponding relation between each instantiation power supply and each instantiation path in the power supply scheme, the simulation operation on all instantiation power supplies contained in the power supply scheme can be realized according to the top-level files and the simulation path instantiation files by executing the preset simulation scripts, and the phenomenon that simulation driving cannot be carried out on all instantiation power supplies is avoided, so that the simulation of the power supply scheme is more accurate.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an implementation of a simulation method of a power supply scheme provided by an embodiment of the application;
FIG. 2 is a flowchart of a simulation method of a power scheme according to another embodiment of the present application;
FIG. 3 is a block diagram of a power supply scheme simulation device according to an embodiment of the present application;
Fig. 4 is a block diagram of a terminal device according to another embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation method of a power scheme according to an embodiment of the present application. In all embodiments of the present application, the simulation method of the power supply scheme is used for simulating the working condition of the power supply scheme in the circuit, and the execution subject is a computer terminal device, for example, a computer or a server for designing the power supply scheme and performing simulation operation on the power supply scheme.
The simulation method of the power supply scheme shown in fig. 1 comprises the following steps:
S11: acquiring a power supply instantiation file and a simulation path instantiation file; the power supply instantiation file is used for describing the working strategy of the instantiation power supply, and the simulation path instantiation file is used for describing the instantiation path of the instantiation power supply.
In S11, the power supply instantiation file and the simulation path instantiation file are both files obtained by the instantiation tool configuration. The power supply instantiation file is used for describing the working strategy of the instantiation power supply, and the simulation path instantiation file is used for describing the instantiation path of the instantiation power supply.
It should be noted that, in the design process of an integrated circuit, since a plurality of functional units are involved in one integrated circuit, an exemplary power supply for each functional unit needs to be designed, so as to obtain a complete power supply scheme. When the power supply scheme is designed, the instantiation power supply can be used as a power supply node, the functional unit corresponding to the power supply node is a power receiving circuit, namely, an instantiation path, and different instantiation power supplies correspond to different instantiation paths.
It will be appreciated that in all embodiments of the application, since the power scheme is a power scheme that instantiates functional units in the integrated circuit, the power scheme has different partitioned instantiated power for different functional units, i.e., includes at least two sets of instantiated power. When the instantiation power supplies of different partitions of the power supply scheme have the same power consumption intention, the instantiation power supplies of different partitions can be mapped by the same power supply instantiation file.
It should be noted that, since the hardware description language does not support the description of the power connection, when the operation process of the power scheme is emulated, a unified power consumption format (Unified Power Format, UPF) file (i.e., UPF file) and a register conversion stage circuit (REGISTER TRANSFER LEVEL, RTL) script file (i.e., RTL script file) need to be extended to describe the power switch and its connection.
In this embodiment, the power instantiation file is a UPF file edited using the tool command language (Tool Command Language, TCL) that describes the operational policies of the instantiation power. The simulation path instantiation file is an RTL script file, is edited based on a Very High-speed integrated circuit hardware description language (VHDL) or a Verilog language, and is used for describing an instantiation path of an instantiation power supply.
It should be explained that, since most circuits can be regarded as storing binary data by registers or performing data processing by logic operations between registers, the flow of data processing is controlled by a time sequence state machine, these processes and controls can be described in a hardware description language, so that the RTL script file can describe the functions achieved by an ideal circuit in a hardware description language (Verilog or VHDL), the gate level is a function of implementing the circuit by a specific logic unit, and the gate level can be finally processed into actual hardware in a semiconductor factory. RTL and gate level are different stages in design realization, and RTL obtains the gate level after logic synthesis.
As for the timing of acquiring the power supply instantiation file and the simulation path instantiation file, the following two scenarios may be included, but are not limited to.
Scene 1: and when a preset instruction for configuring the power supply scheme is detected, acquiring a power supply instantiation file and a simulation path instantiation file.
For example, when a power supply scheme is configured for a functional unit in an integrated circuit, a preset instruction of a new project is initiated in a power supply scheme tool, and then a configuration component is called to acquire a power supply instantiation file and a simulation path instantiation file; the power supply scheme tool is provided with a configuration component and a simulation component in advance, wherein the configuration component is used for assisting in creating and configuring a power supply scheme, and the simulation component is used for performing simulation operation on a circuit scheme.
Scene 2: when a preset instruction for performing simulation operation on the power supply scheme is detected, a power supply instantiation file and a simulation path instantiation file are obtained.
For example, after a power scheme is configured by a power scheme tool, the preset instruction is triggered, and then a simulation component is called to obtain a power instantiation file and a simulation path instantiation file corresponding to the power scheme, wherein the power scheme tool is pre-configured with the simulation component, and the simulation component is used for performing simulation operation on a circuit scheme.
S12: according to a preset top-level file configuration strategy, a top-level file for describing a power supply scheme is obtained based on the power supply configuration file and the simulation path instantiation file configuration; the information in the top-level file is used for describing the corresponding relation between each instantiated power supply and the instantiated path in the power supply scheme.
In S12, the top-level file configuration policy is a method for describing the top-level file configuration based on the power configuration file and the simulation path instantiation file. That is, the top level file is a script file configured based on the power supply configuration file and the simulation path instantiation file.
It should be noted that, when the power schemes of the different instantiation power sources have the same power consumption intention, the instantiation power sources can be mapped from the same power source instantiation file, so in the top-level file, the instantiation power sources corresponding to different instantiation paths can be pointed to the same power source instantiation file by configuring corresponding pointing sentences. Meanwhile, the information in the top-level file can also be used for describing the corresponding relation between each instantiation power supply and an instantiation path in the power supply scheme, so that when the power supply scheme is simulated, because the instantiation power supplies correspond to different instantiation paths, even if different instantiation power supplies point to the same power supply instantiation file, different instantiation power supplies can be driven by different instantiation paths, and the phenomenon that only one instantiation power supply is driven is avoided.
As one possible implementation of this embodiment, a top-level file configuration policy is used to describe the configuration of the directed statements. Based on this, S12 specifically includes:
Determining the number N of the instantiated power supplies based on the simulation path instantiation file; wherein N is an integer greater than 1; according to the configuration mode of the pointing statement, based on the power supply configuration file and the simulation path instantiation file, configuring N sections of first pointing statement and N sections of second pointing statement; and combining the N sections of the first pointing sentences and the N sections of the second pointing sentences to obtain a top-level file.
In this embodiment, the top-level file configuration policy is used to define a configuration method of the directed statement, where the configuration manner of the directed statement may include a configuration manner of a first directed statement and a configuration manner of a second directed statement, where the first directed statement is used to define or distinguish an instantiated power supply in the circuit scheme, the second directed statement is used to define or distinguish an instantiated path, and the first directed statement and the second directed statement are in one-to-one correspondence with each other.
It should be noted that, different key fields, namely, a first key field and a second key field, are respectively defined in the configuration mode of the first pointing sentence and the configuration mode of the second pointing sentence.
Taking the example that the power instantiation file is inst_module.upf and the first key field is load_ upf as an example, the configuration of the N segments of first pointing statements based on the power configuration file according to the configuration mode of the pointing statements may be:
load_ upf instA, load_ upf instA2, … … load_ upfinstAN, wherein load_ upf represents an exemplary power supply in the power scheme, instA1, instA2, … … instAN are serial numbers or names of the exemplary power supplies.
Based on the above embodiment, the second key field is a scope, and according to the configuration mode of the pointing statement, based on the simulation path instantiation file, the configuration to obtain N segments of second pointing statement may be:
scope instA1, scope instA, … … scope instAN, wherein scope represents an instantiation path corresponding to an instantiation power in the power scheme, and instA, instA2, … … instAN are serial numbers or names of the instantiation power.
The top file obtained by combining the N sections of the first pointing statement and the N sections of the second pointing statement is named as an asec_top.upf, that is, in the top file asec_top.upf, load_ upf instA1, load_ upf instA2 and … … load_ upfinstAN are respectively used for pointing to N instantiation power sources, and scope instA1, scope instA2 and … … scope instAN are respectively used for pointing to N instantiation paths corresponding to the N instantiation power sources one by one.
In this embodiment, the N sections of first pointing statements and N sections of second pointing statements are combined, which may be to perform field splicing on each section of first pointing statement and each section of second pointing statement, and fill each section of first pointing statement and each section of second pointing statement into a script template correspondingly, so as to obtain a top-level file. Because the top-level file configuration strategy is used for describing the configuration mode of the directed sentences, the N sections of first directed sentences and N sections of second directed sentences obtained by configuration can be respectively used for defining or distinguishing the instantiated power supply and the instantiated path based on the power supply configuration file and the simulation path instantiation file according to the top-level file configuration strategy. The corresponding relation between each instantiation power supply and each instantiation path is defined from the script editing layer, and the association between the instantiation power supply and the instantiation paths is realized, so that the association relation between the instantiation power supply and the instantiation paths must be followed when the power supply scheme is simulated, and a reliable and accurate foundation is provided for the simulation operation of the power supply scheme.
As one possible implementation manner of this embodiment, the steps are as follows: determining the number N of the instantiated power supplies based on the simulation path instantiation file comprises the following steps: analyzing the simulation path instantiation file to determine the number X of instantiation paths; wherein X is an integer greater than 1; and identifying the number X of the instantiation paths as the number N of the instantiation power sources.
In this embodiment, since the simulation path instantiation file is used to describe the instantiation paths of the instantiation power source, and different instantiation power sources correspond to different instantiation paths, the number of instantiation paths described by the simulation path instantiation file can be determined based on the simulation path instantiation file.
It should be noted that, the simulation path instantiation file may be an RTL script file, which is edited based on VHDL language or Verilog language, and by configuring a corresponding identifier or annotation in the RTL script file, different instantiation paths corresponding to different instantiation power sources may be distinguished.
In this embodiment, the simulation path instantiation file is parsed, specifically, the RTL script file is parsed by a script compiling tool or a script parsing tool, so as to determine the number X of instantiation paths, and determine the number N of instantiation power sources based on the number X of instantiation paths, that is, identify the number X of instantiation paths as the number N of instantiation power sources, that is, assign the number X of instantiation paths as the number N of instantiation power sources.
In this embodiment, the number X of the exemplary paths and the number N of the exemplary power supplies are used only to distinguish the meaning of the number of the exemplary paths and the number of the exemplary power supplies on the physical level, and are not used to distinguish the actual values. In practical application, after the number of the instantiation paths is assigned to the number of the instantiation power sources, the meaning of the instantiation paths and the instantiation power sources on a physical level is not affected.
It can be appreciated that in other embodiments, since the emulation path instantiation file can be given to the requirements of the functional units in the integrated circuit, when the emulation path instantiation file is created, the attribute information of the emulation path instantiation file is configured, and thus the number of instantiation paths can be determined from the attribute information of the emulation path instantiation file. For example, the number X of instantiation paths may be determined from attribute information of an emulation path instantiation file, that is, attribute information of an RTL script file, and then the number X of instantiation paths may be identified as the number N of instantiation power sources.
In practical application, since the power supply instantiation file and the simulation path instantiation file are existing ready resources, and the power supply instantiation file is customized on the premise of the simulation path instantiation file, the instantiation path of the instantiation power supply described by the simulation path instantiation file is necessarily related to the working strategy of the instantiation power supply described by the power supply instantiation file, and the number X of the instantiation paths and the number N of the instantiation power supply are determined and identified, so that the number of segments of the first pointing statement and the number of segments of the second pointing statement to be configured can be skillfully determined, and the configuration efficiency and accuracy of the top-level file are improved to a certain extent.
S13: executing a preset simulation script, and performing simulation operation of a power supply scheme according to the top-level file and the simulation path instantiation file.
In S13, the simulation script is a script file for describing the power scheme simulation content or the simulation process.
It should be noted that, because the information in the top-level file is used for describing the correspondence between each instantiated power supply and an instantiated path in the power supply scheme, and the simulation path instantiation file is used for describing the instantiated path of the instantiated power supply, when executing the simulation operation of the power supply scheme according to the top-level file and the simulation path instantiation file by the preset simulation script, the simulation operation can be performed based on the correspondence between each instantiated power supply and an instantiated path in the power supply scheme, that is, the driving of each instantiated power supply in the power supply scheme is realized, and meanwhile, the working process between each instantiated power supply and an instantiated path in the power supply scheme is simulated. The phenomenon that an instantiation power supply is not driven in the circuit scheme simulation process, so that an inaccurate simulation result is caused is avoided.
As one possible implementation manner of this embodiment, S13 specifically includes: importing the preset simulation script, the top-level file and the simulation path instantiation file into a simulation tool; executing the preset simulation script through the simulation tool, and constructing an execution environment for the top-level file and the simulation path instantiation file; and executing the top file and the simulation path instantiation file to perform simulation operation of a power supply scheme under the execution environment by the simulation tool.
In this embodiment, the simulation tool may be a compiled Verilog simulator, such as a VCS simulation tool. The VCS simulation tool supports the Verilog HDL language, PLI and SDF of the OVI standard, and a graphical user interface, such as Virsim graphical user interface, can be integrated in the VCS simulation tool, so that a foundation is provided for interaction and post-processing of simulation results.
It should be noted that, when simulating different power schemes, a simulation environment, that is, an execution environment, of the different power schemes may be configured. In this embodiment, a build statement of an execution environment is defined in a preset simulation script, and the execution environment can be built for a top-level file and a simulation path instantiation file by executing the preset simulation script through a simulation tool. After the execution environment is built, executing the top-level file and the simulation path instantiation file in the execution environment through a simulation tool to realize the simulation operation of the power supply scheme.
As a possible implementation manner of this embodiment, the preset simulation script includes a power scheme pointing statement. The steps are as follows: executing the preset simulation script through the simulation tool, and constructing an execution environment for the top-level file and the simulation path instantiation file, wherein the execution environment comprises the following steps:
Executing the power scheme pointing statement through the simulation tool, and constructing an execution environment for the power scheme described by the top-level file and the instantiation path described by the simulation path instantiation file.
In this embodiment, the power scheme pointing statement is used to point to the power scheme being emulated before the emulation operation, while also providing the power scheme with the execution environment required for the emulation operation.
It should be noted that the power scheme pointing statement includes a key field for pointing to the top-level file, and a key field for pointing to each instantiated power in the power scheme characterized by the top-level file.
Taking the example that the key field pointing to the top-level file is power_ topasic _top, the key field is used to point to the top-level file, that is, to determine the power scheme that needs to perform the emulation operation. In this embodiment, the top file is an asic_top. Upf, and accordingly, the complete power scheme pointing statement is:
power_topasic_topasic_top.upf
taking the example that the key field pointing to the instantiated power supply is power_inst, the key field is used for pointing to the instantiated power supply in the power supply scheme characterized by the top-level file, that is, defining the simulation time of the instantiated power supply in the simulation operation process. In this embodiment, the exemplary power sources are instA1, instA2, … … instAN, and correspondingly, the exemplary power source pointing statement in the power scheme characterized by the top-level file is:
power_inst A1
power_instA2
……
power_instAN
Wherein power_insta1 points to the first instantiated power supply in the power scheme characterized by the top-level file, or the instantiated power supply named A1, and so on, power_ instAN points to the nth instantiated power supply in the power scheme characterized by the top-level file, or the instantiated power supply named AN.
In this embodiment, a power scheme pointing statement is defined in a preset simulation script, so when the simulation of the power scheme is performed, an execution environment can be built for the corresponding top-level file and the simulation path instantiation file according to the power scheme pointing statement, that is, the corresponding top-level file and the instantiation power in the power scheme represented by the top-level file are determined, and further an implementation basis is provided for the simulation operation.
As one possible implementation manner of this embodiment, the steps are as follows: executing the top file and the simulation path instantiation file to perform simulation operation of a power supply scheme under the execution environment by the simulation tool, wherein the simulation operation comprises the following steps:
Determining each target instantiation power supply from the power supply scheme according to each section of the first pointing statement by the simulation tool in the simulation environment, and determining a target instantiation path corresponding to each target instantiation power supply according to each section of the second pointing statement; and carrying out simulation operation on each target instantiation power supply based on the target instantiation path corresponding to each target instantiation power supply through the simulation tool.
In this embodiment, each target instantiation power supply is determined from the power supply scheme according to each segment of the first directive statement, that is, a corresponding target instantiation power supply is determined from the top-level file according to each segment of the first directive statement, and a corresponding target instantiation path of each target instantiation power supply is determined according to each segment of the second directive statement, that is, a corresponding target instantiation path of each target instantiation power supply is determined from the simulation path instantiation file according to each segment of the second directive statement.
As can be seen from the foregoing, in the simulation method for a power supply scheme provided in this embodiment, the obtained power supply instantiation file and the simulation path instantiation file are configured into the top-level file for describing the power supply scheme according to the preset top-level file configuration policy, and because the information in the top-level file is used for describing the correspondence between each instantiation power supply and each instantiation path in the power supply scheme, by executing the preset simulation script, the simulation operation on all instantiation power supplies included in the power supply scheme can be implemented according to the top-level file and the simulation path instantiation file, so that the phenomenon that simulation driving cannot be performed on all instantiation power supplies is avoided, and the simulation of the power supply scheme is more accurate.
Referring to fig. 2, fig. 2 is a flowchart illustrating an implementation method of a power scheme according to another embodiment of the application. Compared with the corresponding embodiment of fig. 1, the simulation method of the power supply scheme provided in this embodiment further includes S21 to S23 after S13. The details are as follows:
s21: and obtaining target data of the simulation operation.
S22: and calling a data summarizing tool to manufacture a data display file according to the target data.
S23: and displaying the data display file.
In this embodiment, the target data is data obtained by simulating a working condition under the condition that the target instantiation power source and the target instantiation path are associated when the power source scheme is subjected to the simulation operation. The data summarization tool is a plug-in tool for making data presentation files.
In all embodiments of the application, the simulation tool may be a compiled Verilog simulator, such as a VCS simulation tool. The VCS simulation tools support the Verilog HDL language, PLI, and SDF of the OVI standard, in which data summarization tools, such as graphical user interfaces, may also be integrated.
Taking a graphical user interface Virsim as an example, acquiring target data of simulation operation, uploading the target data to a Virsim graphical user interface, and calling a Virsim graphical user interface to manufacture a data display file according to the target data.
It will be appreciated that the data presentation file may be a text file or an image file, for example, a form text file or a pie image file, etc., is created from the target data by invoking a data summarization tool.
Because the data presentation file can be used for representing target data, namely simulation operation results of the power supply scheme, when the data presentation file is displayed, different display effects can be formulated based on the requirements of the power supply scheme, such as displaying the data presentation file in a text form, namely displaying a text file, such as a table; and then, the image file, such as a bar chart or a pie chart, is displayed only in the form of an image; and further, the text file and the image file are displayed in a form of a graph, such as a table content, a bar chart or a pie chart.
As can be seen from the foregoing, in the simulation method for a power supply scheme provided in this embodiment, the obtained power supply instantiation file and the simulation path instantiation file are configured into the top-level file for describing the power supply scheme according to the preset top-level file configuration policy, and because the information in the top-level file is used for describing the correspondence between each instantiation power supply and each instantiation path in the power supply scheme, by executing the preset simulation script, the simulation operation on all instantiation power supplies included in the power supply scheme can be implemented according to the top-level file and the simulation path instantiation file, so that the phenomenon that driving simulation cannot be performed on all instantiation power supplies is avoided, and the simulation of the power supply scheme is more accurate.
In addition, the data summarizing tool is called to manufacture and display the data display file according to the target data, so that simulation results can be intuitively reflected without manual intervention after simulation operation of the power supply scheme, reference is provided for adjustment of the power supply scheme, and meanwhile, the accuracy of the data is guaranteed.
Referring to fig. 3, fig. 3 is a block diagram of a power supply scheme simulation device according to an embodiment of the present application. The simulation device of the power supply scheme in this embodiment includes units for executing the steps in the embodiments corresponding to fig. 1 to 2. Please refer to fig. 1 to fig. 2 and the related descriptions in the embodiments corresponding to fig. 1 to fig. 2. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 3, the simulation apparatus 30 of the power scheme includes: a first acquisition unit 31, a configuration unit 32, and an execution unit 33. Wherein:
A first obtaining unit 31 for obtaining a power supply instantiation file and a simulation path instantiation file; the power supply instantiation file is used for describing the working strategy of the instantiation power supply, and the simulation path instantiation file is used for describing the instantiation path of the instantiation power supply.
A configuration unit 32, configured to obtain a top-level file for describing a power scheme according to a preset top-level file configuration policy based on the power configuration file and the simulation path instantiation file configuration; the information in the top-level file is used for describing the corresponding relation between each instantiated power supply and the instantiated path in the power supply scheme.
And the execution unit 33 is used for executing a preset simulation script, and performing simulation operation of a power supply scheme according to the top-level file and the simulation path instantiation file.
As an embodiment of the application, the top-level file configuration strategy is used for describing the configuration mode of the pointing statement; the configuration unit 32 is specifically configured to determine the number N of the instantiated power supplies based on the emulation path instantiation file; wherein N is an integer greater than 1; according to the configuration mode of the pointing statement, based on the power supply configuration file and the simulation path instantiation file, configuring N sections of first pointing statement and N sections of second pointing statement; and combining the N sections of the first pointing sentences and the N sections of the second pointing sentences to obtain a top-level file.
As an embodiment of the present application, the execution unit 33 is specifically configured to import the preset simulation script, the top-level file, and the simulation path instantiation file into a simulation tool; executing the preset simulation script through the simulation tool, and constructing an execution environment for the top-level file and the simulation path instantiation file; and executing the top file and the simulation path instantiation file to perform simulation operation of a power supply scheme under the execution environment by the simulation tool.
As an embodiment of the present application, the preset simulation script includes a power scheme pointing statement; the execution unit 33 is specifically further configured to execute the power scheme directive statement through the simulation tool, and construct an execution environment for the power scheme described by the top-level file and the instantiation path described by the simulation path instantiation file.
As an embodiment of the present application, the execution unit 33 is specifically further configured to determine, by using the simulation tool in the simulation environment, each target instantiation power from the power scheme according to each segment of the first directive statement, and determine, according to each segment of the second directive statement, a target instantiation path corresponding to each target instantiation power; and carrying out simulation operation on each target instantiation power supply based on the target instantiation path corresponding to each target instantiation power supply through the simulation tool.
As an embodiment of the present application, the configuration unit 32 is specifically further configured to parse the simulation path instantiation file to determine the number X of instantiation paths; and identifying the number X of the instantiation paths as the number N of the instantiation power sources.
As an embodiment of the present application, the simulation device 30 of the power supply scheme further includes: a second acquisition unit 34, a calling unit 35 and a display unit 36. Specifically:
and a second acquisition unit 34, configured to acquire target data of the simulation operation.
And the calling unit 35 is used for calling a data summarizing tool to manufacture a data display file according to the target data.
And a display unit 36 for displaying the data presentation file.
As can be seen from the foregoing, in the solution provided by the present embodiment, the obtained power instantiation file and the simulation path instantiation file are configured into the top-level file for describing the power scheme according to the preset top-level file configuration policy, and because the information in the top-level file is used for describing the correspondence between each instantiation power and each instantiation path in the power scheme, by executing the preset simulation script, the simulation operation on all the instantiation power included in the power scheme can be implemented according to the top-level file and the simulation path instantiation file, so that the phenomenon that driving simulation cannot be performed on all the instantiation power is avoided, and the simulation of the power scheme is more accurate.
In addition, the data summarizing tool is called to manufacture and display the data display file according to the target data, so that simulation results can be intuitively reflected without manual intervention after simulation operation of the power supply scheme, reference is provided for adjustment of the power supply scheme, and meanwhile, the accuracy of the data is guaranteed.
Fig. 4 is a block diagram of a terminal device according to another embodiment of the present application. As shown in fig. 4, the terminal device 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50, for example a program of a simulation method of a power supply scheme. The steps in the embodiments of the simulation method of each power scheme described above, such as S11 to S13 shown in fig. 1, and S11 to S23 shown in fig. 2, are implemented when the processor 50 executes the computer program 52. Or the processor 50 performs the functions of each unit in the embodiment corresponding to fig. 3, for example, the functions of units 31 to 36 shown in fig. 3, when executing the computer program 52, refer to the related description in the embodiment corresponding to fig. 4, which is not repeated here.
By way of example, the computer program 52 may be partitioned into one or more units that are stored in the memory 51 and executed by the processor 50 to complete the present application. The one or more units may be a series of computer program instruction segments capable of performing a specific function describing the execution of the computer program 52 in the terminal device 5. For example, the computer program 52 may be divided into a first acquisition unit, a configuration unit and an execution unit, and may be further divided into a second acquisition unit, a calling unit and a display unit, each unit having a specific function as described above.
The terminal device may include, but is not limited to, a processor 50, a memory 51. It will be appreciated by those skilled in the art that fig. 4 is merely an example of the terminal device 5 and does not constitute a limitation of the terminal device 5, and may include more or less components than illustrated, or may combine certain components, or different components, e.g., the terminal device may further include an input-output device, a network access device, a bus, etc.
The Processor 50 may be a central processing unit (Central Processing Unit, CPU), other general purpose Processor, digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), off-the-shelf Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the terminal device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 51 is used for storing the computer program as well as other programs and data required by the terminal device. The memory 51 may also be used to temporarily store data that has been output or is to be output.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (9)

1. A method for simulating a power scheme, comprising:
acquiring a power supply instantiation file and a simulation path instantiation file; the power supply instantiation file is used for describing a working strategy of an instantiation power supply, and the simulation path instantiation file is used for describing an instantiation path of the instantiation power supply;
According to a preset top-level file configuration strategy, a top-level file for describing a power supply scheme is obtained based on the power supply configuration file and the simulation path instantiation file configuration; the information in the top-level file is used for describing the corresponding relation between each instantiated power supply and an instantiated path in the power supply scheme;
executing a preset simulation script, and performing simulation operation of a power supply scheme according to the top-level file and the simulation path instantiation file;
the top-level file configuration strategy is used for describing the configuration mode of the pointing statement;
the configuring, according to a preset top-level file configuration policy, the top-level file for describing the power scheme based on the power configuration file and the simulation path instantiation file includes:
determining the number N of the instantiated power supplies based on the simulation path instantiation file; wherein N is an integer greater than 1;
According to the configuration mode of the pointing statement, based on the power supply configuration file and the simulation path instantiation file, configuring N sections of first pointing statement and N sections of second pointing statement;
and combining the N sections of the first pointing sentences and the N sections of the second pointing sentences to obtain a top-level file.
2. The power scheme simulation method according to claim 1, wherein the executing the preset simulation script performs the power scheme simulation operation according to the top-level file and the simulation path instantiation file, and includes:
Importing the preset simulation script, the top-level file and the simulation path instantiation file into a simulation tool;
Executing the preset simulation script through the simulation tool, and constructing an execution environment for the top-level file and the simulation path instantiation file;
and executing the top file and the simulation path instantiation file to perform simulation operation of a power supply scheme under the execution environment by the simulation tool.
3. The simulation method of a power scheme according to claim 2, wherein the preset simulation script includes a power scheme pointing sentence;
executing the preset simulation script through the simulation tool, and constructing an execution environment for the top-level file and the simulation path instantiation file, wherein the execution environment comprises the following steps:
Executing the power scheme pointing statement through the simulation tool, and constructing an execution environment for the power scheme described by the top-level file and the instantiation path described by the simulation path instantiation file.
4. The method for simulating a power supply scheme according to claim 2, wherein executing the top-level file and the simulation path instantiation file by the simulation tool in the execution environment performs a simulation operation of the power supply scheme, comprising:
determining each target instantiation power supply from the power supply scheme according to each section of the first pointing statement by the simulation tool in the simulation environment, and determining a target instantiation path corresponding to each target instantiation power supply according to each section of the second pointing statement;
and carrying out simulation operation on each target instantiation power supply based on the target instantiation path corresponding to each target instantiation power supply through the simulation tool.
5. The method for simulating a power scheme according to claim 1, wherein determining the number N of the instantiated power supplies based on the simulation path instantiation file comprises:
analyzing the simulation path instantiation file to determine the number X of instantiation paths; wherein X is an integer greater than 1;
and identifying the number X of the instantiation paths as the number N of the instantiation power sources.
6. The method for simulating a power supply according to any one of claims 1 to 5, wherein after the step of executing the preset simulation script to perform the simulation operation of the power supply according to the top-level file and the simulation path instantiation file, further comprises:
acquiring target data of the simulation operation;
Calling a data summarizing tool to manufacture a data display file according to the target data;
And displaying the data display file.
7. A power scheme simulation apparatus, comprising:
The first acquisition unit is used for acquiring a power supply instantiation file and a simulation path instantiation file; the power supply instantiation file is used for describing a working strategy of an instantiation power supply, and the simulation path instantiation file is used for describing an instantiation path of the instantiation power supply;
The configuration unit is used for configuring a top-level file for describing a power supply scheme based on the power supply configuration file and the simulation path instantiation file according to a preset top-level file configuration strategy; the information in the top-level file is used for describing the corresponding relation between each instantiated power supply and an instantiated path in the power supply scheme;
the execution unit is used for executing a preset simulation script and carrying out simulation operation of a power supply scheme according to the top-level file and the simulation path instantiation file;
the top-level file configuration strategy is used for describing the configuration mode of the pointing statement;
The configuration unit is specifically configured to:
determining the number N of the instantiated power supplies based on the simulation path instantiation file; wherein N is an integer greater than 1;
According to the configuration mode of the pointing statement, based on the power supply configuration file and the simulation path instantiation file, configuring N sections of first pointing statement and N sections of second pointing statement;
and combining the N sections of the first pointing sentences and the N sections of the second pointing sentences to obtain a top-level file.
8. A terminal device, characterized in that the terminal device comprises a memory, a processor and a computer program stored in the memory and executable on the terminal device, which processor, when executing the computer program, realizes the steps of the method according to any one of claims 1 to 6.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 6.
CN201911322002.1A 2019-12-18 2019-12-18 Simulation method, simulation device, terminal equipment and medium for power supply scheme Active CN112989752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911322002.1A CN112989752B (en) 2019-12-18 2019-12-18 Simulation method, simulation device, terminal equipment and medium for power supply scheme

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911322002.1A CN112989752B (en) 2019-12-18 2019-12-18 Simulation method, simulation device, terminal equipment and medium for power supply scheme

Publications (2)

Publication Number Publication Date
CN112989752A CN112989752A (en) 2021-06-18
CN112989752B true CN112989752B (en) 2024-05-03

Family

ID=76344129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911322002.1A Active CN112989752B (en) 2019-12-18 2019-12-18 Simulation method, simulation device, terminal equipment and medium for power supply scheme

Country Status (1)

Country Link
CN (1) CN112989752B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722382A (en) * 2012-05-21 2012-10-10 华为技术有限公司 Method for loading table entries in simulation process and simulation device
CN107862155A (en) * 2017-11-30 2018-03-30 青岛海信电器股份有限公司 The method and apparatus that function coverage model checking is carried out to chip

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9443045B2 (en) * 2011-02-07 2016-09-13 Apple Inc. Power estimation in an integrated circuit design flow

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722382A (en) * 2012-05-21 2012-10-10 华为技术有限公司 Method for loading table entries in simulation process and simulation device
CN107862155A (en) * 2017-11-30 2018-03-30 青岛海信电器股份有限公司 The method and apparatus that function coverage model checking is carried out to chip

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于Verilog HDL双向端口的设计与实现;李雪梅;路而红;;现代电子技术(14);全文 *
电学仿真实验的一种模式及其算法;冯绍勇;;大学物理实验(03);全文 *

Also Published As

Publication number Publication date
CN112989752A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN102646038B (en) Control content display method, control content display device and mobile terminal
US9348960B1 (en) Method, system, and computer program product for probing or netlisting a multi-fabric electronic design spanning across multiple design fabrics
US9183337B1 (en) Circuit design with predefined configuration of parameterized cores
US10489534B1 (en) Support for multiple user defined assertion checkers in a multi-FPGA prototyping system
US10185472B2 (en) Method for providing a user interface, computer system and computer program product
CN109766139B (en) Configuration method and device of configuration file
CN109241026A (en) The method, apparatus and system of data management
CN107688682B (en) Method for extracting circuit topology by using time sequence path
CN113268227A (en) Zero-code visualization software development platform and development method
US8099270B2 (en) Simulation model for transistors
CN113919158A (en) Simulation method and device for flight control panel and storage medium
CN110727429A (en) Front-end page generation method, device and equipment
CN112989752B (en) Simulation method, simulation device, terminal equipment and medium for power supply scheme
CN117195818A (en) Power supply design command generation method and device, electronic equipment and storage medium
CN104572427A (en) Page testing method, server and system
CN101866373A (en) Execution monitor for electronic design automation
CN109324838B (en) Execution method and execution device of single chip microcomputer program and terminal
US9223910B1 (en) Performance and memory efficient modeling of HDL ports for simulation
CN113822002B (en) Data processing method, device, computer equipment and storage medium
US9280627B1 (en) GUI based verification at multiple abstraction levels
CN116185389A (en) Code generation method and device, electronic equipment and medium
CN116976252A (en) Regression simulation method, device, equipment, medium and program product
CN115544922A (en) PCIe verification IP automatic integration method and system capable of configuring and supporting multiple working modes
CN108334313A (en) Continuous integrating method, apparatus and code management system for large-scale SOC research and development
US20130074021A1 (en) Clock alias for timing analysis of an integrated circuit design

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant