[go: up one dir, main page]

CN110956009B - Sub-threshold digital circuit power consumption optimization method and system - Google Patents

Sub-threshold digital circuit power consumption optimization method and system Download PDF

Info

Publication number
CN110956009B
CN110956009B CN201811113017.2A CN201811113017A CN110956009B CN 110956009 B CN110956009 B CN 110956009B CN 201811113017 A CN201811113017 A CN 201811113017A CN 110956009 B CN110956009 B CN 110956009B
Authority
CN
China
Prior art keywords
logic unit
delay
power consumption
gate length
unit circuit
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
CN201811113017.2A
Other languages
Chinese (zh)
Other versions
CN110956009A (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.)
Institute of Microelectronics of CAS
Original Assignee
Institute of Microelectronics of CAS
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 Institute of Microelectronics of CAS filed Critical Institute of Microelectronics of CAS
Priority to CN201811113017.2A priority Critical patent/CN110956009B/en
Publication of CN110956009A publication Critical patent/CN110956009A/en
Application granted granted Critical
Publication of CN110956009B publication Critical patent/CN110956009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Design And Manufacture Of Integrated Circuits (AREA)

Abstract

本发明公开了一种亚阈值数字电路功耗优化方法及系统,该方法通过先确定可降低性能和功耗的逻辑单元电路;再对给定集成电路进行时序分析,得出所有时序宽松的信号路径;然后确定每一时序宽松的信号路径中可降低性能和功耗的若干主要延时单元;最后根据预设时序约束条件对主要延时单元的器件增大或缩短其栅长进行调整,以通过栅长尺寸的调整对亚阈值电路功耗的优化。本发明通过对主要延时单元的器件在合理的区间内增大其栅长或缩短其栅长,降低其电路性能,提高单元的延时时间,在满足时序要求的前提下降低集成电路的功耗,此外,还可以通过缩小栅长的同时做到降低功耗和节省面积,同时,该方法还提高了优化速度。

The present invention discloses a method and system for optimizing power consumption of a subthreshold digital circuit. The method first determines a logic unit circuit that can reduce performance and power consumption; then performs timing analysis on a given integrated circuit to obtain all signal paths with loose timing; then determines a number of main delay units that can reduce performance and power consumption in each signal path with loose timing; finally, according to preset timing constraints, the gate length of the device of the main delay unit is increased or shortened to adjust the device, so as to optimize the power consumption of the subthreshold circuit by adjusting the gate length. The present invention reduces the circuit performance and improves the delay time of the unit by increasing or shortening the gate length of the device of the main delay unit within a reasonable range, thereby reducing the power consumption of the integrated circuit under the premise of meeting the timing requirements. In addition, the power consumption can be reduced and the area can be saved by reducing the gate length. At the same time, the method also improves the optimization speed.

Description

一种亚阈值数字电路功耗优化方法及系统A method and system for optimizing power consumption of subthreshold digital circuits

技术领域Technical Field

本发明涉及电路功耗优化技术领域,特别是涉及一种亚阈值数字电路功耗优化方法及系统。The present invention relates to the technical field of circuit power consumption optimization, and in particular to a sub-threshold digital circuit power consumption optimization method and system.

背景技术Background Art

亚阈值数字电路是指工作电压低于晶体管器件阈值电压的数字逻辑电路,由于电路工作在亚阈值区域,可以大幅降低电路的动态功耗和静态功耗。而正是由于器件工作在亚阈值区,器件的电流和电压成指数关系,器件尺寸的变化会导致明显的电流变化和寄生电容变化,进而明显地改变电路的电学性能。此外,电路性能随PVT(Process-Voltage-Temperature,工艺-电压-温度) 偏差的波动较大,为了使得所设计的亚阈值数字电路具有较高的鲁棒性,亚阈值数字电路的设计优化过程中需要考虑PVT偏差的统计分析和优化。这样会指数式地增大亚阈值数字电路的器件尺寸优化的复杂性,使得器件优化速度过程变得极为缓慢。Subthreshold digital circuits refer to digital logic circuits whose operating voltage is lower than the threshold voltage of transistor devices. Since the circuit operates in the subthreshold region, the dynamic power consumption and static power consumption of the circuit can be greatly reduced. And because the device operates in the subthreshold region, the current and voltage of the device are exponentially related. Changes in device size will lead to significant changes in current and parasitic capacitance, which will significantly change the electrical performance of the circuit. In addition, the circuit performance fluctuates greatly with PVT (Process-Voltage-Temperature) deviations. In order to make the designed subthreshold digital circuit have higher robustness, the statistical analysis and optimization of PVT deviations need to be considered in the design optimization process of subthreshold digital circuits. This will exponentially increase the complexity of device size optimization of subthreshold digital circuits, making the device optimization speed process extremely slow.

目前,随着亚阈值数字电路规模的加大,将PVT偏差的统计分析和优化与传统的随机优化算法和启发式优化算法结合在一起,已经无法直接应用于规模较大的亚阈值数字电路的优化,特别是无法直接应用于规模较大的亚阈值数字时序电路的优化。此外,为了降低亚阈值数字电路的功耗,可以在满足时序要求的前提下降低亚阈值数字电路的性能,传统方法是降低电路中MOS 器件的栅宽/栅长比例,但是,减小栅宽会造成所用标准单元库内单元高度的离散化,进一步造成面积浪费;而对亚阈区工作的单元增加栅长,有可能会因为反向短沟道效应而提高单元的性能,且在随机优化算法中因为反向短沟道效应缘故器件尺寸优化会落入局部最优点。这些进一步加大了亚阈值电路设计优化的复杂度,导致优化时间过长。At present, with the increase in the scale of subthreshold digital circuits, the statistical analysis and optimization of PVT deviation combined with traditional random optimization algorithms and heuristic optimization algorithms can no longer be directly applied to the optimization of large-scale subthreshold digital circuits, especially the optimization of large-scale subthreshold digital timing circuits. In addition, in order to reduce the power consumption of subthreshold digital circuits, the performance of subthreshold digital circuits can be reduced under the premise of meeting the timing requirements. The traditional method is to reduce the gate width/gate length ratio of the MOS device in the circuit. However, reducing the gate width will cause the discretization of the cell height in the standard cell library used, further causing area waste; and increasing the gate length of the cell working in the subthreshold region may improve the performance of the cell due to the reverse short channel effect, and in the random optimization algorithm, the device size optimization will fall into the local optimum due to the reverse short channel effect. These further increase the complexity of subthreshold circuit design optimization, resulting in excessively long optimization time.

发明内容Summary of the invention

本发明提出一种亚阈值数字电路功耗优化方法及系统,对主要延时单元的器件在合理的区间内增大其栅长或缩短其栅长,降低其电路性能,提高单元的延时时间,在满足时序要求的前提下降低集成电路的功耗,此外,还可以通过缩小栅长的同时做到降低功耗和节省面积。The present invention proposes a sub-threshold digital circuit power consumption optimization method and system, which increases or shortens the gate length of the device of the main delay unit within a reasonable range, reduces its circuit performance, improves the delay time of the unit, and reduces the power consumption of the integrated circuit while meeting the timing requirements. In addition, it is also possible to reduce power consumption and save area by reducing the gate length.

为达到上述目的,本发明提供了以下技术方案:To achieve the above object, the present invention provides the following technical solutions:

一种亚阈值数字电路功耗优化方法,包括:A method for optimizing power consumption of a subthreshold digital circuit, comprising:

确定可降低性能和功耗的逻辑单元电路;Identify logic cell circuits that can reduce performance and power consumption;

对给定集成电路进行时序分析,得出所有时序宽松的信号路径,所述信号路径包括:锁存器及其前端组合逻辑单元或触发器及其前端组合逻辑单元;Performing timing analysis on a given integrated circuit to obtain all signal paths with loose timing, wherein the signal paths include: a latch and a front-end combinational logic unit thereof or a trigger and a front-end combinational logic unit thereof;

确定每一所述时序宽松的信号路径中可降低性能和功耗的若干主要延时单元;Determining a number of major delay elements in each of the relaxed timing signal paths that can reduce performance and power consumption;

根据预设时序约束条件对所述主要延时单元的器件增大或缩短其栅长进行调整,以通过栅长尺寸的调整对亚阈值电路功耗的优化。The gate length of the device of the main delay unit is increased or shortened according to the preset timing constraint condition, so as to optimize the power consumption of the sub-threshold circuit by adjusting the gate length size.

进一步的,所述确定可降低性能和功耗的逻辑单元电路的步骤,包括:Furthermore, the step of determining a logic unit circuit that can reduce performance and power consumption includes:

获取所用逻辑单元库中的逻辑单元电路或待优化设计中所引用的逻辑单元电路;Obtaining a logic unit circuit in a used logic unit library or a logic unit circuit referenced in a design to be optimized;

