[go: up one dir, main page]

CN114626330A - Simulation method and device for digital-analog hybrid circuit - Google Patents

Simulation method and device for digital-analog hybrid circuit Download PDF

Info

Publication number
CN114626330A
CN114626330A CN202210278752.9A CN202210278752A CN114626330A CN 114626330 A CN114626330 A CN 114626330A CN 202210278752 A CN202210278752 A CN 202210278752A CN 114626330 A CN114626330 A CN 114626330A
Authority
CN
China
Prior art keywords
circuit
black
box
information
tested
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.)
Pending
Application number
CN202210278752.9A
Other languages
Chinese (zh)
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.)
Zhongke Xinyun Microelectronics Technology Co ltd
Original Assignee
Zhongke Xinyun Microelectronics Technology 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 Zhongke Xinyun Microelectronics Technology Co ltd filed Critical Zhongke Xinyun Microelectronics Technology Co ltd
Priority to CN202210278752.9A priority Critical patent/CN114626330A/en
Publication of CN114626330A publication Critical patent/CN114626330A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/38Circuit design at the mixed level of analogue and digital signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

本申请实施例提供了一种数模混合电路仿真方法及装置,获取包括黑盒模拟电路和黑盒数字电路的黑盒电路的电路信息,为黑盒电路确定仿真配置信息,在将黑盒模拟电路替换为待测模拟电路,将黑盒数字电路替换为待测数字电路后,利用仿真配置信息对包括待测模拟电路和待测数字电路的待测电路进行仿真,其中待测模拟电路具有与黑盒模拟电路相同的输入管脚信息和输出管脚信息,待测数字电路具有与黑盒数字电路相同的输入接口信息和输出接口信息。也就是说,本申请实施例中,可以将仿真系统的搭建设置在待测模拟电路和待测数字电路的设计阶段,减少了电路的设计完成节点和电路的仿真操作节点之前的时长,缩短了芯片的开发周期。

Figure 202210278752

The embodiments of the present application provide a method and device for simulating a digital-analog hybrid circuit, obtaining circuit information of a black-box circuit including a black-box analog circuit and a black-box digital circuit, determining simulation configuration information for the black-box circuit, and simulating the black-box circuit The circuit is replaced by the analog circuit to be tested, and the black box digital circuit is replaced by the digital circuit to be tested, and the simulation configuration information is used to simulate the circuit to be tested including the analog circuit to be tested and the digital circuit to be tested, wherein the analog circuit to be tested has the same characteristics as the analog circuit to be tested. The black box analog circuit has the same input pin information and output pin information, and the digital circuit to be tested has the same input interface information and output interface information as the black box digital circuit. That is to say, in the embodiment of the present application, the construction of the simulation system can be set in the design stage of the analog circuit to be tested and the digital circuit to be tested, which reduces the time period before the design completion node of the circuit and the simulation operation node of the circuit, shortening the Chip development cycle.

Figure 202210278752

Description

一种数模混合电路仿真方法及装置A digital-analog hybrid circuit simulation method and device

技术领域technical field

本申请涉及集成电路领域,特别是涉及一种数模混合电路仿真方法及装置。The present application relates to the field of integrated circuits, and in particular, to a method and device for simulating a digital-analog hybrid circuit.

背景技术Background technique

在芯片设计领域,随着芯片集成度的不断增加,以及市场需求的多样化,将数字电路和模拟电路集成在一个芯片中的设计逐渐在芯片市场中占据了更多的位置。这种情况给芯片验证仿真带来了更大的困难,虽然市场上的主流仿真电子设计自动化(Electronicdesign automation,EDA)工具和国产EDA工具中,都对应有提供数模混合电路仿真的功能,但这些功能都是在完成数字电路和模拟电路的基础上进行的,使得仿真验证的开始阶段需要在数字电路和模拟电路设计阶段全部完成之后进行,从而大大延长了芯片的开发周期。In the field of chip design, with the increasing integration of chips and the diversification of market demands, the design of integrating digital circuits and analog circuits in one chip has gradually occupied more positions in the chip market. This situation brings greater difficulties to chip verification and simulation. Although the mainstream electronic design automation (EDA) tools and domestic EDA tools on the market all have the function of providing digital-analog hybrid circuit simulation, but These functions are carried out on the basis of completing the digital circuit and the analog circuit, so that the initial stage of simulation verification needs to be carried out after the design stage of the digital circuit and the analog circuit are all completed, thus greatly prolonging the development cycle of the chip.

发明内容SUMMARY OF THE INVENTION

为解决上述技术问题,本申请实施例提供一种数模混合电路仿真方法及装置,可以在数字电路和模拟电路设计阶段实现仿真系统的搭建,节省仿真时间,缩短芯片的开发周期。In order to solve the above technical problems, the embodiments of the present application provide a digital-analog hybrid circuit simulation method and device, which can realize the establishment of a simulation system in the design stage of digital circuits and analog circuits, save simulation time, and shorten the development cycle of chips.

本申请实施例提供了一种数模混合电路仿真方法,包括:The embodiment of the present application provides a digital-analog hybrid circuit simulation method, including:

获取包括黑盒模拟电路和黑盒数字电路的黑盒电路的电路信息;所述黑盒电路的电路信息包括所述黑盒模拟电路的输入管脚信息和输出管脚信息,所述黑盒模拟电路包括输入管脚和输出管脚之间串联的测试电阻;所述电路信息还包括所述黑盒数字电路的输入接口信息和输出接口信息;Obtain circuit information of a black-box circuit including a black-box analog circuit and a black-box digital circuit; the circuit information of the black-box circuit includes input pin information and output pin information of the black-box analog circuit, and the black-box analog circuit The circuit includes a test resistor connected in series between the input pin and the output pin; the circuit information also includes input interface information and output interface information of the black-box digital circuit;

为所述黑盒电路确定仿真配置信息;determining simulation configuration information for the black box circuit;

将所述黑盒模拟电路替换为待测模拟电路,将所述黑盒数字电路替换为待测数字电路,基于所述待测模拟电路的存储位置和所述黑盒数字电路的存储位置更新所述仿真配置信息;所述待测模拟电路具有与所述黑盒模拟电路相同的输入管脚信息和输出管脚信息,所述待测数字电路具有与所述黑盒数字电路相同的输入接口信息和输出接口信息;Replace the black-box analog circuit with an analog circuit to be tested, replace the black-box digital circuit with a digital circuit to be tested, and update the data based on the storage location of the analog circuit to be tested and the storage location of the black-box digital circuit. The simulation configuration information; the analog circuit under test has the same input pin information and output pin information as the black box analog circuit, and the digital circuit under test has the same input interface information as the black box digital circuit and output interface information;

利用更新后的仿真配置信息,对包括所述待测模拟电路和所述待测数字电路的待测电路进行仿真。Using the updated simulation configuration information, the circuit under test including the analog circuit under test and the digital circuit under test is simulated.

可选的,所述将所述黑盒模拟电路替换为待测模拟电路,将所述黑盒数字电路替换为待测数字电路,基于所述待测模拟电路的存储位置和所述黑盒数字电路的存储位置更新所述仿真配置信息,包括:Optionally, replacing the black-box analog circuit with an analog circuit to be tested, and replacing the black-box digital circuit with a digital circuit to be tested, is based on the storage location of the analog circuit to be tested and the black-box digital circuit. The storage location of the circuit updates the simulation configuration information, including:

在所述黑盒数字电路的verilog网表的存储位置将所述黑盒数字电路的verilog网表替换为待测数字电路的verilog网表;Replace the verilog netlist of the black-box digital circuit with the verilog netlist of the digital circuit to be tested at the storage location of the verilog netlist of the black-box digital circuit;

在所述黑盒模拟电路的网表的存储位置将所述黑盒模拟电路的网表替换为待测模拟电路的网表;Replace the netlist of the black-box analog circuit with the netlist of the analog circuit to be tested at the storage location of the netlist of the black-box analog circuit;

将所述仿真配置信息中的黑盒数字电路的verilog网表的存储位置更新为所述黑盒模拟电路的网表的存储位置,将所述仿真配置信息中的待测数字电路的verilog网表的存储位置替换为所述待测模拟电路的网表的存储位置。Update the storage location of the verilog netlist of the black-box digital circuit in the simulation configuration information to the storage location of the netlist of the black-box analog circuit, and update the verilog netlist of the digital circuit to be tested in the simulation configuration information The storage location of is replaced with the storage location of the netlist of the analog circuit under test.

可选的,为所述黑盒电路确定的仿真配置信息和所述更新后的仿真配置信息还包括:仿真系统顶层网表的存储位置、所述黑盒数字电路的外包测试项层verilog代码的存储位置和激励电路的网表的存储位置,所述激励电路用于提供激励信号;所述黑盒数字电路的外包测试项层verilog代码的存储位置和所述待测数字电路的外包测试项层verilog代码的存储位置相同。Optionally, the simulation configuration information determined for the black-box circuit and the updated simulation configuration information also include: the storage location of the top-level netlist of the simulation system, the storage location of the verilog code of the outsourced test item layer of the black-box digital circuit. Storage location and the storage location of the netlist of the excitation circuit, the excitation circuit is used to provide an excitation signal; the storage location of the verilog code of the outsourced test item layer of the black box digital circuit and the outsourced test item layer of the digital circuit to be tested The verilog code is stored in the same location.

可选的,所述方法还包括:Optionally, the method further includes:

根据所述仿真配置信息和所述待测数字电路的verilog网表的存储位置,以及所述待测模拟电路的网表,得到仿真配置脚本;According to the simulation configuration information and the storage location of the verilog netlist of the digital circuit to be tested, and the netlist of the analog circuit to be tested, a simulation configuration script is obtained;

则,所述利用所述仿真配置信息,对包括所述待测模拟电路和所述待测数字电路的待测电路仿真,包括:Then, using the simulation configuration information to simulate the circuit to be tested including the analog circuit to be tested and the digital circuit to be tested includes:

运行所述仿真配置脚本,以调用所述仿真EDA工具对包括所述待测模拟电路和所述待测数字电路的待测电路进行仿真操作。The simulation configuration script is run to invoke the simulation EDA tool to perform a simulation operation on the circuit under test including the analog circuit under test and the digital circuit under test.

可选的,所述获取所述黑盒数字电路的输入接口信息和输出接口信息,包括:获取基于verilog语法的黑盒数字电路的输入接口和输出接口的声明信息;根据所述声明信息生成所述黑盒数字电路的verilog网表;Optionally, the acquiring the input interface information and the output interface information of the black box digital circuit includes: acquiring the declaration information of the input interface and the output interface of the black box digital circuit based on the verilog grammar; The verilog netlist of the black box digital circuit;

