[go: up one dir, main page]

CN111008507B - A method and device for calculating the reliability boundary of logic circuits affected by soft errors - Google Patents

A method and device for calculating the reliability boundary of logic circuits affected by soft errors Download PDF

Info

Publication number
CN111008507B
CN111008507B CN201911074272.5A CN201911074272A CN111008507B CN 111008507 B CN111008507 B CN 111008507B CN 201911074272 A CN201911074272 A CN 201911074272A CN 111008507 B CN111008507 B CN 111008507B
Authority
CN
China
Prior art keywords
circuit
fault
reliability
gates
logic
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
CN201911074272.5A
Other languages
Chinese (zh)
Other versions
CN111008507A (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.)
Changsha University of Science and Technology
Original Assignee
Changsha University of Science and Technology
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 Changsha University of Science and Technology filed Critical Changsha University of Science and Technology
Priority to CN201911074272.5A priority Critical patent/CN111008507B/en
Publication of CN111008507A publication Critical patent/CN111008507A/en
Application granted granted Critical
Publication of CN111008507B publication Critical patent/CN111008507B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention discloses a method and a device for calculating the reliability boundary of a logic circuit affected by soft errors, wherein the method comprises the following steps: representing a circuit reliability target as a sum of the multi-stage components; performing single-fault simulation on the circuit to obtain T1A value; performing double-fault simulation on the circuit to obtain T2A value; calculating a reliability boundary of the circuit; compared with the prior art, the method of the invention utilizes a probability distribution model, and firstly expresses the reliability target of the large-scale and super-large-scale logic circuit to be calculated as the sum of multi-order components; then, simulating and calculating the working conditions of the circuit with single fault and double faults so as to calculate the correct output probability of the circuit when the faults occur; and finally substituting the simulation result into the reliability boundary expression to obtain the first-order and second-order upper and lower limits of the circuit reliability. The method ensures that the reliability boundary value which is very close to the real reliability of the circuit is calculated in reasonable time, and is suitable for the reliability calculation of large-scale and super-large-scale logic circuits.

Description

一种受软错误影响的逻辑电路可靠性边界计算方法及设备A method and device for calculating the reliability boundary of logic circuits affected by soft errors

技术领域technical field

本发明涉及电路领域,特别是涉及一种受软错误影响的逻辑电路可靠性边界计算方法及设备。The invention relates to the field of circuits, in particular to a method and device for calculating the reliability boundary of a logic circuit affected by soft errors.

背景技术Background technique

随着纳米工艺的应用和普及,逻辑电路的规模不断增大,器件特征尺寸持续缩小,芯片的性能得到稳步提升,但同时,因各种空间辐射原因和芯片封装材料中放射性杂质的反应导致的软错误也给芯片的可靠性带来了严峻挑战。由Sony、IBM等多家知名公司的最新研究表明,可靠性问题将始终伴随着半导体器件与集成电路的发展和应用。With the application and popularization of nanotechnology, the scale of logic circuits continues to increase, the feature size of devices continues to shrink, and the performance of chips has been steadily improved. At the same time, due to various space radiation reasons and the reaction of radioactive impurities in chip packaging materials. Soft errors also pose serious challenges to chip reliability. The latest research by many well-known companies such as Sony and IBM shows that reliability issues will always accompany the development and application of semiconductor devices and integrated circuits.

集成电路的软错误是一种对电路硬件本身没有破坏性的瞬时错误。软错误具有瞬态、可恢复、发生时刻与发生地点随机等特点。引起软错误的因素很多,如:电源噪声、电磁干扰、封装材料中放射性杂质反应以及空间高能粒子的辐射等,其中,粒子辐射是造成软错误的主要原因。引起软错误的高能粒子效应包括单粒子翻转(Single Event Upset,SEU)和单粒子瞬态(Single Event Transient,SET)。SEU是指集成电路的存储单元,如存储器、触发器和锁存器等遭到高能粒子攻击而发生逻辑翻转;SET则表示发生在逻辑电路组合模块中的瞬态故障脉冲,这些故障脉冲可能沿着敏化路径传播至电路输出端,且被锁存器采样,从而引起软错误。SEU和SET都可能导致集成电路失效。由于芯片的阈值电压进一步降低,集成的晶体管数呈指数增长,设计对辐射越来越敏感,电路软错误率也随之急剧上升。准确计算受软错误影响的逻辑电路可靠性能够为电路的综合布局和容错设计提供依据,是可靠性研究的主要技术方向和亟需解决的重要问题。A soft error in an integrated circuit is a transient error that is not destructive to the circuit hardware itself. Soft errors have the characteristics of transient, recoverable, random occurrence time and place. There are many factors that cause soft errors, such as power supply noise, electromagnetic interference, the reaction of radioactive impurities in packaging materials, and the radiation of high-energy particles in space. Among them, particle radiation is the main cause of soft errors. High-energy particle effects that cause soft errors include Single Event Upset (SEU) and Single Event Transient (SET). SEU refers to the memory cells of integrated circuits, such as memories, flip-flops and latches, which are attacked by high-energy particles and cause logic flips; SET refers to transient fault pulses that occur in logic circuit combination modules. The sensitization path propagates to the circuit output and is sampled by the latch, causing soft errors. Both SEU and SET can cause integrated circuit failure. As the threshold voltage of the chip is further reduced, the number of integrated transistors increases exponentially, the design becomes more and more sensitive to radiation, and the circuit soft error rate also rises sharply. Accurately calculating the reliability of logic circuits affected by soft errors can provide a basis for the comprehensive layout and fault-tolerant design of circuits. It is the main technical direction of reliability research and an important problem that needs to be solved urgently.

因SEU导致的存储单元数据翻转可以采用纠错码的方法进行检测和恢复。The data inversion of the storage unit caused by SEU can be detected and recovered by the method of error correction code.

因SET导致的逻辑电路失效情况主要包括:Logic circuit failures caused by SET mainly include:

一类常用的逻辑电路软错误可靠性计算方法是在电路中注入SET故障脉冲,并模拟电路在不同输入激励下故障脉冲的传播情况;另一类方法主要运用信号概率理论,针对不同的逻辑单元建立故障脉冲的传播规则与信号概率的计算公式。还有一些数学概念和数学工具被用于分析受软错误影响的逻辑电路可靠性,如:概率转移矩阵(ProbabilisticTransfer Matrices,PTMs)、代数决策图(Algebraic Decision Diagrams,ADDs)和瞬态故障传播度量(Transient Fault Propagation Metrics,TFPMs)等。One common method for calculating soft error reliability of logic circuits is to inject SET fault pulses into the circuit and simulate the propagation of fault pulses under different input excitations; the other method mainly uses signal probability theory, aiming at different logic units. Establish the propagation rule of fault pulse and the calculation formula of signal probability. There are also mathematical concepts and mathematical tools used to analyze the reliability of logic circuits affected by soft errors, such as: Probabilistic Transfer Matrices (PTMs), Algebraic Decision Diagrams (ADDs), and Transient Fault Propagation Metrics (Transient Fault Propagation Metrics, TFPMs), etc.

基于故障注入与模拟的方法能够提供准确的可靠性计算结果,但计算过程非常耗时,尤其是在评估大规模、超大规模甚至更大规模的电路时,由于电路的原始输入端数较多,对应的激励向量数非常庞大,为了得到相对准确的结果,这类方法所需要的计算时间往往让人难以接受。The method based on fault injection and simulation can provide accurate reliability calculation results, but the calculation process is very time-consuming, especially when evaluating large-scale, ultra-large-scale or even larger-scale circuits. The number of excitation vectors is very large, and in order to obtain relatively accurate results, the computational time required by such methods is often unacceptable.

基于信号概率计算的电路可靠性评估方法的计算复杂度与电路规模大致呈线性关系,因此,这类方法的计算速度会比故障模拟方法提高几个数量级。然而,在计算结果的准确性方面,信号概率的计算方法则不如大样本输入激励结合故障模拟的方法。如果为了得到相对准确的结果,此类方法还需要考虑电路中大量存在的扇出重汇聚结构,而扇出重汇聚结构引发的信号相关性计算同样是非常耗时的。此外,一旦考虑多瞬态故障的影响,逻辑电路节点信号概率的计算复杂度则会明显提升,此类方法将不再适用于大规模和超大规模的电路可靠性计算。The computational complexity of the circuit reliability assessment method based on signal probability calculation is roughly linear with the circuit scale, so the computational speed of this kind of method will be several orders of magnitude faster than that of the fault simulation method. However, in terms of the accuracy of calculation results, the calculation method of signal probability is not as good as the method of large sample input excitation combined with fault simulation. In order to obtain relatively accurate results, such methods also need to consider a large number of fan-out and re-convergence structures in the circuit, and the signal correlation calculation caused by the fan-out and re-convergence structures is also very time-consuming. In addition, once the influence of multiple transient faults is considered, the computational complexity of the logic circuit node signal probability will be significantly increased, and such methods will no longer be suitable for large-scale and ultra-large-scale circuit reliability calculations.

