CN116882332B - Method for verifying sub-circuit characteristics of ring oscillator based on SPICE simulation - Google Patents

Method for verifying sub-circuit characteristics of ring oscillator based on SPICE simulation Download PDF

Info

Publication number
CN116882332B
CN116882332B CN202310960125.8A CN202310960125A CN116882332B CN 116882332 B CN116882332 B CN 116882332B CN 202310960125 A CN202310960125 A CN 202310960125A CN 116882332 B CN116882332 B CN 116882332B
Authority
CN
China
Prior art keywords
circuit
closed
ring oscillator
subcircuit
spice simulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310960125.8A
Other languages
Chinese (zh)
Other versions
CN116882332A (en
Inventor
江荣贵
杨帆
杨自锋
陈彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huada Jiutian Technology Co ltd
Original Assignee
Shenzhen Huada Jiutian 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 Shenzhen Huada Jiutian Technology Co ltd filed Critical Shenzhen Huada Jiutian Technology Co ltd
Priority to CN202310960125.8A priority Critical patent/CN116882332B/en
Publication of CN116882332A publication Critical patent/CN116882332A/en
Application granted granted Critical
Publication of CN116882332B publication Critical patent/CN116882332B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/32Circuit design at the digital level
    • G06F30/33Design verification, e.g. functional simulation or model checking
    • G06F30/3308Design verification, e.g. functional simulation or model checking using simulation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation

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)
  • Design And Manufacture Of Integrated Circuits (AREA)

Abstract

A method for verifying ring oscillator subcircuit characteristics based on SPICE simulation, comprising the steps of: connecting a timing arc when the STA circuit is disconnected, searching a closed-loop sub-circuit in the STA circuit and judging whether the closed-loop sub-circuit can form circuit oscillation or not; based on a closed-loop sub-circuit capable of forming circuit oscillation, constructing a SPICE simulation netlist and completing SPICE simulation; and analyzing the SPICE simulation result file, obtaining time sequence data of the ring oscillator subcircuit, and performing verification analysis. According to the invention, through connecting the timing arc disconnected by the STA, positioning to the closed-loop subcircuit and judging whether the closed-loop subcircuit oscillates or not, and then building the SPICE simulation netlist of the closed-loop subcircuit, the SPICE dynamic simulation and verification analysis are completed, the defect that the STA cannot directly analyze the timing sequence of the ring oscillator subcircuit is overcome, the timing sequence characteristics of the ring oscillator can be accurately verified based on the timing sequence data of the SPICE simulation precision, and the change of the circuit oscillation frequency of the ring oscillator under different PVT conditions is researched.

Description

一种基于SPICE仿真验证环形振荡器子电路特征的方法A method for verifying the characteristics of a ring oscillator subcircuit based on SPICE simulation

技术领域Technical Field

本发明涉及环形振荡器电路分析技术领域,尤其涉及一种基于SPICE仿真验证环形振荡器子电路特征的方法。The present invention relates to the technical field of ring oscillator circuit analysis, and in particular to a method for verifying characteristics of a ring oscillator subcircuit based on SPICE simulation.

背景技术Background technique

目前主流的压控振荡器(Voltage Controlled Oscillator,简称VCOs)有LC振荡器和环形振荡器(Ring Oscillator,简称RO)两大类,LC振荡器具有较高的品质因数,良好的相位噪声性能,但其有限的频率谐调范围和较大的芯片面积成为关键缺陷;相比之下,环形振荡器具有频率谐调范围大,占用面积小,可提供多相位输出,电路简单便于集成等突出优势,其不足是抗噪声能力差,频率波动较高。Currently, the mainstream voltage-controlled oscillators (VCOs) are divided into two categories: LC oscillators and ring oscillators (RO). LC oscillators have high quality factors and good phase noise performance, but their limited frequency tuning range and large chip area become key defects. In contrast, ring oscillators have outstanding advantages such as large frequency tuning range, small footprint, multi-phase output, simple circuit and easy integration. However, their shortcomings are poor noise resistance and high frequency fluctuation.

环形振荡器是由多个延迟单元串联形成的闭合环路结构,根据延迟单元的不同,主要可分为单端反相器延迟单元环形振荡器和差分延迟单元环形振荡器等。环形振荡器可以完全由标准的CMOS技术制造,既节省成本,也只会占用较少的芯片面积,一般能够产生数MHz到数GHz频率范围的时钟信号。在CMOS工艺和片上系统(System on Chip,简称SOC)的快速发展下,环形振荡器成为一种很有吸引力的选择并被广泛应用于时钟产生电路中,是小面积、低成本的应用场景中优秀的时钟解决方案。随着工艺节点不断变小,环形振荡器中包含的寄生电容变小,所需的功耗也相应减小,此外环形振荡器的可重构能力很高,可以轻易地构成分频器,多相位时钟发生器,时间数字转化器等模块。由于环形振荡器没有高品质的滤波器,它的相位噪声相比于LC振荡器更差,且易于受到PVT(Process,Voltage,Temperature,即工艺角、电压和温度)条件的影响,所以针对环形振荡器的研究往往集中于降低环形振荡器的相位噪声和提高可靠性两个方面。The ring oscillator is a closed loop structure formed by multiple delay units connected in series. According to the different delay units, it can be mainly divided into single-ended inverter delay unit ring oscillator and differential delay unit ring oscillator. The ring oscillator can be completely manufactured by standard CMOS technology, which not only saves costs but also takes up less chip area. It can generally generate clock signals with a frequency range of several MHz to several GHz. With the rapid development of CMOS technology and system on chip (System on Chip, referred to as SOC), ring oscillators have become an attractive choice and are widely used in clock generation circuits. They are excellent clock solutions in small-area, low-cost application scenarios. As the process node continues to shrink, the parasitic capacitance contained in the ring oscillator becomes smaller, and the required power consumption is also reduced accordingly. In addition, the ring oscillator has a high reconfigurability and can easily form modules such as frequency dividers, multi-phase clock generators, and time-to-digital converters. Since the ring oscillator does not have a high-quality filter, its phase noise is worse than that of the LC oscillator and is easily affected by PVT (Process, Voltage, Temperature) conditions. Therefore, research on ring oscillators often focuses on reducing the phase noise of the ring oscillator and improving reliability.

环形振荡器的PVT偏差一般源于阈值电压,载流子迁移率和充放电电容变化导致的延迟时间偏差,而供电电压的变化会直接影响环形振荡器的充放电电流,从而改变环形振荡器的延迟时间和上升沿、下降沿的过渡时间,同时来自供电电源的噪声还会严重影响环形振荡器的相位噪声。在静态时序分析(Static Timing Analysis,简称STA)中,电路被抽象成有向无环图,按照电路信号传递的方向构成一个图,由于不能出现无限循环,所以在一般情况下,STA中必须无环,有环时需要断开。针对STA无法直接分析环形振荡器子电路时序的问题,本发明通过搭建环形振荡器子电路的SPICE仿真网表,以SPICE动态仿真的方式来研究环形振荡器子电路的时序特征。The PVT deviation of the ring oscillator generally originates from the threshold voltage, carrier mobility and delay time deviation caused by changes in charge and discharge capacitance, and the change in the supply voltage will directly affect the charge and discharge current of the ring oscillator, thereby changing the delay time of the ring oscillator and the transition time of the rising edge and the falling edge. At the same time, the noise from the power supply will also seriously affect the phase noise of the ring oscillator. In static timing analysis (Static Timing Analysis, referred to as STA), the circuit is abstracted into a directed acyclic graph, and a graph is formed according to the direction of circuit signal transmission. Since infinite loops cannot occur, in general, there must be no loops in STA, and loops need to be disconnected. In view of the problem that STA cannot directly analyze the timing of the ring oscillator subcircuit, the present invention studies the timing characteristics of the ring oscillator subcircuit by building a SPICE simulation netlist of the ring oscillator subcircuit in a SPICE dynamic simulation manner.