所述获取所述黑盒模拟电路的输入管脚信息和输出管脚信息,包括:获取所述黑盒模拟电路的电路信息,根据所述电路信息生成所述黑盒模拟电路的网表。The acquiring the input pin information and output pin information of the black-box analog circuit includes: acquiring circuit information of the black-box analog circuit, and generating a netlist of the black-box analog circuit according to the circuit information.

本申请实施例提供了一种数模混合电路仿真装置,包括:The embodiment of the present application provides a digital-analog hybrid circuit simulation device, including:

电路信息获取单元,用于获取包括黑盒模拟电路和黑盒数字电路的黑盒电路的电路信息;所述黑盒电路的电路信息包括所述黑盒模拟电路的输入管脚信息和输出管脚信息,所述黑盒模拟电路包括输入管脚和输出管脚之间串联的测试电阻;所述电路信息还包括所述黑盒数字电路的输入接口信息和输出接口信息;A circuit information acquisition unit for acquiring circuit information of a black-box circuit including a black-box analog circuit and a black-box digital circuit; the circuit information of the black-box circuit includes input pin information and output pin information of the black-box analog circuit information, the black box analog circuit includes a test resistor connected in series between the input pin and the output pin; the circuit information also includes input interface information and output interface information of the black box digital circuit;

配置信息确定单元,用于为所述黑盒电路确定仿真配置信息;a configuration information determining unit, configured to determine simulation configuration information for the black box circuit;

电路替换单元,用于将所述黑盒模拟电路替换为待测模拟电路,将所述黑盒数字电路替换为待测数字电路,基于所述待测模拟电路的存储位置和所述黑盒数字电路的存储位置更新所述仿真配置信息;所述待测模拟电路具有与所述黑盒模拟电路相同的输入管脚信息和输出管脚信息,所述待测数字电路具有与所述黑盒数字电路相同的输入接口信息和输出接口信息;A circuit replacement unit for replacing the black-box analog circuit with an analog circuit to be tested, and replacing the black-box digital circuit with a digital circuit to be tested, based on the storage location of the analog circuit to be tested and the black-box digital circuit The storage location of the circuit updates the simulation configuration information; the analog circuit under test has the same input pin information and output pin information as the black box analog circuit, and the digital circuit under test has the same input pin information and output pin information as the black box analog circuit. The same input interface information and output interface information of the circuit;

仿真单元,用于利用更新后的仿真配置信息,对包括所述待测模拟电路和所述待测数字电路的待测电路仿真。The simulation unit is used for simulating the circuit under test including the analog circuit under test and the digital circuit under test by using the updated simulation configuration information.

可选的,所述电路替换单元,包括:Optionally, the circuit replacement unit includes:

第一电路替换子单元,用于在所述黑盒数字电路的verilog网表的存储位置将所述黑盒数字电路的verilog网表替换为待测数字电路的verilog网表;The first circuit replacement subunit is used to replace the verilog netlist of the black-box digital circuit with the verilog netlist of the digital circuit to be tested at the storage location of the verilog netlist of the black-box digital circuit;

第二电路替换子单元,用于在所述黑盒模拟电路的网表的存储位置将所述黑盒模拟电路的网表替换为待测模拟电路的网表;a second circuit replacement subunit, configured to replace the netlist of the black-box analog circuit with the netlist of the analog circuit to be tested at the storage location of the netlist of the black-box analog circuit;

配置信息替换子单元,用于将所述仿真配置信息中的黑盒数字电路的verilog网表的存储位置更新为所述黑盒模拟电路的网表的存储位置,将所述仿真配置信息中的待测数字电路的verilog网表的存储位置替换为所述待测模拟电路的网表的存储位置。The configuration information replacement subunit is used to update the storage location of the verilog netlist of the black-box digital circuit in the simulation configuration information to the storage location of the netlist of the black-box analog circuit, and replace the The storage location of the verilog netlist of the digital circuit to be tested is replaced with the storage location of the netlist of the analog circuit to be tested.

可选的,为所述黑盒电路确定的仿真配置信息和所述更新后的仿真配置信息还包括:仿真系统顶层网表的存储位置、所述黑盒数字电路的外包测试项层verilog代码的存储位置和激励电路的网表的存储位置,所述激励电路用于提供激励信号;所述黑盒数字电路的外包测试项层verilog代码的存储位置和所述待测数字电路的外包测试项层verilog代码的存储位置相同。Optionally, the simulation configuration information determined for the black-box circuit and the updated simulation configuration information also include: the storage location of the top-level netlist of the simulation system, the storage location of the verilog code of the outsourced test item layer of the black-box digital circuit. Storage location and the storage location of the netlist of the excitation circuit, the excitation circuit is used to provide an excitation signal; the storage location of the verilog code of the outsourced test item layer of the black box digital circuit and the outsourced test item layer of the digital circuit to be tested The verilog code is stored in the same location.

可选的,所述装置还包括:Optionally, the device further includes:

脚本确定单元,用于根据所述仿真配置信息和所述待测数字电路的verilog网表的存储位置,以及所述待测模拟电路的网表,得到仿真配置脚本;a script determination unit, configured to obtain a simulation configuration script according to the simulation configuration information and the storage location of the verilog netlist of the digital circuit to be tested, and the netlist of the analog circuit to be tested;

则,所述仿真单元具体用于:Then, the simulation unit is specifically used for:

运行所述仿真配置脚本,以调用所述仿真EDA工具对包括所述待测模拟电路和所述待测数字电路的待测电路进行仿真操作。The simulation configuration script is run to invoke the simulation EDA tool to perform a simulation operation on the circuit under test including the analog circuit under test and the digital circuit under test.

可选的,所述电路信息获取单元,包括:Optionally, the circuit information acquisition unit includes:

数字电路获取子单元,用于获取基于verilog语法的黑盒数字电路的输入接口和输出接口的声明信息;根据所述声明信息生成所述黑盒数字电路的verilog网表;The digital circuit acquisition subunit is used to acquire the declaration information of the input interface and the output interface of the black-box digital circuit based on the verilog syntax; the verilog netlist of the black-box digital circuit is generated according to the declaration information;

模拟电路获取子单元,用于获取所述黑盒模拟电路的电路信息,根据所述电路信息生成所述黑盒模拟电路的网表。The analog circuit acquisition subunit is configured to acquire circuit information of the black-box analog circuit, and generate a netlist of the black-box analog circuit according to the circuit information.

本申请实施例提供了一种数模混合电路仿真方法及装置,获取包括黑盒模拟电路和黑盒数字电路的黑盒电路的电路信息,黑盒电路的电路信息包括黑盒模拟电路的输入管脚信息和输出管脚信息,黑盒模拟电路包括输入管脚和输出管脚之间串联的测试电阻,电路信息还包括黑盒数字电路的输入接口信息和输出接口信息,为黑盒电路确定仿真配置信息,在将黑盒模拟电路替换为待测模拟电路,将黑盒数字电路替换为待测数字电路后,基于待测模拟电路的存储位置和黑盒数字电路的存储位置更新仿真配置信息,可以利用更新后的仿真配置信息对包括待测模拟电路和待测数字电路的待测电路进行仿真,其中待测模拟电路具有与黑盒模拟电路相同的输入管脚信息和输出管脚信息,待测数字电路具有与黑盒数字电路相同的输入接口信息和输出接口信息。也就是说,本申请实施例中,可以预先根据待测模拟电路的输入管脚信息和输出管脚信息建立黑盒模拟电路,根据待测数字电路的输入接口信息和输出接口信息建立黑盒数字电路,并为黑盒电路确定仿真配置信息,这样将仿真系统的搭建设置在待测模拟电路和待测数字电路的设计阶段,在待测模拟电路和待测数字电路设计完成后,可以利用已经搭建的测试系统进行仿真操作,减少了待测模拟电路和待测数字电路的设计完成节点和待测模拟电路和待测数字电路的仿真操作节点之前的时长,缩短了芯片的开发周期。Embodiments of the present application provide a method and device for simulating a digital-analog hybrid circuit, for obtaining circuit information of a black-box circuit including a black-box analog circuit and a black-box digital circuit, and the circuit information of the black-box circuit includes an input tube of the black-box analog circuit pin information and output pin information, the black box analog circuit includes the test resistor connected in series between the input pin and the output pin, and the circuit information also includes the input interface information and output interface information of the black box digital circuit, to determine the simulation for the black box circuit Configuration information, after replacing the black-box analog circuit with the analog circuit to be tested, and replacing the black-box digital circuit with the digital circuit to be tested, update the simulation configuration information based on the storage location of the analog circuit to be tested and the storage location of the black-box digital circuit, The circuit to be tested including the analog circuit to be tested and the digital circuit to be tested can be simulated using the updated simulation configuration information, wherein the analog circuit to be tested has the same input pin information and output pin information as the black box analog circuit. The test digital circuit has the same input interface information and output interface information as the black box digital circuit. That is to say, in the embodiment of the present application, a black-box analog circuit can be established in advance according to the input pin information and output pin information of the analog circuit to be tested, and a black-box digital circuit can be established according to the input interface information and output interface information of the digital circuit to be tested. circuit, and determine the simulation configuration information for the black box circuit, so that the construction of the simulation system is set in the design stage of the analog circuit to be tested and the digital circuit to be tested. The built test system performs simulation operation, which reduces the time before the design completion node of the analog circuit to be tested and the digital circuit to be tested and the simulation operation node of the analog circuit to be tested and the digital circuit to be tested, and shortens the development cycle of the chip.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some implementations described in the present application. For example, for those skilled in the art, other drawings can also be obtained from these drawings.

图1为本申请实施例提供的一种数模混合电路仿真方法的流程图;1 is a flowchart of a method for simulating a digital-analog hybrid circuit provided by an embodiment of the present application;

图2为本申请实施例提供的一种黑盒数字电路的接口声明示意图;2 is a schematic diagram of an interface declaration of a black-box digital circuit provided by an embodiment of the present application;

图3为本申请实施例提供的一种黑盒模拟电路的示意图;3 is a schematic diagram of a black box analog circuit provided by an embodiment of the present application;

图4为本申请实施例提供的一种仿真系统的示意图;4 is a schematic diagram of a simulation system provided by an embodiment of the present application;

图5为本申请实施例提供的一种仿真环境结构示意图;5 is a schematic structural diagram of a simulation environment provided by an embodiment of the present application;

图6为本申请实施例提供的一种数模混合电路仿真装置的结构框图。FIG. 6 is a structural block diagram of a digital-analog hybrid circuit simulation apparatus provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