利用概率转移矩阵评估电路可靠性是一种计算软错误对整个逻辑电路可靠性影响的概率分析方法,它以逻辑门为基本单元建立所有输入向量组合及对应输出的矩阵模型,即PTM模型,然后根据电路内部的连接情况进行矩阵乘法或矩阵张量积的运算,最终得到整个电路的PTM。代数决策图可被用于优化PTM计算模型。但随着电路规模的不断增大,PTM方法可能面临存储空间爆炸的问题。基于瞬态故障传播度量的电路可靠性计算方法是通过反向遍历电路拓扑结构计算电路所有节点的故障传播度量值,再进一步计算组合逻辑部分的软错误可靠性。这种方法的缺陷是没有充分考虑逻辑电路中的扇出重汇聚结构,因此导致计算结果的准确性不足。Using the probability transition matrix to evaluate circuit reliability is a probabilistic analysis method to calculate the influence of soft errors on the reliability of the entire logic circuit. Matrix multiplication or matrix tensor product operation is performed according to the connection inside the circuit, and finally the PTM of the entire circuit is obtained. Algebraic decision diagrams can be used to optimize the PTM computational model. However, with the continuous increase of circuit scale, the PTM method may face the problem of storage space explosion. The circuit reliability calculation method based on transient fault propagation metric is to calculate the fault propagation metric value of all nodes of the circuit by traversing the circuit topology in reverse, and then further calculate the soft error reliability of the combinational logic part. The disadvantage of this method is that the fan-out re-convergence structure in the logic circuit is not fully considered, thus resulting in insufficient accuracy of the calculation results.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于至少解决现有技术中存在的技术问题之一,提供了一种受软错误影响的逻辑电路可靠性边界计算方法及设备,保证了在合理的时间内计算出与电路真实可靠性非常接近的可靠性边界值,且适用于大规模和超大规模逻辑电路的可靠性计算。The purpose of the present invention is to solve at least one of the technical problems existing in the prior art, and to provide a method and device for calculating the reliability boundary of a logic circuit affected by soft errors, so as to ensure that the calculation and the circuit are true and reliable within a reasonable time. It is very close to the reliability boundary value, and is suitable for reliability calculation of large-scale and very large-scale logic circuits.

本发明的第一方面,提供了一种受软错误影响的逻辑电路可靠性边界计算方法,应用于组合逻辑电路,其特征在于,包括以下步骤:A first aspect of the present invention provides a method for calculating the reliability boundary of a logic circuit affected by soft errors, which is applied to a combinational logic circuit, and is characterized in that it includes the following steps:

第一步、将电路可靠性目标表示为多阶段分量之和;The first step is to express the circuit reliability target as the sum of multi-stage components;

设定所述电路有t个逻辑门相互独立且均以特定概率f发生故障,令所述电路的可靠性R为:Assuming that the circuit has t logic gates that are independent of each other and all fail with a certain probability f, let the reliability R of the circuit be:

Figure BDA0002261902740000031
Figure BDA0002261902740000031

公式(5)中,p(k=i)表示故障门数量为i的概率;2m表示输入向量的数量;Y表示输出向量;Xw表示第w个输入向量;p(Xw)表示输入向量为Xw的概率;p(Y为正确逻辑值Xw,k=i)表示输入向量为Xw,故障门数量为i时,输出向量正确的概率;In formula (5), p(k=i) represents the probability that the number of fault gates is i; 2 m represents the number of input vectors; Y represents the output vector; X w represents the wth input vector; p(X w ) represents the input The probability that the vector is Xw ; p(Y is the correct logical value Xw , k=i) indicates the probability that the output vector is correct when the input vector is Xw and the number of fault gates is i;

将公式(5)重写为:Rewrite equation (5) as:

Figure BDA0002261902740000041
Figure BDA0002261902740000041

公式(6)中,

Figure BDA0002261902740000042
表示在t个逻辑门中出现i个故障门的组合数,Y(Gt(i):j;Xw)表示输入向量为Xw,故障门数量为i,组合数为j时对应的输出向量;Gt(i)表示在t个逻辑门中存在有i个故障门;符号
Figure BDA0002261902740000043
用于判断符号前后两个向量是否相等,若相等,则输出1;若不相等,则输出0;Y(Gt(0);Xw)表示输入向量为Xw,故障门数量为0时对应的输出向量;In formula (6),
Figure BDA0002261902740000042
Indicates the number of combinations of i fault gates in t logic gates, Y(G t (i): j; X w ) represents the input vector X w , the number of fault gates i, and the corresponding output when the number of combinations is j vector; G t (i) indicates that there are i fault gates in t logic gates; the symbol
Figure BDA0002261902740000043
It is used to judge whether the two vectors before and after the symbol are equal. If they are equal , output 1; if they are not equal, output 0; the corresponding output vector;

化简公式(6)得到:Simplify formula (6) to get:

Figure BDA0002261902740000044
Figure BDA0002261902740000044

公式(7)中,Ti表示故障门数量为i时,输出向量正确的概率;In formula (7), T i represents the probability that the output vector is correct when the number of fault gates is i;

所述电路发生故障门数量满足伯努利分布的随机变量,得到:The number of fault gates in the circuit satisfies the random variable of Bernoulli distribution, and we get:

Figure BDA0002261902740000045
Figure BDA0002261902740000045

将公式(7)代入公式(8)得到:Substitute formula (7) into formula (8) to get:

Figure BDA0002261902740000046
Figure BDA0002261902740000046

第二步、对所述电路进行单故障模拟,获取T1值;The second step is to perform single - fault simulation on the circuit to obtain the T1 value;

第三步、对所述电路进行双故障模拟,获取T2值;The third step is to perform a double fault simulation on the circuit to obtain the T 2 value;

第四步、计算所述电路的可靠性边界;The fourth step is to calculate the reliability boundary of the circuit;

根据T0=1,将公式(9)重写为:According to T 0 =1, formula (9) is rewritten as:

Figure BDA0002261902740000051
Figure BDA0002261902740000051

公式(10)中,(1-f)t表示所述电路可靠性的保守下限值,

Figure BDA0002261902740000052
表示为所述电路可靠性的i阶分量之和,其中i=(1,2,...,t);In Equation (10), (1-f) t represents a conservative lower limit for the reliability of the circuit,
Figure BDA0002261902740000052
Expressed as the sum of the i-order components of the circuit reliability, where i=(1, 2, . . . , t);

根据公式(10)可得到所述电路可靠性的1阶分量与2阶分量分别为:According to formula (10), it can be obtained that the first-order component and the second-order component of the circuit reliability are:

Figure BDA0002261902740000053
Figure BDA0002261902740000053

Figure BDA0002261902740000054
Figure BDA0002261902740000054

根据公式(10)、公式(11)以及公式(12)得到所述电路的可靠性一阶下限值Rlower1、可靠性一阶上限值Rupper1、可靠性二阶下限值Rlower2以及可靠性二阶上限值Rupper2分别为:According to formula (10), formula (11) and formula (12), the reliability first-order lower limit value R lower1 , the reliability first-order upper limit value R upper1 , the reliability second-order lower limit value R lower2 and The reliability second-order upper limit value R upper2 is:

Rlower1=(1-f)t+R1 (13)R lower1 = (1-f) t + R 1 (13)

Figure BDA0002261902740000055
Figure BDA0002261902740000055

Rlower2=(1-f)t+R1+R2 (15)R lower2 = (1-f) t +R 1 +R 2 (15)

Figure BDA0002261902740000056
Figure BDA0002261902740000056

本发明的第一方面提供了的受软错误影响的逻辑电路可靠性边界计算方法,至少具有如下有益效果:The method for calculating the reliability boundary of a logic circuit affected by soft errors provided by the first aspect of the present invention has at least the following beneficial effects:

本发明利用逻辑电路软错误的概率分布模型,首先将电路可靠性目标表示为多阶分量之和的形式;然后分别模拟电路发生单故障和发生双故障时的工作情况,计算出单故障和双故障时电路正确输出的概率;最后计算电路可靠性的保守下限、一阶上限、一阶下限和二阶上限、二阶下限。The invention utilizes the probability distribution model of the soft error of the logic circuit, firstly expresses the circuit reliability target in the form of the sum of multi-order components; then simulates the working conditions of the circuit when a single fault and double faults occur respectively, and calculates the single fault and double faults. The probability of correct output of the circuit when fault occurs; finally calculate the conservative lower limit, first-order upper limit, first-order lower limit, second-order upper limit and second-order lower limit of circuit reliability.

本方法结合故障注入与模拟的思想和概率分布模型,既能处理多瞬态故障的情况,又能很好地解决扇出重汇聚结构引发的信号相关性问题。同时,由于能够较好地平衡计算速度和准确性之间的关系,因此,本发明提供的方法还能适用于大规模、超大规模甚至更大规模逻辑电路的软错误可靠性计算。This method combines the idea of fault injection and simulation and the probability distribution model, which can not only deal with the situation of multiple transient faults, but also solve the signal correlation problem caused by the fan-out re-convergence structure. At the same time, since the relationship between calculation speed and accuracy can be well balanced, the method provided by the present invention is also applicable to the soft error reliability calculation of large-scale, ultra-large-scale or even larger-scale logic circuits.

进一步,所述对所述电路进行单故障模拟,获取T1值,进一步包括:Further, performing single-fault simulation on the circuit to obtain the T1 value, further comprising:

在所述电路中设定随机输入向量的数量以及计数变量;setting a number of random input vectors and a count variable in the circuit;

记录所有输入向量在所述电路中模拟运行得到的正常输出向量,遍历所有逻辑门,将所有逻辑门逐一设定为故障门;Record the normal output vectors obtained by simulating operation of all input vectors in the circuit, traverse all logic gates, and set all logic gates as fault gates one by one;

若将当前的逻辑门设为故障门时,将故障门变换为对应的相反门,模拟相反门在所述电路中运行得到的异常输出向量,若异常输出向量与正常输出向量相同,则计数变量加1,恢复当前的逻辑门,模拟下一个逻辑门;If the current logic gate is set as the fault gate, the fault gate is transformed into the corresponding inverse gate, and the abnormal output vector obtained by simulating the operation of the inverse gate in the circuit, if the abnormal output vector is the same as the normal output vector, the count variable Add 1 to restore the current logic gate and simulate the next logic gate;

当最后一个逻辑门处理完成后,计算出单故障情况下所述电路输出正确的概率T1When the processing of the last logic gate is completed, the correct probability T 1 of the circuit output in the case of a single fault is calculated.

进一步,所述对所述电路进行双故障模拟,获取T2值,进一步包括:Further, performing double-fault simulation on the circuit to obtain the T2 value, further comprising:

在所述电路中设定随机输入向量的数量、随机双故障逻辑门的数量以及计数变量;setting a number of random input vectors, a number of random double fault logic gates, and a count variable in the circuit;

记录所有输入向量在所述电路中模拟运行得到的正常输出向量,在所有的输入向量中遍历所有的双故障逻辑门,逐一模拟双故障逻辑门;Record the normal output vectors obtained by simulating the operation of all input vectors in the circuit, traverse all the double-fault logic gates in all the input vectors, and simulate the double-fault logic gates one by one;

