Circuit system simulation method and device, electronic equipment and storage medium

文档序号:406820 发布日期:2021-12-17 浏览:52次 中文

阅读说明:本技术 一种电路系统的仿真方法、装置、电子设备及存储介质 (Circuit system simulation method and device, electronic equipment and storage medium ) 是由 陈岚 尹明会 于 2021-10-20 设计创作,主要内容包括:本申请提供了一种电路系统的仿真方法、装置、电子设备及存储介质,该方法包括:在获取到待仿真电路系统的电路设计架构之后,基于电路设计架构分别创建出待仿真电路系统的数字电路仿真黑盒和模拟电路仿真黑盒;基于数字电路仿真黑盒和模拟电路仿真黑盒,生成待仿真电路系统的数模混纺环境;在判断出接收到待仿真电路系统的实际设计电路之后,利用实际设计电路对数模混纺环境执行实体替换操作,得到实际数模混纺环境;最后,触发实际数模混纺环境的仿真运行指令,得到待仿真电路系统的仿真结果,能够在电路设计人员进行电路设计的同时,借用黑盒替代未完成的电路,并行完成对应电路系统仿真环境的设置,缩短了电路系统开发和仿真验证步骤的时间差。(The application provides a simulation method and device of a circuit system, electronic equipment and a storage medium, wherein the method comprises the following steps: after a circuit design framework of a circuit system to be simulated is obtained, a digital circuit simulation black box and an analog circuit simulation black box of the circuit system to be simulated are respectively created based on the circuit design framework; generating a digital-analog blending environment of a circuit system to be simulated based on the digital circuit simulation black box and the analog circuit simulation black box; after judging that the actual design circuit of the circuit system to be simulated is received, utilizing the actual design circuit to execute entity replacement operation on the digital-analog blending environment to obtain the actual digital-analog blending environment; and finally, triggering a simulation operation instruction of the actual digital-analog blending environment to obtain a simulation result of the circuit system to be simulated, and replacing an unfinished circuit by a black box while a circuit designer designs the circuit, so as to finish the setting of the simulation environment of the corresponding circuit system in parallel, thereby shortening the time difference of the development and simulation verification steps of the circuit system.)

1. A method for simulating a circuit system, comprising:

after a circuit design framework of a circuit system to be simulated is obtained, respectively creating a digital circuit simulation black box and an analog circuit simulation black box of the circuit system to be simulated based on the circuit design framework;

generating a digital-analog blending environment of the circuit system to be simulated based on the digital circuit simulation black box and the analog circuit simulation black box;

judging whether an actual design circuit of the circuit system to be simulated is received; wherein, the actual design circuit is obtained by circuit design according to the circuit design framework;

if so, performing entity replacement operation on the digital-analog blending environment by using the actual design circuit to obtain an actual digital-analog blending environment;

and triggering the simulation operation instruction of the actual digital-analog blending environment to obtain the simulation result of the circuit system to be simulated.

2. The method for simulating the circuit system according to claim 1, wherein the creating a digital circuit simulation black box and an analog circuit simulation black box of the circuit system to be simulated based on the circuit design architecture respectively comprises:

respectively collecting interface information of a digital circuit and pin information of an analog circuit in the circuit design architecture;

and creating the digital circuit simulation black box and the analog circuit simulation black box respectively based on the interface information and the pin information.

3. The method for simulating the circuit system according to claim 1, wherein generating the digital-analog blending environment of the circuit system to be simulated based on the digital circuit simulation black box and the analog circuit simulation black box comprises:

calling the digital circuit simulation black box and the analog circuit simulation black box to determine a top layer circuit schematic diagram of the circuit system to be simulated;

determining a simulation data packet required by the top-layer circuit schematic diagram for simulation; wherein the emulation data packet comprises: simulation parameters, script data and excitation source data;

and generating a digital-analog blending environment of the circuit system to be simulated based on the top layer circuit schematic diagram and the simulation data packet.

4. The method for simulating a circuit system according to claim 1, wherein the performing an entity replacement operation on the digital-analog blending environment by using the actual design circuit to obtain an actual digital-analog blending environment comprises:

respectively determining a digital circuit and an analog circuit in the actual design circuit;

and correspondingly replacing the digital circuit simulation black box and the analog circuit simulation black box in the digital-analog blending environment with the digital circuit and the analog circuit in the actual design circuit to obtain the actual digital-analog blending environment.

5. The method for simulating a circuit system according to any one of claims 1 to 4, after triggering the simulation operation instruction of the actual digital-analog blending environment to obtain the simulation result of the circuit system to be simulated, further comprising:

and displaying the simulation result.

6. An apparatus for simulating a circuit system, comprising:

the circuit design system comprises a creating unit, a judging unit and a control unit, wherein the creating unit is used for respectively creating a digital circuit simulation black box and an analog circuit simulation black box of a circuit system to be simulated based on a circuit design architecture after the circuit design architecture of the circuit system to be simulated is obtained;

the generating unit is used for generating a digital-analog blending environment of the circuit system to be simulated based on the digital circuit simulation black box and the analog circuit simulation black box;

the judging unit is used for judging whether an actual design circuit of the circuit system to be simulated is received or not; wherein, the actual design circuit is obtained by circuit design according to the circuit design framework;

the replacing unit is used for executing entity replacing operation on the digital-analog blending environment by utilizing the actual design circuit if the judgment result is yes, so as to obtain the actual digital-analog blending environment;

and the triggering unit is used for triggering the simulation operation instruction of the actual digital-analog blending environment to obtain the simulation result of the circuit system to be simulated.

7. The apparatus according to claim 6, wherein the creating unit is specifically configured to:

respectively collecting interface information of a digital circuit and pin information of an analog circuit in the circuit design architecture;

and creating the digital circuit simulation black box and the analog circuit simulation black box respectively based on the interface information and the pin information.

8. The apparatus according to claim 6, wherein the generating unit is specifically configured to:

calling the digital circuit simulation black box and the analog circuit simulation black box to determine a top layer circuit schematic diagram of the circuit system to be simulated;

determining a simulation data packet required by the top-layer circuit schematic diagram for simulation; wherein the emulation data packet comprises: simulation parameters, script data and excitation source data;

and generating a digital-analog blending environment of the circuit system to be simulated based on the top layer circuit schematic diagram and the simulation data packet.

9. The emulation apparatus of a circuit system of claim 6, wherein the replacement unit is specifically configured to:

respectively determining a digital circuit and an analog circuit in the actual design circuit;

and correspondingly replacing the digital circuit simulation black box and the analog circuit simulation black box in the digital-analog blending environment with the digital circuit and the analog circuit in the actual design circuit to obtain the actual digital-analog blending environment.

10. The apparatus for simulating a circuit system according to claim 6, further comprising:

and the display unit is used for displaying the simulation result.

11. An electronic device, comprising: a memory and a processor;

the memory is to store computer instructions;

the processor is configured to perform, in particular, the method of simulating a circuit system according to any one of claims 1 to 5 when executing the computer instructions stored in the memory.

12. A storage medium storing a program for implementing a simulation method of a circuit system according to any one of claims 1 to 5 when the program is executed.

Technical Field

The invention relates to the technical field of integrated circuit design, in particular to the field of integrated circuit design automation, and specifically relates to a circuit system simulation method and device, electronic equipment and a storage medium.

Background

The design process of SoC (system on Chip) generally includes a top-down serial design mode such as system architecture, algorithm design and optimization, circuit system development, circuit system simulation verification, layout design, and physical verification. Each link of the circuit system design has a corresponding business standard EDA tool. For example, system circuit Design EDA (Electronic Design automation) tools developed by companies such as Synopsys, Cadence, and Empyrean can provide powerful digital-analog hybrid circuit Design functions and simulation verification functions for circuit system designers.

In the development and simulation process of an actual SoC circuit system, development and verification personnel of a digital circuit, an analog circuit and a simulation link of the circuit system are usually completed by different engineers.

The existing simulation process needs to verify that an engineer completes the construction of the simulation environment of the whole circuit system based on the completed digital circuit and analog circuit and performs circuit simulation based on the constructed environment, so that the construction and development of the simulation environment of the circuit system have a serial working mode, the waiting period of simulation work in a project is longer, the research and development period of a chip is increased, and the time for the chip to market is increased.

Disclosure of Invention

Therefore, the application provides a simulation method and device of a circuit system, electronic equipment and a storage medium, so as to solve the problems that the serial working mode exists in the establishment and development of the simulation environment of the circuit system, the waiting period of the simulation work in a project is long, the research and development period of a chip is long, and the time for the chip to market is slow.

In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:

the invention discloses a simulation method of a circuit system in a first aspect, which comprises the following steps:

after a circuit design framework of a circuit system to be simulated is obtained, respectively creating a digital circuit simulation black box and an analog circuit simulation black box of the circuit system to be simulated based on the circuit design framework;

generating a digital-analog blending environment of the circuit system to be simulated based on the digital circuit simulation black box and the analog circuit simulation black box;