发明内容Summary of the invention

为了解决现有技术的缺陷,本发明的目的在于提供一种基于SPICE仿真验证环形振荡器子电路特征的方法,该方法通过先连接STA断开的时序弧,定位到闭环子电路并判断其是否振荡,然后搭建闭环子电路的SPICE仿真网表,完成SPICE动态仿真,解析SPICE仿真结果获取准确可靠的时序数据以进行验证分析。In order to address the defects of the prior art, the purpose of the present invention is to provide a method for verifying the characteristics of a ring oscillator sub-circuit based on SPICE simulation. The method first connects the timing arc disconnected by STA, locates the closed-loop sub-circuit and determines whether it oscillates, then builds a SPICE simulation netlist of the closed-loop sub-circuit, completes SPICE dynamic simulation, and parses the SPICE simulation results to obtain accurate and reliable timing data for verification analysis.

为了实现上述目的,本发明提供的基于SPICE仿真验证环形振荡器子电路特征的方法,包括以下步骤:In order to achieve the above object, the method for verifying the characteristics of a ring oscillator subcircuit based on SPICE simulation provided by the present invention comprises the following steps:

连接STA电路断开的时序弧,在所述STA电路中查找闭环子电路并判断其是否能够形成电路振荡;Connect the disconnected timing arcs of the STA circuit, search for a closed-loop subcircuit in the STA circuit and determine whether it can form circuit oscillation;

基于能够形成电路振荡的闭环子电路,搭建SPICE仿真网表并完成SPICE仿真;Based on the closed-loop subcircuit that can form circuit oscillation, build a SPICE simulation netlist and complete the SPICE simulation;

解析SPICE仿真结果文件,获取环形振荡器子电路的时序数据,进行验证分析。Parse the SPICE simulation result file, obtain the timing data of the ring oscillator subcircuit, and perform verification analysis.

进一步地,所述连接STA电路断开的时序弧,在所述STA电路中查找闭环子电路并判断其是否能够形成电路振荡的步骤,还包括:遍历STA电路,按照定义的环形振荡器反馈闭环结构特征作为闭环子电路的判断条件,当找到满足所述判断条件的闭环子电路后停止遍历过程,裁剪掉不在闭环结构上的分支电路,得到简化的闭环子电路。Furthermore, the timing arc connecting the disconnected STA circuit, the step of searching for a closed-loop sub-circuit in the STA circuit and determining whether it can form a circuit oscillation, also includes: traversing the STA circuit, using the defined ring oscillator feedback closed-loop structure characteristics as the judgment condition for the closed-loop sub-circuit, stopping the traversal process after finding a closed-loop sub-circuit that meets the judgment condition, cutting off branch circuits that are not on the closed-loop structure, and obtaining a simplified closed-loop sub-circuit.

进一步地,还包括:指定STA电路遍历过程的起始点,按照电路中信号流动的方向进行遍历,或根据预先知道存在闭环结构的分支电路,将起始点设置为所述分支电路的闭环前或闭环上的任一电路节点,找出符合判断条件的闭环子电路。Furthermore, it also includes: specifying the starting point of the STA circuit traversal process, traversing in the direction of signal flow in the circuit, or setting the starting point to any circuit node before or on the closed loop of a branch circuit that is known to have a closed loop structure, and finding a closed loop sub-circuit that meets the judgment conditions.

进一步地,所述环形振荡器反馈闭环结构特征为:从一具有多输入的逻辑单元开始,激励信号在所述逻辑单元的一个输入引脚接入,沿着信号传输的方向经过多个逻辑单元和互连线之后,再回到所述逻辑单元的另一个输入引脚。Furthermore, the ring oscillator feedback closed-loop structure is characterized in that: starting from a logic unit with multiple inputs, an excitation signal is connected to an input pin of the logic unit, passes through multiple logic units and interconnections along the direction of signal transmission, and then returns to another input pin of the logic unit.

进一步地,所述连接STA电路断开的时序弧,在所述STA电路中查找闭环子电路并判断其是否能够形成电路振荡的步骤,还包括:Furthermore, the step of connecting the timing arc disconnected by the STA circuit, searching for a closed-loop subcircuit in the STA circuit and determining whether it can form a circuit oscillation, further includes:

在找到的闭环子电路上,除接入激励信号的逻辑单元Cellin外,分析所有其它逻辑单元Celli(i=1,2,…,N)的功能逻辑,判断这些逻辑单元在闭环结构上的时序弧是否作为反相逻辑进行工作,并统计所有逻辑单元Celli(i=1,2,...,N)中作为反相逻辑工作的时序弧的总数M;On the found closed-loop subcircuit, except for the logic cell Cell in connected to the excitation signal, analyze the functional logic of all other logic cells Cell i (i=1, 2, ..., N), determine whether the timing arcs of these logic cells on the closed-loop structure work as inverting logic, and count the total number M of timing arcs working as inverting logic in all logic cells Cell i (i=1, 2, ..., N);

根据M的奇偶性,判断逻辑单元Cellin在闭环结构上的单元时序弧Arcro和单元时序弧Arcin的工作逻辑;According to the parity of M, the working logic of the unit timing arc Arc ro and the unit timing arc Arc in of the logic unit Cell in on the closed loop structure is determined;

根据确定的逻辑单元Cellin接入信号的引脚保持的高电位或低电位状态,结合所述引脚所在的单元时序弧Arcin的工作逻辑,推导出接入的边沿信号Signalin是上升沿或下降沿;According to the high potential or low potential state maintained by the pin of the determined logic unit Cell in accessing the signal, combined with the working logic of the unit timing arc Arc in where the pin is located, it is deduced that the edge signal Signal in accessing is a rising edge or a falling edge;

当满足闭环子电路上所有的逻辑单元Celli(i=1,2,…,N)和Cellin中在闭环结构上且作为反相逻辑工作的时序弧的总数为奇数时,判断所述闭环子电路能够形成电路振荡。When the total number of timing arcs in all logic cells Cell i (i=1, 2, . . . , N) and Cell in the closed-loop subcircuit working as inverting logic in the closed-loop structure is an odd number, it is determined that the closed-loop subcircuit can form circuit oscillation.

进一步地,所述基于能够形成电路振荡的闭环子电路,搭建SPICE仿真网表并完成SPICE仿真的步骤,包括:生成链接库文件信息、子电路结构描述、供电电压取值、边沿激励信号构建、以及时序测量语句声明,其中,Furthermore, the steps of building a SPICE simulation netlist and completing the SPICE simulation based on the closed-loop subcircuit capable of forming circuit oscillation include: generating link library file information, subcircuit structure description, power supply voltage value, edge excitation signal construction, and timing measurement statement declaration, wherein:

在子电路结构描述方面,通过分析内部单元逻辑或读取外部约束文件,将逻辑单元包含的不在闭环结构上的其他输入引脚置为高电位或低电位状态,维持闭环上逻辑单元时序弧的工作逻辑;In terms of sub-circuit structure description, by analyzing the internal unit logic or reading the external constraint file, the other input pins of the logic unit that are not on the closed-loop structure are set to a high potential or low potential state to maintain the working logic of the timing arc of the logic unit on the closed loop;

在边沿激励信号构建方面,根据接入激励信号的逻辑单元Cellin的供电电压和边沿信号Signalin的边沿类型,构造满足环形振荡器子电路正常工作的激励边沿信号;In terms of edge excitation signal construction, according to the supply voltage of the logic unit Cell in connected to the excitation signal and the edge type of the edge signal Signal in , an excitation edge signal that satisfies the normal operation of the ring oscillator subcircuit is constructed;

在时序测量语句声明方面,结合分析得到的闭环结构上单元时序弧的工作逻辑,确认边沿信号在闭环子电路各节点上的翻转变化状态,确保.measure语句能够测量到准确的周期和延时数据,利用.probe语句保存闭环子电路各节点上的完整信号波形。In terms of timing measurement statement declaration, combined with the working logic of the unit timing arc on the closed-loop structure obtained by analysis, the flip change state of the edge signal at each node of the closed-loop sub-circuit is confirmed to ensure that the .measure statement can measure accurate period and delay data, and the .probe statement is used to save the complete signal waveform at each node of the closed-loop sub-circuit.

进一步地,所述基于能够形成电路振荡的闭环子电路,搭建SPICE仿真网表并完成SPICE仿真的步骤,还包括:SPICE仿真完成后,测量得到的周期和延时数据中存在异常值时,结合完整的信号波形定位网表中.measure语句存在的问题,及时纠错并更新SPICE仿真网表,再次执行SPICE仿真,获取合理的仿真结果并生成时序报告。Furthermore, the step of building a SPICE simulation netlist and completing the SPICE simulation based on a closed-loop sub-circuit that can form circuit oscillation also includes: after the SPICE simulation is completed, when there are abnormal values in the measured period and delay data, locating the problem of the .measure statement in the netlist in combination with the complete signal waveform, correcting the error in time and updating the SPICE simulation netlist, executing the SPICE simulation again, obtaining reasonable simulation results and generating a timing report.

进一步地,所述解析SPICE仿真结果文件,获取环形振荡器子电路的时序数据,进行验证分析的步骤,还包括:解析SPICE仿真结果文件,基于测量得到的环形振荡器的周期和延时数据、完整信号波形数据,进行环形振荡器子电路的功能验证、趋势分析、抖动计算、噪声分析或电路振荡过程的稳定性研究。Furthermore, the step of parsing the SPICE simulation result file, obtaining the timing data of the ring oscillator subcircuit, and performing verification analysis also includes: parsing the SPICE simulation result file, and performing functional verification, trend analysis, jitter calculation, noise analysis, or stability research of the circuit oscillation process of the ring oscillator subcircuit based on the measured period and delay data and complete signal waveform data of the ring oscillator.

进一步地,还包括:修改并更新SPICE仿真网表,组织在不同PVT条件下的多组SPICE仿真结果,研究环形振荡器工作频率的变化趋势规律。Furthermore, it also includes: modifying and updating the SPICE simulation netlist, organizing multiple groups of SPICE simulation results under different PVT conditions, and studying the changing trend of the operating frequency of the ring oscillator.

更进一步地,当处于单个唯一的PVT条件下,环形振荡器子电路按照一个稳定的振荡频率进行工作,且电路振荡时的工作周期Period等同于闭环结构上所有逻辑单元延时和互连线延时的总和,其关系如下:Furthermore, when under a single unique PVT condition, the ring oscillator subcircuit operates at a stable oscillation frequency, and the working period Period of the circuit oscillation is equal to the sum of all logic unit delays and interconnection delays in the closed-loop structure, and the relationship is as follows:

其中,R,F分别表示上升沿和下降沿,edge表示边沿,边沿需要同时考虑上升沿和下降沿,为闭环结构上所有逻辑单元处在上升沿和下降沿的延时量总和,为闭环结构上所有互连线处在上升沿和下降沿的延时量总和;Among them, R and F represent the rising edge and falling edge respectively, and edge represents the edge. The edge needs to consider both the rising edge and the falling edge. It is the sum of the delays of all logic units on the closed-loop structure at the rising and falling edges. It is the sum of the delays of all interconnected lines on the closed-loop structure at the rising and falling edges;

当处于不同的PVT条件下,环形振荡器子电路的振荡频率会产生变化,切换工艺角或修改电压、温度后继续仿真,得到多组SPICE仿真时序结果,用于分析环形振荡器子电路的振荡频率随着PVT条件变化的趋势规律。Under different PVT conditions, the oscillation frequency of the ring oscillator subcircuit will change. After switching the process angle or modifying the voltage and temperature, the simulation will continue to obtain multiple sets of SPICE simulation timing results, which are used to analyze the trend of the oscillation frequency of the ring oscillator subcircuit as the PVT conditions change.

为实现上述目的,本发明还提供一种电子设备,包括存储器、处理器,以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器,用于执行所述存储器所存放的计算机程序,以实现如上所述的基于SPICE仿真验证环形振荡器子电路特征的方法。To achieve the above-mentioned purpose, the present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to execute the computer program stored in the memory to implement the method for verifying the characteristics of a ring oscillator subcircuit based on SPICE simulation as described above.

为实现上述目的,本发明还提供一种计算机可读存储介质,所述存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如上所述的基于SPICE仿真验证环形振荡器子电路特征的方法。To achieve the above objectives, the present invention also provides a computer-readable storage medium, wherein the storage medium stores at least one instruction, and the instruction is loaded and executed by a processor to implement the method for verifying the characteristics of a ring oscillator subcircuit based on SPICE simulation as described above.

本发明提供的基于SPICE仿真验证环形振荡器子电路特征的方法,与现有技术相比具有如下有益效果:The method for verifying the characteristics of a ring oscillator subcircuit based on SPICE simulation provided by the present invention has the following beneficial effects compared with the prior art:

在STA中遍历电路结构时,接上断开的时序弧,找出真实存在的闭环子电路,根据环形振荡器的构造特征可进一步判断闭环电路是否能够形成电路振荡,基于找出的环形振荡器子电路结构搭建正确的SPICE仿真网表,通过成熟的SPICE仿真获取准确的周期和延时测量数据,以及闭环子电路各节点上的完整信号波形,这些结果能够被组织成可靠可信的时序报告;When traversing the circuit structure in STA, connect the disconnected timing arcs to find the real closed-loop subcircuit. According to the structural characteristics of the ring oscillator, it can be further determined whether the closed-loop circuit can form circuit oscillation. Based on the found ring oscillator subcircuit structure, build the correct SPICE simulation netlist. Through mature SPICE simulation, obtain accurate period and delay measurement data, as well as the complete signal waveform at each node of the closed-loop subcircuit. These results can be organized into reliable and trustworthy timing reports.

该方法克服了STA无法直接分析环形振荡器子电路时序的缺点,且基于SPICE仿真精度的时序数据,能够准确地验证环形振荡器的时序特征,并研究在不同的PVT条件下其电路振荡频率的变化。This method overcomes the shortcoming that STA cannot directly analyze the timing of the ring oscillator sub-circuit. Based on the timing data with SPICE simulation accuracy, it can accurately verify the timing characteristics of the ring oscillator and study the changes in its circuit oscillation frequency under different PVT conditions.

