JPH02130645A - Truth table logical simulation method - Google Patents

Truth table logical simulation method

Info

Publication number
JPH02130645A
JPH02130645A JP63283581A JP28358188A JPH02130645A JP H02130645 A JPH02130645 A JP H02130645A JP 63283581 A JP63283581 A JP 63283581A JP 28358188 A JP28358188 A JP 28358188A JP H02130645 A JPH02130645 A JP H02130645A
Authority
JP
Japan
Prior art keywords
value
truth table
values
input
logical
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.)
Pending
Application number
JP63283581A
Other languages
Japanese (ja)
Inventor
Yasunori Yamada
山田 靖憲
Nobutaka Amano
天野 亘孝
Makoto Obata
誠 小畑
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63283581A priority Critical patent/JPH02130645A/en
Publication of JPH02130645A publication Critical patent/JPH02130645A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To directly execute logical simulation at high speed by providing a step to convert input information to a truth table and a step to calculate a part to be the value of 0 or 1. CONSTITUTION:In the step to convert the input information to a logic circuit model expressed in the truth table, for the logical value 1 of the input information, 10 and 0 and the value of 01, 0 or 1 are converted to 00. An AND with the respective sets of certain input values is obtained and compared with the original input information. Accordingly, it can be regarded that the value of 0 or 1 can be coincident with the values of 0 and 1 and the value of 0 or 1. Next, in the step to calculate the part to go to the value of 0 or 1, when the truth table is changed, the OR is obtained for the sets of output values. Thus, the calculated result of the part, which can simultaneously obtain the logical value 1, logical value 0 and the logical value 1 or 0 and the value of the logical value 0 or 1, goes to 11 and this result can be outputted as the value of 0 or 1.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、論理設計検証システムに係り、特に真理値表
を論理回路のモデルとしてシミュレート可能な論理シミ
ュレータの論理シミュレーション方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a logic design verification system, and more particularly to a logic simulation method for a logic simulator capable of simulating a truth table as a model of a logic circuit.

〔従来の技術〕[Conventional technology]