judging whether an actual design circuit of the circuit system to be simulated is received; wherein, the actual design circuit is obtained by circuit design according to the circuit design framework;

if so, performing entity replacement operation on the digital-analog blending environment by using the actual design circuit to obtain an actual digital-analog blending environment;

and triggering the simulation operation instruction of the actual digital-analog blending environment to obtain the simulation result of the circuit system to be simulated.

Optionally, in the method for simulating a circuit system, the creating a digital circuit simulation black box and an analog circuit simulation black box of the circuit system to be simulated based on the circuit design architecture respectively includes:

respectively collecting interface information of a digital circuit and pin information of an analog circuit in the circuit design architecture;

and creating the digital circuit simulation black box and the analog circuit simulation black box respectively based on the interface information and the pin information.

Optionally, in the method for simulating a circuit system, generating a digital-analog blending environment of the circuit system to be simulated based on the digital circuit simulation black box and the analog circuit simulation black box includes:

calling the digital circuit simulation black box and the analog circuit simulation black box to determine a top layer circuit schematic diagram of the circuit system to be simulated;

determining a simulation data packet required by the top-layer circuit schematic diagram for simulation; wherein the emulation data packet comprises: simulation parameters, script data and excitation source data;

and generating a digital-analog blending environment of the circuit system to be simulated based on the top layer circuit schematic diagram and the simulation data packet.

Optionally, in the simulation method of the circuit system, the obtaining an actual digital-analog blending environment by performing an entity replacement operation on the digital-analog blending environment by using the actual design circuit includes:

respectively determining a digital circuit and an analog circuit in the actual design circuit;

and correspondingly replacing the digital circuit simulation black box and the analog circuit simulation black box in the digital-analog blending environment with the digital circuit and the analog circuit in the actual design circuit to obtain the actual digital-analog blending environment.

Optionally, in the method for simulating a circuit system, after triggering the simulation operation instruction of the actual digital-analog blending environment to obtain the simulation result of the circuit system to be simulated, the method further includes:

and displaying the simulation result.

The second aspect of the present invention discloses a simulation apparatus for a circuit system, comprising:

the circuit design system comprises a creating unit, a judging unit and a control unit, wherein the creating unit is used for respectively creating a digital circuit simulation black box and an analog circuit simulation black box of a circuit system to be simulated based on a circuit design architecture after the circuit design architecture of the circuit system to be simulated is obtained;

the generating unit is used for generating a digital-analog blending environment of the circuit system to be simulated based on the digital circuit simulation black box and the analog circuit simulation black box;

the judging unit is used for judging whether an actual design circuit of the circuit system to be simulated is received or not; wherein, the actual design circuit is obtained by circuit design according to the circuit design framework;

the replacing unit is used for executing entity replacing operation on the digital-analog blending environment by utilizing the actual design circuit if the judgment result is yes, so as to obtain the actual digital-analog blending environment;

and the triggering unit is used for triggering the simulation operation instruction of the actual digital-analog blending environment to obtain the simulation result of the circuit system to be simulated.

Optionally, in the simulation apparatus of the circuit system, the creating unit is specifically configured to:

respectively collecting interface information of a digital circuit and pin information of an analog circuit in the circuit design architecture;

and creating the digital circuit simulation black box and the analog circuit simulation black box respectively based on the interface information and the pin information.

Optionally, in the simulation apparatus of the circuit system, the generating unit is specifically configured to:

calling the digital circuit simulation black box and the analog circuit simulation black box to determine a top layer circuit schematic diagram of the circuit system to be simulated;

determining a simulation data packet required by the top-layer circuit schematic diagram for simulation; wherein the emulation data packet comprises: simulation parameters, script data and excitation source data;

and generating a digital-analog blending environment of the circuit system to be simulated based on the top layer circuit schematic diagram and the simulation data packet.

Optionally, in the simulation apparatus of the circuit system, the replacing unit is specifically configured to:

respectively determining a digital circuit and an analog circuit in the actual design circuit;

and correspondingly replacing the digital circuit simulation black box and the analog circuit simulation black box in the digital-analog blending environment with the digital circuit and the analog circuit in the actual design circuit to obtain the actual digital-analog blending environment.

Optionally, in the simulation apparatus of the circuit system, the apparatus further includes:

and the display unit is used for displaying the simulation result.

A third aspect of the present invention discloses an electronic device, comprising: a memory and a processor;

the memory is to store computer instructions;

the processor is configured to perform in particular the method of simulating a circuit system as disclosed in any one of the first aspects when executing the computer instructions stored by the memory.