本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。Other features and advantages of the present invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the present invention.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

附图用来提供对本发明的进一步理解,并且构成说明书的一部分,并与本发明的实施例一起,用于解释本发明,并不构成对本发明的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

图1为根据本发明的基于SPICE仿真验证环形振荡器子电路特征的方法流程图;FIG1 is a flow chart of a method for verifying the characteristics of a ring oscillator subcircuit based on SPICE simulation according to the present invention;

图2为根据本发明的环形振荡器子电路SPICE仿真结果应用示意图;FIG2 is a schematic diagram of the application of SPICE simulation results of a ring oscillator subcircuit according to the present invention;

图3为根据本发明的电子设备结构示意图。FIG. 3 is a schematic diagram of the structure of an electronic device according to the present invention.

具体实施方式Detailed ways

以下结合附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

下面将参照附图更详细地描述本发明的实施例。虽然附图中显示了本发明的某些实施例,然而应当理解的是,本发明可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本发明。应当理解的是,本发明的附图及实施例仅用于示例性作用,并非用于限制本发明的保护范围。Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.

本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

需要注意,本发明中可能提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。“多个”应理解为两个或以上。It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more". "Plurality" should be understood as two or more.

下面,将参考附图详细地说明本发明的实施例。Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

图1为根据本发明的基于SPICE仿真验证环形振荡器子电路特征的方法流程图,下面将参考图1对本发明的方法进行详细描述。FIG. 1 is a flow chart of a method for verifying the characteristics of a ring oscillator subcircuit based on SPICE simulation according to the present invention. The method of the present invention will be described in detail below with reference to FIG. 1 .

本发明实施例中,环形振荡器子电路SPICE仿真验证流程主要分为定位环形振荡器子电路和实现子电路SPICE仿真两个关键的部分,且它们各自内部都存在反馈迭代子流程。在定位环形振荡器子电路流程中,当找到的闭环子电路经过逻辑分析不满足电路振荡条件时,则需要重新寻找下一个分支电路上的闭环结构继续分析判断,仅当满足电路振荡条件后才会进入SPICE仿真相关流程,而指定的电路遍历起始点和配置的时序约束文件均会影响该过程。In the embodiment of the present invention, the SPICE simulation verification process of the ring oscillator subcircuit is mainly divided into two key parts: locating the ring oscillator subcircuit and implementing the subcircuit SPICE simulation, and each of them has a feedback iteration sub-process. In the process of locating the ring oscillator subcircuit, when the closed-loop subcircuit found does not meet the circuit oscillation condition after logical analysis, it is necessary to re-find the closed-loop structure on the next branch circuit to continue analysis and judgment. Only when the circuit oscillation condition is met will the SPICE simulation related process be entered, and the specified circuit traversal starting point and the configured timing constraint file will affect the process.

具体地,在步骤101,查找闭环子电路。Specifically, in step 101, a closed-loop subcircuit is found.

由于在STA中,电路必须无环,有环时需要断开,故STA无法直接分析闭环电路结构,因此,在STA中遍历建立好的电路结构时,需要把STA断开的时序弧接上,并严格按照定义的RO(环形振荡器)反馈闭环结构特征作为是否找到闭环子电路结构的条件,当找到满足条件的闭环子电路结构之后便可停止电路遍历过程,把不在闭环子电路结构上的分支电路裁剪掉,使得闭环子电路结构最简且唯一。所述时序弧,一般指的是从单元的input(输入)到output(输出)构成的具有延时的弧。Since in STA, the circuit must be loop-free and needs to be disconnected when there is a loop, STA cannot directly analyze the closed-loop circuit structure. Therefore, when traversing the established circuit structure in STA, it is necessary to connect the timing arc disconnected by STA and strictly follow the defined RO (ring oscillator) feedback closed-loop structure characteristics as the condition for finding a closed-loop sub-circuit structure. When a closed-loop sub-circuit structure that meets the conditions is found, the circuit traversal process can be stopped, and the branch circuits that are not on the closed-loop sub-circuit structure can be cut off, so that the closed-loop sub-circuit structure is the simplest and unique. The timing arc generally refers to the arc with a delay from the input to the output of the unit.

本发明实施例中,以单端反相器延迟单元环形振荡器为例,该环形振荡器的反馈闭环结构特征定义为从一个具有多输入的逻辑单元开始,激励信号在该逻辑单元的一个输入引脚上接入,沿着信号传输的方向经过多个逻辑单元和互连线之后,再回到该逻辑单元的另一个输入引脚上。以该反馈闭环结构特征作为RO闭环结构的判断条件,遍历STA电路,查找闭环子电路。In the embodiment of the present invention, a single-ended inverter delay unit ring oscillator is taken as an example. The feedback closed-loop structural feature of the ring oscillator is defined as starting from a logic unit with multiple inputs, the excitation signal is connected to an input pin of the logic unit, and after passing through multiple logic units and interconnection lines along the direction of signal transmission, it returns to another input pin of the logic unit. The feedback closed-loop structural feature is used as the judgment condition of the RO closed-loop structure, and the STA circuit is traversed to find the closed-loop subcircuit.

本发明实施例中,找到闭环结构后,裁剪掉多余的分支电路,得到最简化的闭环子电路,能够保留有用的电路结构信息,也不会影响最终的SPICE仿真结果,且SPICE仿真网表搭建和仿真时序数据组织均基于该简化后的闭环子电路结构信息。In an embodiment of the present invention, after finding the closed-loop structure, redundant branch circuits are cut off to obtain the most simplified closed-loop sub-circuit, which can retain useful circuit structure information and will not affect the final SPICE simulation results. The SPICE simulation netlist construction and simulation timing data organization are both based on the simplified closed-loop sub-circuit structure information.

本发明实施例中,在RO闭环结构判断阶段,用户需指定电路遍历过程的起始点,按照电路中信号流动的方向进行遍历,那么该起始点之前的电路结构都会被跳过,当整体电路设计规模较大时,将具有非常大的实用性。另外,由于环形振荡器结构一般存在于时钟电路中,当用户预先知道某一个分支电路中存在闭环结构时,就可以把起始点设置成闭环前或闭环上的某个电路节点,这样可以快速地找出符合条件的闭环子电路。In the embodiment of the present invention, in the RO closed-loop structure judgment stage, the user needs to specify the starting point of the circuit traversal process, and traverse according to the direction of signal flow in the circuit, then the circuit structure before the starting point will be skipped, which will be very practical when the overall circuit design scale is large. In addition, since the ring oscillator structure generally exists in the clock circuit, when the user knows in advance that there is a closed-loop structure in a branch circuit, the starting point can be set to a circuit node before or on the closed loop, so that the closed-loop sub-circuit that meets the conditions can be quickly found.

在步骤102,判断闭环子电路是否能够形成电路振荡。如果找到的闭环子电路满足振荡条件,则进入下一步,否则返回步骤101,继续寻找闭环子电路。In step 102, it is determined whether the closed-loop subcircuit can form circuit oscillation. If the found closed-loop subcircuit meets the oscillation condition, the next step is entered, otherwise the process returns to step 101 to continue searching for the closed-loop subcircuit.