論理シミュレーションシステムにおいて0.1の2値の
他0,1どちらでもよい値(don’t care値)
を含む真理値表を取扱う方式について検索したが現在の
ところ見当らない。この種の方式として関連するものに
ついては、第23回ニー・シー・エム/アイ・イー・イ
ー・イー、デザインオートメーションコンファレンス6
月29日−7月2日、1986年、第354頁から第3
59頁(ACM/IIEEE、DESIGN、 AUT
OMATION、 C0NFERENCE、 JUNE
29−JULY2.1986. pp354−pp35
9)に記載されている。
In a logic simulation system, in addition to the binary value of 0.1, a value that can be either 0 or 1 (don't care value)
I searched for a method for handling truth tables containing , but I can't find anything at the moment. Regarding related methods of this type, please refer to the 23rd NCM/IEE Design Automation Conference 6.
March 29th-July 2nd, 1986, pp. 354-3
59 pages (ACM/IEEEE, DESIGN, AUT
OMATION, CONFERENCE, JUNE
29-JULY2.1986. pp354-pp35
9).

この方式によれば真理値表はプール式に変換して処理を
行っている。その際、プール式はすでに最適化がなされ
ていることが前提になっている。
According to this method, the truth table is converted into a pooled expression for processing. In this case, it is assumed that the pool expression has already been optimized.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

論理回路の機能の一致を真理値表によってモデル化し、
真理値表を用いて論理回路の論理シミュレーションを行
う場合、前記真理値表に0.1の2値の他0.1どちら
でもよい値を含むとき、従来技術では真理値表をプール
式に展開し論理シミュレーションを行うのであるが、そ
の際プール式の最適化は人手ですでになされていること
が前提になっている。0,1の他0,1どちらでもよい
値を含む一般の真理値表を対象としてそのプール式化を
行う場合には、プール式の最適化という過程が不可欠で
ある。プール式の最適化は一般にはNP完全問題である
ので簡単なルールによる最適化だけですべての場合をカ
バーし得る保証がない。
Model the matching of logic circuit functions using a truth table,
When performing a logic simulation of a logic circuit using a truth table, when the truth table includes a binary value of 0.1 or any value of 0.1, the conventional technology expands the truth table in a pooled manner. A logical simulation is performed, but it is assumed that the optimization of the pool formula has already been done manually. When creating a pool expression for a general truth table that includes values that can be either 0 or 1 in addition to 0 or 1, a process called optimization of the pool expression is essential. Since pool optimization is generally an NP-complete problem, there is no guarantee that optimization using simple rules can cover all cases.

本発明の目的は、0,1,0.1どちらでもよい値を含
む真理値表をプール式化あるいはゲート展開など他のモ
デルに変換することなく高速に直接論理シミュレーショ
ンを実行可能にすることにある。
The purpose of the present invention is to enable high-speed direct logic simulation without converting a truth table containing values that can be 0, 1, or 0.1 to other models such as pooling or gate expansion. be.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的は、0,1及び0,1どちらでもよい値(do
n’t care)を含む真理値表への入力情報を、あ
らかじめ用意された0 、 1 、 don’t ca
reを含む真理値表の入力値の組と高速に一致チェック
するために、前記真理値表に対する入力情報を変換する
ステップと、一致した一個または複数個の真理値表の入
力値のそれぞれの組に対応する一個または複数個の出力
値に対してdon’t careの値となるべき部分を
算出するステップによって達成される。
The above purpose is to set a value that can be either 0, 1 or 0, 1 (do
input information to the truth table including 0, 1, don't care) prepared in advance.
converting the input information for the truth table in order to quickly check the match with the set of input values of the truth table containing re, and each set of matched input values of the truth table or This is achieved by calculating the portion that should be the don't care value for one or more output values corresponding to .

〔作用〕[Effect]

真理値表表現された論理回路モデルへの入力情報を変換
するステップは、例えば入力情報の論理値の1を10.
Oを01,0でも1でもよい値をOoと変換する。これ
により予め真理値表の論理値1を10,0を01,0で
も1でもよい値を11と変換しである入力値の各組と論
理積をとり元の入力情報と比較することで、Oでも1で
もよい値と0,1.及び0でも1でもよい値が一致する
と見なすことが可能となる6そのようにして一致したと
見なされた真理値表の入力値の組が複数個の場合、それ
らに対応する複数個の出力値の組の中でOでも1でもよ
い値となる部分を算出するステップは、例えば上記のよ
うに真理値表が変換されていれば各出力値の組の論理和
をとることにより、論理値1と論理値O1論理値1また
は0と論理値0でも1でもよい値を同時にとり得る部分
の演算結果は11となり、これをOでも1でもよい値と
して出力することができる。
The step of converting the input information into a logic circuit model represented by a truth table may include, for example, converting the logical value of the input information from 1 to 10.
Convert O to 01, and convert a value that can be 0 or 1 to Oo. By doing this, in advance, the logical value 1 in the truth table is converted to 10, 0 is converted to 01, and the value that can be 0 or 1 is converted to 11, and the logical AND is performed with each set of input values and compared with the original input information. A value that can be O or 1, and 0, 1. and values that can be 0 or 1 can be considered to match 6. If there are multiple sets of input values of the truth table that are considered to match in this way, multiple output values corresponding to them. For example, if the truth table has been converted as described above, the logical value 1 can be calculated by calculating the logical sum of each set of output values. and logical value O1 The calculation result of the part that can take the logical value 1 or 0 and the logical value 0 or 1 at the same time is 11, which can be output as a value that can be 0 or 1.

〔実施例〕〔Example〕

以下、本発明の一実施例を第2図により説明する。第2
図は本発明を実行するためのハードウェア構成を示す。
An embodiment of the present invention will be described below with reference to FIG. Second
The figure shows a hardware configuration for implementing the invention.

キャラクタ端末装置21又は他の適当な入力装置(キー
ボード、カードリーダ、グラフィック端末装置等)22
は、論理回路モデル及びその論理回路モデルへの入力デ
ータを入力するために用いられる。処理装置23は論理
回路モデルの機能に従って入力データを処理して論理シ
ミュレーション結果を生成する。この論理シミュレーシ
ョン結果は出力装置(プリンタ、プロッタ等)24によ
り出力される。
Character terminal device 21 or other suitable input device (keyboard, card reader, graphic terminal device, etc.) 22
is used to input a logic circuit model and input data to the logic circuit model. The processing device 23 processes the input data according to the function of the logic circuit model to generate logic simulation results. This logic simulation result is output by an output device (printer, plotter, etc.) 24.

第3図(a)は真理値表モデルを示す0本真理値表モデ
ルは3つの入力値の組(入力部)と、それに対応する2
つの出力値の組(出力部)を格納する領域から構成され
ており、II、I2.I3という3個の入力値を受けっ
けて、01,02という2個の値を出力する論理回路の
モデルの例である。以下、このモデルを用いて説明する
ことにする。第1図は本発明の一実施例としてのo、■
の他0でも1でもよい値を含む真理値表を高速に直接シ
ミュレーションする方法を示す、11では入力情報を真
理値表の入力値の組との一致チェックが行えるように変
換する部分である。今、第3図(a)のIl、I2.I
3にそれぞれ1,0.1でも0でもよい値が入力された
場合、その変換則の一例を第4図を用いて説明する。元
の論理値を2ビツトの2進数で表し、1は10.Oは0
1.0でも1でもよい値は00で表す。更に3個の入力
情報を6ビツトの1つの2進数にまとめる。以後この6
ビツトの数をキーと呼び、またOでも1でもよい値を記
号拳で表す。これに対応して上記真理値表の実際の形態
は各論理値に関して第4図の変換則、すなわち論理値1
は10.0は01、拳は11を適用し、予め入力値の組
は6ビツトの、出力値の組は4ビツトの2進数に変換し
ておく。
Figure 3 (a) shows the truth table model. The truth table model consists of three sets of input values (input part) and the corresponding two
It consists of areas that store two sets of output values (output parts), II, I2. This is an example of a model of a logic circuit that receives three input values I3 and outputs two values 01 and 02. This model will be used in the following explanation. FIG. 1 shows o, ■ as an embodiment of the present invention.
In addition, a method for directly simulating a truth table containing values that may be 0 or 1 at high speed is shown. In step 11, input information is converted so that a match with a set of input values in the truth table can be checked. Now, Il, I2 in FIG. 3(a). I
An example of the conversion rule when a value of 1, 0.1, or 0 is input to 3 will be explained with reference to FIG. The original logical value is expressed as a 2-bit binary number, where 1 is 10. O is 0
Values that may be 1.0 or 1 are expressed as 00. Furthermore, three pieces of input information are combined into one 6-bit binary number. From now on, this 6
The number of bits is called a key, and the value, which can be O or 1, is represented by the symbol fist. Correspondingly, the actual form of the above truth table is based on the conversion rule shown in Figure 4 for each logical value, that is, the logical value 1
10.0 is applied as 01, and fist as 11. The input value set is converted into a 6-bit binary number and the output value set is converted into a 4-bit binary number in advance.

第3図(a)に対応する変換後の真理値表を第3図(b
)に示す。入力値を1つの数にまとめることにより一致
チエツクの高速化が可能になる。
Figure 3(b) shows the truth table after conversion corresponding to Figure 3(a).
). Combining input values into one number allows for faster matching checks.

第1図12は入力値の組に拳が含まれるか判定する部分
である。これは入力値の組に傘を含まない場合は真理値
表の入力値の組を格納した領域と高々1回の一致しかし
ないので後の処理が簡略化できるためである。
FIG. 12 shows a part that determines whether a fist is included in the set of input values. This is because if the set of input values does not include an umbrella, there will be at most one match with the area in which the set of input values of the truth table is stored, so that subsequent processing can be simplified.

入力値に0でも1でもよい値を含む場合、第1図]3で
一致チェックを行う。その方法を第4図と第3図(b)
の例を用いて説明する。第3図(b)の入力値の組を格
納する領域の上段から順にキーとビット毎の論理積を計
算していく。その結果がキーと等しければ一致したと見
なす。第3図(b)では1段目及び2段目と、第4図キ
ーとの論理積が共に(1001,00)zとなり、キー
に等しいので一致したと見なす、ここで一致とは2進数
変換された数値そのものの一致を指すのではない。
If the input value includes a value that may be 0 or 1, a match check is performed in step 3 of FIG. 1. The method is shown in Figure 4 and Figure 3(b).
This will be explained using an example. The AND of each key and each bit is calculated sequentially from the top of the area storing the set of input values shown in FIG. 3(b). If the result is equal to the key, it is considered a match. In Figure 3(b), the logical product of the first and second rows and the key in Figure 4 is (1001,00)z, which is equal to the key, so it is considered a match. Here, a match is a binary number. It does not mean that the converted numbers themselves match.

