JPH01112342A - Method for simulating logic circuit - Google Patents
Method for simulating logic circuitInfo
- Publication number
- JPH01112342A JPH01112342A JP62269350A JP26935087A JPH01112342A JP H01112342 A JPH01112342 A JP H01112342A JP 62269350 A JP62269350 A JP 62269350A JP 26935087 A JP26935087 A JP 26935087A JP H01112342 A JPH01112342 A JP H01112342A
- Authority
- JP
- Japan
- Prior art keywords
- rank
- elements
- logic
- logic circuit
- simulation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、論理回路のシミュレーション方法に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a logic circuit simulation method.
従来、この種の論理回路のシミュレーションを実行する
論理シミュレータは、ソフトウェアあるいはハードウェ
アで実現される(ニせよ、1個の被モデルでは1個分の
シミュレーションしか実行出来なかった。(例えば、佐
々木他の17・ミックスト・レベル・シミュレータ・フ
ォー・ラージ・ディジタル・システム・ロジック・ベル
フィケーンヨン(A Mixed LevelSimu
later for Large Digital S
ystemLogic Verification )
” 17th DA Conf。Conventionally, logic simulators that perform simulations of this type of logic circuit have been implemented using software or hardware (in fact, one model can only perform one simulation. (For example, Sasaki et al. 17 Mixed Level Simulator for Large Digital System Logic Verification
later for Large Digital S
System Logic Verification)
” 17th DA Conf.
pp、 626−63−3(1980))以下余日
〔発明が解決しようとする問題点〕
上述した従来の論理シミュレータは、シミュレータ上に
1モデル分のデータのみ格納するため、実行時には1モ
デル分のみの演算しか行なえない。そのため、故障シミ
ュレーションのように、同一回路に対して多数の故障を
シミュレーションしなければならないものC:対しては
。pp. 626-63-3 (1980)) [Problems to be Solved by the Invention] The conventional logic simulator described above stores only one model's worth of data on the simulator, so when it is executed, one model's worth of data is stored. You can only perform operations on Therefore, for C: where many failures must be simulated for the same circuit, such as failure simulation.
極めて多大な時間が掛るという欠点がある。The disadvantage is that it takes an extremely large amount of time.
本発明による論理回路のシミュレーション方法は2回路
の素子(素子とはゲート、機能ブロック等)および素子
間の接続情報として1モデル分のデータのみ使用し、k
(k≧2)個の素子の演算機構により同時に最大に個の
シミュレーションを実行し、論理の伝播をに個の対応す
るモデル番号及び論理値によって行ない、イベントが起
った素子のみシミュレーションの対象とする。The logic circuit simulation method according to the present invention uses only one model's worth of data as the elements of two circuits (elements are gates, functional blocks, etc.) and the connection information between the elements.
A maximum of (k≧2) device simulations are executed simultaneously, logic propagation is performed using corresponding model numbers and logic values, and only the device where an event occurs is subject to simulation. do.
又2本発明では、接続情報を含んだ被モデルをn個のサ
ブモデルに分割し、n個のサブモデ−ルを同時(−実行
する。In addition, in the second aspect of the present invention, a target model containing connection information is divided into n sub-models, and the n sub-models are executed simultaneously.
更に2本発明では、素子をプライマリー入力からプライ
マリ−出力、あるいはレジスタからレジスタに向ってラ
ンク付し、ランク単位で実行する。Furthermore, in the present invention, elements are ranked from primary input to primary output or from register to register, and execution is performed in units of ranks.
次に1本発明の実施例について図面を参照して説明する
。Next, an embodiment of the present invention will be described with reference to the drawings.
第2図を参照すると2本発明のシミュレーション方法を
説明するために使用される論理回路は、プライマリ−入
力端子1’0 、11 、12及び16とプライマリ−
出力端子50 、51とを有し、それらの間に論理回路
を構成する素子20.30及び40が接続されている。Referring to FIG. 2, the logic circuit used to explain the simulation method of the present invention includes primary input terminals 1'0, 11, 12 and 16 and primary input terminals 1'0, 11, 12 and 16.
It has output terminals 50 and 51, and elements 20, 30 and 40 constituting a logic circuit are connected between them.
プライマリ−入力端子10は信号線60を介して素子3
0の一方の入力端子に接続され、プライマリ−入力端子
11及び12はそれぞれ信号線61及び62を介して素
子20の第1及び第2の入力端子に接続され、プライマ
リ−入力端子16は信号線63を介して素子40の一方
の入力端子に接続されている。素子20の出力端子は信
号線64を介して素子30の他方の入力端子に接続され
、信号線65%介して素子40の他方の入力端子に接続
されている。素子30の出力端子は信号線66を介して
プライマリ−出力端子50(−接続され、素子40の出
力端子は信号線67を介してプライマリ−出力端子51
(=接続されている。The primary input terminal 10 is connected to the element 3 via the signal line 60.
0, the primary input terminals 11 and 12 are connected to the first and second input terminals of the element 20 via signal lines 61 and 62, respectively, and the primary input terminal 16 is connected to the first and second input terminals of the element 20 via signal lines 61 and 62, respectively. 63 to one input terminal of the element 40. The output terminal of element 20 is connected to the other input terminal of element 30 via signal line 64 and to the other input terminal of element 40 via signal line 65%. The output terminal of the element 30 is connected to the primary output terminal 50 (-) through the signal line 66, and the output terminal of the element 40 is connected to the primary output terminal 51 (-) through the signal line 67.
(=Connected.
第2図中の左側の■〜■で示されるパターンは、それぞ
れ本論理回路をシミュレーションする際に使用されるテ
スト・データ(パターン)であり、右側の■〜■で示さ
れるパターンは。The patterns indicated by ■ to ■ on the left side of FIG. 2 are test data (patterns) used when simulating this logic circuit, and the patterns indicated by ■ to ■ on the right side are respectively.
それぞれ本論理回路をシミュレーションした結果を示す
Z結果データ(パターン)である。These are Z result data (patterns) showing the results of simulating this logic circuit.
又、ランクは9図示の如く、プライマリ−入力端子から
プライマリ−出力端子に向ってふられている。すなわち
、プライマリ−入力端子10.11.12及び13には
ランク1が、素子20(二はランク2が、素子30及び
40にはランク3が、プライマリ−出力端子50及び5
1にはランク4がふられている。Further, as shown in Figure 9, the ranks are distributed from the primary input terminal to the primary output terminal. That is, primary input terminals 10, 11, 12 and 13 have rank 1, element 20 (2 has rank 2, elements 30 and 40 have rank 3, primary output terminals 50 and 5
1 is assigned rank 4.
第1図は本発明によるシミュレーション方法を説明する
ための図である。第1図(二おいて。FIG. 1 is a diagram for explaining a simulation method according to the present invention. Figure 1 (2.
素子群21〜23.31〜33及び41〜43は、それ
ぞれ第2図の素子20.30及び40に対応している。Element groups 21-23, 31-33 and 41-43 correspond to elements 20, 30 and 40 in FIG. 2, respectively.
素子群20〜23.30〜33及び40〜46は、シミ
ュレーション時には素子の演算C:対応している。本例
では、素子群の個数には4個となっている(k=4)が
、この個数には2以上の任意の個数に設定できる。従っ
て2本例では、第2図に示された4つのテスト・パター
ン■〜のを、以下に詳細に述べるように、同時に輪環シ
ミュレーションすることができる。Element groups 20 to 23, 30 to 33, and 40 to 46 correspond to element operation C during simulation. In this example, the number of element groups is four (k=4), but this number can be set to any number greater than or equal to two. Therefore, in this example, the four test patterns 1 to 1 shown in FIG. 2 can be simultaneously simulated as described in detail below.
次(−1本発明によるシミュレーション方法(第1図)
で、第2図C:示された論理回路を。Next (-1 Simulation method according to the present invention (Fig. 1)
So, Figure 2C: The logic circuit shown.
テスト・パターン■〜■で論理シミュレーションする場
合の動作について説明する。The operation when performing logic simulation using test patterns ■ to ■ will be explained.
1)まず、ランク1のプライマジー入力端子10〜16
にテスト・パターン■〜■が設定される。1) First, rank 1 primacy input terminals 10 to 16
Test patterns ■~■ are set.
11)これらテスト・パターン■〜■は、信号線60〜
66を伝って、ランク2および6の素子の演算機構に伝
わる。テスト・パターン■〜■は、それぞれ第3図に示
されるように。11) These test patterns ■~■ are for signal lines 60~
66 to the arithmetic mechanisms of rank 2 and 6 elements. Test patterns ■ to ■ are as shown in FIG. 3, respectively.
素子の演算機構20〜23.30〜33゜40〜43に
対応して伝わる。It is transmitted corresponding to the calculation mechanisms 20-23, 30-33, 40-43 of the element.
1ii) ランク1での論理値伝播が終ると、ランク
2の素子群20〜25の演算が行われる。この素子群2
0〜23の演算は、同時に行われる。ここで、素子群2
0〜23の出力が前状態に比べて変化しているか否か、
換言すればイベントが発生しているか否かを調べる。本
例の場合、素子群20〜23の初期値を0″とすると、
素子20,22.23が変化した形になる。従っで、素
子20,22.23の出力が、それぞれ次のランク(ラ
ンク3)の素子30,32.33及び40 、42 、
43に伝播する。伝播時には、対応するモデル番号と論
理が伝わる。1ii) When the logical value propagation in rank 1 is completed, calculations are performed on the element groups 20 to 25 in rank 2. This element group 2
Operations 0 to 23 are performed simultaneously. Here, element group 2
Whether the outputs of 0 to 23 have changed compared to the previous state,
In other words, check whether an event has occurred. In the case of this example, if the initial values of the element groups 20 to 23 are 0'',
The elements 20, 22, 23 take on a modified shape. Therefore, the outputs of the elements 20, 22.23 are the elements 30, 32.33 and 40, 42, of the next rank (rank 3), respectively.
Propagates to 43. During propagation, the corresponding model number and logic are passed on.
iv) ランク2での演算が終わると、ランク6の素子
群30〜33.40〜43の演算が同時(二行われ、そ
れらの演算結果がプライマリ−出力端子50.51に伝
播する。iv) When the calculation in rank 2 is completed, the calculations in the element groups 30 to 33 and 40 to 43 in rank 6 are performed simultaneously (two times), and the results of these calculations are propagated to the primary output terminal 50.51.
第3図(−は、各パターンが各ランクで、どの素子演算
機構(=対応し、論理シミュレーションされていくかの
様子が示されている。FIG. 3 (- indicates which element arithmetic mechanism (=corresponds to) each pattern at each rank and how the logic is simulated.
この様に2本発明のシミュレーション方法では、同時に
複数個のテスト・パターンを論理シミュレーションする
ことができる。In this manner, the simulation method of the present invention allows logic simulation of a plurality of test patterns at the same time.
第4図は第2図の素子入力に定義された0゜1−縮退故
障を示している。fl r f2は、それぞれ素子20
の第1の入力端子(二定後された〇−縮退故障、1−縮
退故障を示しrf5は素子20の第2の入力端子(二定
後された1−縮退故障を示す。同様に+f4+f5は、
それぞれ素子60の一方の入力端子に定義された〇−縮
退故障、1−縮退故障を示しrf6は素子30の他方(
一定義された1−縮退故障を示す。更に+f8は素子4
0の一方の入力端子に定義された〇−縮退故障を示し+
f7 + f9は、それぞれ素子40の他方の入力
端子(二定後された〇−縮退故障。FIG. 4 shows a 0°1-stuck-at fault defined at the element input of FIG. fl r f2 are each element 20
rf5 is the second input terminal of the element 20 (1 indicates a stuck-at fault after two constants).Similarly, +f4+f5 is ,
〇 indicates a stuck-at fault and 1 indicates a stuck-at fault defined at one input terminal of the element 60, respectively; rf6 indicates the other input terminal of the element 30 (
One defined 1 - indicates a stuck-at fault. Furthermore, +f8 is element 4
〇- indicates a stuck-at fault defined on one input terminal of 0 +
f7 + f9 are the other input terminals of the element 40 (0-stuck-at fault after two constants), respectively.
1−縮退故障を示す。1 - Indicates a stuck-at fault.
第5図は第4図のテスト・パターン■(二対して、ラン
ク2の素子20の入力での故障fi+f2 r f5が
シミュレーションされる例を示している。FIG. 5 shows an example in which the fault fi+f2 r f5 at the input of the element 20 of rank 2 is simulated in contrast to the test pattern (2) of FIG.
1)ランク1の入力端子に設定されたテスト・パターン
■は、ランク2および3の素子の演算機構に伝わる。1) Test pattern (2) set to the rank 1 input terminal is transmitted to the calculation mechanisms of the rank 2 and 3 elements.
II)ランク2の素子20は正論理シミュレーションに
使用され、素子21.22及び23には、それぞれ〇−
縮退故@f+、1−縮退故障f2及び1−縮退故障f3
が設定される。II) Element 20 of rank 2 is used for positive logic simulation, and elements 21, 22 and 23 have 〇-
Stuck-at fault @f+, 1-stuck-at fault f2 and 1-stuck-at fault f3
is set.
山)故障設定されると、ランク2の素子20〜23は同
時にシミュレーションされる。素子20の正論理シミュ
レーションの値と異なる素子は、素子21のみであるか
ら、この〇−縮退故障f1が次のランク(ランク3)の
素子31.41に伝わる。伝播時には、対応するモデル
番号と故障番号(本例では、1番目のモデルで、〇−縮
退故障f1)が伝わる。When a fault is set, rank 2 elements 20 to 23 are simulated simultaneously. Since the only element that differs from the positive logic simulation value of element 20 is element 21, this 0-stuck-at fault f1 is transmitted to elements 31 and 41 of the next rank (rank 3). During propagation, the corresponding model number and fault number (in this example, the first model and the stuck-at fault f1) are transmitted.
iv)次に、ランク3で、正論理シミュレーションと伝
播した〇−縮退故障f1のシミュレーションが同時に実
行され、結果が比較される。iv) Next, in rank 3, the positive logic simulation and the simulation of the propagated O-stuck-at fault f1 are executed simultaneously, and the results are compared.
その結果、素子31の出力のみ正論理の値と異なるので
、〇−縮退故障f1は、プライマリ−出力端子50まで
伝播し、故障検出されたことになる。As a result, only the output of the element 31 differs from the positive logic value, so the stuck-at fault f1 propagates to the primary output terminal 50 and is detected as a fault.
第6図(二は、同様に、第4図のテスト・パターン■に
対して、ランク3の素子60の入力での故障f4 r
f5 t f6をシミュレーションする例が示されてい
る。この例では、1−縮退故障f6が検出される。FIG. 6 (Secondly, similarly, for the test pattern ■ in FIG. 4, the failure f4 r at the input of the element 60 of rank 3
An example is shown to simulate f5 t f6. In this example, a 1-stuck-at fault f6 is detected.
以上のよう(二1本発明によれば、複数の故障(一般に
は、(k−1)個の故障1本例では6個の故障)を同時
(ニシミュレーションすることができる。As described above, according to the present invention, a plurality of faults (generally, six faults in one example of (k-1) faults) can be simulated simultaneously.
本実施例では、規模の小さい論理回路に適用した例を示
したが、大規模な論理回路(二対しては1回路をn個の
サブモデルに分割して、ランクの等しいサブモデル内の
素子を同時にシミュレーションすれば、処理速度は更に
速くなる。In this example, an example is shown in which the application is applied to a small-scale logic circuit, but in the case of a large-scale logic circuit (2), one circuit is divided into n submodels, and the elements in the submodels of the same rank are If both are simulated at the same time, the processing speed will be even faster.
この様な分割による割付は、演算機構をハードウェア化
して実行する場合、特C:有効である。Such allocation by division is effective when the arithmetic mechanism is implemented in hardware.
以上説明したように本発明は、k(k≧2)個の演算機
構を有することにより、論理シミュレーション時にはに
個のテスト・パターンを同時にシミュレーションでfi
、 故障シミュレーション時には(k−1)個の故障を
同時にシミュレーションできるという効果がある。As explained above, the present invention has k (k≧2) arithmetic mechanisms, so that it is possible to simultaneously simulate fi test patterns during logic simulation.
, During fault simulation, there is an effect that (k-1) faults can be simulated simultaneously.
第1図は本発明(:よるシミュレーション方法を説明す
るための図、第2図は本発明のシミュレーション方法を
説明するために使用される論理回路を示す回路図、第3
図は第1図の回路を用いて、複数のテスト・パターンに
対する複数のモデルの演算過程を示す図、第4図は第2
図に示された論理回路の素子入力に定義された故障を示
す図、第5図は第4図の回路を用いて。
テスト・パターン■に対するランク2の素子の入力での
故障f1 + f2 + f3をシミュレーション子の
入力での故障f4 、f5 + f6をシミュレーショ
ンする例を示す図である。
10〜13・・・プライマリー入力、20〜23゜30
〜33.40〜43・・・素子、50.51・・・プラ
イマリ−出力端子、60〜67・・・素子間の信号線。
第2図
−ランク
第6図
−一ランク
0100ロコー
3図FIG. 1 is a diagram for explaining a simulation method according to the present invention; FIG. 2 is a circuit diagram showing a logic circuit used to explain the simulation method of the present invention;
The figure shows the calculation process of multiple models for multiple test patterns using the circuit in Figure 1, and Figure 4 shows the calculation process of multiple models for multiple test patterns using the circuit in Figure 1.
FIG. 5 is a diagram showing failures defined at element inputs of the logic circuit shown in the figure, using the circuit of FIG. 4. FIG. 6 is a diagram showing an example of simulating the fault f1 + f2 + f3 at the input of the element of rank 2 for the test pattern (■), and the faults f4 and f5 + f6 at the input of the simulator. 10~13...Primary input, 20~23°30
~33.40~43...Element, 50.51...Primary output terminal, 60~67...Signal line between elements. Figure 2 - Rank Figure 6 - 1 Rank 0100 Loco 3 Figure
Claims (1)
分のデータのみを使用し、k(k≧2)個の素子の演算
機構により同時に最大k個のシミュレーションを実行し
、論理の伝播をk個の対応するモデル番号及び論理値に
よって行ない、イベントが起った素子のみシミュレーシ
ョンの対象とする論理回路のシミュレーション方法。 2、接続情報を含んだ被モデルをn個のサブモデルに分
割し、n個のサブモデルを同時に実行する特許請求の範
囲第1項に記載の論理回路のシミュレーション方法。 3、素子をプライマリー入力からプライマリー出力、あ
るいはレジスタからレジスタに向ってランク付し、ラン
ク単位で実行する特許請求の範囲第1項又は第2項に記
載の論理回路のシミュレーション方法。[Claims] 1. Only data for one model is used as circuit elements and connection information between elements, and a maximum of k simulations are executed simultaneously by a calculation mechanism of k (k≧2) elements. , a logic circuit simulation method in which logic is propagated using k corresponding model numbers and logic values, and only elements in which an event occurs are subject to simulation. 2. The logic circuit simulation method according to claim 1, wherein a model to be modeled including connection information is divided into n sub-models, and the n sub-models are executed simultaneously. 3. The method of simulating a logic circuit according to claim 1 or 2, wherein the elements are ranked from primary input to primary output or from register to register, and the simulation is performed in units of ranks.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62269350A JPH0827743B2 (en) | 1987-10-27 | 1987-10-27 | Logic circuit simulation method |
| US07/263,217 US4961156A (en) | 1987-10-27 | 1988-10-27 | Simulation capable of simultaneously simulating a logic circuit model in response to a plurality of input logic signals |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62269350A JPH0827743B2 (en) | 1987-10-27 | 1987-10-27 | Logic circuit simulation method |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7236561A Division JP2972558B2 (en) | 1995-09-14 | 1995-09-14 | Fault simulation method for logic circuits |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01112342A true JPH01112342A (en) | 1989-05-01 |
| JPH0827743B2 JPH0827743B2 (en) | 1996-03-21 |
Family
ID=17471153
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62269350A Expired - Lifetime JPH0827743B2 (en) | 1987-10-27 | 1987-10-27 | Logic circuit simulation method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0827743B2 (en) |
-
1987
- 1987-10-27 JP JP62269350A patent/JPH0827743B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0827743B2 (en) | 1996-03-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US3519808A (en) | Testing and repair of electronic digital computers | |
| Jephson et al. | A three-value computer design verification system | |
| Sridhar et al. | A functional approach to testing bit-sliced microprocessors | |
| KR100337696B1 (en) | Method for automatically generating behavioral environment for model checking | |
| JPS63145549A (en) | Logic circuit simulation method | |
| JPS58205870A (en) | Simulation apparatus of logic circuit | |
| JPH01112342A (en) | Method for simulating logic circuit | |
| JP2972558B2 (en) | Fault simulation method for logic circuits | |
| US5910901A (en) | Logic simulator | |
| JPH01219944A (en) | Simulation device for logic circuit | |
| US5467292A (en) | Logical operation method employing parallel arithmetic unit | |
| JPH021571A (en) | Faulty simulation device | |
| JP2658857B2 (en) | Equivalent fault extraction method and device | |
| Gardner et al. | Hierarchical modeling and simulation in VISTA | |
| Chen et al. | A Symbolic Approach for Checking Functional and Timing Compatibility of Synthesized Designs | |
| JP2532738B2 (en) | Failure simulation method of logic circuit | |
| SU656067A1 (en) | Network chart simulator | |
| JPS6375576A (en) | Fault detection system for integrated circuit | |
| JPS61273640A (en) | Logical simulator | |
| Schreiber | PASS II-Program for Analyzing Sequential Circuits | |
| JPS6299837A (en) | Check system for input and output processor | |
| GB1362314A (en) | Method for programming a computer to simulate a digital circuit | |
| JPS61186869A (en) | Simulator | |
| JPS6320543A (en) | Logical simulation method | |
| JPH01195547A (en) | Trouble simulation device |