目前,数模混合电路仿真流程是利用相应EDA工具的图形化界面读入模拟电路原理图和数字电路设计文件,然后创建测试环境和设置激励,最后运行仿真并查看仿真结果。虽然EDA工具提供了该数模混合电路仿真的方式,但是由于从使用EDA工具开始读入设计开始,就要求数字电路和模拟电路已经是完备的设计,因此就限制了仿真验证的开始阶段需要在数字电路和模拟电路设计阶段全部完成之后进行,仿真工程师只能等数字电路和模拟电路设计全部完成之后才能开始,这样会增加芯片的开发周期。At present, the digital-analog hybrid circuit simulation process is to use the graphical interface of the corresponding EDA tool to read in the analog circuit schematic diagram and the digital circuit design file, then create the test environment and set the excitation, and finally run the simulation and view the simulation results. Although the EDA tool provides a way of simulating the digital-analog hybrid circuit, since the digital circuit and the analog circuit are required to be complete designs from the start of reading the design using the EDA tool, it limits the need for the simulation verification at the beginning stage. The digital circuit and analog circuit design stages are all completed, and the simulation engineer can only start after the digital circuit and analog circuit design are all completed, which will increase the development cycle of the chip.

基于以上技术问题,本申请实施例提供了一种数模混合电路仿真方法及装置,获取包括黑盒模拟电路和黑盒数字电路的黑盒电路的电路信息,黑盒电路的电路信息包括黑盒模拟电路的输入管脚信息和输出管脚信息,黑盒模拟电路包括输入管脚和输出管脚之间串联的测试电阻,电路信息还包括黑盒数字电路的输入接口信息和输出接口信息,为黑盒电路确定仿真配置信息,在将黑盒模拟电路替换为待测模拟电路,将黑盒数字电路替换为待测数字电路后,基于待测模拟电路的存储位置和黑盒数字电路的存储位置更新仿真配置信息,可以利用更新后的仿真配置信息对包括待测模拟电路和待测数字电路的待测电路进行仿真,其中待测模拟电路具有与黑盒模拟电路相同的输入管脚信息和输出管脚信息,待测数字电路具有与黑盒数字电路相同的输入接口信息和输出接口信息。也就是说,本申请实施例中,可以预先根据待测模拟电路的输入管脚信息和输出管脚信息建立黑盒模拟电路,根据待测数字电路的输入接口信息和输出接口信息建立黑盒数字电路,并为黑盒电路确定仿真配置信息,这样将仿真系统的搭建设置在待测模拟电路和待测数字电路的设计阶段,在待测模拟电路和待测数字电路设计完成后,可以利用已经搭建的测试系统进行仿真操作,减少了待测模拟电路和待测数字电路的设计完成节点和待测模拟电路和待测数字电路的仿真操作节点之前的时长,缩短了芯片的开发周期。Based on the above technical problems, embodiments of the present application provide a digital-analog hybrid circuit simulation method and device, which acquire circuit information of a black-box circuit including a black-box analog circuit and a black-box digital circuit, and the circuit information of the black-box circuit includes a black-box circuit. The input pin information and output pin information of the analog circuit, the black box analog circuit includes the test resistor connected in series between the input pin and the output pin, and the circuit information also includes the input interface information and output interface information of the black box digital circuit, which is The black-box circuit determines the simulation configuration information. After replacing the black-box analog circuit with the analog circuit to be tested, and replacing the black-box digital circuit with the digital circuit to be tested, based on the storage location of the analog circuit to be tested and the storage location of the black-box digital circuit Update the simulation configuration information, you can use the updated simulation configuration information to simulate the circuit to be tested including the analog circuit to be tested and the digital circuit to be tested, wherein the analog circuit to be tested has the same input pin information and output as the black box analog circuit Pin information, the digital circuit to be tested has the same input interface information and output interface information as the black box digital circuit. That is to say, in the embodiment of the present application, a black-box analog circuit can be established in advance according to the input pin information and output pin information of the analog circuit to be tested, and a black-box digital circuit can be established according to the input interface information and output interface information of the digital circuit to be tested. circuit, and determine the simulation configuration information for the black box circuit, so that the construction of the simulation system is set in the design stage of the analog circuit to be tested and the digital circuit to be tested. The built test system performs simulation operation, which reduces the time before the design completion node of the analog circuit to be tested and the digital circuit to be tested and the simulation operation node of the analog circuit to be tested and the digital circuit to be tested, and shortens the development cycle of the chip.

下面结合附图,通过实施例来详细说明本申请实施例中数模混合电路仿真方法及装置的具体实现方式。The specific implementation of the digital-analog hybrid circuit simulation method and device in the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

参考图1所示,为本申请实施例提供的一种数模混合电路仿真方法的流程图,该方法可以包括以下步骤:Referring to FIG. 1, which is a flowchart of a method for simulating a digital-analog hybrid circuit provided in an embodiment of the present application, the method may include the following steps:

S101,获取包括黑盒模拟电路和黑盒数字电路的黑盒电路的电路信息。S101. Acquire circuit information of a black-box circuit including a black-box analog circuit and a black-box digital circuit.

本申请实施例中,可以先构建黑盒模拟电路和黑盒数字电路,黑盒模拟电路是仅包括管脚信息的模拟电路,其他信息未知,黑盒数字电路是仅包括接口信息的数字线路,其他信息未知。在构建黑盒模拟电路和黑盒数字电路之后,可以获取到包括黑盒模拟电路和黑盒数字电路的电路信息,而后基于包括黑盒模拟电路和黑盒数字电路的黑盒电路搭建仿真系统平台。黑盒电路的电路信息包括黑盒模拟电路的输入管脚信息和输出管脚信息,以及黑盒数字电路的输入接口信息和输出接口信息。In the embodiment of the present application, a black-box analog circuit and a black-box digital circuit can be constructed first, the black-box analog circuit is an analog circuit that only includes pin information, and other information is unknown, and the black-box digital circuit is a digital circuit that only includes interface information, Other information is unknown. After constructing the black-box analog circuit and the black-box digital circuit, the circuit information including the black-box analog circuit and the black-box digital circuit can be obtained, and then a simulation system platform can be built based on the black-box circuit including the black-box analog circuit and the black-box digital circuit. . The circuit information of the black box circuit includes input pin information and output pin information of the black box analog circuit, and input interface information and output interface information of the black box digital circuit.

具体的,黑盒数字电路是根据待测数字电路生成的,黑盒数字电路具有与待测数字电路相同的输入接口信息和输出接口信息,由于待测数字电路的输入接口信息和输出接口信息在待测数字电路的设计阶段结束之前就已确定,因此黑盒数字电路的生成可以和待测数字电路的设计并行执行。Specifically, the black-box digital circuit is generated according to the digital circuit to be tested. The black-box digital circuit has the same input interface information and output interface information as the digital circuit to be tested. Since the input interface information and output interface information of the digital circuit to be tested are in The design phase of the digital circuit under test is determined before the end of the design phase, so the generation of the black-box digital circuit can be performed in parallel with the design of the digital circuit under test.

黑盒数字电路的输入接口信息用于表示黑盒数字电路的各个输入接口的功能,黑盒数字电路的输出接口信息用于表示黑盒数字电路的各个输出接口的功能。例如第一个输入接口用于输入重置信号(RESET),第二个输入接口用于输入(PD),等等;例如第一个输出接口用于输出PDB信号,第二个输出接口用于输出PDBB信号,等等。The input interface information of the black box digital circuit is used to indicate the function of each input interface of the black box digital circuit, and the output interface information of the black box digital circuit is used to indicate the function of each output interface of the black box digital circuit. For example, the first input interface is used to input reset signal (RESET), the second input interface is used to input (PD), etc.; for example, the first output interface is used to output PDB signal, and the second output interface is used to output PDB signal. Output PDBB signal, etc.

由于待测数字电路前端是使用硬件描述语言verilog进行设计的,因此利用EDA工具创建黑盒数字电路,可以在EDA工具中创建verilog类型的视图(view),在打开的可编辑窗口中按照verilog语法声明黑盒数字电路的接口信息,接口信息包括输入接口信息和输出接口信息,由于不同接口之间利用声明顺序区分,因此黑盒数字电路的接口信息的声明顺序和待测数字电路的接口信息的声明顺序一致,这样保证黑盒数字电路的接口和待测数字电路的接口信息相同。Since the front end of the digital circuit to be tested is designed using the hardware description language verilog, the EDA tool is used to create a black-box digital circuit, and a verilog type view can be created in the EDA tool, and the verilog syntax can be used in the open editable window. The interface information of the black-box digital circuit is declared. The interface information includes the input interface information and the output interface information. Since different interfaces are distinguished by the declaration order, the declaration order of the interface information of the black-box digital circuit and the interface information of the digital circuit under test are different. The declaration sequence is consistent, so as to ensure that the interface information of the black box digital circuit and the interface information of the digital circuit under test are the same.

参考图2所示,为本申请实施例提供的一种黑盒数字电路的接口声明示意图,其中输入接口用input表示,各个输入接口的输入信号依次为:RESET、PD、FIN、[8:0]M、[4:0]N、[1:0]OD、OE、BP、SOUT、[1:0]TST,各个输出接口的输出信号依次为:PDB、PDBB、DN、DNB、UP、UPB、FOUT、TST_OUT。Referring to FIG. 2 , a schematic diagram of an interface declaration of a black-box digital circuit provided by an embodiment of the present application, wherein the input interface is represented by input, and the input signals of each input interface are in sequence: RESET, PD, FIN, [8:0 ]M, [4:0]N, [1:0]OD, OE, BP, SOUT, [1:0]TST, the output signals of each output interface are: PDB, PDBB, DN, DNB, UP, UPB , FOUT, TST_OUT.

本申请实施例中,EDA工具在获取到基于verilog语法的黑盒数字电路的输入接口和输出接口的声明信息后,可以根据声明信息生成各个黑盒数字电路的接口元件的电路符号(symbol)对应的视图(view),这样即完成了黑盒数字电路的创建,并完成了黑盒数字电路的输入接口信息和输出接口信息的获取。本申请实施例中,还可以根据声明信息生成黑盒数字电路的verilog网表(netlist)。In the embodiment of the present application, after obtaining the declaration information of the input interface and the output interface of the black-box digital circuit based on the verilog syntax, the EDA tool can generate the corresponding circuit symbols (symbols) of the interface elements of each black-box digital circuit according to the declaration information In this way, the creation of the black-box digital circuit is completed, and the acquisition of the input interface information and output interface information of the black-box digital circuit is completed. In this embodiment of the present application, a verilog netlist (netlist) of the black-box digital circuit may also be generated according to the declaration information.