外ぜならここで言うOでも1でもよい値とは0及び1の
いずれと見なしてもよい値であり、真理値表を参照する
上では、どの論理値とも一致すると見なさなければなら
ないからである。
Otherwise, the value that can be O or 1 here is a value that can be considered either 0 or 1, and when referring to the truth table, it must be considered to match any logical value. .

第1図14は第3図(a)のOf、02のうち0でも1
でもよい値をとる出力がないがを見つけるステップであ
る。これは第1図13によって一致したと判定された第
3図(b)の1段目と2段目の出力値どうしの論理和を
とる。即ち第3図(a)では02が0でも1でもよい値
となる。これに対応して第3図(b)の1段目と2段目
の出力値の論理和は(1011)!となり、(10)2
を1、 (01)2をOl (11)2又は(00)Z
を串と見なすことにより01 = 1..02=傘と正
しい値が算出される。尚、以上のようにして得られる申
は0でも1でもよい値に限らず、不確定の値として取扱
うこともできる。
Fig. 1 14 is 0 or 1 in Of, 02 in Fig. 3 (a).
However, there is no output that takes a good value, but the step is to find out. This is done by calculating the logical sum of the output values of the first stage and second stage of FIG. 3(b), which were determined to match according to FIG. 13. That is, in FIG. 3(a), 02 can be either 0 or 1. Correspondingly, the logical sum of the output values of the first and second stages in FIG. 3(b) is (1011)! So, (10)2
1, (01)2 as Ol (11)2 or (00)Z
By considering it as a skewer, 01 = 1. .. 02=Umbrella and the correct value is calculated. Note that the value obtained as described above is not limited to a value that may be 0 or 1, but can also be treated as an uncertain value.

