



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Soft errors are emerging as a significant reliability problem for modern VLSI designs. This paper presents an efficient probability transfer matrix (PTM)-based methodology for soft error reliability verification for sequential circuits. First, we propose to use the time frame expansion strategy to avoid the runtime state explosion. This technique also enables us to represent the sequential circuit at each time frame as a combinational circuit. Then the circuit partition strategy is demonstrated to divide the original large circuit to smaller sub-circuits. This divide-and-conquer scheme helps to efficiently extract the fanout free and re-convergence regions from each sub-circuit. For further improvement, we also propose a heterogeneous PTM construction method, which uses different strategies for the sub-circuits with different characteristics. Thus, the proposed methodology can handle circuits with tens of thousands of gates with high accuracy. Experimental results on a variety of benchmarks show the proposed methodology reduce the complexity of PTM construction by around 10^23 7 × compared with the original PTM construction method in [9] for ISCAS c1238. Moreover it can complete a 100-cycle reliability analysis for a large circuit with around 20K gates within 12 minutes.
Soft error, probability transfer matrix, reliability
The emergence of soft errors caused by cosmic rays or high energy particles has become a serious problem for modern VLSI design due to the shrinking feature size and decreasing supply voltage [1]. Some soft errors on the internal device, e.g. single event transient (SET), may propagate to the output node and cause an erroneous latched value of the flip flop and eventually the function failure. The frequency of these errors is characterized by Soft Error Rate (SER). Researches [1, 2] show that SER in modern VLSI is posing a threat now and will continually increase, especially on the memory elements and some aviation or military computers. Thus, it is of crucial importance to have efficient estimation algorithms for reliability analysis.
In recent years, many works have studied the modeling and analysis of soft errors on combinational circuits [3-9]. The general techniques to evaluate the SER can be categorized into three classes: (1) SPICE model-based algorithms [3-5], (2) signal propagation-based algorithms [6, 7], and (3) probability networks- based algorithms [8, 9]. SPICE model-based methods focus on the transistor level, and their single event upset (SEU) parameters are more complicated than the methods in the other two classes. A
SPICE model-based SEU may contain the error signal amplitude, pulse width, and bias condition (input vector). Works in [3-5] use preliminary data or curves of gates from SPICE engine to speed up the computation with little loss of accuracy. Zhang, et. al. , showed in [3] that their method can be applied to circuits with thousands of gates by encoding and propagating errors with BDDs and SPICE models. The fault models used in the other two classes are simpler than the SPICE-based model. Those fault models usually contain no error duration or voltage, but allow different combinations of gate types mapped to different probabilities [6-9]. Choudhury, et. al. used observed facts to eliminate unnecessary signal propagation paths, and take transitions of input signals into consideration [6]. They assumed that only odd numbers of errors can be observed at an output pin, and even numbers of errors will be masked by each other. However, this assumption may be unreasonable for complicated circuits with multiple stages. Asadi, et. al. in [7] computed individual error probability from all possible paths to one output of a single error first, and then evaluate the SER as the sum of all the probabilities to output gates. Both [6] and [7] are much faster than the probability network- based algorithms in [8, 9], but also suffer the same problems: (1) they may overestimate the error probability as only parts of the conditional probabilities are considered, and (2) the accuracy of the SER will decrease as the number of SEUs increases. In other words, they have the best performance when only single SEU occurs. Clearly, this is not the case for most circuits, which in turn may restrict the wide application of the methods in [6, 7].
Unlike the works in [3-7], probability network-based algorithms [8, 9] are good at handling complex conditional probabilities (relationship) as they can perform multiple errors computation implicitly. In [9], an evaluation method using probability transfer matrices (PTMs) is proposed for combinational circuits. With the PTM method, each gate in a combinational circuit is represented by a matrix. Each entry of the matrix represents one possible input and output combination. Since a PTM contains all the possible combinations, the results of a PTM therefore cover all the possible scenarios implicitly. However the major problem of the current PTM is its time/space complexity. In order to maintain the correct joint conditional probabilities among levels, auxiliary matrices such as fanout matrices and swap matrices, will be inserted. After that the tensor operations are applied, which makes the complexity grow exponentially w.r.t. the circuit size for both memory and run time. The size of the PTM is generally 2(#. of primary inputs) (^) × 2 (#. of primary outputs). Experimental results in [9] indicated that the scalability of the PTM method is limited to 100 gates. Thus the application of current PTM is restricted by the number of primary inputs and outputs and impractical for modern VLSI circuits.
In this work we develop a novel PTM-based reliability evaluation methodology for soft errors of sequential circuits. The proposed framework combines time-frame expansion, sequential circuit partition, heterogeneous PTM construction, and quasi-Monte Carlo sampling. First, our framework uses a single time frame to evaluate the reliability at each cycle instead of unrolling the circuit for hundreds of cycles, which avoids the runtime state explosion. After that, we develop a circuit partition algorithm to avoid generating a large PTM. In addition, we also propose a heterogeneous PTM (HPTMs) construction algorithm to classify the circuit to fanout free and re-convergent parts, and perform direct constriction and quasi-Monte Carlo sampling to generate the PTMs for sub-circuits. Finally the results from each individual sub-circuit are re-combined. To the best of knowledge, this is the first work that attempts to evaluate the SER for sequential circuits. The experimental results show that this algorithm can provide significant scalability as well as greater performance in both run ime and memory. The main contributions of this paper are:
(1) We propose an efficient PTM framework to evaluate SER for sequential circuits,
(2) A circuit-partition based algorithm is developed for fast soft error reliably evaluation for sequential circuits,
(3) We demonstrate a heterogeneous PTM method to apply different PTM construction for different sub-circuits;
(4) The scalability of the original PTM method is well extended.
The remainder of this report is organized as follows. Section 2 introduces fundamental theories and related algorithms of PTMs. Section 3 outlines the proposed PTM-based reliability framework for sequential circuits. Section 4 discusses the experimental results of sequential PTMs. Section 5 concludes the report.
Soft errors can be characterized by the probabilistic models due to its intrinsic temporal and spatial uncertainty. Krishnaswamy, et. al. proposed the Probabilistic Transfer Matrices (PTMs) in [9] to illustrate the probabilistic behavior of a circuit. The row corresponds to the possible input vectors whereas the column corresponds to the possible output vectors. A entry at the j th row and k th column of the PTM denotes the probability of output signal O =( o 0 , o 1 , … on ) with a value of k given the specific input signal
I =( i 0 , i 1, … im ) with a value of j , i.e. prob ( O = k | I = j ).
Figure 1 shows a 2-input NAND gate cell and its corresponding probabilistic transfer matrix. The PTM of the 2-input NAND gate contains all possible input combinations, from 00 to 11, as well as all the output combinations, 0 and 1 for one bit output. Then the probability for each input/output pair can be computed and filled in as the entry of the matrix. For example, suppose I =( a, b )=(0, 1). Then we have the corresponding probabilities for c =0 and c =1, which are prob ( c =0| a =0, b =1)= p , and prob ( c =0| a =0, b =1) = 1- p ; respectively. In other words, the output bit will be flipped with the probability p under the given input vector.
Figure 1. A 2-input NAND gate cell and the corresponding PTM with soft error probability p****.
One can observe that if the error distribution of a PTM is uniform ( e.g. the probability of the output bit flipped to an error is the same for any input vector), the PTM can be further compressed for memory saving. Bahar, et. al. showed in [10] how to represent a matrix and perform multiplication operations with Algebraic Decision Diagrams (ADDs). ADDs are an extension of Binary Decision Diagrams (BDDs), and can be considered as a BDD with multiple terminals of real numbers, other than {0, 1}. Similar to BDDs, ADDs are canonical. In addition, ADDs do not store redundant sub-trees. For an ADD-encoded matrix, the nodes represent decisions on row and column variables, and terminals represent values of matrix entries. Hence, one can take the advantage of efficient memory usage by recombining the graph topologies and representing entries in a more compact way. An example of ADD is shown in Figure 2.
Figure 2. An example of an ADD-compressed matrix
For the PTM of a 2-input NAND gate, the simplified matrix represented by the ADDs technique contains only 5 nodes (excluding two terminals) and has a compress rate of 0. compared with the original matrix. Furthermore, ADDs can guarantee log(N) search time, where N is the number of real numbers stored in ADDs.
There are two major matrix operations in PTM evaluation procedure: tensor operation and multiplication. Tensor is a multi- linear function for matrix. Given a matrix A and another matrix B, the tensor operation A ⊗ B is: A ⊗ B = [aij × B]i,j Figure 3 shows the tensor operation for a NOT and a NAND gate:
00
01
10
11
c=0 c=
soft error probability
a b
a
b
c
Recall that additional auxiliary matrices insertion and tensor operations are repeatedly performed to maintain the correct order between two adjacent topological levels and generate the joint conditional probability matrices. Both auxiliary matrices insertion and tensor operation may degrade the performance of the PTM method. In addition, the original PTM method in [9] tends to generate a huge single matrix as the circuit PTM, which is impractical for sequential circuits with more than hundreds of gates.
Based on our observation, for a fanout free circuit, gates at the same topological level are mutually probability independent. In other words, it is not necessary to generate the PTM for a fanout free circuit. The output error probability of any gate can be generated only with the PTMs for fanin gates without any auxiliary matrix, tensor operation, and matrix multiplication during the PTM construction phase. This greatly reduces the computation complexity in runtime and memory. Apparently a fanout free circuit is the best case of PTM evaluation.
On the contrary, if a circuit is not a fanout free circuit, the PTM evaluation procedure will be the same as mentioned in Section 2. However, the circuits contain only few fanout free blocks in general. The major parts of circuit still suffer from incredible high computation overhead at PTM construction stage. In order to avoid all auxiliary matrices insertion and tensor operations during PTM construction, we develop two additional methods, sequential circuit-partition and heterogeneous PTM construction, to solve this problem.
First, the sequential circuit is converted to a combinational one by removing all flip-flops. Then a pair of virtual primary input and primary output will be generated for each flip-flop as well as a mapping table recording the feedback signal pairs, as shown in figure 7. The second step is to apply the circuit partition that a large circuit will be partitioned to small sub-circuits for further analysis. After that, all the re-convergence and fanout free regions will be extracted from each sub-circuit. The fourth step is to apply quasi-Monte Carlo sampling to the detected re-convergence region, and generate the equivalent PTM based on the sampling results. Finally, the input distributions are assigned to all primary inputs and virtual primary inputs to calculate the reliability at each cycle. The proposed method does not use any unrolling technique. Thus our algorithm will not suffer from the run time state explosion problem as only one time frame exists at any time. The detailed algorithms of sequential circuit partition and heterogeneous PTM construction will be discussed in Section 3. and Section 3.3, respectively.
3.2 Sequential Circuit Partition
The size of a PTM is generally 2(#. of primary inputs)× 2 (#. of primary outputs) for a circuit and is impractical for modern design. We develop a sequential circuit partition method to split the original circuit into several smaller sub-circuits. The proposed partition algorithm can guarantee that all sub-circuits have only one primary output and at most 16 primary inputs. The restricted number of primary inputs and outputs helps to limit the PTM size for those sub-circuits. Moreover, as the circuit will be applied re-convergence region extraction at next stage, the small sizes of sub-circuits also help to reduce extraction complexity. The partition algorithm is listed in figure 8.
Figure 7. Flip-flops removal and circuit partition
Figure 8. Algorithm for circuit partition
The partition procedure starts from the primary output, which is also the endpoint of a sub-circuit. Each sub-circuit grows backwards until either all primary inputs related to the endpoint are merged to the sub-circuit or the number of frontier of the sub- circuit is over 16. Then the sub-circuit construction procedure is terminated. The frontier forms a cutest, where all gates that belong
circuit_partition (Circuit C){ sub_ckt_candidate_list = primary_output_list; cur_pos = 0;
while(size_of_list(sub_ckt_candidate_list) != 0) { cur_gate = sub_ckt_candidate_list[cur_pos]; cur_sub_ckt.add(cur_gate); cur_candidate_list .add(cur_gate); while((#. of frontiers of cur_sub_ckt < 16) && (cur_sub_ckt does not contain all primary inputs)){
foreach (gate Gc in cur_candidate_list){ foreach(gate FinG belongs to gate Gc’s fanin gates){ if(#. of frontier > 16) sub_ckt_candidate_list.add(FinG); else { next_candidate_list.add(FinG); cur_sub_ckt.add(FinG); } } cur_candidate_list.delete(cur_gate); } cur_candidate_list = next_candidate_list; cur_pos++; } }
Before partition After partition
to the frontier become endpoints of the new sub-circuits. The sub- circuit generation procedure will be executed recursively until all gates belong to at least one sub-circuit. Due to the circuit structure, some gates may be shared by several sub-circuits, which slightly increase the runtime during the PTM evaluation. However experimental results in Section 5 show that the extension is limited and will not impact the performance.
3.3 Heterogeneous PTM Construction
After the original circuit is partitioned, we will perform re- convergence extraction for each sub-circuit. In general, any combinational circuit can be classified to two parts: fanout free and non-fanout free parts. It is not necessary to apply any equivalent PTM construction operation to a fanout free block, as the computation time of calculating the output probability is proportional to the number of gates for the fanout free block. On the contrary, for a non-fanout free block, theoretically speaking, we have to apply the original equivalent PTM to estimate the correct joint conditional probability, which is very time and memory consuming. Thus we propose to use an alternative way to calculate the joint conditional probability at a lower computation complexity.
We develop a heterogeneous PTM construction procedure for PTM evaluation. The key idea is to divide sub-circuits into fanout free part and non-fanout free part. For any non-fanout free block, we perform quasi-Monte Carlo sampling and produce the equivalent PTM based on the sampling results. Here we use the term “re-convergence region” to represent a non-fanout free block.
In order to detect all fanout/non-fanout blocks of a sub-circuit, we design a method called re-convergence extraction. This algorithm will start from gates with multiple fanouts and trace all derived paths until the primary output of the sub-circuit, as each sub- circuit contains only one primary output. The extraction procedure will be applied along with all derived paths. For a gate Q in the derived path, as shown in figure 9, if its fanin gates share the same ancestor gate, which is P in the figure, then we call that gate Q is a merge point. A re-convergence region (non-fanout block) is formed from the shared ancestor P to the merge point Q, as well as all the gates in this derived path. Similarly, another region in figure 9 is between gate R and S. Since gate S is the fanin of gate Q , we can therefore combine these gates into one region, which is the yellow cycled region. All primary inputs of the sub-circuit then become the frontier of the final re-convergence region (the yellow cycled region). Gates not belonging to any re-convergence region will be taken as the fanout free gate.
After re-convergence region extraction, a quasi-Monte Carlo sampling is applied to each re-convergence region. For a re- convergence region, the sampling procedure starts from the frontier of the region and ends at the merge point. An n -input frontier has 2n^ possible input vectors. We will apply 5000 quasi- Monte Carlo samples for each possible input vector. In addition, we implement a fast logic simulation engine to support sampling process. During the simulation process, the result of each gate is evaluated based on its logic function and the values of its fanin gates. Then the result will be flipped with the error probability p of the gate. Note that each gate may have different error
probability. The simulation process will be applied to the whole re-convergence region level by level.
The simulation engine can compute 32 vectors at one iteration. Since all re-convergence regions are levelized before sampling, the complexity of simulation and sampling is linear to the size of each re-convergence region. After the quasi-Monte Carlo sampling procedure, we can generate the equivalent PTM of the re-convergence region from sampling results. For example, given an input vector <0000>, the sampling results counted at the merge point have 213 0’s and 4787 1’s with 5000 sample in total. Then the output probabilities of being 0 and 1 are [213/5000, 4787/5000] for the input vector <0000>.
Figure 9.An example of re-convergence region extraction
Figure 10. An example of quasi-Monte Carlo sampling
3.4 PTM Evaluation Procedure
The circuit will be applied the PTM evaluation procedure after all equivalent PTMs are constructed. First we need to assign initial input distribution to each primary input. Then the evaluation engine will calculate the output probability for each gate. If the gate belongs to a fanout free part, the results will be generated by multiplying the input distribution with the PTM for fanin gates. For a re-convergence region, the evaluation engine will ignore all gates in the region except for the frontier gates and merge point. Finally we can use the same reliability definition mentioned in Section 2 to compute the reliability across cycles.
Figure 11 shows the reliability behaviors for s641 when its gates are assigned different error probabilities. It is of crucial importance for designers to decide the threshold for the gate error probability. They may include additional devices for some susceptible circuit while having more space to increase performance for some robust circuit. It is noted that when the gate error probability increases to 0.1, the reliability of the circuit decreases rapidly. Thus, it may be safer to keep the error probability lower than 0.01 for s641.
0.5 0 10 20 30 40 50 60 70 80 90 100
1
Cycle
Reliability
Gate Error Probability=0. Gate Error Probability=0. Gate Error Probability=0.
Figure 11. Circuit reliability w.r.t****. different gate error probability
5. CONCLUSIONS
In this paper, we present a PTM-based methodology for SER verification for sequential circuits. It uses the time frame expansion strategy to avoid the state explosion. Then we propose a divide-and-conquer scheme to partition the large sequential circuit to smaller sub-circuit. Finally the heterogeneous PTM construction method is applied to analyze the transient reliability behavior. Experimental results show that our method can greatly improve the run time and memory consumption while maintaining a high accuracy.
6. REFERENCES
[1] A.J. Sims, C.S. Dyer, C.L. Peerless, K. Johansson, H. Pettersson, and J. Farren: “The single event upset environment for avionics at high latitude,” IEEE Transactions on Nuclear Science , vol. 41, issue 6, part 1, pp. 2361-2367, 1994 [2] E. Normand: “Single-event effects in avionics,” IEEE Transactions on Nuclear Science , vol. 43, issue 2, pp. 461-474,
[3] T. Rejimon, and S. Bhanja: “Scalable probabilistic computing models using Bayesian networks,” Proc. Midwest Symposium on Circuits and Systems, vol. 1, pp. 712-715, 2005. [4] R. R. Rao, K. Chopra, D. Blaauw, and D. Sylvester: “An efficient static algorithm for computing the soft error rates of combinational circuits,” Proc. Conference Design, Automation and Test in Europe, pp. 164-169, 2006. [5] B. Zhang, W.S. Wang, and M. Orshansky: “FASER: fast analysis of soft error susceptibility for cell-based designs,” Proc. International Symposium on Quality Electronic Design (ISQED), pp. 27-29, 2006. [6] M.R. Choudhury, and K. Mohanram: “Accurate and scalable reliability analysis of logic circuits,” Proc. Design Automation & Test in Europe Conference & Exhibition (DATE), pp. 1 - 6, 2006. [7] G. Asadi, and M.B. Tahoori: “An analytical approach for soft error rate estimation in digital circuits,” Proc. International Symposium on Circuits and Systems (ISCAS), vol. 3, pp. 2991- 2994, 2005. [8] T. Rejimon, and S. Bhanja: “Scalable probabilistic computing models using Bayesian networks,” Proc. Midwest Symposium on Circuits and Systems, vol. 1, pp. 712-715, 2005. [9] S. Krishnaswamy, G.F. Viamontes, I.L. Markov, and J.P. Hayes: “Accurate reliability evaluation and enhancement via probabilistic transfer matrices,” Proc. Design, Automation and Test in Europe , vol. 1, pp. 282-287, 2005. [10] R. I. Bahar, E. A. Frohm, C. M. Gaona, and G. D. Hachtel: “Algebraic decision diagrams and their applications,” Journal of Formal Methods in System Design 10 , No. 2/3, pp. 171-206, 1997.