将当前的双故障逻辑门变换为各自对应的相反门,模拟相反门在所述电路中运行得到的异常输出向量,若异常输出向量与正常输出向量相同,则计数变量加1,恢复当前的双故障逻辑门,模拟下一个双故障逻辑门;Transform the current dual fault logic gates into their corresponding opposite gates, and simulate the abnormal output vector obtained by the operation of the opposite gate in the circuit. If the abnormal output vector is the same as the normal output vector, the count variable is incremented by 1, and the current dual fault output vector is restored. Fault logic gate, simulating the next double fault logic gate;

当双故障逻辑门全部处理完成后,计算出双故障情况下所述电路输出正确的概率T2When the double-fault logic gates are all processed, the correct probability T 2 of the circuit output under the double-fault situation is calculated.

本发明的第二方面,提供了一种受软错误影响的逻辑电路可靠性边界计算装置,应用于组合逻辑电路,包括:多阶段分量设定单元、单故障模拟单元、双故障模拟单元以及可靠性边界计算单元;A second aspect of the present invention provides a logic circuit reliability boundary calculation device affected by soft errors, applied to a combinational logic circuit, including: a multi-stage component setting unit, a single-fault simulation unit, a double-fault simulation unit, and a reliable Sex boundary calculation unit;

所述多阶段分量设定单元用于将电路可靠性目标表示为多阶段分量之和;The multi-stage component setting unit is used to express the circuit reliability target as the sum of the multi-stage components;

设定所述电路有t个逻辑门相互独立且均以特定概率f发生故障,令所述电路的可靠性R为:Assuming that the circuit has t logic gates that are independent of each other and all fail with a certain probability f, let the reliability R of the circuit be:

Figure BDA0002261902740000071
Figure BDA0002261902740000071

公式(5)中,p(k=i)表示故障门数量为i的概率;2m表示输入向量的数量;Y表示输出向量;Xw表示第w个输入向量;p(Xw)表示输入向量为Xw的概率;p(Y为正确逻辑值Xw,k=i)表示输入向量为Xw,故障门数量为i时,输出向量正确的概率;In formula (5), p(k=i) represents the probability that the number of fault gates is i; 2 m represents the number of input vectors; Y represents the output vector; X w represents the wth input vector; p(X w ) represents the input The probability that the vector is Xw ; p(Y is the correct logical value Xw , k=i) indicates the probability that the output vector is correct when the input vector is Xw and the number of fault gates is i;

将公式(5)重写为:Rewrite equation (5) as:

Figure BDA0002261902740000072
Figure BDA0002261902740000072

公式(6)中,

Figure BDA0002261902740000073
表示在t个逻辑门中出现i个故障门的组合数,Y(Gt(i):j;Xw)表示输入向量为Xw,故障门数量为i,组合数为j时对应的输出向量;Gt(i)表示在t个逻辑门中存在有i个故障门;符号
Figure BDA0002261902740000074
用于判断符号前后两个向量是否相等,若相等,则输出1;若不相等,则输出0;Y(Gt(0);Xw)表示输入向量为Xw,故障门数量为0时对应的输出向量;In formula (6),
Figure BDA0002261902740000073
Indicates the number of combinations of i fault gates in t logic gates, Y(G t (i): j; X w ) represents the input vector X w , the number of fault gates i, and the corresponding output when the number of combinations is j vector; G t (i) indicates that there are i fault gates in t logic gates; the symbol
Figure BDA0002261902740000074
It is used to judge whether the two vectors before and after the symbol are equal. If they are equal , output 1; if they are not equal, output 0; the corresponding output vector;

化简公式(6)得到:Simplify formula (6) to get:

Figure BDA0002261902740000081
Figure BDA0002261902740000081

公式(7)中,Ti表示故障门数量为i时,输出向量正确的概率;In formula (7), T i represents the probability that the output vector is correct when the number of fault gates is i;

所述电路发生故障门数量满足伯努利分布的随机变量,得到:The number of fault gates in the circuit satisfies the random variable of Bernoulli distribution, and we get:

Figure BDA0002261902740000082
Figure BDA0002261902740000082

将公式(7)代入公式(8)得到:Substitute formula (7) into formula (8) to get:

Figure BDA0002261902740000087
Figure BDA0002261902740000087

所述单故障模拟单元用于对所述电路进行单故障模拟,获取T1值;The single-fault simulation unit is used to perform single - fault simulation on the circuit to obtain the T1 value;

所述双故障模拟单元用于对所述电路进行双故障模拟,获取T2值;The double-fault simulation unit is used to perform double-fault simulation on the circuit to obtain the T2 value;

所述可靠性边界计算单元用于计算所述电路的可靠性边界;The reliability boundary calculation unit is used to calculate the reliability boundary of the circuit;

根据T0=1,将公式(9)重写为:According to T 0 =1, formula (9) is rewritten as:

Figure BDA0002261902740000083
Figure BDA0002261902740000083

公式(10)中,(1-f)t表示所述电路可靠性的保守下限值,

Figure BDA0002261902740000084
表示为所述电路可靠性的i阶分量之和,其中i=(1,2,...,t);In Equation (10), (1-f) t represents a conservative lower limit for the reliability of the circuit,
Figure BDA0002261902740000084
Expressed as the sum of the i-order components of the circuit reliability, where i=(1, 2, . . . , t);

根据公式(10)可得到所述电路可靠性的1阶分量与2阶分量分别为:According to formula (10), it can be obtained that the first-order component and the second-order component of the circuit reliability are:

Figure BDA0002261902740000085
Figure BDA0002261902740000085

Figure BDA0002261902740000086
Figure BDA0002261902740000086

根据公式(10)、公式(11)以及公式(12)得到所述电路的可靠性一阶下限值Rlower1、可靠性一阶上限值Rupper1、可靠性二阶下限值Rlower2以及可靠性二阶上限值Rupper2分别为:According to formula (10), formula (11) and formula (12), the reliability first-order lower limit value R lower1 , the reliability first-order upper limit value R upper1 , the reliability second-order lower limit value R lower2 and The reliability second-order upper limit value R upper2 is:

Rlower1=(1-f)t+R1 (13)R lower1 = (1-f) t + R 1 (13)

Figure BDA0002261902740000091
Figure BDA0002261902740000091

Rlower2=(1-f)t+R1+R2 (15)R lower2 = (1-f) t +R 1 +R 2 (15)

Figure BDA0002261902740000092
Figure BDA0002261902740000092

本发明第二方面提供的受软错误影响的逻辑电路可靠性边界计算装置,至少具有以下有益效果:The device for calculating the reliability boundary of a logic circuit affected by soft errors provided by the second aspect of the present invention has at least the following beneficial effects:

本装置可用于执行本发明第一方面所述的受软错误影响的逻辑电路可靠性边界计算方法,通过本装置能够较好地平衡计算速度和准确性之间的关系,本装置能够为大规模、超大规模甚至更大规模逻辑电路提供软错误可靠性计算。The device can be used to execute the method for calculating the reliability boundary of a logic circuit affected by soft errors described in the first aspect of the present invention. Through the device, the relationship between calculation speed and accuracy can be better balanced, and the device can be used for large-scale , very large-scale and even larger-scale logic circuits provide soft-error reliability calculations.

进一步,所述单故障模拟单元还包括:第一设定单元、第一模拟单元以及第一计算单元;Further, the single-fault simulation unit further includes: a first setting unit, a first simulation unit and a first calculation unit;

所述第一设定单元用于在所述电路中设定随机输入向量的数量以及计数变量;The first setting unit is used to set the number of random input vectors and a counting variable in the circuit;

所述第一模拟单元用于记录所有输入向量在所述电路中模拟运行得到的正常输出向量,遍历所有逻辑门,将所有逻辑门逐一设定为故障门;The first simulation unit is used for recording normal output vectors obtained by simulating all input vectors in the circuit, traversing all logic gates, and setting all logic gates as fault gates one by one;

若将当前的逻辑门设为故障门时,将故障门变换为对应的相反门,模拟相反门在所述电路中运行得到的异常输出向量,若异常输出向量与正常输出向量相同,则计数变量加1,恢复当前的逻辑门,模拟下一个逻辑门;If the current logic gate is set as the fault gate, the fault gate is transformed into the corresponding inverse gate, and the abnormal output vector obtained by simulating the operation of the inverse gate in the circuit, if the abnormal output vector is the same as the normal output vector, the count variable Add 1 to restore the current logic gate and simulate the next logic gate;

所述第一计算单元用于当最后一个逻辑门处理完成后,计算出单故障情况下所述电路输出正确的概率T1The first calculation unit is configured to calculate the correct probability T 1 of the circuit output in the case of a single fault after the processing of the last logic gate is completed.

进一步,所述双故障模拟单元还包括:第二设定单元、第二模拟单元以及第二计算单元;Further, the double-fault simulation unit further includes: a second setting unit, a second simulation unit and a second calculation unit;

所述第二设定单元用于在所述电路中设定随机输入向量的数量、随机双故障逻辑门的数量以及计数变量;The second setting unit is used to set the number of random input vectors, the number of random double fault logic gates and the counting variable in the circuit;

所述第二模拟单元用于记录所有输入向量在所述电路中模拟运行得到的正常输出向量,在所有的输入向量中遍历所有的双故障逻辑门,逐一模拟双故障逻辑门;The second simulation unit is used to record the normal output vectors obtained by simulating operation of all input vectors in the circuit, traverse all the double-fault logic gates in all the input vectors, and simulate the double-fault logic gates one by one;

将当前的双故障逻辑门变换为各自对应的相反门,模拟相反门在所述电路中运行得到的异常输出向量,若异常输出向量与正常输出向量相同,则计数变量加1,恢复当前的双故障逻辑门,模拟下一个双故障逻辑门;Transform the current dual fault logic gates into their corresponding opposite gates, and simulate the abnormal output vector obtained by the operation of the opposite gate in the circuit. If the abnormal output vector is the same as the normal output vector, the count variable is incremented by 1, and the current dual fault output vector is restored. Fault logic gate, simulating the next double fault logic gate;