具体的,黑盒模拟电路是根据待测模拟电路生成的,黑盒模拟电路具有与待测模拟电路相同的输入管脚信息和输出管脚信息,由于待测模拟电路的输入管脚信息和输出管脚信息在待测模拟电路的设计阶段结束之前就已确定,因此黑盒模拟电路的生成可以和待测模拟电路的设计并行执行。Specifically, the black-box analog circuit is generated according to the analog circuit to be tested, and the black-box analog circuit has the same input pin information and output pin information as the analog circuit to be tested. Pin information is determined before the end of the design phase of the analog circuit under test, so the generation of the black box analog circuit can be performed in parallel with the design of the analog circuit under test.

对于黑盒模拟电路,可以创建只包含待测模拟电路的管脚(pin)的原理图,管脚包括输入管脚和输出管脚,将所有的管脚都进行合理的连接,例如为输入管脚和输出管脚之间串联测试电阻,测试电阻的数量可以根据输入管脚和输出管脚的数量确定,每个输入管脚都连接至少一个测试电阻,不同输入管脚可以连接相同的测试电阻,也可以连接不同的测试电阻,每个输出管脚都连接至少一个测试电阻,不同输出管脚可以连接相同的测试电阻,也可以连接不同的测试电阻。为输入管脚和输出管脚串联测试电阻,可以防止输入管脚和输出管脚在后续产生网表时被EDA工具优化去除掉。For black-box analog circuits, you can create a schematic diagram that only includes the pins of the analog circuit to be tested, including input pins and output pins, and connect all pins reasonably, such as input pins A test resistor is connected in series between the pin and the output pin. The number of test resistors can be determined according to the number of input pins and output pins. Each input pin is connected to at least one test resistor, and different input pins can be connected to the same test resistor. , you can also connect different test resistors, each output pin is connected to at least one test resistor, and different output pins can be connected to the same test resistor or different test resistors. Test resistors for input pins and output pins in series can prevent input pins and output pins from being optimized and removed by EDA tools during subsequent netlist generation.

参考图3所示,为本申请实施例提供的一种黑盒模拟电路的示意图,其中,输入管脚包括M<8:3>、IN1、IN2、DN、DNB、UP和UPB,输出管脚包括SOUT,其中输入管脚M<8>、M<7>、M<6>、M<5>、M<4>、M<3>、IN1、IN2、DN、DNB、UP和UPB分别通过测试电阻R6、R7、R8、R9、R10、R11、R0、R1、R2、R3、R4、R5与输出管脚SOUT连接。Referring to FIG. 3 , which is a schematic diagram of a black box analog circuit provided by an embodiment of the present application, the input pins include M<8:3>, IN1, IN2, DN, DNB, UP, and UPB, and the output pins include M<8:3>, IN1, IN2, DN, DNB, UP, and UPB. Including SOUT, where input pins M<8>, M<7>, M<6>, M<5>, M<4>, M<3>, IN1, IN2, DN, DNB, UP, and UPB pass through The test resistors R6, R7, R8, R9, R10, R11, R0, R1, R2, R3, R4, R5 are connected to the output pin SOUT.

本申请实施例中,获取黑盒模拟电路的输入管脚信息和输出管脚信息,可以具体为,获取黑盒模拟电路信息,根据模拟电路信息生成各个黑盒模拟电路的管脚元件的电路符号(symbol)对应的视图(view)。具体的,还可以根据电路信息生成黑盒模拟电路的网表。In the embodiment of the present application, acquiring the input pin information and output pin information of the black box analog circuit may specifically be: acquiring the black box analog circuit information, and generating circuit symbols of the pin components of each black box analog circuit according to the analog circuit information (symbol) The corresponding view (view). Specifically, the netlist of the black-box analog circuit can also be generated according to the circuit information.

S102,为黑盒电路确定仿真配置信息。S102, determine simulation configuration information for the black box circuit.

本申请实施例中,在确定黑盒电路并获取到黑盒电路的电路信息后,可以基于黑盒电路进行仿真系统的搭建,参考图4所示,为本申请实施例提供的一种仿真系统的示意图,仿真系统可以包括激励电路(Driver)和监测电路(Monitor),仿真系统用于对包含数字电路(Digital)和模拟电路(Analog)的测试电路进行仿真,其中激励电路用于提供激励信号,监测电路用于根据仿真验证的需要,对测试电路的信号进行监测。In the embodiment of the present application, after the black box circuit is determined and the circuit information of the black box circuit is obtained, a simulation system can be built based on the black box circuit. Referring to FIG. 4 , a simulation system provided by the embodiment of the present application is shown. The schematic diagram of the simulation system can include an excitation circuit (Driver) and a monitoring circuit (Monitor). The simulation system is used to simulate a test circuit including a digital circuit (Digital) and an analog circuit (Analog), wherein the excitation circuit is used to provide excitation signals. , the monitoring circuit is used to monitor the signal of the test circuit according to the needs of simulation verification.

具体的,在获取到黑盒电路的电路信息后,还可以设置激励电路的信息,在利用仿真EDA工具对黑盒电路进行仿真操作时,激励电路用于为黑盒电路提供激励信号,对黑盒电路的仿真操作即为仿真黑盒电路在激励信号的作用下产生的响应信号,通过对响应信号的分析可以得到对黑盒电路的仿真操作结果,黑盒电路的仿真操作结果体现黑盒电路的性能参数。Specifically, after obtaining the circuit information of the black box circuit, the information of the excitation circuit can also be set. When using the simulation EDA tool to simulate the black box circuit, the excitation circuit is used to provide excitation signals for the black box circuit. The simulation operation of the box circuit is to simulate the response signal generated by the black box circuit under the action of the excitation signal. Through the analysis of the response signal, the simulation operation result of the black box circuit can be obtained. The simulation operation result of the black box circuit reflects the black box circuit. performance parameters.

激励电路的信息可以包括激励电路中的电路元件,以及激励电路和黑盒电路的连接关系,激励电路的信息根据对待测电路的检测需求确定,例如根据仿真类型、仿真分析点等确定。利用激励电路和黑盒电路,得到仿真电路的电路原理图(schematic)。监测电路的信息可以包括监测电路中的电路元件,以及监测电路和黑盒电路的连接关系,监测电路的信息根据对待测电路的检测需求确定,例如根据仿真类型、仿真检测点等确定,仿真电路的电路原理图还可以包括监测电路。The information of the excitation circuit may include circuit elements in the excitation circuit and the connection relationship between the excitation circuit and the black-box circuit. The information of the excitation circuit is determined according to the detection requirements of the circuit to be tested, for example, according to the simulation type, simulation analysis point, etc. Using the excitation circuit and the black-box circuit, the circuit schematic of the simulated circuit is obtained. The information of the monitoring circuit can include the circuit elements in the monitoring circuit, and the connection relationship between the monitoring circuit and the black-box circuit. The information of the monitoring circuit is determined according to the detection requirements of the circuit to be tested, for example, according to the simulation type, simulation detection point, etc. The circuit schematic can also include monitoring circuits.

在建立仿真电路的电路原理图后,可以搭建数模混合仿真环境,具体的,可以创建配置信息(config)类型的视图(view),根据需要选择仿真原理图的混合仿真类型,在正确设置后,仿真系统原理图就设计完成。After establishing the circuit schematic diagram of the simulation circuit, you can build a digital-analog hybrid simulation environment. Specifically, you can create a view (view) of the configuration information (config) type, and select the hybrid simulation type of the simulation schematic diagram as needed. After correct setting , the simulation system schematic diagram is designed.

具体的,在获取到黑盒电路的电路信息后,还可以设置仿真操作的配置信息,这样仿真EDA工具可以根据配置信息进行电路仿真。配置信息可以包括例如可以为仿真需要的模型文件、仿真流程中使用的脚本、仿真运行位置以及仿真结果产生位置、仿真中使用的黑盒数字电路的信息和黑盒模拟电路的信息、用户自定义配置文件等文件的存储位置,这样仿真EDA工具可以根据这些配置信息调用需要的文件来对黑盒电路进行仿真操作。Specifically, after obtaining the circuit information of the black box circuit, configuration information of the simulation operation can also be set, so that the simulation EDA tool can perform circuit simulation according to the configuration information. Configuration information may include, for example, model files that may be required for simulation, scripts used in the simulation process, where the simulation is run and where the simulation results are generated, information on black-box digital circuits used in the simulation and information on black-box analog circuits, user-defined The storage location of files such as configuration files, so that the simulation EDA tool can call the required files according to the configuration information to simulate the black box circuit.

参考图5所示,为本申请实施例提供的一种仿真环境结构示意图,仿真环境结构中包括数据库(Database),数据库中包括模型(Models)文件夹、脚本(Script)文件夹、仿真(Simulation)文件夹、电路信息(Src)文件夹和自定义模型(User_define Models)文件夹等,其中模型文件夹用于存放所有仿真需要的模型文件,脚本文件夹用于存放所有仿真流程中使用的脚本,仿真文件夹为仿真运行位置及仿真结果产生位置,电路信息文件夹用于存放仿真中使用到的黑盒数字电路的信息和黑盒模拟电路的信息,自定义模型文件夹中存放仿真流程中需要用户自行定义的配置文件。其中,黑盒数字电路的信息包括黑盒数字电路的RTL代码文件或RTL网表,黑盒模拟电路的信息包括黑盒模拟电路的仿真网表文件。Referring to FIG. 5, a schematic diagram of the structure of a simulation environment provided by an embodiment of the present application, the simulation environment structure includes a database (Database), and the database includes a model (Models) folder, a script (Script) folder, a simulation (Simulation) ) folder, circuit information (Src) folder, custom model (User_define Models) folder, etc., where the model folder is used to store all model files required for simulation, and the script folder is used to store all scripts used in the simulation process , the simulation folder is the location where the simulation runs and the simulation results are generated, the circuit information folder is used to store the information of the black-box digital circuit and the information of the black-box analog circuit used in the simulation, and the custom model folder is used to store the information in the simulation process. A user-defined configuration file is required. The information of the black-box digital circuit includes an RTL code file or an RTL netlist of the black-box digital circuit, and the information of the black-box analog circuit includes a simulation netlist file of the black-box analog circuit.

具体实施时,可以打开仿真系统原理图对应的仿真工具窗口,根据需要设置仿真模型、仿真分析点、仿真监测点,然后选择仿真器类型、设置数模混合仿真类型及数模转换参数等信息。仿真选项设置完成后,运行仿真,则仿真工具会产生整个仿真系统电路的仿真网表和仿真设置等文件,网表和文件当中对应的数字待测电路为前述的黑盒数字电路,模拟待测电路为前述的黑盒模拟电路。During specific implementation, you can open the simulation tool window corresponding to the schematic diagram of the simulation system, set the simulation model, simulation analysis points, and simulation monitoring points as required, then select the simulator type, set the digital-analog hybrid simulation type, and digital-analog conversion parameters and other information. After the simulation options are set, run the simulation, and the simulation tool will generate the simulation netlist and simulation settings of the entire simulation system circuit. The corresponding digital circuit under test in the netlist and file is the aforementioned black box digital circuit. The circuit is the aforementioned black box analog circuit.