A fourth aspect of the present invention discloses a storage medium for storing a program for implementing the simulation method of the circuit system as disclosed in any one of the first aspects when the program is executed.

The simulation method of the circuit system provided by the invention comprises the following steps: after a circuit design framework of a circuit system to be simulated is obtained, a digital circuit simulation black box and an analog circuit simulation black box of the circuit system to be simulated are respectively created based on the circuit design framework; generating a digital-analog blending environment of a circuit system to be simulated based on the digital circuit simulation black box and the analog circuit simulation black box; judging whether an actual design circuit of a circuit system to be simulated is received; the actual design circuit is obtained by carrying out circuit design according to a circuit design framework; if so, performing entity replacement operation on the digital-analog blending environment by using the actual design circuit to obtain the actual digital-analog blending environment; triggering a simulation operation instruction of an actual digital-analog blending environment to obtain a simulation result of the circuit system to be simulated; that is, this application can borrow the black box to replace unfinished circuit when circuit designer carries out circuit design, and the setting of parallel completion corresponding circuit system simulation environment has shortened the time difference of circuit system development and simulation verification step, and it has serial mode to solve the buildding and the development of circuit system's simulation environment for simulation work latency period is longer in the project, the chip development cycle that leads to is long, the slow problem of chip time on the market.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.

Fig. 1 is a flowchart of a simulation method of a circuit system according to an embodiment of the present application;

FIG. 2 is a flowchart illustrating a process of creating a simulated black box according to an embodiment of the present application;

fig. 3 is a flowchart for generating a digital-analog hybrid environment according to an embodiment of the present disclosure;

fig. 4 is a flowchart for obtaining an actual digital-analog hybrid environment according to an embodiment of the present disclosure;

FIG. 5 is a flowchart of another method for simulating a circuit system according to an embodiment of the present disclosure;

FIG. 6 is a schematic structural diagram of an emulation apparatus for a circuit system according to the present application;

FIG. 7 is a schematic diagram of another exemplary emulation device for a circuit system according to the present application;

fig. 8 is a schematic structural diagram of an electronic device provided in the present application;

fig. 9 is a schematic structural diagram of another electronic device provided in the present application.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The embodiment of the application provides a simulation method of a circuit system, and aims to solve the problems that a serial working mode exists in the building and development of a simulation environment of the circuit system, so that the simulation work waiting period in a project is long, the development period of a chip is long, and the time for the chip to appear on the market is slow.

Referring to fig. 1, the method for simulating a circuit system may include the following steps:

s100, after the circuit design framework of the circuit system to be simulated is obtained, a digital circuit simulation black box and an analog circuit simulation black box of the circuit system to be simulated are respectively created based on the circuit design framework.

The circuit system to be simulated is a circuit system which needs simulation verification but does not need simulation verification.

The circuit design architecture of the circuit system to be simulated is a previous-stage architecture on which a circuit designer or related personnel design a circuit actually; which may generally include the general framework and functionality of the digital and analog circuits that make up the circuitry to be emulated.

In practical application, a specific process of executing the circuit design architecture based on the step S100 to respectively create the digital circuit simulation black box and the analog circuit simulation black box of the circuit system to be simulated may be as shown in fig. 2, and may include the following steps:

s200, respectively acquiring interface information of a digital circuit and pin information of an analog circuit in a circuit design architecture.

The interface information of the digital circuit may be obtained by collecting interface information of each digital unit in the digital circuit in the circuit design architecture by a circuit designer or related personnel. The acquisition of the pin information of the analog circuit can be obtained by drawing a schematic diagram about all pins of the analog circuit in the circuit design architecture and acquiring according to the drawn schematic diagram.

Of course, the interface information of the digital circuit and the pin information of the analog circuit in the circuit design architecture can be respectively collected by other existing methods, and the collection method is not specifically limited in the present application, and belongs to the protection scope of the present application regardless of the method adopted.

S202, creating a digital circuit simulation black box and an analog circuit simulation black box respectively based on the interface information and the pin information.

The digital circuit simulation black box can be created according to the interface information of the digital circuit, and a corresponding digital netlist file can be obtained. And according to the pin information of the analog circuit, an analog circuit simulation black box can be created and a corresponding analog netlist file can be obtained.

In practical application, if the pin information of the analog circuit has a floating point pin, the automatic optimization of the floating point pin in the obtained analog netlist file is avoided. During the creation process of the analog circuit simulation black box, each floating point pin can be reasonably connected, for example, each input floating point pin can be connected into a corresponding resistor and then connected in parallel to output, so as to prevent the floating point pin from being automatically optimized.