所述第二计算单元用于当双故障逻辑门全部处理完成后,计算出双故障情况下所述电路输出正确的概率T2The second calculation unit is configured to calculate the correct probability T 2 of the circuit output in the case of double faults after all processing of the double fault logic gates is completed.

本发明的第三方面,提供了一种受软错误影响的逻辑电路可靠性边界计算设备,包括至少一个控制处理器和用于与所述至少一个控制处理器通信连接的存储器;所述存储器存储有可被所述至少一个控制处理器执行的指令,所述指令被所述至少一个控制处理器执行,以使所述至少一个控制处理器能够执行如本发明第一方面所述的受软错误影响的逻辑电路可靠性边界计算方法。In a third aspect of the present invention, there is provided a logic circuit reliability boundary computing device affected by soft errors, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores there are instructions executable by the at least one control processor, the instructions being executed by the at least one control processor to enable the at least one control processor to perform a soft error-sensitive as described in the first aspect of the present invention Affecting logic circuit reliability boundary calculation method.

本发明的第四方面,提供了一种计算机可读存储介质,其特征在于:所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如本发明第一方面所述的受软错误影响的逻辑电路可靠性边界计算方法。A fourth aspect of the present invention provides a computer-readable storage medium, characterized in that: the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause a computer to execute the method according to the fourth aspect of the present invention. In one aspect, a method for calculating the reliability boundary of a logic circuit affected by soft errors is described.

附图说明Description of drawings

下面结合附图和实施例对本发明进一步地说明;Below in conjunction with accompanying drawing and embodiment, the present invention is further described;

图1为本发明实施例提供的组合逻辑模块的结构示意图;1 is a schematic structural diagram of a combinational logic module provided by an embodiment of the present invention;

图2为本发明实施例提供的受软错误影响的逻辑电路可靠性边界计算方法流程示意图。FIG. 2 is a schematic flowchart of a method for calculating a reliability boundary of a logic circuit affected by soft errors according to an embodiment of the present invention.

图3为本发明实施例提供的受软错误影响的逻辑电路可靠性边界计算装置的结构示意图;3 is a schematic structural diagram of an apparatus for calculating the reliability boundary of a logic circuit affected by soft errors according to an embodiment of the present invention;

图4为图3中单故障模拟单元的进一步结构示意图;Fig. 4 is a further structural schematic diagram of the single-fault simulation unit in Fig. 3;

图5为图3中双故障模拟单元的进一步结构示意图;Fig. 5 is a further structural schematic diagram of the double-fault simulation unit in Fig. 3;

图6为发明实施例提供的受软错误影响的逻辑电路可靠性边界计算设备的结构示意图;6 is a schematic structural diagram of a logic circuit reliability boundary computing device affected by soft errors according to an embodiment of the invention;

图7为本发明实施例提供的受软错误影响的逻辑电路可靠性边界计算方法中计算T1和T2所需时间与故障模拟方法的对比示意图;7 is a schematic diagram of comparison between the time required to calculate T 1 and T 2 in the method for calculating the reliability boundary of a logic circuit affected by soft errors provided by an embodiment of the present invention and a fault simulation method;

图8为本发明实施例提供的受软错误影响的逻辑电路可靠性边界计算方法中的实验电路可靠性边界值与R的比较示意图。FIG. 8 is a schematic diagram of a comparison between the reliability boundary value of an experimental circuit and R in the method for calculating the reliability boundary of a logic circuit affected by soft errors according to an embodiment of the present invention.

具体实施方式Detailed ways

本部分将详细描述本发明的具体实施例,本发明之较佳实施例在附图中示出,附图的作用在于用图形补充说明书文字部分的描述,使人能够直观地、形象地理解本发明的每个技术特征和整体技术方案,但其不能理解为对本发明保护范围的限制。This part will describe the specific embodiments of the present invention in detail, and the preferred embodiments of the present invention are shown in the accompanying drawings. Each technical feature and overall technical solution of the invention should not be construed as limiting the protection scope of the invention.

为了方便理解,以下对软错误可靠性进行说明:For ease of understanding, the soft error reliability is described below:

组合逻辑电路的软错误可靠性定义为在软错误的影响下,电路所有输出端的逻辑值保持正确的概率。The soft error reliability of a combinational logic circuit is defined as the probability that the logic values of all outputs of the circuit remain correct under the influence of soft errors.

参照图1所示,包含m个输入和n个输出的组合逻辑电路,电路可靠性R可表示为:Referring to the combinational logic circuit with m inputs and n outputs as shown in FIG. 1, the circuit reliability R can be expressed as:

Figure BDA0002261902740000121
Figure BDA0002261902740000121

在公式(1)中,X和Y分别表示电路的输入向量和输出向量;p(X)表示输入向量为X的概率,p(Y为正确逻辑值|X)表示输入向量为X的情况下,输出向量Y正确的概率。In formula (1), X and Y represent the input vector and output vector of the circuit respectively; p(X) represents the probability that the input vector is X, and p(Y is the correct logical value |X) represents the case where the input vector is X , the probability that the output vector Y is correct.

当所有输入向量等概率发生时,R可表示为:When all input vectors occur with equal probability, R can be expressed as:

Figure BDA0002261902740000122
Figure BDA0002261902740000122

在公式(2)中,Xw表示第w个输入向量;2m表示输入向量的数量;例如第0个输入向量代表的是所有输入位为0的向量;第2m-1个输入向量则指所有输入位为1的向量。In formula (2), X w represents the w-th input vector; 2 m represents the number of input vectors; for example, the 0- th input vector represents a vector with all input bits 0; Refers to a vector with all input bits set to 1.

本实施例使用故障门模型,即所有逻辑门都以特定概率f发生故障,且每个门输出正确与否是相互独立的。利用向量G=(g1,g2,...,gt)表示所有逻辑门的状态,其中,g1=0或者1,(i=1,2,...,t),t表示电路总的逻辑门数,gi=0表示第i个逻辑门处于正常状态,gi=1则表示该门发生故障。再用Gt(k)表示总共t位的向量G中包含k个1,即电路有k个门同时发生故障。用异或非(同或)运算符

Figure BDA0002261902740000123
比较两个向量是否相等:若
Figure BDA0002261902740000124
表示向量Yi和Yj等长且各位对应相等。若施加至电路的输入向量为Xw,且有k个逻辑门发生故障,此时电路还能正常输出需满足的条件是:This embodiment uses a fault gate model, that is, all logic gates fail with a certain probability f, and whether the output of each gate is correct or not is independent of each other. The states of all logic gates are represented by a vector G=(g 1 , g 2 , ..., g t ), where g 1 =0 or 1, (i=1, 2, ..., t), t represents The total number of logic gates in the circuit, gi = 0 indicates that the ith logic gate is in a normal state, and gi = 1 indicates that the gate is faulty. Then use G t (k) to indicate that the vector G with a total of t bits contains k 1s, that is, the circuit has k gates that fail at the same time. Use the exclusive or not (exclusive or) operator
Figure BDA0002261902740000123
Compares two vectors for equality: if
Figure BDA0002261902740000124
Indicates that the vectors Y i and Y j are of equal length and the corresponding bits are equal. If the input vector applied to the circuit is X w , and k logic gates fail, the conditions that the circuit can still output normally are:

Figure BDA0002261902740000125
Figure BDA0002261902740000125

参照图2,本发明的一个实施例,提供了一种受软错误影响的逻辑电路可靠性边界计算方法,应用于组合逻辑电路,包括以下步骤:Referring to FIG. 2, an embodiment of the present invention provides a method for calculating the reliability boundary of a logic circuit affected by soft errors, applied to a combinational logic circuit, including the following steps:

S100、将电路可靠性目标表示为多阶段分量之和;S100, expressing the circuit reliability target as the sum of multi-stage components;

根据故障数量的不同,将电路可靠性R表示为:Depending on the number of failures, the circuit reliability R is expressed as:

Figure BDA0002261902740000131
Figure BDA0002261902740000131

其中,p(k=i)表示故障门数量为i的概率,p(Y为正确逻辑值|k=i)则表示发生故障的逻辑门数为i时,输出向量正确的概率。Among them, p(k=i) represents the probability that the number of faulty gates is i, and p(Y is the correct logic value|k=i) represents the probability that the output vector is correct when the number of faulty logic gates is i.

将R改写为:Rewrite R as:

Figure BDA0002261902740000132
Figure BDA0002261902740000132

其中,Xw表示第w个输入向量;p(Xw)表示输入向量为Xw的概率;p(Y为正确逻辑值|Xw,k=i)表示发生故障的逻辑门数为i,且输入向量为Xw时,输出向量正确的概率。考虑到在电路的t个逻辑门中出现i个故障门的组合数为

Figure BDA0002261902740000133
Figure BDA0002261902740000134
使用Y(Gt(i):j;Xw)
Figure BDA0002261902740000135
表示输入向量为Xw,且i个逻辑门发生故障时,输出向量对应的一种组合情况(情况j)。公式(5)可表示为:Among them, X w represents the w-th input vector; p(X w ) represents the probability that the input vector is X w ; p (Y is the correct logical value |X w , k=i) represents the number of faulty logic gates i, And when the input vector is X w , the probability that the output vector is correct. Considering that the number of combinations of i fault gates in the t logic gates of the circuit is
Figure BDA0002261902740000133
Figure BDA0002261902740000134
Use Y(Gt(i): j ; Xw )
Figure BDA0002261902740000135
It represents a combination situation (case j) corresponding to the output vector when the input vector is X w and i logic gates fail. Formula (5) can be expressed as:

Figure BDA0002261902740000136
Figure BDA0002261902740000136

在公式(6)中,