在完成仿真系统的搭建后,可以获取到仿真配置信息,仿真配置信息可以包括黑盒数字电路的verilog网表的存储位置、黑盒模拟电路的网表的存储位置、仿真系统顶层网表的存储位置、黑盒数字电路的外包测试项层verilog网表的存储位置和激励电路的网表的存储位置。仿真配置信息还可以包括仿真模型文件的存储位置、仿真分析点、仿真监测点、仿真器类型、数模混合仿真类型和数模转换参数等。After completing the construction of the simulation system, the simulation configuration information can be obtained. The simulation configuration information can include the storage location of the verilog netlist of the black box digital circuit, the storage location of the netlist of the black box analog circuit, and the storage location of the top-level netlist of the simulation system. The location, the storage location of the verilog netlist of the outsourced test item layer of the black box digital circuit and the storage location of the netlist of the excitation circuit. The simulation configuration information may further include the storage location of the simulation model file, simulation analysis points, simulation monitoring points, simulator type, digital-analog hybrid simulation type, digital-analog conversion parameters, and the like.

S103,将黑盒模拟电路替换为待测模拟电路,将黑盒数字电路替换为待测数字电路,基于待测模拟电路的存储位置和黑盒数字电路的存储位置更新仿真配置信息。S103, replace the black box analog circuit with the analog circuit to be tested, replace the black box digital circuit with the digital circuit to be tested, and update the simulation configuration information based on the storage location of the analog circuit to be tested and the storage location of the black box digital circuit.

本申请实施例中,可以在建立黑盒电路后进行数模混合电路仿真系统平台的搭建,这样将数模混合电路仿真系统平台的搭建时间提前至数字电路和模拟电路设计的阶段,甚至可以提前至数字电路和模拟电路设计的初始阶段,这样电路设计和仿真平台搭建可以同步进行,解决了数模混合电路仿真系统平台的搭建对电路设计速度过度依赖的问题,有效减少芯片的开发周期,降低开发成本。In the embodiment of the present application, the construction of the digital-analog hybrid circuit simulation system platform can be carried out after the black box circuit is established, so that the construction time of the digital-analog hybrid circuit simulation system platform is advanced to the stage of digital circuit and analog circuit design, or even in advance To the initial stage of digital circuit and analog circuit design, circuit design and simulation platform construction can be carried out simultaneously, which solves the problem that the construction of the digital-analog hybrid circuit simulation system platform is overly dependent on the circuit design speed, effectively reduces the development cycle of the chip, reduces the Development costs.

在待测数字电路和待测模拟电路设计完成后,可以将待测模拟黑盒模拟电路替换为待测模拟电路,将黑盒数字电路替换为待测数字电路,待测模拟电路的输入管脚信息和输出管脚信息,分别与黑盒模拟电路的输入管脚信息和输出管脚信息相同,待测数字电路的输入接口信息和输出接口信息,分别与黑盒数字电路的输入接口信息和输出接口信息相同,这样即使进行了将黑盒电路替换为待测电路,黑盒电路和激励电路之间的连接,与待测电路和激励电路之间的连接不会改变,因此所需的仿真配置信息未经改变,前期搭建的数模混合电路仿真系统平台可以用于待测电路的仿真。After the digital circuit to be tested and the analog circuit to be tested are designed, the analog black-box analog circuit to be tested can be replaced with the analog circuit to be tested, the black-box digital circuit can be replaced with the digital circuit to be tested, and the input pins of the analog circuit to be tested can be replaced The information and output pin information are respectively the same as the input pin information and output pin information of the black box analog circuit, and the input interface information and output interface information of the digital circuit to be tested are respectively the same as the input interface information and output information of the black box digital circuit. The interface information is the same, so that even if the black box circuit is replaced by the circuit under test, the connection between the black box circuit and the excitation circuit, and the connection between the circuit under test and the excitation circuit will not change, so the required simulation configuration The information has not been changed, and the digital-analog hybrid circuit simulation system platform built in the early stage can be used for the simulation of the circuit to be tested.

具体的,将黑盒模拟电路替换为待测模拟电路,可以具体为,在黑盒模拟电路的存储位置将黑盒模拟电路的网表替换为待测模拟电路的网表;将黑盒数字电路替换为待测数字电路,可以具体为,在黑盒数字电路的verilog网表的存储位置将黑盒数字电路的verilog网表替换为待测数字电路的verilog网表。当然,仿真配置信息中的黑盒数字电路的verilog网表的存储位置也更新为待测数字电路的verilog网表的存储位置,其中的黑盒模拟电路的网表的存储位置也更新为待测模拟电路的网表的存储位置。Specifically, replacing the black-box analog circuit with the analog circuit to be tested can be specifically: replacing the netlist of the black-box analog circuit with the netlist of the analog circuit to be tested at the storage location of the black-box analog circuit; replacing the black-box digital circuit with the netlist of the analog circuit to be tested Replacing with the digital circuit to be tested may specifically include replacing the verilog netlist of the black-box digital circuit with the verilog netlist of the digital circuit to be tested in the storage location of the verilog netlist of the black-box digital circuit. Of course, the storage location of the verilog netlist of the black-box digital circuit in the simulation configuration information is also updated to the storage location of the verilog netlist of the digital circuit to be tested, and the storage location of the netlist of the black-box analog circuit is also updated to the storage location of the netlist to be tested. The storage location for the netlist of the analog circuit.

S104,利用仿真配置信息,对包括待测模拟电路和待测数字电路的待测电路仿真。S104, use the simulation configuration information to simulate the circuit to be tested including the analog circuit to be tested and the digital circuit to be tested.

在将黑盒数字电路替换为待测数字电路,将黑盒模拟电路替换为待测模拟电路后,黑盒电路和激励电路之间的连接,与待测电路和激励电路之间的连接不会改变,因此所需的仿真配置信息未经改变,前期搭建的数模混合电路仿真系统平台可以用于待测电路的仿真。After replacing the black-box digital circuit with the digital circuit to be tested and the black-box analog circuit with the analog circuit to be tested, the connection between the black-box circuit and the excitation circuit will not be the same as the connection between the circuit under test and the excitation circuit. Therefore, the required simulation configuration information has not changed, and the digital-analog hybrid circuit simulation system platform built in the early stage can be used for the simulation of the circuit to be tested.

本申请实施例中,可以利用更新后的仿真配置信息,对包括待测模拟电路和待测数字电路的待测电路进行仿真,得到对待测电路进行仿真的结果,待测电路的仿真结果为待测电路的性能参数,这样根据待测电路的仿真结果可以对待测电路进行优化。更新后的仿真配置信息还包括仿真系统顶层网表的存储位置、待测数字电路的外包测试项层verilog代码的存储位置和激励电路的网表的存储位置,激励电路用于提供激励信号。其中,仿真配置信息中的黑盒数字电路的外包测试项层verilog代码的存储位置未经修改,和待测数字电路的外包测试项层verilog代码的存储位置相同。In the embodiment of the present application, the updated simulation configuration information can be used to simulate the circuit to be tested including the analog circuit to be tested and the digital circuit to be tested to obtain a simulation result of the circuit to be tested, and the simulation result of the circuit to be tested is The performance parameters of the circuit under test can be optimized, so that the circuit under test can be optimized according to the simulation results of the circuit under test. The updated simulation configuration information also includes the storage location of the top-level netlist of the simulation system, the storage location of the verilog code of the outsourced test item layer of the digital circuit to be tested, and the storage location of the netlist of the excitation circuit, which is used to provide excitation signals. The storage location of the verilog code of the outsourced test item layer of the black-box digital circuit in the simulation configuration information is unmodified, and the storage location of the verilog code of the outsourced test item layer of the digital circuit to be tested is the same.

由于数模混合电路仿真系统平台的搭建时间提前至数字电路和模拟电路设计的阶段,甚至可以提前至数字电路和模拟电路设计的初始阶段,这样电路设计和仿真平台搭建可以同步进行,解决了数模混合电路仿真系统平台的搭建对电路设计速度过度依赖的问题,有效减少芯片的开发周期,降低开发成本。Since the construction time of the digital-analog hybrid circuit simulation system platform is advanced to the stage of digital circuit and analog circuit design, it can even be advanced to the initial stage of digital circuit and analog circuit design. The construction of the modular hybrid circuit simulation system platform is overly dependent on the circuit design speed, which effectively reduces the development cycle of the chip and reduces the development cost.

本申请实施例中,还可以根据仿真配置信息和待测数字电路的verilog网表的存储位置,以及待测模拟电路的网表的存储位置,得到仿真配置脚本,仿真配置脚本可以包括第一配置信息,第一配置信息包括待测数字电路的verilog网表的存储位置,以及待测模拟电路的网表的存储位置,这样利用仿真配置信息,对包括待测模拟电路和待测数字电路的待测电路仿真,可以具体为,运行仿真配置脚本,以利用仿真EDA工具对包括待测模拟电路和待测数字电路的待测电路进行仿真操作。第一配置信息还可以包括仿真系统顶层网表的存储位置、待测数字电路的外包测试项层verilog代码的存储位置和激励电路的网表的存储位置。In this embodiment of the present application, a simulation configuration script may also be obtained according to the simulation configuration information, the storage location of the verilog netlist of the digital circuit to be tested, and the storage location of the netlist of the analog circuit to be tested, and the simulation configuration script may include the first configuration information, the first configuration information includes the storage position of the verilog netlist of the digital circuit to be tested, and the storage position of the netlist of the analog circuit to be tested. The simulation of the circuit under test may specifically be: running a simulation configuration script to perform a simulation operation on the circuit under test including the analog circuit under test and the digital circuit under test by using a simulation EDA tool. The first configuration information may further include the storage location of the top-level netlist of the simulation system, the storage location of the verilog code of the outsourced test item layer of the digital circuit to be tested, and the storage location of the netlist of the excitation circuit.