对每一所述逻辑单元电路改变所述逻辑单元电路中MOS器件的栅长,通过对所述逻辑单元电路仿真获取对应栅长下所述逻辑单元电路的输入-输出波形,测量所述逻辑单元电路的输入-输出波形获取对应栅长下的所述逻辑单元电路的延时,得到栅长-延时数据;For each of the logic unit circuits, the gate length of the MOS device in the logic unit circuit is changed, the input-output waveform of the logic unit circuit under the corresponding gate length is obtained by simulating the logic unit circuit, the input-output waveform of the logic unit circuit is measured to obtain the delay of the logic unit circuit under the corresponding gate length, and the gate length-delay data is obtained;

对栅长-延时数据进行检查,若延时小于原栅长下的延时,则去除对应的栅长-延时数据;Check the gate length-delay data. If the delay is less than the delay under the original gate length, remove the corresponding gate length-delay data.

若存在延时大于原栅长下的延时的延时的栅长-延时数据,则将所述逻辑单元电路列为可降低性能和功耗的逻辑单元电路,否则为不可降低性能和功耗的逻辑单元电路。If there is gate length-delay data of a delay greater than the delay under the original gate length, the logic unit circuit is listed as a logic unit circuit that can reduce performance and power consumption, otherwise it is a logic unit circuit that cannot reduce performance and power consumption.

进一步的,还包括:Furthermore, it also includes:

对所述可降低性能和功耗的逻辑单元电路利用延时大于原栅长下的延时的所述栅长-延时数据建立所述逻辑单元电路的延时-栅长关系查询表。For the logic unit circuit capable of reducing performance and power consumption, a delay-gate length relationship query table of the logic unit circuit is established by using the gate length-delay data with a delay greater than the delay under the original gate length.

进一步的,还包括:Furthermore, it also includes:

对所述可降低性能和功耗的逻辑单元电路改变所述逻辑单元电路中的 MOS器件栅长,通过对所述逻辑单元电路仿真获取对应栅长下单元电路的输入-输出波形,测量所述逻辑单元电路的输入-输出波形获取所述逻辑单元电路的延时,同时获得所述延时下的所述逻辑单元电路的功耗,利用延时大于原栅长下的延时的栅长-延时和功耗数据,建立所述逻辑单元电路的延时-功耗关系查询表。For the logic unit circuit that can reduce performance and power consumption, the gate length of the MOS device in the logic unit circuit is changed, the input-output waveform of the unit circuit under the corresponding gate length is obtained by simulating the logic unit circuit, the input-output waveform of the logic unit circuit is measured to obtain the delay of the logic unit circuit, and the power consumption of the logic unit circuit under the delay is obtained at the same time, and the gate length-delay and power consumption data with a delay greater than the delay under the original gate length are used to establish a delay-power consumption relationship query table of the logic unit circuit.

进一步的,还包括:Furthermore, it also includes:

对所述可降低性能和功耗的逻辑单元电路获得所述逻辑单元电路在固定栅宽下的最大延时,以及相对原栅长的延时放大系数最大值,即所述逻辑单元电路的性能收缩系数。For the logic unit circuit capable of reducing performance and power consumption, the maximum delay of the logic unit circuit under a fixed gate width and the maximum value of the delay amplification factor relative to the original gate length, that is, the performance shrinkage factor of the logic unit circuit, are obtained.

进一步的,还包括:Furthermore, it also includes:

对所述可降低性能和功耗的逻辑单元电路,基于所述逻辑单元电路的统计仿真,建立延时大于原栅长下延时所述逻辑单元电路的统计延时--栅长关系查询表。For the logic unit circuit capable of reducing performance and power consumption, based on statistical simulation of the logic unit circuit, a statistical delay-gate length relationship query table is established for the logic unit circuit whose delay is greater than the delay under the original gate length.

进一步的,所述对给定集成电路进行时序分析,得出所有时序宽松的信号路径的步骤,包括:Furthermore, the step of performing timing analysis on a given integrated circuit to obtain all signal paths with loose timing includes:

利用统计时序分析工具或基于电路统计仿真对给定集成电路进行时序分析,得到所有的信号路径的延时分布;Perform timing analysis on a given integrated circuit using statistical timing analysis tools or based on circuit statistical simulation to obtain the delay distribution of all signal paths;

判定每一所述信号路径的延时分布是否满足所述预设时序约束条件;Determining whether the delay distribution of each of the signal paths satisfies the preset timing constraint condition;

将满足所述预设时序约束条件对应的信号路径列入时序宽松的信号路径。The signal paths that meet the preset timing constraints are listed as signal paths with loose timing.

进一步的,所述确定每一所述时序宽松的信号路径中可降低性能和功耗的若干主要延时单元的步骤,包括:Furthermore, the step of determining a number of main delay units in each of the signal paths with loose timing that can reduce performance and power consumption includes:

若所述满足所述预设时序约束条件的时序宽松的信号路径中的逻辑单元电路为已标定的可降低性能和功耗中的逻辑单元电路,则将其列入可降低性能和功耗的主要延时单元电路;If the logic unit circuit in the timing-relaxed signal path that meets the preset timing constraint condition is a calibrated logic unit circuit that can reduce performance and power consumption, then the logic unit circuit is included in the main delay unit circuit that can reduce performance and power consumption;

若所述不满足所述预设时序约束条件的时序宽松的信号路径中的锁存器或触发器为已标定的可降低性能和功耗中的逻辑单元电路,则将其列入可降低性能和功耗的主要延时单元电路。If the latch or trigger in the timing-relaxed signal path that does not meet the preset timing constraint condition is a logic unit circuit that has been calibrated to reduce performance and power consumption, it will be included in the main delay unit circuit that can reduce performance and power consumption.

一种亚阈值数字电路功耗优化系统,包括:A subthreshold digital circuit power consumption optimization system, comprising:

第一确定单元,用于确定可降低性能和功耗的逻辑单元电路;A first determining unit, used to determine a logic unit circuit that can reduce performance and power consumption;

分析单元,用于对给定集成电路进行时序分析,得出所有时序宽松的信号路径,所述信号路径包括:锁存器及其前端组合逻辑单元或触发器及其前端组合逻辑单元;An analysis unit, used to perform timing analysis on a given integrated circuit to obtain all signal paths with loose timing, wherein the signal paths include: a latch and a front-end combinational logic unit thereof or a trigger and a front-end combinational logic unit thereof;

第二确定单元,用于确定每一所述时序宽松的信号路径中可降低性能和功耗的若干主要延时单元;A second determining unit, configured to determine a number of main delay units in each of the signal paths with loose timing that can reduce performance and power consumption;

调整单元,用于根据预设时序约束条件对所述主要延时单元的器件增大或缩短其栅长进行调整,以通过栅长尺寸的调整对亚阈值电路功耗的优化。The adjustment unit is used to increase or shorten the gate length of the device of the main delay unit according to the preset timing constraint condition, so as to optimize the power consumption of the subthreshold circuit by adjusting the gate length size.

进一步的,所述第一确定单元包括:Furthermore, the first determining unit includes:

获取单元,用于获取所用逻辑单元库中的逻辑单元电路或待优化设计中所引用的逻辑单元电路;An acquisition unit, used to acquire a logic unit circuit in a used logic unit library or a logic unit circuit referenced in a design to be optimized;

处理单元,用于对每一所述逻辑单元电路改变所述逻辑单元电路中MOS 器件的栅长,通过对所述逻辑单元电路仿真获取对应栅长下所述逻辑单元电路的输入-输出波形,测量所述逻辑单元电路的输入-输出波形获取对应栅长下的所述逻辑单元电路的延时,得到栅长-延时数据;A processing unit, configured to change the gate length of the MOS device in each logic unit circuit, obtain the input-output waveform of the logic unit circuit under the corresponding gate length by simulating the logic unit circuit, measure the input-output waveform of the logic unit circuit to obtain the delay of the logic unit circuit under the corresponding gate length, and obtain gate length-delay data;

检查单元,用于对栅长-延时数据进行检查,若延时小于原栅长下的延时,则去除对应的栅长-延时数据;A checking unit, used for checking the gate length-delay data, and if the delay is less than the delay under the original gate length, removing the corresponding gate length-delay data;

若存在延时大于原栅长下的延时的延时的栅长-延时数据,则将所述逻辑单元电路列为可降低性能和功耗的逻辑单元电路,否则为不可降低性能和功耗的逻辑单元电路。If there is gate length-delay data of a delay greater than the delay under the original gate length, the logic unit circuit is listed as a logic unit circuit that can reduce performance and power consumption, otherwise it is a logic unit circuit that cannot reduce performance and power consumption.