第1図16は真理値表が、入力となり得る全ての入力値
の組合わせに関して閉じていない場合に必要なステップ
で、真理値表の全段に渡って一致チェックを試みても一
致がなかった場合、第1図110によって予め用意され
たデフォルト値が出力値としてセットされる。
Figure 1 16 shows the steps required when the truth table is not closed for all possible combinations of input values, and there is no match even after trying to check for a match across all stages of the truth table. In this case, a default value prepared in advance by 110 in FIG. 1 is set as the output value.

次に入力値に0でも1でもよい値を含まない場合につい
て説明する。第1図17及び18のステップによって真
理値表の各段の一致チェックを行う。その過程で1回で
も一致する場合があれば第1図19によりその出力値の
組を出力とし・、以後の一致チェックを打ち切る。これ
によって無駄な真理値表処理をしないようにする。
Next, a case where the input value does not include a value that may be 0 or 1 will be described. The steps 17 and 18 in FIG. 1 are used to check the consistency of each stage of the truth table. If there is a match even once in the process, the set of output values is output as shown in FIG. 19, and the subsequent match check is discontinued. This prevents unnecessary truth table processing.

第1図111は出力値を真理値表以外の他の論理回路モ
デルへ渡す形式に整えるステップである。
111 in FIG. 1 is a step in which the output value is arranged in a format to be passed to a logic circuit model other than the truth table.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、数個から数十個相当のゲート素子の機
能に相当する真理値表を高速に処理することができる。
According to the present invention, a truth table corresponding to the functions of several to several dozen gate elements can be processed at high speed.

計算によると真理値表の機能に相当する個数のゲート素
子モデルを論理シミュレーションするより約5倍の高速
化が可能である。また、従来のようにプール式への展開
や、ゲート素子モデルの組合せへの変換などが不要にな
るので、論理回路の論理シミュレーション用モデル化工
数の削減に役立つ。更に真理値表の形式がほぼ設計者が
描いた通り残るので論理回路モデルの理解が容易になり
、ひいては誤った記述の防止にも役立つ。
According to calculations, it is possible to speed up the process by about five times compared to performing a logic simulation of the number of gate element models corresponding to the functions of the truth table. Furthermore, unlike in the past, it is no longer necessary to expand to a pool formula or convert to a combination of gate element models, which helps reduce the number of man-hours required to create a model for logic simulation of a logic circuit. Furthermore, since the format of the truth table remains almost as drawn by the designer, it becomes easier to understand the logic circuit model, and it also helps to prevent erroneous descriptions.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明を用いて、0でも1でもよい値を含み得
る真理値表によって表現された論理回路モデルを論理シ
ミュレーションする過程の一例を示すフローチャート、
第2図は本発明を含む論理シミュレーションシステムを
実行させるためのハードウェア構成の一例を示す9第3
図は真理値表表現された論理回路モデルの一例を、第4
図はその論理回路への入力値の変換則の一例と、真理値
表を実際に処理装置へ格納する形式へ変換する規則の一
例を示す。 11・・・入力値を2進数へ変換するステップ、13・
・・入力値の組と真理値表の比較ステップ、14・・・
出力値の組の中でOでも1でもよい値となる部分を計算
するステップ、21.22・・・入力装置、23・・・
データ処理装置、24・・・出力装置。 第 旧 囚 第 巴
FIG. 1 is a flowchart showing an example of the process of logically simulating a logical circuit model expressed by a truth table that may include values of 0 or 1 using the present invention;
FIG. 2 shows an example of the hardware configuration for executing a logic simulation system including the present invention.
The figure shows an example of a logic circuit model expressed as a truth table.
The figure shows an example of a conversion rule for input values to the logic circuit, and an example of a rule for converting a truth table into a format to be actually stored in a processing device. 11... Step of converting input value into binary number, 13.
... Comparison step between input value set and truth table, 14...
Step of calculating a portion of the set of output values that can be either O or 1, 21.22... Input device, 23...
Data processing device, 24...output device. Old Prisoner Tomoe