本申请实施例中,还可以根据仿真配置信息和待测数字电路的verilog代码文件的存储位置,以及待测模拟电路的网表的存储位置,得到仿真配置脚本,仿真配置脚本可以包括第二配置信息,第二配置信息包括待测数字电路的verilog代码文件的存储位置,以及待测模拟电路的网表的存储位置,这样利用仿真配置信息,对包括待测模拟电路和待测数字电路的待测电路仿真,可以具体为,运行仿真配置脚本,以利用仿真EDA工具对包括待测模拟电路和待测数字电路的待测电路进行仿真操作。待测数字电路的verilog代码文件是设计工程师设计得到,因此无需仿真工程师录入相关电路单元的信息,减少出错的可能。第二配置信息还可以包括仿真系统顶层网表的存储位置、待测数字电路的外包测试项层verilog代码的存储位置和激励电路的网表的存储位置。In the embodiment of the present application, a simulation configuration script can also be obtained according to the simulation configuration information, the storage location of the verilog code file of the digital circuit to be tested, and the storage location of the netlist of the analog circuit to be tested, and the simulation configuration script can include the second configuration information, the second configuration information includes the storage location of the verilog code file of the digital circuit to be tested, and the storage location of the netlist of the analog circuit to be The simulation of the circuit under test may specifically be: running a simulation configuration script to perform a simulation operation on the circuit under test including the analog circuit under test and the digital circuit under test by using a simulation EDA tool. The verilog code file of the digital circuit to be tested is designed by the design engineer, so there is no need for the simulation engineer to enter the information of the relevant circuit units, reducing the possibility of errors. The second configuration information may further include the storage location of the top-level netlist of the simulation system, the storage location of the verilog code of the outsourced test item layer of the digital circuit to be tested, and the storage location of the netlist of the excitation circuit.

本申请实施例提供了一种数模混合电路仿真方法,获取包括黑盒模拟电路和黑盒数字电路的黑盒电路的电路信息,黑盒电路的电路信息包括黑盒模拟电路的输入管脚信息和输出管脚信息,黑盒模拟电路包括输入管脚和输出管脚之间串联的测试电阻,电路信息还包括黑盒数字电路的输入接口信息和输出接口信息,为黑盒电路确定仿真配置信息,在将黑盒模拟电路替换为待测模拟电路,将黑盒数字电路替换为待测数字电路后,基于待测模拟电路的存储位置和黑盒数字电路的存储位置更新仿真配置信息,可以利用更新后的仿真配置信息对包括待测模拟电路和待测数字电路的待测电路进行仿真,其中待测模拟电路具有与黑盒模拟电路相同的输入管脚信息和输出管脚信息,待测数字电路具有与黑盒数字电路相同的输入接口信息和输出接口信息。也就是说,本申请实施例中,可以预先根据待测模拟电路的输入管脚信息和输出管脚信息建立黑盒模拟电路,根据待测数字电路的输入接口信息和输出接口信息建立黑盒数字电路,并为黑盒电路确定仿真配置信息,这样将仿真系统的搭建设置在待测模拟电路和待测数字电路的设计阶段,在待测模拟电路和待测数字电路设计完成后,可以利用已经搭建的测试系统进行仿真操作,减少了待测模拟电路和待测数字电路的设计完成节点和待测模拟电路和待测数字电路的仿真操作节点之前的时长,缩短了芯片的开发周期。An embodiment of the present application provides a digital-analog hybrid circuit simulation method, which acquires circuit information of a black-box circuit including a black-box analog circuit and a black-box digital circuit, and the circuit information of the black-box circuit includes input pin information of the black-box analog circuit and output pin information, the black box analog circuit includes the test resistor connected in series between the input pin and the output pin, the circuit information also includes the input interface information and output interface information of the black box digital circuit, and determines the simulation configuration information for the black box circuit , after replacing the black-box analog circuit with the analog circuit to be tested, and replacing the black-box digital circuit with the digital circuit to be tested, update the simulation configuration information based on the storage location of the analog circuit to be tested and the storage location of the black-box digital circuit, you can use The updated simulation configuration information simulates the circuit to be tested including the analog circuit to be tested and the digital circuit to be tested, wherein the analog circuit to be tested has the same input pin information and output pin information as the black box analog circuit, and the digital circuit to be tested has the same input pin information and output pin information as the black box analog circuit. The circuit has the same input interface information and output interface information as the black box digital circuit. That is to say, in the embodiment of the present application, a black-box analog circuit can be established in advance according to the input pin information and output pin information of the analog circuit to be tested, and a black-box digital circuit can be established according to the input interface information and output interface information of the digital circuit to be tested. circuit, and determine the simulation configuration information for the black box circuit, so that the construction of the simulation system is set in the design stage of the analog circuit to be tested and the digital circuit to be tested. The built test system performs simulation operation, which reduces the time before the design completion node of the analog circuit to be tested and the digital circuit to be tested and the simulation operation node of the analog circuit to be tested and the digital circuit to be tested, and shortens the development cycle of the chip.

基于以上数模混合电路仿真方法,本申请实施例还提供了一种数模混合电路仿真装置,参考图6所示,为本申请实施例提供的一种数模混合电路仿真装置的结构框图,该装置可以包括:Based on the above digital-analog hybrid circuit simulation method, an embodiment of the present application further provides a digital-analog hybrid circuit simulation device. Referring to FIG. 6, a structural block diagram of a digital-analog hybrid circuit simulation device provided by an embodiment of the present application is shown, The apparatus may include:

电路信息获取单元110,用于获取包括黑盒模拟电路和黑盒数字电路的黑盒电路的电路信息;所述黑盒电路的电路信息包括所述黑盒模拟电路的输入管脚信息和输出管脚信息,所述黑盒模拟电路包括输入管脚和输出管脚之间串联的测试电阻;所述电路信息还包括所述黑盒数字电路的输入接口信息和输出接口信息;The circuit information acquisition unit 110 is configured to acquire circuit information of a black-box circuit including a black-box analog circuit and a black-box digital circuit; the circuit information of the black-box circuit includes input pin information and output tube information of the black-box analog circuit pin information, the black box analog circuit includes a test resistor connected in series between the input pin and the output pin; the circuit information also includes input interface information and output interface information of the black box digital circuit;

配置信息确定单元120,用于为所述黑盒电路确定仿真配置信息;a configuration information determining unit 120, configured to determine simulation configuration information for the black box circuit;

电路替换单元130,用于将所述黑盒模拟电路替换为待测模拟电路,将所述黑盒数字电路替换为待测数字电路,基于所述待测模拟电路的存储位置和所述黑盒数字电路的存储位置更新所述仿真配置信息;所述待测模拟电路具有与所述黑盒模拟电路相同的输入管脚信息和输出管脚信息,所述待测数字电路具有与所述黑盒数字电路相同的输入接口信息和输出接口信息;A circuit replacement unit 130, configured to replace the black box analog circuit with an analog circuit to be tested, and replace the black box digital circuit with a digital circuit to be tested, based on the storage location of the analog circuit to be tested and the black box The storage location of the digital circuit updates the simulation configuration information; the analog circuit under test has the same input pin information and output pin information as the black box analog circuit, and the digital circuit under test has the same input pin information and output pin information as the black box analog circuit. The same input interface information and output interface information of the digital circuit;

仿真单元140,用于利用更新后的仿真配置信息,对包括所述待测模拟电路和所述待测数字电路的待测电路仿真。The simulation unit 140 is configured to use the updated simulation configuration information to simulate the circuit to be tested including the analog circuit to be tested and the digital circuit to be tested.

可选的,所述电路替换单元,包括:Optionally, the circuit replacement unit includes:

第一电路替换子单元,用于在所述黑盒数字电路的verilog网表的存储位置将所述黑盒数字电路的verilog网表替换为待测数字电路的verilog网表;The first circuit replacement subunit is used to replace the verilog netlist of the black-box digital circuit with the verilog netlist of the digital circuit to be tested at the storage location of the verilog netlist of the black-box digital circuit;

第二电路替换子单元,用于在所述黑盒模拟电路的网表的存储位置将所述黑盒模拟电路的网表替换为待测模拟电路的网表;a second circuit replacement subunit, configured to replace the netlist of the black-box analog circuit with the netlist of the analog circuit to be tested at the storage location of the netlist of the black-box analog circuit;

配置信息替换子单元,用于将所述仿真配置信息中的黑盒数字电路的verilog网表的存储位置更新为所述黑盒模拟电路的网表的存储位置,将所述仿真配置信息中的待测数字电路的verilog网表的存储位置替换为所述待测模拟电路的网表的存储位置。The configuration information replacement subunit is used to update the storage location of the verilog netlist of the black-box digital circuit in the simulation configuration information to the storage location of the netlist of the black-box analog circuit, and replace the The storage location of the verilog netlist of the digital circuit to be tested is replaced with the storage location of the netlist of the analog circuit to be tested.

可选的,为所述黑盒电路确定的仿真配置信息和所述更新后的仿真配置信息还包括:仿真系统顶层网表的存储位置、所述黑盒数字电路的外包测试项层verilog代码的存储位置和激励电路的网表的存储位置,所述激励电路用于提供激励信号;所述黑盒数字电路的外包测试项层verilog代码的存储位置和所述待测数字电路的外包测试项层verilog代码的存储位置相同。Optionally, the simulation configuration information determined for the black-box circuit and the updated simulation configuration information also include: the storage location of the top-level netlist of the simulation system, the storage location of the verilog code of the outsourced test item layer of the black-box digital circuit. Storage location and the storage location of the netlist of the excitation circuit, the excitation circuit is used to provide an excitation signal; the storage location of the verilog code of the outsourced test item layer of the black box digital circuit and the outsourced test item layer of the digital circuit to be tested The verilog code is stored in the same location.

可选的,所述装置还包括:Optionally, the device further includes:

脚本确定单元,用于根据所述仿真配置信息和所述待测数字电路的verilog网表的存储位置,以及所述待测模拟电路的网表,得到仿真配置脚本;a script determination unit, configured to obtain a simulation configuration script according to the simulation configuration information and the storage location of the verilog netlist of the digital circuit to be tested, and the netlist of the analog circuit to be tested;

则,所述仿真单元具体用于:Then, the simulation unit is specifically used for:

运行所述仿真配置脚本,以调用所述仿真EDA工具对包括所述待测模拟电路和所述待测数字电路的待测电路进行仿真操作。The simulation configuration script is run to invoke the simulation EDA tool to perform a simulation operation on the circuit under test including the analog circuit under test and the digital circuit under test.

可选的,所述电路信息获取单元,包括:Optionally, the circuit information acquisition unit includes:

数字电路获取子单元,用于获取基于verilog语法的黑盒数字电路的输入接口和输出接口的声明信息;根据所述声明信息生成所述黑盒数字电路的verilog网表;The digital circuit acquisition subunit is used to acquire the declaration information of the input interface and the output interface of the black-box digital circuit based on the verilog syntax; the verilog netlist of the black-box digital circuit is generated according to the declaration information;

模拟电路获取子单元,用于获取所述黑盒模拟电路的电路信息,根据所述电路信息生成所述黑盒模拟电路的网表。The analog circuit acquisition subunit is configured to acquire circuit information of the black-box analog circuit, and generate a netlist of the black-box analog circuit according to the circuit information.