In addition, according to specific application conditions and user requirements, automatic optimization of a floating point pin in a simulated netlist file can be avoided through other existing modes, and the method belongs to the protection scope of the application no matter what mode is adopted for realization.

S102, generating a digital-analog blending environment of the circuit system to be simulated based on the digital circuit simulation black box and the analog circuit simulation black box.

In practical application, the specific process of executing step S102 and generating the digital-analog blending environment of the circuit system to be simulated based on the digital circuit simulation black box and the analog circuit simulation black box may be as shown in fig. 3, and may include the following steps:

and S300, calling the digital circuit simulation black box and the analog circuit simulation black box to determine a top layer circuit schematic diagram of the circuit system to be simulated.

In practical application, a digital circuit simulation black box and an analog circuit simulation black box can be called to design a top-layer schematic diagram of a system circuit, so as to obtain the top-layer schematic diagram of the circuit system to be simulated.

S302, determining a simulation data packet required by simulation of the top-level circuit schematic diagram.

Wherein, the emulation data package may include: simulation parameters, script data, and stimulus data.

In practical application, the simulation parameters can be obtained through a graphical interface of the simulator. Wherein, the simulator graphical interface may include: adding a model library selection control, setting a simulation type (direct current DC, transient TRAN, alternating current AC and the like) selection control, a signal setting selection control (for example, specifying an output signal control needing to verify the distribution), a simulator type (Hspice, ALPS-MS, spectrum and the like) selection control, a bottommost View display control (the type of a bottommost View (Stop View) for digital-analog hybrid simulation is set in Partitioning Options) and a digital-analog/analog conversion level selection control (digital-analog/analog-digital conversion level is set in IE Manager) and the like, and determining according to a specific application environment and user requirements.

Specifically, setting the type of the bottom view of the digital-analog hybrid simulation may generally include: the settings of the simulation part Stop View include, but are not limited to, hspiceD, Veriloga, Spectre, ahdl, spice, Symbol, etc.; the setting of the digital part Stop View includes, but is not limited to, Verilog (hardware description language of digital circuit), Verilog ams (digital analog hybrid simulation hardware language), Behavior (digital circuit behavioral level language), Functional (digital circuit Functional level language), and the like.

The script data can be a script program corresponding to a digital-analog blending environment generated based on the top-level circuit schematic diagram and the simulation data in the simulation process. Specifically, the script data can find the matched script template in the scripted template framework according to the actual simulation requirement, and the data in the matched script template is used as the script data in the simulation data packet required for the simulation.

In practical applications, the scripted template may generally include: the device comprises a model area, a netlist area, a user configuration area, a script area and a simulation operation area. The model area can be named as models and is a storage area for all spice models (device-level model files). The netlist area may be named src, a storage area for all digital and analog circuit design codes and netlists. The user configuration area may be named user _ define, which is a storage area for all configuration files that the user needs to define by himself.

It should be noted that before the simulation verification is executed, the user may complete the modification and configuration of the relevant options in the configuration area according to the actual situation, including but not limited to: general global simulation setting, digital-analog hybrid circuit simulation setting files, analog circuit simulation setting and the like. The script area can be named as scripts and is a storage area of the simulation full-flow control script of the digital-analog hybrid system. The simulation operation area can be named as simulation and is a digital-analog mixed simulation operation position, and when all the settings are finished, the simulation operation area can enter the area to operate a simulation operation file; after the execution is completed, a result folder is generated in the simulation area, and all the execution results are recorded in the folder.

Specifically, the user configuration area generally includes three files that need to be set by the user: 1) a common simulation setup file (sim _ config.tcl) containing simulation setup options common to analog circuit simulation and digital-analog hybrid circuit simulation; 2) the simulation setting file (ms _ sim _ options.tcl) of the digital-analog hybrid circuit only comprises setting options of simulation of the digital-analog hybrid circuit; the digital-to-analog port is connected with a mapping file; setting a path for storing a simulation result, and if the variable value is null, default setting the simulation result under the current path; 3) the analog circuit simulation setting file (spice _ sim _ options. tcl) only contains setting options of analog circuit simulation, such as search _ path (search _ path), waveform format, and other information.

Stimulus source data is signal data that allows an energy signal to flow into or out of the schematic diagram of the top-level circuit, which can be derived from the stimulus circuit; of course, the present invention is not limited to this, and may be determined according to the specific application environment and the user's requirement, and the present invention is not limited to this, and all of them belong to the protection scope of the present application.