本发明实施例中,在RO振荡条件分析阶段,单元功能逻辑的判断是基于所有闭环子电路上的逻辑单元的时序弧,在找到的闭环子电路结构上,除接入激励信号的逻辑单元Cellin外,分析所有其它逻辑单元Celli(i=1,2,...,N)的功能逻辑,判断这些逻辑单元在闭环结构上的时序弧是否作为反相逻辑进行工作,并统计所有逻辑单元Celli(i=1,2,...,N)中作为反相逻辑工作的时序弧的总数M后即可判断逻辑单元Cellin的工作逻辑:由于环形振荡器的闭环结构上需要包含奇数个反相工作逻辑的时序弧才能够形成电路振荡,即逻辑单元Cellin以及所有其它逻辑单元Celli(i=1,2,...,N)在闭环结构上作为反相逻辑工作的时序弧总数为奇数时,该闭环子电路才能够形成电路振荡,当M的奇偶性确定之后,Cellin在闭环结构上的单元时序弧Arcro和单元时序弧Arcin的工作逻辑就确定了;同时为了维持时序弧Arcro的工作逻辑,Cellin接入信号的引脚应该保持的高低电位状态可确定,再结合该引脚所在的单元时序弧Arcin的工作逻辑,便可推导出接入的边沿信号Signalin是上升沿或下降沿。In the embodiment of the present invention, in the RO oscillation condition analysis stage, the judgment of the unit functional logic is based on the timing arcs of the logic units on all closed-loop sub-circuits. On the found closed-loop sub-circuit structure, except for the logic unit Cell in connected to the excitation signal, the functional logics of all other logic units Cell i (i=1, 2, ..., N) are analyzed to determine whether the timing arcs of these logic units on the closed-loop structure work as inverted logic, and the total number M of timing arcs working as inverted logic in all logic units Cell i (i=1, 2, ..., N) can be counted to determine the working logic of the logic unit Cell in : since the closed-loop structure of the ring oscillator needs to contain an odd number of timing arcs of inverted working logic to form circuit oscillation, that is, when the total number of timing arcs of the logic unit Cell in and all other logic units Cell i (i=1, 2, ..., N) working as inverted logic on the closed-loop structure is an odd number, the closed-loop sub-circuit can form circuit oscillation. After the parity of M is determined, the unit timing arc Arc of Cell in on the closed-loop structure is determined. ro and the working logic of the cell timing arc Arc in are determined; at the same time, in order to maintain the working logic of the timing arc Arc ro , the high and low potential states that the pin of the Cell in access signal should maintain can be determined, and combined with the working logic of the cell timing arc Arc in where the pin is located, it can be deduced that the accessed edge signal Signal in is a rising edge or a falling edge.

本发明实施例中,提供一些可配置的选项或文件的接口来加速定位环形振荡器子电路的过程。例如,在RO闭环结构判断和RO振荡条件分析阶段,根据读入的时序约束文件(Timing Constraint Files)提前确定被约束逻辑单元的工作逻辑,这有助于准确地判断闭环子电路是否能够形成电路振荡。特别是当电路结构存在多个环(如由多路选择器件构成的存在多个闭环的子电路结构中),或者是闭环结构上的逻辑单元存在多个工作逻辑时,这样的时序约束文件是必不可少的。在实际应用中,需要将这些可配置的选项或文件的接口开放提供出来,确保环形振荡器子电路能够正常工作,其子电路的SPICE仿真网表能够顺利搭建并完成仿真。In an embodiment of the present invention, some configurable options or file interfaces are provided to accelerate the process of locating the ring oscillator subcircuit. For example, in the RO closed-loop structure judgment and RO oscillation condition analysis stage, the working logic of the constrained logic unit is determined in advance according to the read-in timing constraint file (Timing Constraint Files), which helps to accurately determine whether the closed-loop subcircuit can form circuit oscillation. In particular, when there are multiple loops in the circuit structure (such as a subcircuit structure with multiple closed loops composed of a multi-way selection device), or when there are multiple working logics in the logic unit on the closed-loop structure, such a timing constraint file is indispensable. In practical applications, it is necessary to open the interfaces of these configurable options or files to ensure that the ring oscillator subcircuit can work normally, and the SPICE simulation netlist of its subcircuit can be smoothly built and the simulation can be completed.

本发明实施例中,在STA电路中寻找闭环子电路并分析其是否能够形成电路振荡,这一过程需要指定一个合理的电路遍历初始点,也需要提前配置好外部的时序约束文件,这样能够快速地定位到闭环子电路结构,并准确地分析各逻辑单元的工作逻辑,判断闭环子电路是否能够形成电路振荡。在已有的STA流程中改变电路遍历的规则,使得能够接上STA断开的时序弧,获得电路结构清晰的闭环结构,在定位到环形振荡器子电路结构的同时也确定了可接入激励信号的电路引脚节点,这有利于正确地搭建该子电路的SPICE仿真网表。In an embodiment of the present invention, a closed-loop subcircuit is found in the STA circuit and analyzed to see whether it can form circuit oscillation. This process requires specifying a reasonable circuit traversal initial point and configuring the external timing constraint file in advance, so that the closed-loop subcircuit structure can be quickly located, and the working logic of each logic unit can be accurately analyzed to determine whether the closed-loop subcircuit can form circuit oscillation. The circuit traversal rules are changed in the existing STA process so that the timing arc disconnected by STA can be connected to obtain a closed-loop structure with a clear circuit structure. While locating the ring oscillator subcircuit structure, the circuit pin node that can be connected to the excitation signal is also determined, which is conducive to correctly building the SPICE simulation netlist of the subcircuit.

在步骤103,搭建SPICE仿真网表。In step 103, a SPICE simulation netlist is constructed.

本发明实施例中,在确认遍历和裁剪得到的闭环子电路是可以形成电路振荡的环形振荡器子电路结构之后,可根据已存在的和分析得到的数据信息自动搭建SPICE仿真网表,主要包括链接库文件信息,子电路结构描述,供电电压取值,边沿激励信号构建,时序测量语句声明等内容,其中,In the embodiment of the present invention, after confirming that the closed-loop subcircuit obtained by traversal and cutting is a ring oscillator subcircuit structure that can form circuit oscillation, a SPICE simulation netlist can be automatically constructed according to the existing and analyzed data information, mainly including link library file information, subcircuit structure description, power supply voltage value, edge excitation signal construction, timing measurement statement declaration, etc., wherein,

在子电路结构描述方面,为了维持闭环上逻辑单元时序弧的工作逻辑,其余的输入引脚需要被置于高电位或低电位状态,这个可以通过内部单元逻辑分析或外部约束文件读取,后者是更合理且实用的方式,需要提前配置好;In terms of sub-circuit structure description, in order to maintain the working logic of the timing arc of the logic unit on the closed loop, the remaining input pins need to be placed in a high potential or low potential state. This can be read through internal unit logic analysis or external constraint files. The latter is a more reasonable and practical method and needs to be configured in advance.

在边沿激励信号构建方面,根据步骤102中逻辑单元Cellin的供电电压和边沿信号Signalin的边沿类型,即可建立一个合理的且满足环形振荡器子电路正常工作的激励边沿信号;In terms of edge excitation signal construction, according to the supply voltage of the logic cell Cell in and the edge type of the edge signal Signal in in step 102, a reasonable excitation edge signal that satisfies the normal operation of the ring oscillator sub-circuit can be established;