经由上述的技术方案可知,与现有技术相比,本发明公开了一种亚阈值数字电路功耗优化方法及系统,该方法通过先确定可降低性能和功耗的逻辑单元电路;再对给定集成电路进行时序分析,得出所有时序宽松的信号路径;然后确定每一时序宽松的信号路径中可降低性能和功耗的若干主要延时单元;最后根据预设时序约束条件对主要延时单元的器件增大或缩短其栅长进行调整,以通过栅长尺寸的调整对亚阈值电路功耗的优化。本发明通过对主要延时单元的器件在合理的区间内增大其栅长或缩短其栅长,降低其电路性能,提高单元的延时时间,在满足时序要求的前提下降低集成电路的功耗,此外,还可以通过缩小栅长的同时做到降低功耗和节省面积,该方法还提高了优化速度。Through the above technical solutions, it can be known that compared with the prior art, the present invention discloses a method and system for optimizing power consumption of a subthreshold digital circuit, which first determines the logic unit circuit that can reduce performance and power consumption; then performs timing analysis on a given integrated circuit to obtain all signal paths with loose timing; then determines several main delay units that can reduce performance and power consumption in each signal path with loose timing; finally, according to the preset timing constraints, the gate length of the device of the main delay unit is increased or shortened to adjust the device, so as to optimize the power consumption of the subthreshold circuit by adjusting the gate length. The present invention reduces the circuit performance and improves the delay time of the unit by increasing or shortening the gate length of the device of the main delay unit within a reasonable range, thereby reducing the power consumption of the integrated circuit while meeting the timing requirements. In addition, it can also reduce power consumption and save area by reducing the gate length, and the method also improves the optimization speed.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

图1为本发明实施例提供的一种亚阈值数字电路功耗优化方法流程图;FIG1 is a flow chart of a method for optimizing power consumption of a subthreshold digital circuit provided by an embodiment of the present invention;

图2为本发明实施例提供的步骤S101的一种具体实现方式流程图;FIG2 is a flowchart of a specific implementation method of step S101 provided in an embodiment of the present invention;

图3为本发明实施例提供的步骤S102的一种具体实现方式流程图;FIG3 is a flowchart of a specific implementation method of step S102 provided in an embodiment of the present invention;

图4为本发明实施例提供的一种亚阈值数字电路功耗优化系统结构图。FIG4 is a structural diagram of a sub-threshold digital circuit power consumption optimization system provided by an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

如图1所示,本发明实施例提供了一种亚阈值数字电路功耗优化方法,该方法具体可以包括如下步骤:As shown in FIG1 , an embodiment of the present invention provides a method for optimizing power consumption of a sub-threshold digital circuit. The method may specifically include the following steps:

S101、确定可降低性能和功耗的逻辑单元电路。S101. Determine a logic unit circuit that can reduce performance and power consumption.

本发明实施例中,如图2所示,为上述步骤S101的一种具体实施方式,具体的,上述确定可降低性能和功耗的逻辑单元电路的步骤,包括:In an embodiment of the present invention, as shown in FIG. 2 , a specific implementation of the above step S101 is shown. Specifically, the above step of determining the logic unit circuit that can reduce performance and power consumption includes:

S201、获取所用逻辑单元库中的逻辑单元电路或待优化设计中所引用的逻辑单元电路。S201. Obtain a logic unit circuit in a used logic unit library or a logic unit circuit referenced in a design to be optimized.

S202、对每一逻辑单元电路改变所述逻辑单元电路中MOS器件的栅长,通过对逻辑单元电路仿真获取对应栅长下逻辑单元电路的输入-输出波形,测量逻辑单元电路的输入-输出波形获取对应栅长下的逻辑单元电路的延时,得到栅长-延时数据。S202. For each logic unit circuit, change the gate length of the MOS device in the logic unit circuit, obtain the input-output waveform of the logic unit circuit under the corresponding gate length by simulating the logic unit circuit, measure the input-output waveform of the logic unit circuit to obtain the delay of the logic unit circuit under the corresponding gate length, and obtain gate length-delay data.

S203、对栅长-延时数据进行检查,判断是否存在延时小于原栅长下的延时,若是,则执行步骤S204,若否,则执行步骤S205。S203, check the gate length-delay data to determine whether there is a delay less than the delay under the original gate length, if so, execute step S204, if not, execute step S205.

S204、去除对应的栅长-延时数据。S204, removing the corresponding gate length-delay data.

S205、将逻辑单元电路列为可降低性能和功耗的逻辑单元电路,否则为不可降低性能和功耗的逻辑单元电路。S205 , classify the logic unit circuit as a logic unit circuit that can reduce performance and power consumption, otherwise it is a logic unit circuit that cannot reduce performance and power consumption.

进一步的,在确定提高性能的逻辑单元电路后,还包括:Further, after determining the logic unit circuit for improving performance, it also includes:

对可降低性能和功耗的逻辑单元电路利用延时大于原栅长下的延时的上述栅长-延时数据建立所述逻辑单元电路的延时-栅长关系查询表。For a logic unit circuit that can reduce performance and power consumption, the above gate length-delay data with a delay greater than the delay under the original gate length is used to establish a delay-gate length relationship query table of the logic unit circuit.

进一步的,在确定提高性能的逻辑单元电路后,还包括:Further, after determining the logic unit circuit for improving performance, it also includes:

对可降低性能和功耗的逻辑单元电路改变逻辑单元电路中的MOS器件栅长,通过对逻辑单元电路仿真获取对应栅长下单元电路的输入-输出波形,测量逻辑单元电路的输入-输出波形获取逻辑单元电路的延时,同时获得延时下的逻辑单元电路的功耗,利用延时大于原栅长下的延时的栅长-延时和功耗数据,建立逻辑单元电路的延时-功耗关系查询表。For logic unit circuits that can reduce performance and power consumption, the gate length of the MOS device in the logic unit circuit is changed, the input-output waveform of the unit circuit under the corresponding gate length is obtained by simulating the logic unit circuit, the input-output waveform of the logic unit circuit is measured to obtain the delay of the logic unit circuit, and the power consumption of the logic unit circuit under the delay is obtained at the same time, and the gate length-delay and power consumption data when the delay is greater than the delay under the original gate length are used to establish a delay-power consumption relationship query table for the logic unit circuit.

进一步的,在确定提高性能的逻辑单元电路后,还包括:Further, after determining the logic unit circuit for improving performance, it also includes:

对可降低性能和功耗的逻辑单元电路获得逻辑单元电路在固定栅宽下的最大延时,以及相对原栅长的延时放大系数最大值,即逻辑单元电路的性能收缩系数。For a logic unit circuit that can reduce performance and power consumption, the maximum delay of the logic unit circuit under a fixed gate width and the maximum value of the delay amplification factor relative to the original gate length, that is, the performance shrinkage factor of the logic unit circuit, are obtained.

进一步的,在确定提高性能的逻辑单元电路后,还包括:Further, after determining the logic unit circuit for improving performance, it also includes:

对可降低性能和功耗的逻辑单元电路,基于逻辑单元电路的统计仿真,建立延时大于原栅长下延时逻辑单元电路的统计延时--栅长关系查询表。For logic unit circuits that can reduce performance and power consumption, a statistical delay-gate length relationship query table is established for logic unit circuits with a delay greater than the original gate length based on statistical simulation of the logic unit circuits.

S102、对给定集成电路进行时序分析,得出所有时序宽松的信号路径,上述信号路径包括:锁存器及其前端组合逻辑单元或触发器及其前端组合逻辑单元。S102, performing timing analysis on a given integrated circuit to obtain all signal paths with loose timing, wherein the signal paths include: a latch and its front-end combinational logic unit or a trigger and its front-end combinational logic unit.

本发明实施例中,如图3所示,为上述步骤S102的一种具体实施方式,具体的,上述对给定集成电路进行时序分析,得出所有时序宽松的信号路径的步骤,包括:In an embodiment of the present invention, as shown in FIG. 3 , a specific implementation of the above step S102 is shown. Specifically, the above step of performing timing analysis on a given integrated circuit to obtain all signal paths with loose timing includes:

S301、利用统计时序分析工具或基于电路统计仿真对给定集成电路进行时序分析,得到所有的信号路径的延时分布;S301, performing timing analysis on a given integrated circuit using a statistical timing analysis tool or based on circuit statistical simulation to obtain delay distributions of all signal paths;

S302、判定每一信号路径的延时分布是否满足所述预设时序约束条件,若是,则执行步骤S303,若否,则执行步骤S304。S302: Determine whether the delay distribution of each signal path meets the preset timing constraint condition. If yes, execute step S303; if not, execute step S304.

S303、将满足预设时序约束条件对应的信号路径列入时序宽松的信号路径。S303: List the signal paths that meet the preset timing constraint conditions into signal paths with loose timing.

S304、将不满足预设时序约束条件对应的信号路径列入不满足时序宽松的信号路径。S304: List the signal paths that do not meet the preset timing constraint conditions into signal paths that do not meet the timing looseness.