S304, generating a digital-analog blending environment of the circuit system to be simulated based on the top layer circuit schematic diagram and the simulation data packet.

The digital-analog blending environment of the circuit system to be simulated can be generated according to a top-layer circuit schematic diagram and a simulation data packet of the circuit system to be simulated.

In practical application, a hierarchical system simulation netlist can be generated according to the digital-analog blending environment. The system simulation netlist may include, but is not limited to, the following types of netlists: the device comprises a top-level circuit schematic diagram netlist, an outsourcing test top-level code netlist of a digital circuit, a Verilog netlist of the digital circuit, a netlist of an analog circuit and an excitation circuit, and a digital-to-analog port connection mapping (mapping) file netlist.

The top level netlist of the circuit diagram can be named TopDesign _ Config _ Normal.sp, and the netlist contains configuration information of all simulation options. The outsourced test top-level code netlist of the digital circuit, which may be named topdata _ Config _ normal. The Verilog netlist of the digital circuit, which may be named todesign config digital, in addition to the digital circuit code prepared previously, produces a "TSET todesign" module that packages the digital input interface into an intermediate Verilog reg format of ms. A netlist of the analog circuit and the excitation circuit can be named TopDesign _ Config.netlist; since the digital-analog and analog-digital conversion information is set when the analog-digital mixed circuit simulation is set (in IE Manager), the netlist automatically contains the set a2d and d2a cells. The digital-to-analog port is connected with the mapping file netlist and can be named as ie.config; the file is divided into three columns, the first column is the type of the connection unit (digital-to-analog conversion unit or analog-to-digital conversion unit), the second column is the name of the digital end interface to be connected, and the third column is the name of the analog end interface corresponding to the digital end interface.

And S104, judging whether the actual design circuit of the circuit system to be simulated is received.

The actual designed circuit is obtained by designing the circuit according to the circuit design architecture. Specifically, the circuit design can be obtained by a circuit designer or related personnel after completing the circuit design according to the circuit design architecture.

If the determination result is yes, that is, it is determined that the actual design circuit of the circuit system to be simulated is received, step S104 is executed. If the judgment result is negative, that is, the actual design circuit of the circuit system to be simulated is not received, the step of judging whether the actual design circuit of the circuit system to be simulated is received can be returned until the actual design circuit of the circuit system to be simulated is received.

It should be noted that, after determining that the actual designed circuit of the circuit system to be simulated is received, it means that the circuit designer or related personnel has completed the physical circuit design of the circuit system according to the circuit design architecture.

And S106, performing entity replacement operation on the digital-analog blending environment by using the actual design circuit to obtain the actual digital-analog blending environment.

In practical application, the specific process of executing step S106 and performing entity replacement operation on the digital-analog blending environment by using the actual design circuit to obtain the actual digital-analog blending environment may be as shown in fig. 4, and may include the following steps:

and S400, respectively determining a digital circuit and an analog circuit in the actual designed circuit.

In practical applications, the actual design circuit generally includes a digital circuit and an analog circuit after the design is completed. The type of the circuit can be determined according to different functions in the digital circuit and the analog circuit, so that the digital circuit and the analog circuit in the actually designed circuit are determined.

Of course, the method for determining the digital circuit and the analog circuit in the actual design circuit can also refer to the prior art, and this application is not described in detail again, and both belong to the protection scope of this application.

S402, correspondingly replacing a digital circuit simulation black box and an analog circuit simulation black box in the digital-analog blending environment with a digital circuit and an analog circuit in the actual design circuit to obtain the actual digital-analog blending environment.

In practical application, after the digital circuit simulation black box in the digital-analog blending environment is replaced by the digital circuit in the practical design circuit, and the analog circuit simulation black box in the digital-analog blending environment is replaced by the analog circuit in the practical design circuit, the digital circuit simulation black box and the analog circuit simulation black box in the digital-analog blending environment can have specific circuit structures, and then the practical digital-analog blending environment which actually corresponds to the practical design circuit of the circuit system to be simulated and can be subjected to simulation verification can be obtained.

The method for replacing the digital circuit simulation black box with the digital circuit in the actual design circuit can be as follows: and specifying an actual digital circuit Verilog file in the user configuration area so that the simulator can find the digital circuit file. The mode of replacing the analog circuit simulation black box with the analog circuit in the actual design circuit can be as follows: appointing an actual simulation circuit netlist file in a user configuration area, and annotating the circuit definition of a simulation circuit simulation black box; meanwhile, the sequence of the analog circuit ports in the actual design circuit needs to be ensured to be consistent with that in the simulation black box, and the specific method comprises the following steps: and opening a top layer hspice netlist file of the analog circuit, copying a definition code about the SUBCKT of the analog sub-circuit in the netlists of the analog circuit and the excitation circuit into the definition of the top layer cell in the hspice netlist file of the analog circuit, wherein the operation can ensure that the sequence of the ports of the analog module is consistent with that in the simulation system, and the correct simulation black box replacement of the analog circuit is realized.