Figure BDA0002261902740000137
表示在t个逻辑门中出现i个故障门的组合数,Y(Gt(i):j;Xw)表示输入向量为Xw,故障门数量为i,组合数为j时对应的输出向量;Gt(i)表示在t个逻辑门中存在有i个故障门;符号
Figure BDA0002261902740000138
用于判断符号前后两个向量是否相等,若相等,则输出1;若不相等,则输出0;Y(Gt(0);Xw)表示输入向量为Xw,故障门数量为0时对应的输出向量;In formula (6),
Figure BDA0002261902740000137
Indicates the number of combinations of i fault gates in t logic gates, Y(G t (i): j; X w ) represents the input vector X w , the number of fault gates i, and the corresponding output when the number of combinations is j vector; G t (i) indicates that there are i fault gates in t logic gates; the symbol
Figure BDA0002261902740000138
It is used to judge whether the two vectors before and after the symbol are equal. If they are equal , output 1; if they are not equal, output 0; the corresponding output vector;

化简公式(6)得到:Simplify formula (6) to get:

Figure BDA0002261902740000141
Figure BDA0002261902740000141

其中,Ti表示发生故障的逻辑门数为i时,电路的输出向量正确的概率。Among them, T i represents the probability that the output vector of the circuit is correct when the number of faulty logic gates is i.

由于每个逻辑门的出错概率是相互独立的,且出错概率都为f,所以发生故障的逻辑门的数量满足伯努利分布的随机变量。由此可得:Since the error probability of each logic gate is independent of each other, and the error probability is f, the number of failed logic gates satisfies the random variable of Bernoulli distribution. Therefore:

Figure BDA0002261902740000143
Figure BDA0002261902740000143

将公式(7)和公式(8)结合并简化后可表示为:After combining and simplifying formula (7) and formula (8), it can be expressed as:

Figure BDA0002261902740000142
Figure BDA0002261902740000142

S200、对电路进行单故障模拟,获取T1值;S200. Perform single - fault simulation on the circuit to obtain the T1 value;

此步骤的目的是获取T1值。作为一种可实施方式,步骤具体方法如下:The purpose of this step is to get the T1 value. As a kind of embodiment, the concrete method of step is as follows:

(1)在所述电路中设定随机输入向量的数量以及计数变量;(1) Set the number of random input vectors and counting variables in the circuit;

(2)记录所有输入向量在所述电路中模拟运行得到的正常输出向量,遍历所有逻辑门,将所有逻辑门逐一设定为故障门;(2) record the normal output vectors obtained by simulating operation of all input vectors in the circuit, traverse all logic gates, and set all logic gates as fault gates one by one;

(3)若将当前的逻辑门设为故障门时,将故障门变换为对应的相反门,模拟相反门在所述电路中运行得到的异常输出向量,若异常输出向量与正常输出向量相同,则计数变量加1,恢复当前的逻辑门,模拟下一个逻辑门;(3) If the current logic gate is set as the fault gate, the fault gate is transformed into the corresponding opposite gate, and the abnormal output vector obtained by simulating the operation of the opposite gate in the circuit, if the abnormal output vector is the same as the normal output vector, Then the count variable is incremented by 1, the current logic gate is restored, and the next logic gate is simulated;

(4)当最后一个逻辑门处理完成后,计算出单故障情况下所述电路输出正确的概率T1(4) After the processing of the last logic gate is completed, calculate the correct probability T 1 of the circuit output in the case of a single fault.

为了方便理解,以下对“相反门”进行说明:In order to facilitate understanding, the following description of the "reverse gate":

与门和与非门互为“相反门”;或门和或非门互为“相反门”;异或门和同或门互为“相反门”;非门的“相反门”为缓冲门。The AND gate and the NAND gate are mutually "opposite gates"; the OR gate and the NOR gate are mutually "opposite gates"; the XOR gate and the XOR gate are mutually "opposite gates"; the "opposite gate" of the NOT gate is the buffer gate .

S300、对电路进行双故障模拟,获取T2值;S300. Perform double-fault simulation on the circuit to obtain the T 2 value;

此步骤的目的是获取T2值。作为一种可实施方式,步骤具体如下: The purpose of this step is to obtain the T2 value. As an embodiment, the steps are as follows:

(1)在所述电路中设定随机输入向量的数量、随机双故障逻辑门的数量以及计数变量;(1) The number of random input vectors, the number of random double fault logic gates and the counting variable are set in the circuit;

(2)记录所有输入向量在所述电路中模拟运行得到的正常输出向量,在所有的输入向量中遍历所有的双故障逻辑门,逐一模拟双故障逻辑门;(2) record the normal output vectors obtained by simulating the operation of all input vectors in the circuit, traverse all the double-fault logic gates in all the input vectors, and simulate the double-fault logic gates one by one;

(3)将当前的双故障逻辑门变换为各自对应的相反门,模拟相反门在所述电路中运行得到的异常输出向量,若异常输出向量与正常输出向量相同,则计数变量加1,恢复当前的双故障逻辑门,模拟下一个双故障逻辑门;(3) Transform the current dual-fault logic gates into their corresponding opposite gates, and simulate the abnormal output vector obtained by the operation of the opposite gate in the circuit. If the abnormal output vector is the same as the normal output vector, the count variable is incremented by 1 and restored The current double-fault logic gate simulates the next double-fault logic gate;

(4)当双故障逻辑门全部处理完成后,计算出双故障情况下所述电路输出正确的概率T2(4) After the double-fault logic gates are all processed, calculate the correct probability T 2 of the circuit output in the double-fault case.

S400、计算电路的可靠性边界;S400. Calculate the reliability boundary of the circuit;

由于T0=1,将公式(9)改写为:Since T 0 =1, formula (9) is rewritten as:

Figure BDA0002261902740000151
Figure BDA0002261902740000151

这里将(1-f)t记作Rc-lower,表示电路可靠性的保守下限值。公式(10)的后半部分

Figure BDA0002261902740000152
可认为是可靠性R的i(i=1,2,...,t)阶分量之和。Here, (1-f) t is denoted as Rc-lower, which represents a conservative lower limit of circuit reliability. The second half of formula (10)
Figure BDA0002261902740000152
It can be considered as the sum of the i (i=1, 2, . . . , t) order components of the reliability R.

例如:R的1阶分量和2阶分量分别表示为:For example: the 1st and 2nd order components of R are expressed as:

Figure BDA0002261902740000153
Figure BDA0002261902740000153

Figure BDA0002261902740000154
Figure BDA0002261902740000154

逻辑电路可靠性各类边界及对应的表达式定义如下:The various boundaries and corresponding expressions of logic circuit reliability are defined as follows:

可靠性一阶下限为:The first-order lower bound of reliability is:

Rlower1=Rc-lower+R1 (13)R lower1 =R c-lower +R 1 (13)

可靠性一阶上限为:The first-order upper bound for reliability is:

Figure BDA0002261902740000161
Figure BDA0002261902740000161

可靠性二阶下限为:The second-order lower bound of reliability is:

Rlower2=Rc-lower+R1+R2 (15)R lower2 =R c-lower +R 1 +R 2 (15)

可靠性二阶上限为:The second-order upper limit of reliability is:

Figure BDA0002261902740000162
Figure BDA0002261902740000162

根据上述第一步至第四步,可以计算出逻辑电路的可靠性一阶上下限值和二阶上下限值,而对于大规模、超大规模甚至更大规模电路,可靠性二阶上下限值已经非常接近电路可靠性R,且随着单个逻辑单元的故障发生概率f持续减小,这些边界值更接近电路的真实可靠性。According to the above-mentioned steps 1 to 4, the first-order upper and lower limit values and the second-order upper and lower limit values of the reliability of the logic circuit can be calculated. The circuit reliability R is already very close, and as the probability f of failure of a single logic cell continues to decrease, these boundary values are closer to the true reliability of the circuit.

为了证明本方法,图7和图8为本方法的实验结果。In order to demonstrate this method, Figures 7 and 8 are experimental results of this method.

图7中,横坐标表示6个不同规模的实验电路;纵坐标为对数坐标,表示模拟时间,单位为秒;柱形图中最左表示T1,中间表示T2,最右表示故障模拟。针对6个不同规模的实验电路,利用本方法计算T1和T2所需时间远低于故障模拟方法所需时间,也表明本方法计算电路可靠性边界的时间远低于模拟方法计算R所需时间。图8中,根据CMOS电路工艺水平,将f设为1e-4;横坐标表示5个不同规模的实验电路;纵坐标表示可靠性值。Rlower1表示可靠性一阶下限;Rupper1表示可靠性一阶上限;Rlower2表示可靠性二阶下限;Rupper2表示可靠性二阶上限;PGM-Simulation表示模拟得到的电路可靠性R。In Figure 7, the abscissa represents 6 experimental circuits of different scales; the ordinate is the logarithmic coordinate, representing the simulation time, in seconds; the leftmost in the bar graph represents T 1 , the middle represents T 2 , and the far right represents the fault simulation . For 6 experimental circuits of different scales, the time required to calculate T 1 and T 2 using this method is much lower than the time required by the fault simulation method. It takes time. In Figure 8, f is set to 1e-4 according to the CMOS circuit technology level; the abscissa represents five experimental circuits of different scales; the ordinate represents the reliability value. R lower1 indicates the first-order lower limit of reliability; R upper1 indicates the first-order upper limit of reliability; R lower2 indicates the second-order lower limit of reliability; R upper2 indicates the second-order upper limit of reliability; PGM-Simulation indicates the circuit reliability R obtained by simulation.

进一步,对全扫描结构的时序逻辑电路,由于电路触发器都用扫描触发器替代,所有的输入信号,包括扫描触发器的输出都是可控制的,且所有的输出信号包括扫描触发器的输入都是可观测的。因此,用于本实施例方法同样适用于全扫描结构的时序逻辑电路。Further, for a sequential logic circuit with a full scan structure, since the circuit flip-flops are replaced by scan flip-flops, all input signals, including the outputs of the scan flip-flops, are controllable, and all output signals include the input of the scan flip-flops. are all observable. Therefore, the method used in this embodiment is also applicable to the sequential logic circuit of the full scan structure.