本发明实施例中,对每一锁存器或触发器及其前端组合逻辑需要满足预设时序约束条件,该预设时序约束条件具体为:In the embodiment of the present invention, each latch or trigger and its front-end combinational logic need to meet a preset timing constraint condition, and the preset timing constraint condition is specifically:

tPrev_FF-Pdelay,max+tCML-Pdelay,max+tFF-setup,max<α.Tclock t Prev_FF-Pdelay,max +t CML-Pdelay,max +t FF-setup,max <α.T clock

tPrev_FF-Pdelay,min+tCML-Pdelay,min>β.tFF-hold,max t Prev_FF-Pdelay,min +t CML-Pdelay,min >β.t FF-hold,max

其中,α介于(0,1)之间,一般最大取值为0.5;β介于(1,+∞)之间,一般最小取值为1.5,tPrev_FF-Pdelay,max为前级锁存器或触发器输出延时时间的最大值;tCML-Pdelay,max为前端组合逻辑电路的输出信号到达锁存器或触发器的时间最大值;Tclock为时序电路工作的时钟信号周期,即时钟信号频率的倒数值;tCML-Pdelay,min为前端组合逻辑的输出到达锁存器或触发器的时间最小值;tPrev_FF-Pdelay,min为前级锁存器或触发器数据输出延时时间的最小值;tFF-hold,max为锁存器或触发器的数据输入最大保持时间;tFF-setup,max是为锁存器或触发器的数据输入最大建立时间。Among them, α is between (0, 1), and the maximum value is generally 0.5; β is between (1, +∞), and the minimum value is generally 1.5. t Prev_FF-Pdelay,max is the maximum value of the output delay time of the previous latch or trigger; t CML-Pdelay,max is the maximum value of the time for the output signal of the front-end combinational logic circuit to reach the latch or trigger; T clock is the clock signal period of the timing circuit, that is, the inverse value of the clock signal frequency; t CML-Pdelay,min is the minimum value of the time for the output of the front-end combinational logic to reach the latch or trigger; t Prev_FF-Pdelay,min is the minimum value of the data output delay time of the previous latch or trigger; t FF-hold,max is the maximum data input hold time of the latch or trigger; t FF-setup,max is the maximum data input setup time of the latch or trigger.

S103、确定每一时序宽松的信号路径中可降低性能和功耗的若干主要延时单元。S103 , determining several main delay units in each signal path with loose timing that can reduce performance and power consumption.

本发明实施例中,具体的,上述确定每一所述时序宽松的信号路径中可降低性能和功耗的若干主要延时单元的步骤,包括:In the embodiment of the present invention, specifically, the step of determining a number of main delay units in each of the signal paths with loose timing that can reduce performance and power consumption includes:

若满足预设时序约束条件的时序宽松的信号路径中的逻辑单元电路为已标定的可降低性能和功耗中的逻辑单元电路,则将其列入可降低性能和功耗的主要延时单元电路;If the logic unit circuit in the timing-relaxed signal path that meets the preset timing constraint condition is a logic unit circuit that has been calibrated to reduce performance and power consumption, it is included in the main delay unit circuit that can reduce performance and power consumption;

若不满足预设时序约束条件的时序宽松的信号路径中的锁存器或触发器为已标定的可降低性能和功耗中的逻辑单元电路,则将其列入可降低性能和功耗的主要延时单元电路。If the latch or trigger in the timing-relaxed signal path that does not meet the preset timing constraints is a logic unit circuit that has been calibrated to reduce performance and power consumption, it will be included in the main delay unit circuit that can reduce performance and power consumption.

具体的,对每一时序宽松的前端组合逻辑电路和锁存器或触发器,利用前述步骤确定的可以降低性能和功耗的单元的结果检查出其中可以降低性能和功耗的主要延时单元。若时序宽松的前端组合逻辑电路中的逻辑单元为前述已标定的可以降低性能和功耗的逻辑单元,则将其列入可以降低性能和功耗的主要延时单元,否则将该逻辑单元排除在待优化单元之外;对于锁存器或触发器电路进行同样的处理。Specifically, for each front-end combinational logic circuit and latch or trigger with loose timing, the results of the units that can reduce performance and power consumption determined in the above steps are used to check the main delay units that can reduce performance and power consumption. If the logic unit in the front-end combinational logic circuit with loose timing is the aforementioned calibrated logic unit that can reduce performance and power consumption, it will be included in the main delay unit that can reduce performance and power consumption, otherwise the logic unit will be excluded from the unit to be optimized; the same process is performed on the latch or trigger circuit.

S104、根据预设时序约束条件对所述主要延时单元的器件增大或缩短其栅长进行调整,以通过栅长尺寸的调整对亚阈值电路功耗的优化。S104 , increasing or shortening the gate length of the device of the main delay unit according to the preset timing constraint condition, so as to optimize the power consumption of the sub-threshold circuit by adjusting the gate length size.

本发明实施例中,根据每一锁存器及其前端组合逻辑单元或触发器和前端组合逻辑逻辑电路必须遵循上述预设时序约束条件,该预设时序约束条件为:In the embodiment of the present invention, each latch and its front-end combinational logic unit or trigger and front-end combinational logic circuit must comply with the above-mentioned preset timing constraints, and the preset timing constraints are:

tPrev_FF-Pdelay,max+tCML-Pdelay,max+tFF-setup,max<α.Tclock t Prev_FF-Pdelay,max +t CML-Pdelay,max +t FF-setup,max <α.T clock

tPrev_FF-Pdelay,min+tCML-Pdelay,min>β.tFF-hold,max t Prev_FF-Pdelay,min +t CML-Pdelay,min >β.t FF-hold,max

其中,α取值在(0,1)之间,β取值在(1,+∞)之间,Tclock是时序电路工作的时钟信号周期,即时钟信号频率的倒数值;tPrev_FF-Pdelay,max为前级锁存器或触发器输出延时时间的最大值;tCML-Pdelay,max为前端组合逻辑电路的输出信号到达锁存器或触发器的时间最大值;Tclock为时序电路工作的时钟信号周期,即时钟信号频率的倒数值;tCML-Pdelay,min为前端组合逻辑的输出到达锁存器或触发器的时间最小值;tPrev_FF-Pdelay,min为前级锁存器或触发器数据输出延时时间的最小值;tFF-hold,max为锁存器或触发器的数据输入最大保持时间;tFF-setup,max是为锁存器或触发器的数据输入最大建立时间。Among them, α takes values between (0, 1), β takes values between (1, +∞), T clock is the clock signal period of the sequential circuit, that is, the reciprocal value of the clock signal frequency; t Prev_FF-Pdelay,max is the maximum value of the output delay time of the previous latch or trigger; t CML-Pdelay,max is the maximum value of the time for the output signal of the front-end combinational logic circuit to reach the latch or trigger; T clock is the clock signal period of the sequential circuit, that is, the reciprocal value of the clock signal frequency; t CML-Pdelay,min is the minimum value of the time for the output of the front-end combinational logic circuit to reach the latch or trigger; t Prev_FF-Pdelay,min is the minimum value of the data output delay time of the previous latch or trigger; t FF-hold,max is the maximum data input hold time of the latch or trigger; t FF-setup,max is the maximum data input setup time of the latch or trigger.

此外,tCML-Pdelay,max和tCML-Pdelay,min分别由各级逻辑门的最大延时时间和最小延时时间决定,具体为:In addition, t CML-Pdelay,max and t CML-Pdelay,min are determined by the maximum delay time and minimum delay time of each level of logic gates, respectively, as follows:

tCML-Pdelay,max=∑tCell-Pdelay,max,i t CML-Pdelay,max =∑t Cell-Pdelay,max,i

tCML-Pdelay,min=∑tCell-Pdelay,min,i t CML-Pdelay,min =∑t Cell-Pdelay,min,i

对于宽松书序下的锁存器及其前端组合逻辑单元或触发器及其前端组合逻辑,其可缩小延时空间分别定位为:For the latch and its front-end combinational logic unit or the trigger and its front-end combinational logic under the loose book order, the delay space that can be reduced is respectively positioned as:

tdelay_improve_goal1=αs.Tclock-(tPrev_FF-Pdelay,max+tCML-Pdelay,max+tFF-setup,max)t delay_improve_goal1 = α s .T clock -(t Prev_FF-Pdelay,max +t CML-Pdelay,max +t FF-setup,max )

tdelay_improve_goal2=(tPrev_FF-Pdelay,min+tCML-Pdelay,min)-βs.tFF-hold,max t delay_improve_goal2 = (t Prev_FF-Pdelay,min +t CML-Pdelay,min )-β s .t FF-hold,max

其中,αs取值在(0,1)之间,且αs>α;βs取值(1,+∞),且βs<β。Among them, α s takes a value between (0, 1), and α s >α; β s takes a value between (1, +∞), and β s < β.