And S108, triggering a simulation operation instruction of the actual digital-analog blending environment to obtain a simulation result of the circuit system to be simulated.

In practical application, after a simulation operation instruction of the actual digital-analog mixed simulation environment is triggered, script data corresponding to the actual digital-analog mixed simulation environment can be operated, simulation verification operation of the actual digital-analog mixed simulation environment is achieved, and a simulation result of a circuit system to be simulated is obtained according to an operation result.

After the circuit system to be simulated is switched to the simulation operation area, the simulation operation instruction can be regarded as a simulation operation instruction for triggering the actual digital-analog mixed simulation environment. Specifically, the types of the emulation instructions may include: analog simulation instructions or digital-analog hybrid simulation instructions. If the instruction is a digital-analog hybrid simulation instruction, the command can be executed under the path: run _ simulatorms; if the simulation instruction is an analog simulation instruction, executing a command under the path: run _ simulatorspace.

It should be noted that after the simulation operation is finished, the simulation result may be stored in a folder named by the top netlist of the circuit system to be simulated, and the folder may include a specific simulation result and a diary log file.

Based on the principle, the simulation method of the current system provided by the embodiment can replace an unfinished circuit by the black box while a circuit designer designs the circuit, and completes the setting of the simulation environment of the corresponding circuit system in parallel, so that the time difference between the development and the simulation verification steps of the circuit system is shortened, and the problems that the serial working mode exists in the building and the development of the simulation environment of the circuit system, the simulation work waiting period in a project is longer, the development period of a chip is long, and the time for the chip to market is slow are solved.

It should be noted that, in practical application, in order to facilitate the switching between the simulated black box and the actual circuit, a switching control may be added, and the digital circuit may be controlled to be in the simulated black box state or in the actual circuit state by the switching control. Specifically, if the switching control is implemented in a switch mode, the switch can indicate that the digital circuit is in a simulated black box state when being turned off, that is, a black box simulation process is executed; when the switch is opened, the digital circuit can be in an actual circuit state, namely, an actual code simulation flow is executed.

It is worth mentioning that, aiming at the simulation environment, for a circuit designer with experience, the graphical simulation environment and the fixed locking step are not optimally combined, and even the efficiency is low, especially in the iterative optimization stage of the circuit system, namely in the aspect of engineering reuse, the graphical simulation environment causes low efficiency, and the simulation method of the circuit system provided by the application can develop script data required by the simulation process into a specific script template for simulation verification with high portability and simple operation, so as to improve the simulation efficiency of the circuit system.

Optionally, in another embodiment provided by the present application, after the step S105 is executed, and the simulation operation instruction of the actual digital-analog blending environment is triggered to obtain the simulation result of the circuit system to be simulated, please refer to fig. 5, the simulation method of the circuit system may further include:

and S500, displaying the simulation result.

In practical application, the simulation result of the digital circuit or the analog circuit of the circuit system to be simulated can be displayed in the waveform browser.

Of course, the present invention is not limited to this, and the display mode may be determined according to the specific application environment and the user's requirement, and all fall into the protection scope of the present application.

Based on the above-mentioned simulation method for the circuit system, another embodiment of the present application further provides a simulation apparatus for a circuit system, please refer to fig. 6, where the simulation apparatus may include:

the creating unit 100 is configured to, after obtaining a circuit design architecture of a circuit system to be simulated, respectively create a digital circuit simulation black box and an analog circuit simulation black box of the circuit system to be simulated based on the circuit design architecture.

The generating unit 102 is configured to generate a digital-analog blending environment of the circuit system to be simulated based on the digital circuit simulation black box and the analog circuit simulation black box.

A judging unit 104, configured to judge whether an actual designed circuit of the circuit system to be simulated is received; and the actual design circuit is obtained by carrying out circuit design according to the circuit design framework.

And the replacing unit 106 is configured to, if the determination result is yes, perform entity replacing operation on the digital-analog blending environment by using the actual design circuit to obtain an actual digital-analog blending environment.

And the triggering unit 108 is configured to trigger the simulation operation instruction of the actual digital-analog blending environment to obtain a simulation result of the circuit system to be simulated.