与现有技术相比,本实施例是利用概率分布模型,首先将待计算的大规模和超大规模逻辑电路可靠性目标表示为多阶分量之和的形式;然后采用将故障门变换为对应“相反门”的方法模拟单故障和双故障的电路工作情况,以此计算电路在故障发生时的正确输出概率;最后将模拟结果代入可靠性边界表达式即可得到电路可靠性的一阶与二阶上下限。Compared with the prior art, this embodiment uses a probability distribution model, firstly expressing the reliability target of large-scale and ultra-large-scale logic circuits to be calculated as the sum of multi-order components; then transforming the fault gate into the corresponding " The method of "reverse gate" simulates the working conditions of single-fault and double-fault circuits, so as to calculate the correct output probability of the circuit when the fault occurs; finally, the first-order and second-order reliability of the circuit can be obtained by substituting the simulation results into the reliability boundary expression. upper and lower limit.

本方法根据概率模型,只考虑单故障和双故障的情况,将三故障及以上的情况都统一计算到可靠性边界值中,即能保证足够的准确性,又大大节省了计算时间;而在考虑单故障和双故障的过程中,由于采用的是故障模拟的方法,这种方法自身能够很好地解决信号相关性问题。According to the probability model, this method only considers the single-fault and double-fault situations, and uniformly calculates the three-fault and above conditions into the reliability boundary value, which not only ensures sufficient accuracy, but also greatly saves the calculation time; In the process of considering single fault and double fault, because of the fault simulation method, this method can solve the problem of signal correlation very well.

本方法结合故障注入与模拟的思想和概率分布模型,既能处理多瞬态故障的情况,又能很好地解决扇出重汇聚结构引发的信号相关性问题。同时,由于能够较好地平衡计算速度和准确性之间的关系,因此能够适用于大规模和超大规模逻辑电路的可靠性计算。This method combines the idea of fault injection and simulation and the probability distribution model, which can not only deal with the situation of multiple transient faults, but also solve the signal correlation problem caused by the fan-out re-convergence structure. At the same time, because the relationship between calculation speed and accuracy can be well balanced, it can be applied to the reliability calculation of large-scale and ultra-large-scale logic circuits.

参照图3至图5,本发明的另一个实施例,提供了一种受软错误影响的逻辑电路可靠性边界计算装置1000,应用于组合逻辑电路,包括:多阶段分量设定单元1100、单故障模拟单元1200、双故障模拟单元1300以及可靠性边界计算单元1400;3 to 5, another embodiment of the present invention provides a logic circuit reliability boundary calculation device 1000 affected by soft errors, applied to a combinational logic circuit, including: a multi-stage component setting unit 1100, a single a fault simulation unit 1200, a double fault simulation unit 1300, and a reliability boundary calculation unit 1400;

多阶段分量设定单元1100用于将电路可靠性目标表示为多阶段分量之和;The multi-stage component setting unit 1100 is used to express the circuit reliability target as the sum of the multi-stage components;

设定电路有t个逻辑门相互独立且均以特定概率f发生故障,令电路的可靠性R为:It is assumed that the circuit has t logic gates that are independent of each other and all fail with a certain probability f, so that the reliability R of the circuit is:

Figure BDA0002261902740000181
Figure BDA0002261902740000181

公式(5)中,p(k=i)表示故障门数量为i的概率;2m表示输入向量的数量;Y表示输出向量;Xw表示第w个输入向量;p(Xw)表示输入向量为Xw的概率;p(Y为正确逻辑值Xw,k=i)表示输入向量为Xw,故障门数量为i时,输出向量正确的概率;In formula (5), p(k=i) represents the probability that the number of fault gates is i; 2 m represents the number of input vectors; Y represents the output vector; X w represents the wth input vector; p(X w ) represents the input The probability that the vector is Xw ; p(Y is the correct logical value Xw , k=i) indicates the probability that the output vector is correct when the input vector is Xw and the number of fault gates is i;

将公式(5)重写为:Rewrite equation (5) as:

Figure BDA0002261902740000182
Figure BDA0002261902740000182

公式(6)中,

Figure BDA0002261902740000183
表示在t个逻辑门中出现i个故障门的组合数,Y(Gt(i):j;Xw)表示输入向量为Xw,故障门数量为i,组合数为j时对应的输出向量;Gt(i)表示在t个逻辑门中存在有i个故障门;符号
Figure BDA0002261902740000184
用于判断符号前后两个向量是否相等,若相等,则输出1;若不相等,则输出0;Y(Gt(0);Xw)表示输入向量为Xw,故障门数量为0时对应的输出向量;In formula (6),
Figure BDA0002261902740000183
Indicates the number of combinations of i fault gates in t logic gates, Y(G t (i): j; X w ) represents the input vector X w , the number of fault gates i, and the corresponding output when the number of combinations is j vector; G t (i) indicates that there are i fault gates in t logic gates; the symbol
Figure BDA0002261902740000184
It is used to judge whether the two vectors before and after the symbol are equal. If they are equal , output 1; if they are not equal, output 0; the corresponding output vector;

化简公式(6)得到:Simplify formula (6) to get:

Figure BDA0002261902740000185
Figure BDA0002261902740000185

公式(7)中,Ti表示故障门数量为i时,输出向量正确的概率;In formula (7), T i represents the probability that the output vector is correct when the number of fault gates is i;

电路发生故障门数量满足伯努利分布的随机变量,得到:The number of fault gates in the circuit satisfies the random variable of Bernoulli distribution, we get:

Figure BDA0002261902740000191
Figure BDA0002261902740000191

将公式(7)代入公式(8)得到:Substitute formula (7) into formula (8) to get:

Figure BDA0002261902740000192
Figure BDA0002261902740000192

单故障模拟单元1200用于对电路进行单故障模拟,获取T1值;The single-fault simulation unit 1200 is used to perform single - fault simulation on the circuit to obtain the T1 value;

双故障模拟单元1300用于对电路进行双故障模拟,获取T2值;The double-fault simulation unit 1300 is used to simulate double -faults on the circuit to obtain the T2 value;

可靠性边界计算单元1400用于计算电路的可靠性边界;The reliability boundary calculation unit 1400 is used to calculate the reliability boundary of the circuit;

根据T0=1,将公式(9)重写为:According to T 0 =1, formula (9) is rewritten as:

Figure BDA0002261902740000193
Figure BDA0002261902740000193

公式(10)中,(1-f)t表示电路可靠性的保守下限值,

Figure BDA0002261902740000194
表示为电路可靠性的i阶分量之和,其中i=(1,2,...,t);In equation (10), (1-f) t represents the conservative lower limit of circuit reliability,
Figure BDA0002261902740000194
Expressed as the sum of the i-order components of circuit reliability, where i=(1, 2, . . . , t);

根据公式(10)可得到电路可靠性的1阶分量与2阶分量分别为:According to formula (10), the first-order component and second-order component of circuit reliability can be obtained as:

Figure BDA0002261902740000195
Figure BDA0002261902740000195

Figure BDA0002261902740000196
Figure BDA0002261902740000196

根据公式(10)、公式(11)以及公式(12)得到电路的可靠性一阶下限值Rlower1、可靠性一阶上限值Rupper1、可靠性二阶下限值Rlower2以及可靠性二阶上限值Rupper2分别为:According to formula (10), formula (11) and formula (12), the reliability first-order lower limit value R lower1 , the reliability first-order upper limit value R upper1 , the reliability second-order lower limit value R lower2 and the reliability of the circuit are obtained according to formula (10), formula (11) and formula (12). The second-order upper limit values R upper2 are:

Rlower1=(1-f)t+R1 (13)R lower1 = (1-f) t + R 1 (13)

Figure BDA0002261902740000197
Figure BDA0002261902740000197

Rlower2=(1-f)t+R1+R2 (15)R lower2 = (1-f) t +R 1 +R 2 (15)

Figure BDA0002261902740000201
Figure BDA0002261902740000201

进一步,单故障模拟单元1200还包括:第一设定单元1210、第一模拟单元1220以及第一计算单元1230;Further, the single-fault simulation unit 1200 further includes: a first setting unit 1210, a first simulation unit 1220 and a first calculation unit 1230;

第一设定单元1210用于在电路中设定随机输入向量的数量以及计数变量;The first setting unit 1210 is used to set the number of random input vectors and counting variables in the circuit;

第一模拟单元1220用于记录所有输入向量在电路中模拟运行得到的正常输出向量,遍历所有逻辑门,将所有逻辑门逐一设定为故障门;The first simulation unit 1220 is used to record the normal output vectors obtained by simulating operation of all input vectors in the circuit, traverse all logic gates, and set all logic gates as fault gates one by one;

若将当前的逻辑门设为故障门时,将故障门变换为对应的相反门,模拟相反门在电路中运行得到的异常输出向量,若异常输出向量与正常输出向量相同,则计数变量加1,恢复当前的逻辑门,模拟下一个逻辑门;If the current logic gate is set as the fault gate, the fault gate is transformed into the corresponding inverse gate, and the abnormal output vector obtained by simulating the operation of the inverse gate in the circuit, if the abnormal output vector is the same as the normal output vector, the count variable is incremented by 1 , restore the current logic gate and simulate the next logic gate;

第一计算单元1230用于当最后一个逻辑门处理完成后,计算出单故障情况下电路输出正确的概率T1The first calculation unit 1230 is configured to calculate the correct probability T 1 of the circuit output in the case of a single fault after the processing of the last logic gate is completed.

进一步,双故障模拟单元1300还包括:第二设定单元1310、第二模拟单元1320以及第二计算单元1330;Further, the double-fault simulation unit 1300 further includes: a second setting unit 1310, a second simulation unit 1320 and a second calculation unit 1330;

第二设定单元1310用于在电路中设定随机输入向量的数量、随机双故障逻辑门的数量以及计数变量;The second setting unit 1310 is used to set the number of random input vectors, the number of random double-fault logic gates and the counting variable in the circuit;

第二模拟单元1320用于记录所有输入向量在电路中模拟运行得到的正常输出向量,在所有的输入向量中遍历所有的双故障逻辑门,逐一模拟双故障逻辑门;The second simulation unit 1320 is configured to record the normal output vectors obtained by simulating the operation of all input vectors in the circuit, traverse all the double-fault logic gates in all the input vectors, and simulate the double-fault logic gates one by one;