考虑到仅对单元进行调节以优化前端组合逻辑电路的延时和功耗(锁存器或触发器不调整或不可以调整):Considering that only cells are adjusted to optimize the delay and power consumption of the front-end combinational logic circuit (latches or flip-flops are not adjusted or cannot be adjusted):

∑ΔtRCSE_Cell-Pdelay,max,i≤tdelay_improve_goal1 ∑Δt RCSE_Cell-Pdelay,max,i ≤t delay_improve_goal1

∑ΔtRCSE_Cell-Pdelay,min,i≥tdelay_improve_goal2 ∑Δt RCSE_Cell-Pdelay,min,i ≥t delay_improve_goal2

此外,考虑到对单元(包括锁存器或触发器)进行调节以优化前端组合逻辑电路的延时性能和功耗:Furthermore, considering the tuning of cells (including latches or flip-flops) to optimize the delay performance and power consumption of the front-end combinational logic circuit:

∑ΔtRCSE_Cell-Pdelay,max,i+ΔtPrev_FF-Pdelay,max+ΔtFF-setup,max≤tdelay_improve_goal1 ∑Δt RCSE_Cell-Pdelay,max,i +Δt Prev_FF-Pdelay,max +Δt FF-setup,max ≤t delay_improve_goal1

∑ΔtRCSE_Cell-Pdelay,min,i-ΔtFF-hold,max+ΔtPrev_FF-Pdelay,min≥tdelay_improve_goal2 ∑Δt RCSE_Cell-Pdelay,min,i -Δt FF-hold,max +Δt Prev_FF-Pdelay,min ≥t delay_improve_goal2

其中:in:

ΔtRCSE_Cell-Pdelay,max,i=tRCSE_Cell-Pdelay,max,i,new-tRCSE_Cell-Pdelay,max,I,org Δt RCSE_Cell-Pdelay,max,i =t RCSE_Cell-Pdelay,max,i,new -t RCSE_Cell-Pdelay,max,I,org

ΔtRCSE_Cell-Pdelay,min,i=tRCSE_Cell-Pdelay,min,i,new-tRCSE_Cell-Pdelay,min,i,org Δt RCSE_Cell-Pdelay,min,i =t RCSE_Cell-Pdelay,min,i,new -t RCSE_Cell-Pdelay,min,i,org

ΔtPrev_FF-Pdelay,max=tPrev_FF-Pdelay,max,new-tPrev_FF-Pdelay,max,org Δt Prev_FF-Pdelay,max =t Prev_FF-Pdelay,max,new -t Prev_FF-Pdelay,max,org

ΔtPrev_FF-Pdelay,min=tPrev_FF-Pdelay,min,new-tPrev_FF-Pdelay,min,org Δt Prev_FF-Pdelay,min =t Prev_FF-Pdelay,min,new -t Prev_FF-Pdelay,min,org

ΔtFF-setup,max=tFF-setup,max,new-tFF-setup,max,org Δt FF-setup,max =t FF-setup,max,new -t FF-setup,max,org

ΔtFF-hold,max=tFF-hold,max,new-tFF-hold,max,org Δt FF-hold,max =t FF-hold,max,new -t FF-hold,max,org

具体的,tRCSE_Cell-Pdelay,max,i,new为逻辑单元i调整栅长之后的最大延时时间;tRCSE_Cell-Pdelay,max,I,org为逻辑单元i调整栅长之前(即原栅长)的最大延时时间;tRCSE_Cell-Pdelay,min,i,new为逻辑单元i调整栅长之后的最小延时时间; tRCSE_Cell-Pdelay,min,i,org为逻辑单元i调整栅长之前(即原栅长)的最小延时时间; tPrev_FF-Pdelay,max,new为前级锁存器或触发器调整栅长之后的最大延时时间; tPrev_FF-Pdelay,max,org为前级锁存器或触发器调整栅长之前(即原栅长)的最大延时时间;tPrev_FF-Pdelay,min,new为前级锁存器或触发器调整栅长之后的最小延时时间;tPrev_FF-Pdelay,min,org为前级锁存器或触发器调整栅长之前(即原栅长)的最小延时时间;tFF-setup,max,new为锁存器或触发器调整栅长之后的输入数据最大建立时间;tFF-setup,max,org为锁存器或触发器调整栅长之前(即原栅长) 的输入数据最大建立时间;tFF-hold,max,new为锁存器或触发器调整栅长之后的输入数据最大保持时间;tFF-hold,max,org为锁存器或触发器调整栅长之前(即原栅长)的输入数据最大保持时间。Specifically, t RCSE_Cell-Pdelay,max,i,new is the maximum delay time after the logic cell i adjusts the gate length; t RCSE_Cell-Pdelay,max,i,org is the maximum delay time before the logic cell i adjusts the gate length (i.e., the original gate length); t RCSE_Cell-Pdelay,min,i,new is the minimum delay time after the logic cell i adjusts the gate length; t RCSE_Cell-Pdelay,min,i,org is the minimum delay time before the logic cell i adjusts the gate length (i.e., the original gate length); t Prev_FF-Pdelay,max,new is the maximum delay time after the previous latch or trigger adjusts the gate length; t Prev_FF-Pdelay,max,org is the maximum delay time before the previous latch or trigger adjusts the gate length (i.e., the original gate length); t Prev_FF-Pdelay,min,new is the minimum delay time after the previous latch or trigger adjusts the gate length; t Prev_FF-Pdelay,min,org is the minimum delay time before the previous latch or trigger adjusts the gate length (i.e., the original gate length); t FF-setup,max,new is the maximum setup time of the input data after the latch or trigger adjusts the gate length; t FF-setup,max,org is the maximum setup time of the input data before the latch or trigger adjusts the gate length (i.e., the original gate length); t FF-hold,max,new is the maximum hold time of the input data after the latch or trigger adjusts the gate length; t FF-hold,max,org is the maximum hold time of the input data before the latch or trigger adjusts the gate length (i.e., the original gate length).

对不等式组:For the system of inequalities:

∑ΔtRCSE_Cell-Pdelay,max,i≤tdelay_improve_goal1 ∑Δt RCSE_Cell-Pdelay,max,i ≤t delay_improve_goal1

∑ΔtRCSE_Cell-Pdelay,min,i≥tdelay_improve_goal2 ∑Δt RCSE_Cell-Pdelay,min,i ≥t delay_improve_goal2

or

∑ΔtRCSE_Cell-Pdelay,max,i+ΔtFF-setup,max≤tdelay_improve_goal1+ΔtPrev_FF-Pdelay,max ∑Δt RCSE_Cell-Pdelay,max,i +Δt FF-setup,max ≤t delay_improve_goal1 +Δt Prev_FF-Pdelay,max

∑ΔtRCSE_Cell-Pdelay,min,i-ΔtFF-hold,max≥tdelay_improve_goal2-ΔtPrev_FF-Pdelay,min ∑Δt RCSE_Cell-Pdelay,min,i -Δt FF-hold,max ≥t delay_improve_goal2 -Δt Prev_FF-Pdelay,min

求解,得到:每一可调节逻辑单元电路的ΔtRCSE_Cell-Pdelay,max,i的最小值;每一可调节逻辑单元的ΔtRCSE_Cell-Pdelay,min,i的最大值;每一可调节锁存器或触发器的ΔtFF-setup,max的最大值;每一可调节锁存器或触发器的ΔtFF-hold,max的最大值;Solve and obtain: the minimum value of Δt RCSE_Cell-Pdelay,max,i of each adjustable logic unit circuit; the maximum value of Δt RCSE_Cell-Pdelay,min,i of each adjustable logic unit; the maximum value of Δt FF-setup,max of each adjustable latch or trigger; the maximum value of Δt FF-hold,max of each adjustable latch or trigger;

进一步根据下面四个公式:Further according to the following four formulas:

tRCSE_Cell-Pdelay,max,i,new=tRCSE_Cell-Pdelay,max,I,org+ΔtRCSE_Cell-Pdelay,max,i t RCSE_Cell-Pdelay,max,i,new =t RCSE_Cell-Pdelay,max,I,org +Δt RCSE_Cell-Pdelay,max,i

tRCSE_Cell-Pdelay,min,i,new=tRCSE_Cell-Pdelay,min,i,org+ΔtRCSE_Cell-Pdelay,min,i t RCSE_Cell-Pdelay,min,i,new =t RCSE_Cell-Pdelay,min,i,org +Δt RCSE_Cell-Pdelay,min,i

tFF-setup,max,new=tFF-setup,max,org+ΔtFF-setup,max t FF-setup,max,new =t FF-setup,max,org +Δt FF-setup,max

tFF-hold,max,new=tFF-hold,max,org+ΔtFF-hold,max t FF-hold,max,new =t FF-hold,max,org +Δt FF-hold,max