Optionally, the creating unit 100 is specifically configured to:

and respectively collecting interface information of a digital circuit and pin information of an analog circuit in the circuit design architecture.

And creating the digital circuit simulation black box and the analog circuit simulation black box respectively based on the interface information and the pin information.

Optionally, the generating unit 102 is specifically configured to:

and calling the digital circuit simulation black box and the analog circuit simulation black box to determine a top layer circuit schematic diagram of the circuit system to be simulated.

Determining a simulation data packet required by the top-layer circuit schematic diagram for simulation; wherein the emulation data packet comprises: simulation parameters, script data, and stimulus data.

And generating a digital-analog blending environment of the circuit system to be simulated based on the top layer circuit schematic diagram and the simulation data packet.

Optionally, the replacing unit 106 is specifically configured to:

respectively determining a digital circuit and an analog circuit in the actual design circuit;

and correspondingly replacing the digital circuit simulation black box and the analog circuit simulation black box in the digital-analog blending environment with the digital circuit and the analog circuit in the actual design circuit to obtain the actual digital-analog blending environment.

Optionally, as shown in fig. 7, the simulation apparatus of the circuit system further includes:

and the display unit 200 is used for displaying the simulation result.

The simulation apparatus for a circuit system provided in this embodiment includes: the circuit design system comprises a creating unit, a judging unit and a control unit, wherein the creating unit is used for respectively creating a digital circuit simulation black box and an analog circuit simulation black box of a circuit system to be simulated based on a circuit design architecture after the circuit design architecture of the circuit system to be simulated is obtained; the generating unit is used for generating a digital-analog blending environment of the circuit system to be simulated based on the digital circuit simulation black box and the analog circuit simulation black box; the judging unit is used for judging whether an actual design circuit of the circuit system to be simulated is received or not; wherein, the actual design circuit is obtained by circuit design according to the circuit design framework; the replacing unit is used for executing entity replacing operation on the digital-analog blending environment by utilizing the actual design circuit if the judgment result is yes, so as to obtain the actual digital-analog blending environment; the triggering unit is used for triggering the simulation operation instruction of the actual digital-analog blending environment to obtain a simulation result of the circuit system to be simulated; that is, this application can borrow the black box to replace unfinished circuit when circuit designer carries out circuit design, and the setting of parallel completion corresponding circuit system simulation environment has shortened the time difference of circuit system development and simulation verification step, and it has serial mode to solve the buildding and the development of circuit system's simulation environment for simulation work latency period is longer in the project, the chip development cycle that leads to is long, the slow problem of chip time on the market.

Optionally, another embodiment of the present application further provides an electronic device, please refer to fig. 8, where the electronic device includes: a memory 801 and a processor 802.

The memory 801 is used to store computer instructions.

The processor 802 is configured to perform the method for simulating the circuit system according to any of the above embodiments when executing the computer instructions stored in the memory 801.

Further, referring to fig. 9, the electronic device further includes:

at least one input device 803 and at least one output device 804.

The memory 801, the processor 802, the input device 803, and the output device 804 are connected by a bus 805.

The input device 803 may be a camera, a touch panel, a physical button, or a mouse. The output device may specifically be a display screen.

The Memory 801 may be a high-speed Random Access Memory (RAM) Memory, or may be a non-volatile Memory (non-volatile Memory), such as a magnetic disk Memory. The memory is used for storing a set of executable program codes, and the processor is coupled with the memory.

It should be noted that, for the related description of the simulation method of the circuit system, reference may be made to the embodiments corresponding to fig. 1 to fig. 5, and details are not repeated here.

Optionally, another embodiment of the present application further provides a storage medium for storing a program, where the program is used to implement the simulation method of the circuit system according to any of the above embodiments when executed.

The storage medium may be provided in the electronic device in each of the above embodiments, and the storage medium may be the electronic device in the above embodiment shown in fig. 8 or fig. 9. The storage medium has a computer program stored thereon, and the computer program is executed by a processor to implement a simulation method of a circuit system described in any one of the embodiments of fig. 1 to 5. Further, the storage medium may be various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.

It should be noted that, for the related description of the simulation method of the circuit system, reference may be made to the embodiments corresponding to fig. 1 to fig. 5, and details are not repeated here.

Features described in the embodiments in the present specification may be replaced with or combined with each other, and the same and similar portions among the embodiments may be referred to each other, and each embodiment is described with emphasis on differences from other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.

Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:连续微流控生物芯片下基于序列对的流层物理设计方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类