在时序测量语句声明方面,需要关注振荡周期和延时数据的测量,结合步骤102中分析得到的闭环结构上单元时序弧的工作逻辑,确认边沿信号在闭环子电路各节点上的翻转变化状态,确保.measure语句能够测量到准确的周期和延时数据,利用.probe语句可以保存子电路各节点上完整的信号波形。In terms of timing measurement statement declaration, attention should be paid to the measurement of oscillation period and delay data. Combined with the working logic of the unit timing arc on the closed-loop structure obtained in step 102, the flip change state of the edge signal at each node of the closed-loop subcircuit should be confirmed to ensure that the .measure statement can measure accurate period and delay data. The .probe statement can be used to save the complete signal waveform at each node of the subcircuit.

在步骤104,执行SPICE仿真。At step 104, a SPICE simulation is performed.

在步骤105,验证SPICE仿真结果。该步骤解析SPICE仿真结果文件,得到环形振荡器的周期和延时测量数据,进行RO特征验证分析,如果仿真结果存在异常值,则返回步骤103,仿真结果合理则生成时序报告。In step 105, the SPICE simulation results are verified. This step parses the SPICE simulation result file, obtains the period and delay measurement data of the ring oscillator, and performs RO feature verification analysis. If there are abnormal values in the simulation results, it returns to step 103. If the simulation results are reasonable, a timing report is generated.

本发明实施例中,在实现环形振荡器子电路SPICE仿真验证流程中,当SPICE仿真完成后测量的周期和延时数据中存在负值等异常值时,则需要结合完整的信号波形定位网表中.measure语句存在的问题,如采用了错误的边沿类型和边沿数目等,及时纠错并更新SPICE网表再次执行仿真,确保获取合理的仿真结果生成时序报告。In an embodiment of the present invention, in the SPICE simulation verification process of the ring oscillator subcircuit, when there are abnormal values such as negative values in the period and delay data measured after the SPICE simulation is completed, it is necessary to locate the problem of the .measure statement in the netlist in combination with the complete signal waveform, such as using the wrong edge type and number of edges, correct the error in time, update the SPICE netlist and perform the simulation again to ensure that reasonable simulation results are obtained to generate a timing report.

SPICE仿真精度的时序数据是验证和分析环形振荡器子电路时序特征的可靠基础。通过找出的环形振荡器子电路结构搭建正确的SPICE仿真网表,通过成熟的SPICE仿真获取准确的周期和延时测量数据,以及闭环子电路各节点上的完整信号波形,这些结果能够被组织成可靠可信的时序报告。在SPICE仿真结果中,电路振荡过程的信号波形是最基本的数据,参考它可以确认测量的周期和延时数据是否合理,这些数据可以完成环形振荡器的功能性验证和稳定性分析。SPICE simulation-accurate timing data is a reliable basis for verifying and analyzing the timing characteristics of the ring oscillator subcircuit. By finding the ring oscillator subcircuit structure and building the correct SPICE simulation netlist, accurate period and delay measurement data, as well as the complete signal waveform at each node of the closed-loop subcircuit are obtained through mature SPICE simulation. These results can be organized into reliable and trustworthy timing reports. In the SPICE simulation results, the signal waveform of the circuit oscillation process is the most basic data. It can be used as a reference to confirm whether the measured period and delay data are reasonable. These data can complete the functional verification and stability analysis of the ring oscillator.

进一步地,可按需修改SPICE仿真网表,组织在不同PVT条件下的多组SPICE仿真结果,来研究环形振荡器工作频率的变化趋势规律。Furthermore, the SPICE simulation netlist can be modified as needed, and multiple groups of SPICE simulation results under different PVT conditions can be organized to study the changing trend of the operating frequency of the ring oscillator.

本发明实施例中,当处于单个唯一的PVT条件下,RO子电路应是按照一个稳定的振荡频率进行工作,且电路振荡时的工作周期Period应等同于闭环上所有逻辑单元延时和互连线延时的总和,即存在如下关系:In the embodiment of the present invention, when under a single unique PVT condition, the RO subcircuit should operate at a stable oscillation frequency, and the working period Period of the circuit oscillation should be equal to the sum of all logic unit delays and interconnection line delays in the closed loop, that is, the following relationship exists:

其中,R,F分别表示上升沿和下降沿,edge表示边沿,边沿需要同时考虑上升沿和下降沿,加项为闭环结构上所有逻辑单元celli(i=1,2,...,N)处在上升沿和下降沿的延时量总和,为闭环结构上所有互连线neti(i=1,2,...,N)处在上升沿和下降沿的延时量总和,特殊情况下,若忽略互连线的延时不计,此加项总和为零。Among them, R and F represent the rising edge and falling edge respectively, and edge represents the edge. The edge needs to consider both the rising edge and the falling edge. is the sum of the delays of all logic cells cell i (i=1, 2, ..., N) at the rising and falling edges in the closed-loop structure, It is the sum of the delays of all interconnection lines net i (i=1, 2, ..., N) on the closed-loop structure at the rising and falling edges. In special cases, if the delay of the interconnection lines is ignored, the sum of this added term is zero.

当处于不同的PVT条件下,RO子电路的振荡频率会产生变化,切换工艺角或修改电压、温度后继续仿真,则能够组织多组SPICE仿真时序结果来分析RO子电路振荡频率随着PVT条件变化的趋势规律。此外,.probe语句保存的完整信号波形还可以被用于研究RO子电路振荡过程的稳定性,比如在不同的振荡周期之间是否存在抖动或相位噪声等情况。Under different PVT conditions, the oscillation frequency of the RO subcircuit will change. By switching the process corner or modifying the voltage and temperature and continuing the simulation, multiple sets of SPICE simulation timing results can be organized to analyze the trend of the RO subcircuit oscillation frequency as the PVT conditions change. In addition, the complete signal waveform saved by the .probe statement can also be used to study the stability of the RO subcircuit oscillation process, such as whether there is jitter or phase noise between different oscillation cycles.

图2为根据本发明的环形振荡器子电路SPICE仿真结果应用示意图,参考图2,在步骤201,在PVT条件下,更新SPICE仿真网表。FIG2 is a schematic diagram of the application of SPICE simulation results of a ring oscillator subcircuit according to the present invention. Referring to FIG2 , in step 201 , under PVT conditions, the SPICE simulation netlist is updated.

本发明实施例中,在搭建SPICE仿真网表过程中,首先是生成链接库文件信息,子电路结构描述,供电电压取值等基础内容,而需要特殊处理的是:根据定位环形振荡器子电路过程中的逻辑分析结果,接入合理的边沿激励信号波形,在.measure语句中采用正确的边沿类型和边沿数目。In the embodiment of the present invention, in the process of building a SPICE simulation netlist, the basic contents such as link library file information, subcircuit structure description, and power supply voltage value are first generated, and what needs special processing is: according to the logic analysis result in the process of locating the ring oscillator subcircuit, a reasonable edge excitation signal waveform is connected, and the correct edge type and edge number are used in the .measure statement.

在步骤202,执行SPICE仿真。在SPICE动态仿真过程中,SPICE仿真网表内部.measure语句203用于输出子电路的周期和延时数据205,SPICE仿真网表内部.probe语句204用于保存子电路各节点的完整信号波形数据206。In step 202, SPICE simulation is performed. During the SPICE dynamic simulation process, the .measure statement 203 inside the SPICE simulation netlist is used to output the period and delay data 205 of the subcircuit, and the .probe statement 204 inside the SPICE simulation netlist is used to save the complete signal waveform data 206 of each node of the subcircuit.