本申请实施例提供了一种数模混合电路仿真装置,获取包括黑盒模拟电路和黑盒数字电路的黑盒电路的电路信息,黑盒电路的电路信息包括黑盒模拟电路的输入管脚信息和输出管脚信息,黑盒模拟电路包括输入管脚和输出管脚之间串联的测试电阻,电路信息还包括黑盒数字电路的输入接口信息和输出接口信息,为黑盒电路确定仿真配置信息,在将黑盒模拟电路替换为待测模拟电路,将黑盒数字电路替换为待测数字电路后,基于待测模拟电路的存储位置和黑盒数字电路的存储位置更新仿真配置信息,可以利用更新后的仿真配置信息对包括待测模拟电路和待测数字电路的待测电路进行仿真,其中待测模拟电路具有与黑盒模拟电路相同的输入管脚信息和输出管脚信息,待测数字电路具有与黑盒数字电路相同的输入接口信息和输出接口信息。也就是说,本申请实施例中,可以预先根据待测模拟电路的输入管脚信息和输出管脚信息建立黑盒模拟电路,根据待测数字电路的输入接口信息和输出接口信息建立黑盒数字电路,并为黑盒电路确定仿真配置信息,这样将仿真系统的搭建设置在待测模拟电路和待测数字电路的设计阶段,在待测模拟电路和待测数字电路设计完成后,可以利用已经搭建的测试系统进行仿真操作,减少了待测模拟电路和待测数字电路的设计完成节点和待测模拟电路和待测数字电路的仿真操作节点之前的时长,缩短了芯片的开发周期。An embodiment of the present application provides a digital-analog hybrid circuit simulation device, which acquires circuit information of a black-box circuit including a black-box analog circuit and a black-box digital circuit, and the circuit information of the black-box circuit includes input pin information of the black-box analog circuit and output pin information, the black box analog circuit includes the test resistor connected in series between the input pin and the output pin, the circuit information also includes the input interface information and output interface information of the black box digital circuit, and determines the simulation configuration information for the black box circuit , after replacing the black-box analog circuit with the analog circuit to be tested, and replacing the black-box digital circuit with the digital circuit to be tested, update the simulation configuration information based on the storage location of the analog circuit to be tested and the storage location of the black-box digital circuit, you can use The updated simulation configuration information simulates the circuit to be tested including the analog circuit to be tested and the digital circuit to be tested, wherein the analog circuit to be tested has the same input pin information and output pin information as the black box analog circuit, and the digital circuit to be tested has the same input pin information and output pin information as the black box analog circuit. The circuit has the same input interface information and output interface information as the black box digital circuit. That is to say, in the embodiment of the present application, a black-box analog circuit can be established in advance according to the input pin information and output pin information of the analog circuit to be tested, and a black-box digital circuit can be established according to the input interface information and output interface information of the digital circuit to be tested. circuit, and determine the simulation configuration information for the black box circuit, so that the construction of the simulation system is set in the design stage of the analog circuit to be tested and the digital circuit to be tested. The built test system performs simulation operation, which reduces the time before the design completion node of the analog circuit to be tested and the digital circuit to be tested and the simulation operation node of the analog circuit to be tested and the digital circuit to be tested, and shortens the development cycle of the chip.

通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到上述实施例方法中的全部或部分步骤可借助软件加通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如只读存储器(英文:read-only memory,ROM)/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者诸如路由器等网络通信设备)执行本申请各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that all or part of the steps in the methods of the above embodiments can be implemented by means of software plus a general hardware platform. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, and the computer software product can be stored in a storage medium, such as read-only memory (English: read-only memory, ROM)/RAM, magnetic disk, An optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network communication device such as a router) to execute the methods described in various embodiments or some parts of the embodiments of the present application.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的设备及系统实施例仅仅是示意性的,其中作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for related parts. The device and system embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

以上所述仅是本申请的优选实施方式,并非用于限定本申请的保护范围。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the present application, several improvements and modifications can also be made, and these improvements and modifications should also be regarded as the protection scope of the present application.

Claims (10)

1.一种数模混合电路仿真方法,其特征在于,包括:1. a digital-analog hybrid circuit simulation method, is characterized in that, comprises: 获取包括黑盒模拟电路和黑盒数字电路的黑盒电路的电路信息;所述黑盒电路的电路信息包括所述黑盒模拟电路的输入管脚信息和输出管脚信息,所述黑盒模拟电路包括输入管脚和输出管脚之间串联的测试电阻;所述电路信息还包括所述黑盒数字电路的输入接口信息和输出接口信息;Obtain circuit information of a black-box circuit including a black-box analog circuit and a black-box digital circuit; the circuit information of the black-box circuit includes input pin information and output pin information of the black-box analog circuit, and the black-box analog circuit The circuit includes a test resistor connected in series between the input pin and the output pin; the circuit information also includes input interface information and output interface information of the black-box digital circuit; 为所述黑盒电路确定仿真配置信息;determining simulation configuration information for the black box circuit; 将所述黑盒模拟电路替换为待测模拟电路,将所述黑盒数字电路替换为待测数字电路,基于所述待测模拟电路的存储位置和所述黑盒数字电路的存储位置更新所述仿真配置信息;所述待测模拟电路具有与所述黑盒模拟电路相同的输入管脚信息和输出管脚信息,所述待测数字电路具有与所述黑盒数字电路相同的输入接口信息和输出接口信息;Replace the black-box analog circuit with an analog circuit to be tested, replace the black-box digital circuit with a digital circuit to be tested, and update the data based on the storage location of the analog circuit to be tested and the storage location of the black-box digital circuit. The simulation configuration information; the analog circuit under test has the same input pin information and output pin information as the black box analog circuit, and the digital circuit under test has the same input interface information as the black box digital circuit and output interface information; 利用更新后的仿真配置信息,对包括所述待测模拟电路和所述待测数字电路的待测电路进行仿真。Using the updated simulation configuration information, the circuit under test including the analog circuit under test and the digital circuit under test is simulated. 2.根据权利要求1所述的方法,其特征在于,所述将所述黑盒模拟电路替换为待测模拟电路,将所述黑盒数字电路替换为待测数字电路,基于所述待测模拟电路的存储位置和所述黑盒数字电路的存储位置更新所述仿真配置信息,包括:2. The method according to claim 1, characterized in that, replacing the black box analog circuit with an analog circuit to be tested, replacing the black box digital circuit with a digital circuit to be tested, based on the The storage location of the analog circuit and the storage location of the black-box digital circuit update the simulation configuration information, including: 在所述黑盒数字电路的verilog网表的存储位置将所述黑盒数字电路的verilog网表替换为待测数字电路的verilog网表;Replace the verilog netlist of the black-box digital circuit with the verilog netlist of the digital circuit to be tested at the storage location of the verilog netlist of the black-box digital circuit; 在所述黑盒模拟电路的网表的存储位置将所述黑盒模拟电路的网表替换为待测模拟电路的网表;Replace the netlist of the black-box analog circuit with the netlist of the analog circuit to be tested at the storage location of the netlist of the black-box analog circuit; 将所述仿真配置信息中的黑盒数字电路的verilog网表的存储位置更新为所述黑盒模拟电路的网表的存储位置,将所述仿真配置信息中的待测数字电路的verilog网表的存储位置替换为所述待测模拟电路的网表的存储位置。Update the storage location of the verilog netlist of the black-box digital circuit in the simulation configuration information to the storage location of the netlist of the black-box analog circuit, and update the verilog netlist of the digital circuit to be tested in the simulation configuration information The storage location of is replaced with the storage location of the netlist of the analog circuit under test. 3.根据权利要求2所述的方法,其特征在于,为所述黑盒电路确定的仿真配置信息和所述更新后的仿真配置信息还包括:仿真系统顶层网表的存储位置、所述黑盒数字电路的外包测试项层verilog代码的存储位置和激励电路的网表的存储位置,所述激励电路用于提供激励信号;所述黑盒数字电路的外包测试项层verilog代码的存储位置和所述待测数字电路的外包测试项层verilog代码的存储位置相同。3. The method according to claim 2, wherein the simulation configuration information determined for the black box circuit and the updated simulation configuration information further comprise: the storage location of the top-level netlist of the simulation system, the black box circuit The storage position of the verilog code of the outsourcing test item layer of the box digital circuit and the storage position of the netlist of the excitation circuit, the excitation circuit is used to provide the excitation signal; the storage position of the verilog code of the outsourcing test item layer of the black box digital circuit and The storage locations of the verilog codes of the outsourced test item layer of the digital circuit to be tested are the same. 4.根据权利要求2所述的方法,其特征在于,所述方法还包括:4. The method according to claim 2, wherein the method further comprises: 根据所述仿真配置信息和所述待测数字电路的verilog网表的存储位置,以及所述待测模拟电路的网表,得到仿真配置脚本;According to the simulation configuration information and the storage location of the verilog netlist of the digital circuit to be tested, and the netlist of the analog circuit to be tested, a simulation configuration script is obtained; 则,所述利用所述仿真配置信息,对包括所述待测模拟电路和所述待测数字电路的待测电路仿真,包括:Then, the simulation of the circuit under test including the analog circuit under test and the digital circuit under test by using the simulation configuration information includes: 运行所述仿真配置脚本,以调用所述仿真EDA工具对包括所述待测模拟电路和所述待测数字电路的待测电路进行仿真操作。The simulation configuration script is run to invoke the simulation EDA tool to perform a simulation operation on the circuit under test including the analog circuit under test and the digital circuit under test. 5.根据权利要求1-4任一项所述的方法,其特征在于,5. The method according to any one of claims 1-4, wherein, 所述获取所述黑盒数字电路的输入接口信息和输出接口信息,包括:获取基于verilog语法的黑盒数字电路的输入接口和输出接口的声明信息;根据所述声明信息生成所述黑盒数字电路的verilog网表;The acquiring the input interface information and output interface information of the black-box digital circuit includes: acquiring declaration information of the input interface and output interface of the black-box digital circuit based on verilog syntax; generating the black-box digital circuit according to the declaration information The verilog netlist of the circuit; 所述获取所述黑盒模拟电路的输入管脚信息和输出管脚信息,包括:获取所述黑盒模拟电路的电路信息,根据所述电路信息生成所述黑盒模拟电路的网表。The acquiring the input pin information and output pin information of the black-box analog circuit includes: acquiring circuit information of the black-box analog circuit, and generating a netlist of the black-box analog circuit according to the circuit information. 6.一种数模混合电路仿真装置,其特征在于,包括:6. A digital-analog hybrid circuit emulation device is characterized in that, comprising: 电路信息获取单元,用于获取包括黑盒模拟电路和黑盒数字电路的黑盒电路的电路信息;所述黑盒电路的电路信息包括所述黑盒模拟电路的输入管脚信息和输出管脚信息,所述黑盒模拟电路包括输入管脚和输出管脚之间串联的测试电阻;所述电路信息还包括所述黑盒数字电路的输入接口信息和输出接口信息;A circuit information acquisition unit for acquiring circuit information of a black-box circuit including a black-box analog circuit and a black-box digital circuit; the circuit information of the black-box circuit includes input pin information and output pin information of the black-box analog circuit information, the black box analog circuit includes a test resistor connected in series between the input pin and the output pin; the circuit information also includes input interface information and output interface information of the black box digital circuit; 配置信息确定单元,用于为所述黑盒电路确定仿真配置信息;a configuration information determining unit, configured to determine simulation configuration information for the black box circuit; 电路替换单元,用于将所述黑盒模拟电路替换为待测模拟电路,将所述黑盒数字电路替换为待测数字电路,基于所述待测模拟电路的存储位置和所述黑盒数字电路的存储位置更新所述仿真配置信息;所述待测模拟电路具有与所述黑盒模拟电路相同的输入管脚信息和输出管脚信息,所述待测数字电路具有与所述黑盒数字电路相同的输入接口信息和输出接口信息;A circuit replacement unit for replacing the black-box analog circuit with an analog circuit to be tested, and replacing the black-box digital circuit with a digital circuit to be tested, based on the storage location of the analog circuit to be tested and the black-box digital circuit The storage location of the circuit updates the simulation configuration information; the analog circuit under test has the same input pin information and output pin information as the black box analog circuit, and the digital circuit under test has the same input pin information and output pin information as the black box analog circuit. The same input interface information and output interface information of the circuit; 仿真单元,用于利用更新后的仿真配置信息,对包括所述待测模拟电路和所述待测数字电路的待测电路仿真。The simulation unit is used for simulating the circuit under test including the analog circuit under test and the digital circuit under test by using the updated simulation configuration information. 7.根据权利要求6所述的装置,其特征在于,所述电路替换单元,包括:7. The device according to claim 6, wherein the circuit replacement unit comprises: 第一电路替换子单元,用于在所述黑盒数字电路的verilog网表的存储位置将所述黑盒数字电路的verilog网表替换为待测数字电路的verilog网表;The first circuit replacement subunit is used to replace the verilog netlist of the black-box digital circuit with the verilog netlist of the digital circuit to be tested at the storage location of the verilog netlist of the black-box digital circuit; 第二电路替换子单元,用于在所述黑盒模拟电路的网表的存储位置将所述黑盒模拟电路的网表替换为待测模拟电路的网表;a second circuit replacement subunit, configured to replace the netlist of the black-box analog circuit with the netlist of the analog circuit to be tested at the storage location of the netlist of the black-box analog circuit; 配置信息替换子单元,用于将所述仿真配置信息中的黑盒数字电路的verilog网表的存储位置更新为所述黑盒模拟电路的网表的存储位置,将所述仿真配置信息中的待测数字电路的verilog网表的存储位置替换为所述待测模拟电路的网表的存储位置。The configuration information replacement subunit is used to update the storage location of the verilog netlist of the black-box digital circuit in the simulation configuration information to the storage location of the netlist of the black-box analog circuit, and replace the The storage location of the verilog netlist of the digital circuit to be tested is replaced with the storage location of the netlist of the analog circuit to be tested. 8.根据权利要求7所述的装置,其特征在于,为所述黑盒电路确定的仿真配置信息和所述更新后的仿真配置信息还包括:仿真系统顶层网表的存储位置、所述黑盒数字电路的外包测试项层verilog代码的存储位置和激励电路的网表的存储位置,所述激励电路用于提供激励信号;所述黑盒数字电路的外包测试项层verilog代码的存储位置和所述待测数字电路的外包测试项层verilog代码的存储位置相同。8. The apparatus according to claim 7, wherein the simulation configuration information determined for the black box circuit and the updated simulation configuration information further comprise: a storage location of a top-level netlist of the simulation system, the black box circuit The storage position of the verilog code of the outsourcing test item layer of the box digital circuit and the storage position of the netlist of the excitation circuit, the excitation circuit is used to provide the excitation signal; the storage position of the verilog code of the outsourcing test item layer of the black box digital circuit and The storage locations of the verilog codes of the outsourced test item layer of the digital circuit to be tested are the same. 9.根据权利要求7所述的装置,其特征在于,所述装置还包括:9. The apparatus of claim 7, wherein the apparatus further comprises: 脚本确定单元,用于根据所述仿真配置信息和所述待测数字电路的verilog网表的存储位置,以及所述待测模拟电路的网表,得到仿真配置脚本;a script determination unit, configured to obtain a simulation configuration script according to the simulation configuration information and the storage location of the verilog netlist of the digital circuit to be tested, and the netlist of the analog circuit to be tested; 则,所述仿真单元具体用于:Then, the simulation unit is specifically used for: 运行所述仿真配置脚本,以调用所述仿真EDA工具对包括所述待测模拟电路和所述待测数字电路的待测电路进行仿真操作。The simulation configuration script is run to invoke the simulation EDA tool to perform a simulation operation on the circuit under test including the analog circuit under test and the digital circuit under test. 10.根据权利要求6-9任一项所述的装置,其特征在于,所述电路信息获取单元,包括:10. The device according to any one of claims 6-9, wherein the circuit information acquisition unit comprises: 数字电路获取子单元,用于获取基于verilog语法的黑盒数字电路的输入接口和输出接口的声明信息;根据所述声明信息生成所述黑盒数字电路的verilog网表;The digital circuit acquisition subunit is used to acquire the declaration information of the input interface and the output interface of the black box digital circuit based on the verilog grammar; according to the declaration information, the verilog netlist of the black box digital circuit is generated; 模拟电路获取子单元,用于获取所述黑盒模拟电路的电路信息,根据所述电路信息生成所述黑盒模拟电路的网表。The analog circuit acquisition subunit is configured to acquire circuit information of the black-box analog circuit, and generate a netlist of the black-box analog circuit according to the circuit information.
CN202210278752.9A 2022-03-21 2022-03-21 Simulation method and device for digital-analog hybrid circuit Pending CN114626330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210278752.9A CN114626330A (en) 2022-03-21 2022-03-21 Simulation method and device for digital-analog hybrid circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210278752.9A CN114626330A (en) 2022-03-21 2022-03-21 Simulation method and device for digital-analog hybrid circuit