可得到新栅长下该单元的延时:tRCSE_Cell-Pdelay,max,i,new; tRCSE_Cell-Pdelay,min,i,new;tFF-setup,max,new以及tFF-hold,max,newThe delay of the cell under the new gate length can be obtained: t RCSE_Cell-Pdelay,max,i,new ; t RCSE_Cell-Pdelay,min,i,new ; t FF-setup,max,new and t FF-hold,max,new .

根据前述所建立的单元的延时--栅长关系查询表获取对应可调节逻辑单元调整之后的栅长,在新栅长下该单元的延时tRCSE_Cell-Pdelay,max,i,new、 tRCSE_Cell-Pdelay,min,i,new、tFF-setup,max,new以及tFF-hold,max,new可以使对应的前端组合逻辑电路和锁存器或触发器满足时序要求,至此,实现了通过栅长尺寸的调整对时序的优化。According to the delay-gate length relationship query table of the unit established above, the gate length of the corresponding adjustable logic unit after adjustment is obtained. Under the new gate length, the delays t RCSE_Cell-Pdelay, max, i, new , t RCSE_Cell-Pdelay, min, i, new , t FF-setup, max, new and t FF-hold, max, new of the unit can make the corresponding front-end combinational logic circuit and latch or trigger meet the timing requirements. At this point, the optimization of timing is achieved by adjusting the gate length size.

进一步地,在有多个栅长值均能满足时序要求的情况下,选择对应功耗最低的栅长值作为调整之后的对应单元的栅长尺寸。Furthermore, when there are multiple gate length values that can meet the timing requirement, the gate length value corresponding to the lowest power consumption is selected as the gate length size of the corresponding unit after adjustment.

进一步地,在有多个栅长值均能满足时序要求的情况下,在确保性能分布鲁棒性的前提下选择对应功耗最低的栅长值作为调整之后的对应单元的栅长尺寸。Furthermore, when there are multiple gate length values that can meet the timing requirements, the gate length value with the lowest power consumption is selected as the gate length size of the corresponding unit after adjustment under the premise of ensuring the robustness of the performance distribution.

进一步地,以上述所调节的栅长为初值,通过优化算法微调栅长,在满足时序要求的前提下,利用前述所建立的栅长-功耗关系查询表估算单元功耗,在满足时序要求的前提下降低延时性能和功耗。Furthermore, taking the above-adjusted gate length as the initial value, the gate length is fine-tuned through the optimization algorithm, and on the premise of meeting the timing requirements, the unit power consumption is estimated using the gate length-power consumption relationship query table established above, thereby reducing the delay performance and power consumption on the premise of meeting the timing requirements.

进一步地,基于信号流的先后顺序,依次对前端组合逻辑电路和锁存器或触发器电路组合对其主要延时单元的器件增大/缩减其栅长,在保证满足时序要求的前提下降低单元电路性能和功耗。Furthermore, based on the sequence of signal flow, the gate length of the devices of the main delay units of the front-end combinational logic circuit and the latch or trigger circuit combination is increased/reduced in turn, thereby reducing the unit circuit performance and power consumption while ensuring that the timing requirements are met.

本发明实施例公开的一种亚阈值数字电路功耗优化方法,该方法通过先确定可降低性能和功耗的逻辑单元电路;再对给定集成电路进行时序分析,得出所有时序宽松的信号路径;然后确定每一时序宽松的信号路径中可降低性能和功耗的若干主要延时单元;最后根据预设时序约束条件对主要延时单元的器件增大或缩短其栅长进行调整,以通过栅长尺寸的调整对亚阈值电路功耗的优化。本方法通过对主要延时单元的器件在合理的区间内增大其栅长或缩短其栅长,降低其电路性能,提高单元的延时时间,在满足时序要求的前提下降低集成电路的功耗,此外,还可以通过缩小栅长的同时做到降低功耗和节省面积。The embodiment of the present invention discloses a method for optimizing power consumption of a subthreshold digital circuit. The method first determines a logic unit circuit that can reduce performance and power consumption; then performs a timing analysis on a given integrated circuit to obtain all signal paths with loose timing; then determines a number of main delay units that can reduce performance and power consumption in each signal path with loose timing; finally, according to a preset timing constraint, the gate length of the device of the main delay unit is increased or shortened to adjust the device, so as to optimize the power consumption of the subthreshold circuit by adjusting the gate length. The method reduces the circuit performance and improves the delay time of the unit by increasing or shortening the gate length of the device of the main delay unit within a reasonable range, thereby reducing the power consumption of the integrated circuit while meeting the timing requirements. In addition, the power consumption and area saving can be achieved by reducing the gate length.

请参阅图4,基于上述实施例公开的一种亚阈值数字电路功率优化方法,本实施例对应公开了一种亚阈值数字电路功耗优化系统,具体包括:第一确定单元401、分析单元402、第二确定单元403和调整单元404,其中:Please refer to FIG. 4 . Based on the sub-threshold digital circuit power optimization method disclosed in the above embodiment, this embodiment correspondingly discloses a sub-threshold digital circuit power consumption optimization system, which specifically includes: a first determination unit 401, an analysis unit 402, a second determination unit 403 and an adjustment unit 404, wherein:

第一确定单元401,用于确定可降低性能和功耗的逻辑单元电路;A first determining unit 401 is used to determine a logic unit circuit that can reduce performance and power consumption;

分析单元402,用于对给定集成电路进行时序分析,得出所有时序宽松的信号路径,所述信号路径包括:锁存器及其前端组合逻辑单元或触发器及其前端组合逻辑单元;An analysis unit 402 is used to perform timing analysis on a given integrated circuit to obtain all signal paths with loose timing, wherein the signal paths include: a latch and its front-end combinational logic unit or a trigger and its front-end combinational logic unit;

第二确定单元403,用于确定每一时序宽松的信号路径中可降低性能和功耗的若干主要延时单元;A second determining unit 403, configured to determine a number of main delay units in each timing-relaxed signal path that can reduce performance and power consumption;

调整单元404,用于根据预设时序约束条件对主要延时单元的器件增大或缩短其栅长进行调整,以通过栅长尺寸的调整对亚阈值电路功耗的优化。The adjusting unit 404 is used to adjust the device of the main delay unit by increasing or shortening its gate length according to the preset timing constraint condition, so as to optimize the power consumption of the sub-threshold circuit by adjusting the gate length size.

进一步的,上述第一确定单元401包括:获取单元4011、处理单元4012 和检查单元4013,其中:Furthermore, the first determining unit 401 includes: an acquiring unit 4011, a processing unit 4012 and a checking unit 4013, wherein:

获取单元4011,用于获取所用逻辑单元库中的逻辑单元电路或待优化设计中所引用的逻辑单元电路;An acquisition unit 4011 is used to acquire a logic unit circuit in a used logic unit library or a logic unit circuit referenced in a design to be optimized;

处理单元4012,用于对每一逻辑单元电路改变所述逻辑单元电路中MOS 器件的栅长,通过对逻辑单元电路仿真获取对应栅长下逻辑单元电路的输入- 输出波形,测量逻辑单元电路的输入-输出波形获取对应栅长下的逻辑单元电路的延时,得到栅长-延时数据;The processing unit 4012 is used to change the gate length of the MOS device in each logic unit circuit, obtain the input-output waveform of the logic unit circuit under the corresponding gate length by simulating the logic unit circuit, measure the input-output waveform of the logic unit circuit to obtain the delay of the logic unit circuit under the corresponding gate length, and obtain gate length-delay data;

检查单元4013,用于对栅长-延时数据进行检查,若延时小于原栅长下的延时,则去除对应的栅长-延时数据;The checking unit 4013 is used to check the gate length-delay data, and if the delay is less than the delay under the original gate length, the corresponding gate length-delay data is removed;

若存在延时大于原栅长下的延时的延时的栅长-延时数据,则将逻辑单元电路列为可降低性能和功耗的逻辑单元电路,否则为不可降低性能和功耗的逻辑单元电路。If there is gate length-delay data of a delay greater than the delay under the original gate length, the logic unit circuit is listed as a logic unit circuit that can reduce performance and power consumption, otherwise it is a logic unit circuit that cannot reduce performance and power consumption.

本发明实施例公开的一种亚阈值数字电路功耗优化系统,该系统通过第一确定单元先确定可降低性能和功耗的逻辑单元电路;再通过分析单元对给定集成电路进行时序分析,得出所有时序宽松的信号路径;然后通过第二确定单元确定每一时序宽松的信号路径中可降低性能和功耗的若干主要延时单元;最后通过调整单元根据预设时序约束条件对主要延时单元的器件增大或缩短其栅长进行调整,以通过栅长尺寸的调整对亚阈值电路功耗的优化。本系统通过对主要延时单元的器件在合理的区间内增大其栅长或缩短其栅长,降低其电路性能,提高单元的延时时间,在满足时序要求的前提下降低集成电路的功耗,此外,还可以通过缩小栅长的同时做到降低功耗和节省面积。The embodiment of the present invention discloses a subthreshold digital circuit power consumption optimization system, which first determines the logic unit circuit that can reduce performance and power consumption through a first determination unit; then performs timing analysis on a given integrated circuit through an analysis unit to obtain all signal paths with loose timing; then determines several main delay units that can reduce performance and power consumption in each signal path with loose timing through a second determination unit; finally, adjusts the device of the main delay unit by increasing or shortening its gate length according to preset timing constraints through an adjustment unit, so as to optimize the power consumption of the subthreshold circuit by adjusting the gate length size. This system reduces the circuit performance and improves the delay time of the unit by increasing or shortening the gate length of the device of the main delay unit within a reasonable range, thereby reducing the power consumption of the integrated circuit while meeting the timing requirements. In addition, it can also reduce power consumption and save area by reducing the gate length.