本发明实施例中,完整信号波形数据206是最重要的基础数据,它对周期和延时数据205具有指示参考作用。其中,通过改变PVT条件后获得的多组周期和延时数据205,可用于子电路的功能验证207,包括周期和延时数据之间的关系,各逻辑单元的逻辑功能验证等;也可用于子电路的趋势分析208,包括电路振荡频率的变化趋势,各逻辑单元延时的变化趋势等。此外,可以在激励信号波形或各逻辑单元的供电电压上引入干扰噪声,当保存的完整信号波形206的周期数足够大时,可以通过抖动计算209或噪声分析210等方式评估各电路节点上信号波形的稳定性。In the embodiment of the present invention, the complete signal waveform data 206 is the most important basic data, which has an indicative reference function for the period and delay data 205. Among them, the multiple sets of period and delay data 205 obtained by changing the PVT conditions can be used for the functional verification 207 of the sub-circuit, including the relationship between the period and delay data, the logic function verification of each logic unit, etc.; it can also be used for the trend analysis 208 of the sub-circuit, including the change trend of the circuit oscillation frequency, the change trend of the delay of each logic unit, etc. In addition, interference noise can be introduced into the excitation signal waveform or the power supply voltage of each logic unit. When the number of cycles of the saved complete signal waveform 206 is large enough, the stability of the signal waveform at each circuit node can be evaluated by jitter calculation 209 or noise analysis 210.

本发明提供的基于SPICE仿真验证环形振荡器子电路特征的方法,克服了STA无法直接分析环形振荡器子电路时序的缺点,且基于SPICE仿真精度的时序数据,能够准确地验证环形振荡器的时序特征,并研究在不同的PVT条件下其电路振荡频率的变化。The method for verifying the characteristics of a ring oscillator subcircuit based on SPICE simulation provided by the present invention overcomes the shortcoming that STA cannot directly analyze the timing of the ring oscillator subcircuit, and based on the timing data with SPICE simulation accuracy, it is possible to accurately verify the timing characteristics of the ring oscillator and study the change of the circuit oscillation frequency under different PVT conditions.

本发明的实施例中,还提供了一种电子设备,图3为根据本发明的电子设备结构示意图,如图3所示,本发明的电子设备,包括处理器301,以及存储器302,其中,In an embodiment of the present invention, an electronic device is further provided. FIG. 3 is a schematic diagram of the structure of an electronic device according to the present invention. As shown in FIG. 3 , the electronic device of the present invention includes a processor 301 and a memory 302, wherein:

存储器302存储有计算机程序,计算机程序在被处理器301读取执行时,执行如上所述的基于SPICE仿真验证环形振荡器子电路特征的方法实施例中的步骤。The memory 302 stores a computer program. When the computer program is read and executed by the processor 301 , the computer program executes the steps in the above-mentioned method embodiment for verifying the characteristics of the ring oscillator sub-circuit based on SPICE simulation.

本发明的实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行如上所述的基于SPICE仿真验证环形振荡器子电路特征的方法实施例中的步骤。In an embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute the steps in the method embodiment of verifying the characteristics of a ring oscillator subcircuit based on SPICE simulation when running.

在本实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In this embodiment, the above-mentioned computer-readable storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

本领域普通技术人员可以理解:以上所述仅为本发明的优选实施例而已,并不用于限制本发明,尽管参照前述实施例对本发明进行了详细的说明,对于本领域的技术人员来说,其依然可以对前述各实施例记载的技术方案进行修改,或者对其中部分技术特征进行等同替换。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。Those skilled in the art can understand that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions recorded in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims (10)