将当前的双故障逻辑门变换为各自对应的相反门,模拟相反门在电路中运行得到的异常输出向量,若异常输出向量与正常输出向量相同,则计数变量加1,恢复当前的双故障逻辑门,模拟下一个双故障逻辑门;Transform the current double-fault logic gates into their corresponding opposite gates, and simulate the abnormal output vector obtained by the operation of the opposite gate in the circuit. If the abnormal output vector is the same as the normal output vector, the count variable is incremented by 1 to restore the current double-fault logic. gate to simulate the next double fault logic gate;

第二计算单元1330用于当双故障逻辑门全部处理完成后,计算出双故障情况下电路输出正确的概率T2The second calculation unit 1330 is configured to calculate the correct probability T 2 of the circuit output in the case of double faults after all the processing of the double fault logic gates is completed.

需要说明的是,由于本实施例中的一种受软错误影响的逻辑电路可靠性边界计算装置与上述的一种受软错误影响的逻辑电路可靠性边界计算方法基于相同的发明构思,因此,方法实施例中的相应内容同样适用于本装置实施例,此处不再详述。It should be noted that, since the device for calculating the reliability boundary of a logic circuit affected by soft errors in this embodiment and the above-mentioned method for calculating the reliability boundary of a logic circuit affected by soft errors are based on the same inventive concept, therefore, Corresponding contents in the method embodiments are also applicable to the device embodiments, and will not be described in detail here.

参照图6,本发明的另一个实施例,还提供了一种受软错误影响的逻辑电路可靠性边界计算设备6000;该设备可以是任意类型的智能终端,例如手机、平板电脑、个人计算机等。6, another embodiment of the present invention also provides a logic circuit reliability boundary computing device 6000 affected by soft errors; the device can be any type of intelligent terminal, such as a mobile phone, a tablet computer, a personal computer, etc. .

具体的,该设备包括:一个或多个控制处理器6001和存储器6002,图6中以一个控制处理器6001与一个存储器6002为例,控制处理器6001和存储器6002可以通过总线或者其他方式连接,图6中以通过总线连接为例。Specifically, the device includes: one or more control processors 6001 and a memory 6002. In FIG. 6, a control processor 6001 and a memory 6002 are taken as an example. The control processor 6001 and the memory 6002 can be connected by a bus or in other ways. In FIG. 6, the connection through the bus is taken as an example.

存储器6002作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态性计算机可执行程序以及模块,如本发明实施例中的一种受软错误影响的逻辑电路可靠性边界计算设备对应的程序指令/模块,控制处理器6001通过运行存储在存储器6002中的非暂态软件程序、指令以及模块,从而执行该受软错误影响的逻辑电路可靠性边界计算装置1000的各种功能应用以及数据处理,即实现上述方法实施例的受软错误影响的逻辑电路可靠性边界计算方法。The memory 6002, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as a logic circuit affected by soft errors in an embodiment of the present invention Program instructions/modules corresponding to the reliability boundary computing device, the control processor 6001 executes the logic circuit reliability boundary computing device 1000 affected by the soft error by running the non-transitory software programs, instructions and modules stored in the memory 6002 Various functional applications and data processing of , that is, the method for calculating the reliability boundary of a logic circuit affected by soft errors in the above method embodiments.

存储器6002可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据受软错误影响的逻辑电路可靠性边界计算装置1000的使用所创建的数据等。此外,存储器6002可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器6002可选包括相对于控制处理器6001远程设置的存储器,这些远程存储器可以通过网络连接至该受软错误影响的逻辑电路可靠性边界计算设备6000。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 6002 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function; the storage data area may store the computing device 1000 according to the reliability boundary of the logic circuit affected by soft errors using the created data, etc. Additionally, memory 6002 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 6002 may optionally include memory located remotely from control processor 6001 that may be connected to the soft error affected logic circuit reliability boundary computing device 6000 via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

在一个或者多个模块存储在存储器6002中,当被该一个或者多个控制处理器6001执行时,执行上述方法实施例中的一种受软错误影响的逻辑电路可靠性边界计算方法,例如执行以上描述的图2中的方法步骤S100至S400。One or more modules are stored in the memory 6002, and when executed by the one or more control processors 6001, execute a method for calculating the reliability boundary of a logic circuit affected by soft errors in the above method embodiments, for example, executing The method steps S100 to S400 in FIG. 2 described above.

本发明的另一个实施例,还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机可执行指令,计算机可执行指令用于使计算机执行如上述实施例的一种受软错误影响的逻辑电路可靠性边界计算方法,例如执行以上描述的图2中的方法步骤S100至S400。Another embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause a computer to execute a software-controlled storage medium as described above. The error-affected logic circuit reliability boundary calculation method, for example, executes the method steps S100 to S400 in FIG. 2 described above.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The apparatus embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

通过以上的实施方式的描述,本领域技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现。本领域技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,该程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform. Those skilled in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, A flow as an embodiment of the above-described method may be included. The storage medium may be a magnetic disk, an optical disk, a read only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like.

上面结合附图对本发明实施例作了详细说明,但是本发明不限于上述实施例,在技术领域普通技术人员所具备的知识范围内,还可以在不脱离本发明宗旨的前提下作出各种变化。The embodiments of the present invention have been described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned embodiments, and within the scope of knowledge possessed by those of ordinary skill in the technical field, various changes can also be made without departing from the purpose of the present invention. .

Claims (8)