需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括上述要素的物品或者设备中还存在另外的相同要素。It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that an article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the article or device including the above elements.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1.一种亚阈值数字电路功耗优化方法,其特征在于,包括:1. A method for optimizing power consumption of a subthreshold digital circuit, comprising: 确定可降低性能和功耗的逻辑单元电路;Identify logic cell circuits that can reduce performance and power consumption; 对给定集成电路进行时序分析,得出所有时序宽松的信号路径,所述信号路径包括:锁存器及其前端组合逻辑单元或触发器及其前端组合逻辑单元;Performing timing analysis on a given integrated circuit to obtain all signal paths with loose timing, wherein the signal paths include: a latch and a front-end combinational logic unit thereof or a trigger and a front-end combinational logic unit thereof; 确定每一所述时序宽松的信号路径中可降低性能和功耗的若干主要延时单元;Determining a number of major delay elements in each of the relaxed timing signal paths that can reduce performance and power consumption; 根据预设时序约束条件对所述主要延时单元的器件增大或缩短其栅长进行调整,以通过栅长尺寸的调整对亚阈值电路功耗的优化;According to the preset timing constraint condition, the gate length of the device of the main delay unit is increased or shortened to adjust the power consumption of the subthreshold circuit by adjusting the gate length size; 所述确定可降低性能和功耗的逻辑单元电路的步骤,包括:The step of determining a logic unit circuit that can reduce performance and power consumption includes: 获取所用逻辑单元库中的逻辑单元电路或待优化设计中所引用的逻辑单元电路;Obtaining a logic unit circuit in a used logic unit library or a logic unit circuit referenced in a design to be optimized; 对每一所述逻辑单元电路改变所述逻辑单元电路中MOS器件的栅长,通过对所述逻辑单元电路仿真获取对应栅长下所述逻辑单元电路的输入-输出波形,测量所述逻辑单元电路的输入-输出波形获取对应栅长下的所述逻辑单元电路的延时,得到栅长-延时数据;For each of the logic unit circuits, the gate length of the MOS device in the logic unit circuit is changed, the input-output waveform of the logic unit circuit under the corresponding gate length is obtained by simulating the logic unit circuit, the input-output waveform of the logic unit circuit is measured to obtain the delay of the logic unit circuit under the corresponding gate length, and the gate length-delay data is obtained; 对栅长-延时数据进行检查,若延时小于原栅长下的延时,则去除对应的栅长-延时数据;Check the gate length-delay data. If the delay is less than the delay under the original gate length, remove the corresponding gate length-delay data. 若存在延时大于原栅长下的延时的延时的栅长-延时数据,则将所述逻辑单元电路列为可降低性能和功耗的逻辑单元电路,否则为不可降低性能和功耗的逻辑单元电路;If there is gate length-delay data of a delay greater than the delay under the original gate length, the logic unit circuit is listed as a logic unit circuit that can reduce performance and power consumption, otherwise it is a logic unit circuit that cannot reduce performance and power consumption; 所述确定每一所述时序宽松的信号路径中可降低性能和功耗的若干主要延时单元的步骤,包括:The step of determining a number of main delay units in each of the signal paths with loose timing that can reduce performance and power consumption includes: 若满足所述预设时序约束条件的时序宽松的信号路径中的逻辑单元电路为已标定的可降低性能和功耗中的逻辑单元电路,则将其列入可降低性能和功耗的主要延时单元电路;If the logic unit circuit in the timing-relaxed signal path that meets the preset timing constraint condition is a logic unit circuit that has been calibrated to reduce performance and power consumption, then the logic unit circuit is included in the main delay unit circuit that can reduce performance and power consumption; 若不满足所述预设时序约束条件的时序宽松的信号路径中的锁存器或触发器为已标定的可降低性能和功耗中的逻辑单元电路,则将其列入可降低性能和功耗的主要延时单元电路。If the latch or trigger in the timing-relaxed signal path that does not meet the preset timing constraint condition is a logic unit circuit that has been calibrated to reduce performance and power consumption, it will be included in the main delay unit circuit that can reduce performance and power consumption. 2.根据权利要求1所述的方法,其特征在于,还包括:2. The method according to claim 1, further comprising: 对所述可降低性能和功耗的逻辑单元电路利用延时大于原栅长下的延时的所述栅长-延时数据建立所述逻辑单元电路的延时-栅长关系查询表。For the logic unit circuit capable of reducing performance and power consumption, a delay-gate length relationship query table of the logic unit circuit is established by using the gate length-delay data with a delay greater than the delay under the original gate length. 3.根据权利要求1所述的方法,其特征在于,还包括:3. The method according to claim 1, further comprising: 对所述可降低性能和功耗的逻辑单元电路改变所述逻辑单元电路中的MOS器件栅长,通过对所述逻辑单元电路仿真获取对应栅长下单元电路的输入-输出波形,测量所述逻辑单元电路的输入-输出波形获取所述逻辑单元电路的延时,同时获得所述延时下的所述逻辑单元电路的功耗,利用延时大于原栅长下的延时的栅长-延时和功耗数据,建立所述逻辑单元电路的延时-功耗关系查询表。For the logic unit circuit that can reduce performance and power consumption, the gate length of the MOS device in the logic unit circuit is changed, the input-output waveform of the unit circuit under the corresponding gate length is obtained by simulating the logic unit circuit, the input-output waveform of the logic unit circuit is measured to obtain the delay of the logic unit circuit, and the power consumption of the logic unit circuit under the delay is obtained at the same time, and the gate length-delay and power consumption data when the delay is greater than the delay under the original gate length are used to establish a delay-power consumption relationship query table of the logic unit circuit. 4.根据权利要求1所述的方法,其特征在于,还包括:4. The method according to claim 1, further comprising: 对所述可降低性能和功耗的逻辑单元电路获得所述逻辑单元电路在固定栅宽下的最大延时,以及相对原栅长的延时放大系数最大值,即所述逻辑单元电路的性能收缩系数。For the logic unit circuit capable of reducing performance and power consumption, the maximum delay of the logic unit circuit under a fixed gate width and the maximum value of the delay amplification factor relative to the original gate length, that is, the performance shrinkage factor of the logic unit circuit, are obtained. 5.根据权利要求1所述的方法,其特征在于,还包括:5. The method according to claim 1, further comprising: 对所述可降低性能和功耗的逻辑单元电路,基于所述逻辑单元电路的统计仿真,建立延时大于原栅长下延时所述逻辑单元电路的统计延时--栅长关系查询表。For the logic unit circuit capable of reducing performance and power consumption, based on statistical simulation of the logic unit circuit, a statistical delay-gate length relationship query table is established for the logic unit circuit whose delay is greater than the delay under the original gate length. 6.根据权利要求1所述的方法,其特征在于,所述对给定集成电路进行时序分析,得出所有时序宽松的信号路径的步骤,包括:6. The method according to claim 1, wherein the step of performing timing analysis on a given integrated circuit to obtain all signal paths with loose timing comprises: 利用统计时序分析工具或基于电路统计仿真对给定集成电路进行时序分析,得到所有的信号路径的延时分布;Perform timing analysis on a given integrated circuit using statistical timing analysis tools or based on circuit statistical simulation to obtain the delay distribution of all signal paths; 判定每一所述信号路径的延时分布是否满足所述预设时序约束条件;Determining whether the delay distribution of each of the signal paths satisfies the preset timing constraint condition; 将满足所述预设时序约束条件对应的信号路径列入时序宽松的信号路径。The signal paths that meet the preset timing constraints are listed as signal paths with loose timing. 7.一种亚阈值数字电路功耗优化系统,其特征在于,包括:7. A subthreshold digital circuit power consumption optimization system, comprising: 第一确定单元,用于确定可降低性能和功耗的逻辑单元电路;A first determining unit, used to determine a logic unit circuit that can reduce performance and power consumption; 分析单元,用于对给定集成电路进行时序分析,得出所有时序宽松的信号路径,所述信号路径包括:锁存器及其前端组合逻辑单元或触发器及其前端组合逻辑单元;An analysis unit, used to perform timing analysis on a given integrated circuit to obtain all signal paths with loose timing, wherein the signal paths include: a latch and a front-end combinational logic unit thereof or a trigger and a front-end combinational logic unit thereof; 第二确定单元,用于确定每一所述时序宽松的信号路径中可降低性能和功耗的若干主要延时单元;A second determining unit, configured to determine a number of main delay units in each of the signal paths with loose timing that can reduce performance and power consumption; 调整单元,用于根据预设时序约束条件对所述主要延时单元的器件增大或缩短其栅长进行调整,以通过栅长尺寸的调整对亚阈值电路功耗的优化;An adjustment unit, used to increase or shorten the gate length of the device of the main delay unit according to a preset timing constraint condition, so as to optimize the power consumption of the subthreshold circuit by adjusting the gate length size; 所述第一确定单元包括:The first determining unit includes: 获取单元,用于获取所用逻辑单元库中的逻辑单元电路或待优化设计中所引用的逻辑单元电路;An acquisition unit, used to acquire a logic unit circuit in a used logic unit library or a logic unit circuit referenced in a design to be optimized; 处理单元,用于对每一所述逻辑单元电路改变所述逻辑单元电路中MOS器件的栅长,通过对所述逻辑单元电路仿真获取对应栅长下所述逻辑单元电路的输入-输出波形,测量所述逻辑单元电路的输入-输出波形获取对应栅长下的所述逻辑单元电路的延时,得到栅长-延时数据;A processing unit, configured to change the gate length of the MOS device in each of the logic unit circuits, obtain the input-output waveform of the logic unit circuit under the corresponding gate length by simulating the logic unit circuit, measure the input-output waveform of the logic unit circuit to obtain the delay of the logic unit circuit under the corresponding gate length, and obtain gate length-delay data; 检查单元,用于对栅长-延时数据进行检查,若延时小于原栅长下的延时,则去除对应的栅长-延时数据;A checking unit, used for checking the gate length-delay data, and if the delay is less than the delay under the original gate length, the corresponding gate length-delay data is removed; 若存在延时大于原栅长下的延时的延时的栅长-延时数据,则将所述逻辑单元电路列为可降低性能和功耗的逻辑单元电路,否则为不可降低性能和功耗的逻辑单元电路;If there is gate length-delay data of a delay greater than the delay under the original gate length, the logic unit circuit is listed as a logic unit circuit that can reduce performance and power consumption, otherwise it is a logic unit circuit that cannot reduce performance and power consumption; 所述第二确定单元确定每一所述时序宽松的信号路径中可降低性能和功耗的若干主要延时单元,包括:The second determining unit determines a number of main delay units in each of the signal paths with loose timing that can reduce performance and power consumption, including: 若满足所述预设时序约束条件的时序宽松的信号路径中的逻辑单元电路为已标定的可降低性能和功耗中的逻辑单元电路,则将其列入可降低性能和功耗的主要延时单元电路;If the logic unit circuit in the timing-relaxed signal path that meets the preset timing constraint condition is a logic unit circuit that has been calibrated to reduce performance and power consumption, then it is included in the main delay unit circuit that can reduce performance and power consumption; 若不满足所述预设时序约束条件的时序宽松的信号路径中的锁存器或触发器为已标定的可降低性能和功耗中的逻辑单元电路,则将其列入可降低性能和功耗的主要延时单元电路。If the latch or trigger in the timing-relaxed signal path that does not meet the preset timing constraint condition is a logic unit circuit that has been calibrated to reduce performance and power consumption, it will be included in the main delay unit circuit that can reduce performance and power consumption.
CN201811113017.2A 2018-09-25 2018-09-25 Sub-threshold digital circuit power consumption optimization method and system Active CN110956009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811113017.2A CN110956009B (en) 2018-09-25 2018-09-25 Sub-threshold digital circuit power consumption optimization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811113017.2A CN110956009B (en) 2018-09-25 2018-09-25 Sub-threshold digital circuit power consumption optimization method and system