Claims (1)

【特許請求の範囲】[Claims] 1、入力装置と出力装置と前記入力装置及び出力装置に
接続されたデータ処理装置を有し、論理回路のモデルと
して0、1の2値の他、0、1どちらでもよい値を入力
値あるいは出力値に有する真理値表を取扱うことが可能
な論理回路の論理シミュレーションを行うことのできる
システムに於いて、前記真理値表の入力値の組と高速に
一致チェックするために前期真理値表に対する入力情報
を変換するステップと、一致した一個または複数個の真
理値表の入力値のそれぞれの組に対応する一個または複
数個の出力値に対して、0または1どちらでもよい値と
なるべき部分を算出するステップを有することを特徴と
する真理値表論理シミュレーション方法。
1. It has an input device, an output device, and a data processing device connected to the input device and the output device, and as a model of a logic circuit, in addition to the binary values of 0 and 1, the input value or the value that can be either 0 or 1. In a system that can perform logic simulation of a logic circuit that can handle a truth table that has an output value, in order to quickly check the coincidence with a set of input values in the truth table, a step of converting input information, and a portion that should be either 0 or 1 for one or more output values corresponding to each set of matched input values of one or more truth tables; A truth table logic simulation method comprising the step of calculating .
JP63283581A 1988-11-11 1988-11-11 Truth table logical simulation method Pending JPH02130645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63283581A JPH02130645A (en) 1988-11-11 1988-11-11 Truth table logical simulation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63283581A JPH02130645A (en) 1988-11-11 1988-11-11 Truth table logical simulation method

Publications (1)

Publication Number Publication Date
JPH02130645A true JPH02130645A (en) 1990-05-18

Family

ID=17667372

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63283581A Pending JPH02130645A (en) 1988-11-11 1988-11-11 Truth table logical simulation method

Country Status (1)

Country Link
JP (1) JPH02130645A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100562691B1 (en) * 1996-11-27 2006-08-14 소니 유나이티드 킹덤 리미티드 Arithmetic Circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100562691B1 (en) * 1996-11-27 2006-08-14 소니 유나이티드 킹덤 리미티드 Arithmetic Circuit

Similar Documents

Publication Publication Date Title
US5481717A (en) Logic program comparison method for verifying a computer program in relation to a system specification
US4803636A (en) Circuit translator
WO2009116646A1 (en) Finite automaton generating system for checking character string for multibyte processing
JPH04271443A (en) Method and device for data base constitution
Glushkov et al. Theory of algorithms and discrete processors
Van Tassel Femto-VHDL: The Semantics of a Subset of VHDL and its Embedding in the HOL Proof Assistant
JPH03116281A (en) Logic synthesizing device
US5854926A (en) Method and apparatus for identifying flip-flops in HDL descriptions of circuits without specific templates
JPH02130645A (en) Truth table logical simulation method
Hossain et al. Analysis of Bangla-2-Braille machine translator
KR20230055021A (en) A pyramid layered attention model for nested and overlapped named entity recognition
US7617089B2 (en) Method and apparatus for compiling two-level morphology rules
JP2839574B2 (en) Matching method for logic circuits containing indefinite values
JP3582849B2 (en) Logic program verification method
JP2714015B2 (en) Logic circuit synthesizer
JP2781081B2 (en) Logical operation method by parallel operation mechanism
Mallagaray Formalisation and execution of Linear Algebra: theorems and algorithms
Stroud KSL: University of Kentucky Simulation Language
JP3087699B2 (en) Standard information simple input system and standard information simple input method
JP2897539B2 (en) Hardware description automatic generation method and device
JPS6177967A (en) Simulation of logical circuit
CN116955565A (en) Method and system for generating diversity problem based on syntactic dependency graph joint embedding
JP2806459B2 (en) A logic simulation device that can evaluate flip-flops
JPH04124775A (en) Method for generating logic circuit
Cotton Investigation of Sequential Machine Design Techniques for Implementation of a TRAC Scanning Algorithm