1. A method for calculating the reliability boundary of a logic circuit affected by a soft error is applied to a combinational logic circuit and is characterized by comprising the following steps:
a first step of representing a circuit reliability target as a sum of multi-stage components;
setting t logic gates of the circuit to be mutually independent and generate faults with a specific probability f, and enabling the reliability R of the circuit to be as follows:
Figure FDA0003610120820000011
in formula (5), p (k ═ i) represents the probability that the number of failed gates is i; 2mRepresenting the number of input vectors; y represents an output vector; xwRepresents the w-th input vector; p (X)w) Representing the input vector as XwThe probability of (d); p (Y is the correct logical value | X)wK ═ i) denotes that the input vector is XwWhen the number of the fault gates is i, outputting the probability of vector correctness;
rewrite equation (5) to:
Figure FDA0003610120820000012
in the formula (6), the first and second groups of the compound,
Figure FDA0003610120820000013
indicating the number of combinations of i faulty gates out of t logic gates, Y (G)t(i):j;Xw) Representing the input vector as XwThe corresponding output vector when the number of the fault gates is i and the combination number is j; gt(i) Indicating that there are i failed gates out of the t logic gates; symbol
Figure FDA0003610120820000014
The method is used for judging whether the two vectors before and after the symbol are equal, and if so, outputting 1; if not, outputting 0; y (G)t(0);Xw) Representing the input vector as XwOutput vectors corresponding to the number of the fault gates being 0;
reducing equation (6) yields:
Figure FDA0003610120820000021
in the formula (7), TiWhen the number of the fault gates is i, the probability of the correct vector is output;
the number of failed gates of the circuit meets the random variable of Bernoulli distribution, and the following results are obtained:
Figure FDA0003610120820000022
substituting equation (7) into equation (8) yields:
Figure FDA0003610120820000023
second step, pairThe circuit performs single fault simulation to obtain T1A value;
thirdly, performing double-fault simulation on the circuit to obtain T2A value;
fourthly, calculating a reliability boundary of the circuit;
according to T0When 1, formula (9) is rewritten as:
Figure FDA0003610120820000024
in the formula (10), (1-f)tA conservative lower limit value representing the reliability of the circuit,
Figure FDA0003610120820000025
expressed as the sum of the i-th order components of the circuit reliability, where i is 1,2, …, t;
the 1 st order component and the 2 nd order component of the circuit reliability can be obtained according to the formula (10) as follows:
Figure FDA0003610120820000026
Figure FDA0003610120820000027
obtaining a first-order reliability lower limit value R of the circuit according to the formula (10), the formula (11) and the formula (12)lower1First order upper limit of reliability Rupper1Second order lower limit of reliability Rlower2And a second order upper limit value R of reliabilityupper2Respectively as follows:
Rlower1=(1-f)t+R1 (13)
Figure FDA0003610120820000031
Rlower2=(1-f)t+R1+R2 (15)
Figure FDA0003610120820000032
2. the method of claim 1, wherein said single fault simulation of said circuit to obtain T is performed to obtain a reliability bound of said logic circuit affected by soft errors1Values, further comprising:
setting the number of random input vectors and a counting variable in the circuit;
recording normal output vectors obtained by simulating the operation of all input vectors in the circuit, traversing all logic gates, and setting all logic gates as fault gates one by one;
if the current logic gate is set as a fault gate, the fault gate is converted into a corresponding opposite gate, an abnormal output vector obtained by the operation of the opposite gate in the circuit is simulated, if the abnormal output vector is the same as the normal output vector, the counting variable is increased by 1, the current logic gate is recovered, and the next logic gate is simulated;
when the last logic gate is processed, the probability T that the circuit outputs correctly under the condition of single fault is calculated1
3. The method of claim 1, wherein the performing double-fault simulation on the circuit to obtain T is characterized in that2Values, further comprising:
setting the number of random input vectors, the number of random double-fault logic gates and a counting variable in the circuit;
recording normal output vectors obtained by simulating operation of all input vectors in the circuit, traversing all double-fault logic gates in all the input vectors, and simulating the double-fault logic gates one by one;
converting the current double-fault logic gate into respective corresponding opposite gates, simulating an abnormal output vector obtained by the operation of the opposite gates in the circuit, if the abnormal output vector is the same as the normal output vector, adding 1 to the counting variable, recovering the current double-fault logic gate, and simulating the next double-fault logic gate;
when the double-fault logic gate is completely processed, the probability T that the circuit outputs the correct output under the condition of double faults is calculated2
4. A logic circuit reliability boundary calculation device affected by soft errors, applied to a combinational logic circuit, is characterized by comprising: a multi-stage component setting unit, a single-fault simulation unit, a double-fault simulation unit and a reliability boundary calculation unit;
the multi-stage component setting unit is used for representing the circuit reliability target as the sum of the multi-stage components;
setting t logic gates of the circuit to be mutually independent and generate faults with a specific probability f, and enabling the reliability R of the circuit to be as follows:
Figure FDA0003610120820000041
in equation (5), p (k ═ i) represents the probability 2 that the number of faulty gates is imRepresenting the number of input vectors; y represents an output vector; xwRepresents the w-th input vector; p (X)w) Representing the input vector as XwThe probability of (d); p (Y is the correct logical value X)wK ═ i) denotes that the input vector is XwWhen the number of the fault gates is i, outputting the probability of vector correctness;
rewrite equation (5) to:
Figure FDA0003610120820000042
in the formula (6), the first and second groups,
Figure FDA0003610120820000043
indicating the number of combinations of i faulty gates out of t logic gates, Y (G)t(i):j;Xw) Representing the input vector as XwThe corresponding output vector when the number of the fault gates is i and the combination number is j; gt(i) Indicating that there are i failed gates out of the t logic gates; symbol
Figure FDA0003610120820000051
The method is used for judging whether the front vector and the rear vector of the symbol are equal or not, and if so, outputting 1; if not, outputting 0; y (G)t(0);Xw) Representing the input vector as XwThe corresponding output vector when the number of the fault gates is 0;
reducing equation (6) yields:
Figure FDA0003610120820000052
in the formula (7), TiWhen the number of the fault gates is i, the probability of the correct vector is output;
the number of failed gates of the circuit meets the random variable of Bernoulli distribution, and the following results are obtained:
Figure FDA0003610120820000053
substituting equation (7) into equation (8) yields:
Figure FDA0003610120820000054
the single fault simulation unit is used for carrying out single fault simulation on the circuit to obtain T1A value;
the double-fault simulation unit is used for carrying out double-fault simulation on the circuit to obtain T2A value;
the reliability boundary calculation unit is used for calculating the reliability boundary of the circuit;
according toT0When 1, formula (9) is rewritten as:
Figure FDA0003610120820000055
in the formula (10), (1-f)tA conservative lower limit value representing the reliability of the circuit,
Figure FDA0003610120820000056
expressed as the sum of the i-th order components of the circuit reliability, where i is 1,2, …, t;
the 1 st order component and the 2 nd order component of the circuit reliability can be obtained according to the formula (10) as follows:
Figure FDA0003610120820000061
Figure FDA0003610120820000062
obtaining a first-order reliability lower limit value R of the circuit according to the formula (10), the formula (11) and the formula (12)lower1First order upper limit of reliability Rupper1Second order lower limit of reliability Rlower2And a second order upper limit value R of reliabilityupper2Respectively as follows:
Rlower1=(1-f)t+R1 (13)
Figure FDA0003610120820000063
Rlower2=(1-f)t+R1+R2 (15)
Figure FDA0003610120820000064
5. the soft-error affected logic circuit reliability boundary computation apparatus of claim 4, wherein the single-fault simulation cell further comprises: the device comprises a first setting unit, a first simulation unit and a first calculation unit;
the first setting unit is used for setting the number of random input vectors and a counting variable in the circuit;
the first simulation unit is used for recording normal output vectors obtained by simulating operation of all input vectors in the circuit, traversing all logic gates and setting all logic gates as fault gates one by one;
if the current logic gate is set as a fault gate, the fault gate is converted into a corresponding opposite gate, an abnormal output vector obtained by the operation of the opposite gate in the circuit is simulated, if the abnormal output vector is the same as the normal output vector, the counting variable is increased by 1, the current logic gate is recovered, and the next logic gate is simulated;
the first calculating unit is used for calculating the probability T of the circuit output correctness under the condition of single fault after the last logic gate finishes the processing1
6. The soft-error affected logic circuit reliability boundary computation apparatus of claim 4, wherein the double-fault simulation unit further comprises: the device comprises a second setting unit, a second simulation unit and a second calculation unit;
the second setting unit is used for setting the number of random input vectors, the number of random double-fault logic gates and a counting variable in the circuit;
the second simulation unit is used for recording normal output vectors obtained by simulating operation of all input vectors in the circuit, traversing all double-fault logic gates in all input vectors and simulating the double-fault logic gates one by one;
converting the current double-fault logic gate into respective corresponding opposite gates, simulating an abnormal output vector obtained by the operation of the opposite gates in the circuit, if the abnormal output vector is the same as the normal output vector, adding 1 to the counting variable, recovering the current double-fault logic gate, and simulating the next double-fault logic gate;
the second calculating unit is used for calculating the probability T that the circuit outputs the correct output under the condition of double faults after the double-fault logic gate finishes all processing2
7. A logic circuit reliability boundary computation device affected by soft errors, characterized by: comprises at least one control processor and a memory for communicative connection with the at least one control processor; the memory stores instructions executable by the at least one control processor to enable the at least one control processor to perform a soft error affected logic circuit reliability boundary calculation method as claimed in any one of claims 1 to 3.
8. A computer-readable storage medium characterized by: the computer-readable storage medium stores computer-executable instructions for causing a computer to perform a soft-error affected logic circuit reliability boundary calculation method as recited in any one of claims 1-3.
CN201911074272.5A 2019-11-06 2019-11-06 A method and device for calculating the reliability boundary of logic circuits affected by soft errors Active CN111008507B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911074272.5A CN111008507B (en) 2019-11-06 2019-11-06 A method and device for calculating the reliability boundary of logic circuits affected by soft errors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911074272.5A CN111008507B (en) 2019-11-06 2019-11-06 A method and device for calculating the reliability boundary of logic circuits affected by soft errors

Publications (2)

Publication Number Publication Date
CN111008507A CN111008507A (en) 2020-04-14
CN111008507B true CN111008507B (en) 2022-06-03

Family

ID=70111028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911074272.5A Active CN111008507B (en) 2019-11-06 2019-11-06 A method and device for calculating the reliability boundary of logic circuits affected by soft errors

Country Status (1)

Country Link
CN (1) CN111008507B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112733475A (en) * 2020-12-31 2021-04-30 武汉第二船舶设计研究所(中国船舶重工集团公司第七一九研究所) Method for evaluating reliability of combined circuit of control system signal probability
CN112818618B (en) * 2021-02-01 2022-05-17 上海电力大学 Approximate calculation circuit reliability evaluation method based on signal probability
CN113962175B (en) * 2021-11-15 2025-07-22 海光信息技术股份有限公司 Reliability factor determining method, reliability evaluating method and related equipment
CN116467131B (en) * 2023-06-19 2023-08-25 上海芯联芯智能科技有限公司 ECC function verification method, device, medium and equipment of processor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012047735A2 (en) * 2010-09-29 2012-04-12 The Regents Of The University Of California In-place resynthesis and remapping techniques for soft error mitigation in fpga
CN109145480A (en) * 2018-09-03 2019-01-04 长沙理工大学 A kind of Nanometer integrated circuit reliability estimation method under the influence of more transient faults
CN109507566A (en) * 2018-11-17 2019-03-22 长沙理工大学 The failure simulation method of logic circuit single-particle Dual Failures

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050049846A1 (en) * 2003-08-25 2005-03-03 Legend Design Technology, Inc. Timing soft error check
US20070226572A1 (en) * 2005-11-07 2007-09-27 Ming Zhang Soft error rate analysis system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012047735A2 (en) * 2010-09-29 2012-04-12 The Regents Of The University Of California In-place resynthesis and remapping techniques for soft error mitigation in fpga
CN109145480A (en) * 2018-09-03 2019-01-04 长沙理工大学 A kind of Nanometer integrated circuit reliability estimation method under the influence of more transient faults
CN109507566A (en) * 2018-11-17 2019-03-22 长沙理工大学 The failure simulation method of logic circuit single-particle Dual Failures

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CMOS存储单元电路抗单粒子翻转加固设计研究;齐春华;《中国博士学位论文全文数据库 信息科技辑》;20190115;全文 *
Fast and accurate SER estimation for large combinational blocks in early stages of the design;Anglada M等;《IEEE Trans Sustain Comput》;20181213;全文 *

Also Published As

Publication number Publication date
CN111008507A (en) 2020-04-14

Similar Documents

Publication Publication Date Title
CN111008507B (en) A method and device for calculating the reliability boundary of logic circuits affected by soft errors
EP3571609A1 (en) Neural network based physical synthesis for circuit designs
Xiao et al. A fast and effective sensitivity calculation method for circuit input vectors
Xiao et al. Gate‐Level Circuit Reliability Analysis: A Survey
Cai et al. Single event transient propagation probabilities analysis for nanometer CMOS circuits
CN114528130B (en) A Reliability Analysis Method and Apparatus for Intelligent Systems Addressing Soft Faults
Franco et al. Reliability analysis of logic circuits based on signal probability
Li et al. Joint soft-error-rate (ser) estimation for combinational logic and sequential elements
Zhao Benchmarking machine learning models for quantum error correction
Fatemieh et al. Energy‐Efficient Approximate Full Adders Applying Memristive Serial IMPLY Logic for Image Processing
Rakesh et al. Glaape: Graph learning assisted average power estimation for gate-level combinational designs
CN109507566B (en) Fault Simulation Method for Single Event Double Fault in Logic Circuit
CN108073989B (en) Combinational logic circuit selective reinforcement method based on Bayesian probability model
Babu et al. Efficient techniques for fault detection and correction of reversible circuits
KR101297484B1 (en) Method for modeling error of system on chip
Roelke et al. Analytical models for the performance of von Neumann multiplexing
Bal et al. Extreme Learning Machine based Linear Homogeneous Ensemble for Software Fault Prediction.
CN104102562A (en) Cellular automata-based single particle soft error system level propagation analysis method
Vaghef et al. Node-to-node error sensitivity analysis using a graph based approach for VLSI logic circuits
Cai et al. Circuit reliability analysis using signal reliability correlations
Hamad et al. Identification of soft error glitch-propagation paths: Leveraging sat solvers
Stempkovskiy et al. Accurate soft error rate reduction using modified resolution method
Grandhi et al. Reliability analysis of logic circuits using probabilistic techniques
An et al. Accurate reliability analysis of concurrent checking circuits employing an efficient analytical method
Kalbarczyk et al. Hierarchical approach to accurate fault modeling for system evaluation

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