Publications (2)

Publication Number Publication Date
CN110956009A CN110956009A (en) 2020-04-03
CN110956009B true CN110956009B (en) 2024-09-06

Family

ID=69962211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811113017.2A Active CN110956009B (en) 2018-09-25 2018-09-25 Sub-threshold digital circuit power consumption optimization method and system

Country Status (1)

Country Link
CN (1) CN110956009B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651949B (en) * 2020-06-08 2024-09-24 中国科学院微电子研究所 Circuit optimization method and system for aging sensing
CN111881637B (en) * 2020-07-08 2021-05-04 广芯微电子(广州)股份有限公司 Method, system and storage medium for optimizing power consumption of digital circuit
CN112134557B (en) * 2020-09-27 2022-11-01 东南大学 Wide voltage self-adaptive adjusting system and method based on pulse latch time sequence monitoring
CN115392166B (en) * 2022-10-24 2023-01-20 北京智芯微电子科技有限公司 Method, device, electronic equipment and medium for determining transistor width
CN116090399B (en) * 2023-04-06 2023-06-16 中国人民解放军国防科技大学 Trigger conversion method and device based on time margin established by data output end

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573148A (en) * 2013-10-17 2015-04-29 北京华大九天软件有限公司 Method for lowering electricity leakage power consumption of time sequence device in circuit
CN105991111A (en) * 2015-03-02 2016-10-05 华为技术有限公司 Timing prediction circuit and method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000082090A (en) * 1998-09-07 2000-03-21 Toshiba Microelectronics Corp Flip-flop circuit with delay function, latch circuit with delay function, method for designing sequential circuit, automatic design apparatus for clock signal wiring in semiconductor integrated circuit, and automatic design method for clock signal wiring in semiconductor integrated circuit
DE10066065B4 (en) * 1999-03-15 2007-08-02 Advantest Corp. Delay device for delaying incoming transmission signals in electronic instrument, has delay elements operating on power supply voltages, connected in series, and with a switch unit that outputs one of outputs of delay elements
TW478255B (en) * 2000-12-13 2002-03-01 Via Tech Inc Circuit static timing analysis method using generated clock
CN106066919B (en) * 2016-06-13 2019-05-31 中国科学院微电子研究所 Statistical static time sequence analysis method applied to near/sub-threshold digital circuit
CN108092660B (en) * 2017-12-29 2021-07-23 中国科学院微电子研究所 A method and system for optimizing a subthreshold circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573148A (en) * 2013-10-17 2015-04-29 北京华大九天软件有限公司 Method for lowering electricity leakage power consumption of time sequence device in circuit
CN105991111A (en) * 2015-03-02 2016-10-05 华为技术有限公司 Timing prediction circuit and method

Also Published As

Publication number Publication date
CN110956009A (en) 2020-04-03

Similar Documents

Publication Publication Date Title
CN110956009B (en) Sub-threshold digital circuit power consumption optimization method and system
US9009638B1 (en) Estimating transistor characteristics and tolerances for compact modeling
CN110442884B (en) Optimization method and device of sub-threshold digital sequential circuit
JPH0660139A (en) Power consumption calculation device for logical function block for mos transistor
CN112560373B (en) Burr power analysis and optimization engine
CN110245432A (en) Circuit unit characterization method, data storage, access method and processing system
Cerqueira et al. Temporarily fine-grained sleep technique for near-and subthreshold parallel architectures
JP5569237B2 (en) Information processing apparatus, program, and design support method
Lin et al. Stack sizing analysis and optimization for FinFET logic cells and circuits operating in the sub/near-threshold regime
CN110135098B (en) Method and device for optimizing subthreshold circuit design
Vai et al. Modeling of microwave semiconductor devices using simulated annealing optimization
Sridharan et al. Modeling multiple input switching of CMOS gates in DSM technology using HDMR
CN110956008B (en) A subthreshold digital circuit timing optimization method and system
CN111241767B (en) Delay optimization method and device for sub-threshold circuit signal balance path
WO2024008186A1 (en) Method and system for calculating worst power supply noise of high-speed link, and storage medium
CN113868991B (en) Design method of digital standard cell under near-threshold power supply voltage
Sridharan et al. Gate delay modeling with multiple input switching for static (statistical) timing analysis
Ding et al. IBIS Model Simulation Accuracy Improvement by Including Nonlinear Power Supply Induced Jitter Effect
CN115345097A (en) Method for improving temperature immunity of digital circuit and electronic equipment
Li et al. Analytical model of fast-switching GaN HEMTs in bridge-leg considering nonlinear characteristics
Tolbert et al. Accurate buffer modeling with slew propagation in subthreshold circuits
CN114330193A (en) Wide voltage circuit delay estimation method based on parameter selection
CN109829240B (en) Method for optimizing integrated circuit performance
Guo et al. Statistical Timing Model for Subthreshold Circuit with Correlated Variation Consideration
Cao et al. A statistical timing model for cmos inverter in near-threshold region considering input transition time

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