1. A method for verifying ring oscillator subcircuit characteristics based on SPICE simulation, comprising the steps of:
connecting a timing arc of the disconnection of an STA circuit, searching a closed-loop sub-circuit in the STA circuit and judging whether the closed-loop sub-circuit can form circuit oscillation or not;
Based on a closed-loop sub-circuit capable of forming circuit oscillation, constructing a SPICE simulation netlist and completing SPICE simulation;
Analyzing SPICE simulation result files, obtaining time sequence data of the ring oscillator subcircuit, and performing verification analysis;
the step of searching a closed loop sub-circuit in the STA circuit and judging whether the closed loop sub-circuit can form circuit oscillation or not, and the step of connecting the timing arc of the disconnection of the STA circuit further comprises the following steps:
On the found closed-loop sub-circuit, all other logic cells Cell i (i=1, 2,..once., N) are analyzed for functional logic, except for the logic Cell in that has the excitation signal in, judging whether the time sequence arcs of the logic units on the closed loop structure work as the inversion logic or not, and counting the total number M of the time sequence arcs working as the inversion logic in all the logic units Cell i (i=1, 2., N);
judging the working logic of a unit time sequence Arc ro and a unit time sequence Arc in of a logic unit Cell in on a closed loop structure according to the parity of M;
According to the high potential or low potential state maintained by the pins of the determined logic unit Cell in access Signal, the working logic of the unit time sequence Arc in where the pins are positioned is combined, and the accessed edge Signal in is derived to be a rising edge or a falling edge;
When the total number of timing arcs on a closed-loop structure and operating as inverted logic in all logic cells Cell i (i=1, 2,..n.) and Cell in on a closed-loop sub-circuit is an odd number, it is determined that the closed-loop sub-circuit is capable of forming a circuit oscillation;
The step of constructing the SPICE simulation netlist and completing SPICE simulation based on the closed-loop subcircuit capable of forming circuit oscillation further comprises the following steps: generating link library file information, subcircuit structure description, power supply voltage value, edge excitation signal construction and timing measurement statement, wherein,
In the aspect of subcircuit structure description, the logic of an internal unit is analyzed or an external constraint file is read, other input pins which are not in a closed loop structure and are contained in a logic unit are set to be in a high-potential or low-potential state, and the working logic of a logic unit time sequence arc on the closed loop is maintained;
in the aspect of edge excitation Signal construction, according to the power supply voltage of a logic unit Cell in connected with an excitation Signal and the edge type of an edge Signal in, constructing an excitation edge Signal which meets the normal operation of a ring oscillator sub-circuit;
In the aspect of time sequence measurement statement, the working logic of a unit time sequence arc on the closed loop structure obtained through analysis is combined, the overturning change state of an edge signal on each node of the closed loop sub-circuit is confirmed, accurate period and delay data can be measured by a measurement statement, and the complete signal waveform on each node of the closed loop sub-circuit is saved by a probe statement.
2. The method of verifying ring oscillator subcircuit characteristics based on SPICE simulation of claim 1, wherein the step of connecting the timing arc of a STA circuit disconnection, looking up a closed loop subcircuit in the STA circuit and determining if it is capable of forming a circuit oscillation, further comprises: and traversing the STA circuit, taking the feedback closed-loop structural characteristic of the defined ring oscillator as a judging condition of the closed-loop subcircuit, stopping the traversing process after the closed-loop subcircuit meeting the judging condition is found, and cutting off the branch circuit which is not in the closed-loop structure to obtain the simplified closed-loop subcircuit.
3. The SPICE simulation based method of verifying ring oscillator subcircuit characteristics of claim 2, further comprising: and designating a starting point of an STA circuit traversal process, traversing according to a signal flow direction in the circuit, or setting the starting point as any circuit node before or on a closed loop of a branch circuit according to the branch circuit with a pre-known closed loop structure, and finding out a closed loop sub-circuit meeting a judgment condition.
4. The SPICE simulation based method for verifying ring oscillator subcircuit characteristics as defined in claim 2, wherein the ring oscillator feedback closed loop structure characteristics are: starting from a logic cell with multiple inputs, the stimulus signal is coupled in at one input pin of the logic cell, passes through multiple logic cells and interconnections in the direction of signal transmission, and then returns to the other input pin of the logic cell.
5. The method for verifying ring oscillator subcircuit characteristics based on SPICE simulation of claim 1, wherein the steps of constructing SPICE simulation netlist and completing SPICE simulation based on closed loop subcircuit capable of forming circuit oscillation further comprise: after SPICE simulation is completed, when abnormal values exist in the measured period and delay data, the problems existing in the measurement statement in the netlist are positioned by combining the complete signal waveform, the SPICE simulation netlist is corrected and updated in time, the SPICE simulation is executed again, a reasonable simulation result is obtained, and a time sequence report is generated.
6. The method for verifying a ring oscillator subcircuit feature based on SPICE simulation of claim 1, wherein the step of parsing SPICE simulation result file, obtaining timing data of the ring oscillator subcircuit, and performing verification analysis further comprises: and analyzing SPICE simulation result files, and carrying out function verification, trend analysis, jitter calculation, noise analysis or stability research of a circuit oscillation process of the ring oscillator based on the measured period and delay data and complete signal waveform data of the ring oscillator.
7. The SPICE simulation based method of verifying ring oscillator subcircuit characteristics of claim 1, further comprising: and modifying and updating the SPICE simulation netlist, organizing a plurality of groups of SPICE simulation results under different PVT conditions, and researching the change trend rule of the working frequency of the ring oscillator.
8. The method of verifying ring oscillator subcircuit characteristics based on SPICE simulation of claim 7, wherein the ring oscillator subcircuit operates at a stable oscillation frequency when in a single unique PVT condition, and the Period of operation when the circuit oscillates is equivalent to the sum of all logic cell delays and interconnect line delays on a closed loop structure, the relationship being as follows:
Wherein R, F respectively represent a rising edge and a falling edge, edge represents an edge, the edge needs to consider the rising edge and the falling edge at the same time, Is the sum of the delay amounts of all logic units on the rising edge and the falling edge on the closed loop structure,The sum of delay amounts of all interconnection lines on the closed loop structure at the rising edge and the falling edge;
When the oscillation frequency of the ring oscillator subcircuit is changed under different PVT conditions, the simulation is continued after the process angle is switched or the voltage and the temperature are modified, and a plurality of sets of SPICE simulation time sequence results are obtained and are used for analyzing the trend rule of the oscillation frequency of the ring oscillator subcircuit along with the change of the PVT conditions.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor for executing the computer program stored in the memory to implement the method of verifying ring oscillator subcircuit characteristics based on SPICE simulations of any of claims 1 to 8.
10. A computer readable storage medium having stored therein at least one instruction, wherein the instructions are loaded and executed by a processor to implement the method of verifying ring oscillator subcircuit characteristics based on SPICE simulations of any of claims 1 to 8.
CN202310960125.8A 2023-08-01 2023-08-01 Method for verifying sub-circuit characteristics of ring oscillator based on SPICE simulation Active CN116882332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310960125.8A CN116882332B (en) 2023-08-01 2023-08-01 Method for verifying sub-circuit characteristics of ring oscillator based on SPICE simulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310960125.8A CN116882332B (en) 2023-08-01 2023-08-01 Method for verifying sub-circuit characteristics of ring oscillator based on SPICE simulation

Publications (2)

Publication Number Publication Date
CN116882332A CN116882332A (en) 2023-10-13
CN116882332B true CN116882332B (en) 2024-07-05

Family

ID=88264384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310960125.8A Active CN116882332B (en) 2023-08-01 2023-08-01 Method for verifying sub-circuit characteristics of ring oscillator based on SPICE simulation

Country Status (1)

Country Link
CN (1) CN116882332B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117250480B (en) * 2023-11-08 2024-02-23 英诺达(成都)电子科技有限公司 Loop detection method, device, equipment and storage medium of combinational logic circuit

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101501691A (en) * 2006-08-09 2009-08-05 高通股份有限公司 Circuit simulator parameter extraction using a configurable ring oscillator
CN111027270A (en) * 2019-11-26 2020-04-17 西安电子科技大学 A method and circuit for trusted design of integrated circuit design process

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005266838A (en) * 2004-03-16 2005-09-29 Matsushita Electric Ind Co Ltd Hardware emulation system
JP7415535B2 (en) * 2019-12-18 2024-01-17 セイコーエプソン株式会社 Oscillators and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101501691A (en) * 2006-08-09 2009-08-05 高通股份有限公司 Circuit simulator parameter extraction using a configurable ring oscillator
CN111027270A (en) * 2019-11-26 2020-04-17 西安电子科技大学 A method and circuit for trusted design of integrated circuit design process

Also Published As

Publication number Publication date
CN116882332A (en) 2023-10-13

Similar Documents

Publication Publication Date Title
US7162706B2 (en) Method for analyzing and validating clock integration properties in circuit systems
US8572532B1 (en) Common path pessimism removal for hierarchical timing analysis
US10467365B1 (en) Systems and methods for calculating common clock path pessimism for hierarchical timing analysis in an electronic design
US20100313176A1 (en) Delay library, delay library creation method, and delay calculation method
US20130091483A1 (en) Automatic flow of megacell generation
US20210350053A1 (en) Determining and verifying metastability in clock domain crossings
CN116882332B (en) Method for verifying sub-circuit characteristics of ring oscillator based on SPICE simulation
KR20220131334A (en) Integrated Materials-to-Systems Simulation and Verification for Semiconductor Design and Manufacturing
TW202213157A (en) Method implemented by data processors forming computing device
US8539413B1 (en) Frequency optimization using useful skew timing
US20150169819A1 (en) Design rule checking for confining waveform induced constraint variation in static timing analysis
CN114186519B (en) Timing bottleneck detection method, device, terminal equipment and storage medium
CN112685982B (en) Circuit detection method, circuit detection device, storage medium and electronic equipment
US11907631B2 (en) Reset domain crossing detection and simulation
KR20010023096A (en) Method of extracting timing characteristics of transistor circuits, storage medium storing timing characteristic library, lsi designing method, and gate extraction method
Wu et al. A robust functional ECO engine by SAT proof minimization and interpolation techniques
Yu et al. Towards compositional hardware model checking certification
CN117907812A (en) Circuit detection method and device, electronic device, storage medium, and program product
TWI813401B (en) Static timing analysis method and static timing analysis system
Yan et al. Oscillator verification with probability one
KR20230117364A (en) Clock Aware Simulation Vector Processor
JP5338919B2 (en) Integrated circuit power consumption calculation method, power consumption calculation program, and power consumption calculation device
CN119808671B (en) Combinational logic loop detection and optimization method and system based on register insertion
Yan et al. Verifying global start-up for a Möbius ring-oscillator
Wan et al. Analysis of circuit dynamic behavior with timed ternary decision diagram

Legal Events

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