Publications (1)

Publication Number Publication Date
CN114626330A true CN114626330A (en) 2022-06-14

Family

ID=81903780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210278752.9A Pending CN114626330A (en) 2022-03-21 2022-03-21 Simulation method and device for digital-analog hybrid circuit

Country Status (1)

Country Link
CN (1) CN114626330A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115796090A (en) * 2022-12-13 2023-03-14 无锡沐创集成电路设计有限公司 Circuit model generation method, circuit simulation verification method and corresponding device
CN117709247A (en) * 2023-12-13 2024-03-15 上海合见工业软件集团有限公司 Hybrid simulation verification methods for chip designs, electronic devices and media
CN120373236A (en) * 2025-04-23 2025-07-25 北京芯思维科技有限公司 Digital-analog hybrid circuit simulation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040243373A1 (en) * 2003-06-02 2004-12-02 Jeannick Sercu Electromagnetic/circuit co-simulation and co-optimization with parametric layout components
CN109299503A (en) * 2018-08-14 2019-02-01 珠海市微半导体有限公司 A kind of generation method of the LEF file based on wiring obstruction
CN109643286A (en) * 2016-07-08 2019-04-16 伊法布雷思公司 System and method for obfuscating circuit designs
CN113807041A (en) * 2021-10-20 2021-12-17 中国科学院微电子研究所 A circuit system simulation method, device, electronic device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040243373A1 (en) * 2003-06-02 2004-12-02 Jeannick Sercu Electromagnetic/circuit co-simulation and co-optimization with parametric layout components
CN109643286A (en) * 2016-07-08 2019-04-16 伊法布雷思公司 System and method for obfuscating circuit designs
CN109299503A (en) * 2018-08-14 2019-02-01 珠海市微半导体有限公司 A kind of generation method of the LEF file based on wiring obstruction
CN113807041A (en) * 2021-10-20 2021-12-17 中国科学院微电子研究所 A circuit system simulation method, device, electronic device and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115796090A (en) * 2022-12-13 2023-03-14 无锡沐创集成电路设计有限公司 Circuit model generation method, circuit simulation verification method and corresponding device
CN115796090B (en) * 2022-12-13 2024-01-26 无锡沐创集成电路设计有限公司 Circuit model generation method, circuit simulation verification method and corresponding devices
CN117709247A (en) * 2023-12-13 2024-03-15 上海合见工业软件集团有限公司 Hybrid simulation verification methods for chip designs, electronic devices and media
CN120373236A (en) * 2025-04-23 2025-07-25 北京芯思维科技有限公司 Digital-analog hybrid circuit simulation method and device

Similar Documents

Publication Publication Date Title
CN114327476A (en) Chip design file generation method and device and chip design method and device
CN113835945A (en) Chip testing method, device, equipment and system
JP3248753B2 (en) Method and apparatus for determining transition table of combinational logic circuit
CN114626330A (en) Simulation method and device for digital-analog hybrid circuit
US20070234247A1 (en) Automatic test component generation and inclusion into simulation testbench
JP4078435B2 (en) Logic integrated circuit, logic integrated circuit design method, and hardware description generation method for generating hardware operation description of logic integrated circuit
US7437701B1 (en) Simulation of a programming language specification of a circuit design
TW563043B (en) Method and apparatus for design validation of complex IC without using logic simulation
CN113807041A (en) A circuit system simulation method, device, electronic device and storage medium
CN111624475B (en) Method and system for testing large-scale integrated circuit
KR20080055913A (en) Development Method, System and Apparatus of Assertion for Integrated Circuit Design Simulation
CN115470125B (en) Log file-based debugging method, device and storage medium
CN119150768A (en) Chip verification method and device, electronic equipment and storage medium
US6978216B2 (en) Testing of integrated circuits from design documentation
CN114492280A (en) A circuit simulation method and device
CN111881035A (en) Online simulation data acquisition method, device and equipment
CN115510782B (en) Method for locating verification errors, electronic device and storage medium
CN115983171B (en) Method and simulation platform for post-simulation of system on chip
CN114936144A (en) Chip verification method and device
CN114091391A (en) Chip verification method, apparatus, device and storage medium
CN119473253B (en) Method and device for generating testability design script, electronic equipment and storage medium
CN116227396B (en) Method and simulation platform for post-simulation of system on chip
CN115616387B (en) Control signal calibration method and system based on chip
CN115983172B (en) Method and simulation platform for post simulation
JP4072884B2 (en) Circuit simulation apparatus, circuit simulation method, and storage medium storing the procedure

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