JPH0589196A - Logical processing unit - Google Patents

Logical processing unit

Info

Publication number
JPH0589196A
JPH0589196A JP3252501A JP25250191A JPH0589196A JP H0589196 A JPH0589196 A JP H0589196A JP 3252501 A JP3252501 A JP 3252501A JP 25250191 A JP25250191 A JP 25250191A JP H0589196 A JPH0589196 A JP H0589196A
Authority
JP
Japan
Prior art keywords
binary
processing
case
data
value
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.)
Withdrawn
Application number
JP3252501A
Other languages
Japanese (ja)
Inventor
Kazuyuki Sato
一幸 佐藤
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP3252501A priority Critical patent/JPH0589196A/en
Publication of JPH0589196A publication Critical patent/JPH0589196A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

(57)【要約】 (修正有) 【目的】 速度の低下や構成の増大を招かず2値データ
および4値データの演算処理ができ、2値データである
メモリアクセスに於いて汎用性を維持できる装置の提
供。 【構成】 2値処理の場合は選択回路12〜14の2V
が、4値処理では4Vがアクティブとなる。2値処理の
場合は2値論理演算回路11の出力が演算結果となる。
加算の場合は、選択回路12で2値の場合は隣の奇数ビ
ットから、4値の場合は偶数ビットから入力処理され
る。奇数ビット演算処理部20では2値処理の場合選択
回路22の2Vが、4値処理では4Vがアクティブとな
る。解読器23ではA、B、Cの入力ビットが解読され
る。4値処理の場合は解読器23の結果が、2値処理で
は、2値論理演算回路21の結果が、選択回路22より
出力される。4値処理の場合は2値論理演算回路11か
らの偶数ビット出力(S2i)と奇数ビット(S2i+1)と
の論理和がとられ4値のX値を作り出す。
(57) [Summary] (Modified) [Purpose] Operation of binary data and quaternary data can be performed without lowering the speed and increasing the configuration, maintaining versatility in memory access that is binary data. Providing equipment that can. [Structure] 2 V of the selection circuits 12 to 14 in the case of binary processing
However, in the four-value processing, 4V becomes active. In the case of binary processing, the output of the binary logic operation circuit 11 becomes the operation result.
In the case of addition, the selection circuit 12 processes the input from the adjacent odd bit in the case of binary and from the even bit in the case of quaternary. In the odd bit arithmetic processing unit 20, 2V of the selection circuit 22 becomes active in the case of binary processing and 4V becomes active in the case of quaternary processing. The decoder 23 decodes the input bits A, B and C. The selection circuit 22 outputs the result of the decoder 23 in the case of four-value processing and the result of the binary logic operation circuit 21 in the case of binary processing. In the case of four-value processing, the logical sum of the even bit output (S2i) from the binary logic operation circuit 11 and the odd bit (S2i + 1) is taken to produce a four-valued X value.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、論理シミュレーション
等を行う論理演算処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a logic operation processing device for performing logic simulation or the like.

【0002】[0002]

【従来の技術】従来から、論理シミュレーションにおけ
る論理演算処理は、ソフトウェアあるいはハードウェア
によって実現されている。
2. Description of the Related Art Conventionally, logic operation processing in logic simulation has been realized by software or hardware.

【0003】ソフトウェアで論理シミュレーションを行
う場合、通常、論理演算処理部は多ビット2値データ処
理になっており、4値データ(0、1、X(不定)、Z
(HZ(ハイインピーダンス)))を処理する場合、デ
ータ処理と符号処理を別々に行っている。このため、4
値データを処理する場合、処理速度が遅くなるという問
題があった。
When performing a logic simulation by software, the logic operation processing section is usually multi-bit binary data processing, and 4-value data (0, 1, X (undefined), Z).
When processing (HZ (high impedance)), the data processing and the code processing are performed separately. Therefore, 4
There is a problem that the processing speed becomes slow when processing the value data.

【0004】一方、ハードウェアアクセレータの場合、
4値用の論理演算回路を用いているため、上述したソフ
トウェアによる処理の場合に較べて処理速度は速い。し
かしながら、2値データと4値データのどちらも処理で
きるようにするためには、2値用の論理演算回路の他に
4値用の論理演算回路が必要となる。このため、4値用
の論理演算回路が1ビットであったり、4値専用で回路
モデルに対応するものになっている場合が多く、多ビッ
トの4値データおよび2値データを扱うためにはそれぞ
れ専用のハードウェアを構成しなければいけない。その
為、ハードウェアの回路構成が複雑になるという問題が
あった。
On the other hand, in the case of a hardware accelerator,
Since the 4-valued logical operation circuit is used, the processing speed is faster than that in the case of the processing by the software described above. However, in order to be able to process both binary data and 4-valued data, a 4-valued logical operation circuit is required in addition to the 2-valued logical operation circuit. Therefore, in many cases, the 4-valued logical operation circuit is 1-bit or 4-valued and corresponds to the circuit model. Therefore, in order to handle multi-bit 4-valued data and 2-valued data, You have to configure dedicated hardware for each. Therefore, there is a problem that the circuit configuration of the hardware becomes complicated.

【0005】また、4値データ専用回路の場合、2値デ
ータを処理する時、有効データがとびとびに存在するの
で、処理時間が多くかかるし、メモリ容量を多く必要と
し、メモリの有効活用を図ることができないという問題
があった。
Further, in the case of a circuit for exclusive use of four-valued data, since effective data are scattered everywhere when processing binary data, it takes a lot of processing time, a large memory capacity is required, and effective utilization of the memory is aimed at. There was a problem that I could not.

【0006】[0006]

【発明が解決しようとする課題】上述したように、従来
の技術においては、多ビットの4値データおよび2値デ
ータを処理する場合、処理速度が遅くなったり、ハード
ウェア構成が増大するという問題があった。
As described above, in the conventional technique, when processing multi-bit 4-value data and 2-value data, the processing speed becomes slow and the hardware configuration increases. was there.

【0007】本発明は、かかる従来の事情に対処してな
されたもので、処理速度の低下やハードウェア構成の増
大を招くことなく、2値データおよび4値データを演算
処理することができ、メモリ等の有効利用および高速化
を図ることができるとともに、2値データであるメモリ
アクセスに於いて汎用性を維持することのできる論理演
算処理装置を提供しようとするものである。
The present invention has been made in response to such a conventional situation, and it is possible to process binary data and quaternary data without lowering the processing speed and increasing the hardware configuration. It is an object of the present invention to provide a logical operation processing device capable of effectively using a memory or the like and increasing the speed thereof, and capable of maintaining versatility in memory access which is binary data.

【0008】[0008]

【課題を解決するための手段】すなわち、本発明は、演
算処理装置に於いて、選択的に、2値データ処理又は4
値データ処理を選択する選択手段と、前記選択手段の選
択結果に基づき、2値データ処理又は4値データ処理に
おける偶数ビット目の演算処理を行う第1の2値論理演
算手段と、2値データ処理又は4値データ処理における
奇数ビット目の演算処理を行う第2の2値論理演算手段
と、4値データ処理か否かを決定する手段と、前記決定
手段に基づき、4値データ処理時、前記第2の2値論理
演算手段の演算結果を固定データにする手段と、前記固
定データと前記第1の2値論理演算手段の演算結果との
論理和を出力する手段とを具備し、2値データ処理と符
号処理を別々に設けたことを特徴とする。
That is, according to the present invention, in an arithmetic processing unit, binary data processing or 4 data processing is selectively performed.
Selecting means for selecting the value data processing; first binary logical operation means for performing arithmetic processing of an even number bit in the binary data processing or the four-value data processing based on the selection result of the selecting means; Processing or second binary logic operation means for performing odd-numbered bit arithmetic processing in four-value data processing, means for determining whether or not four-value data processing, and four-value data processing based on the determining means, 2 is provided with a unit for converting the operation result of the second binary logic operation unit into fixed data, and a unit for outputting a logical sum of the fixed data and the operation result of the first binary logic operation unit. It is characterized in that the value data processing and the code processing are provided separately.

【0009】[0009]

【作用】上記構成の本発明の論理演算処理装置では、4
値データを処理する場合にデータ処理と符号処理を別々
に行っている従来のソフトウェアでの論理シミュレーシ
ョンに較べて高速化を図ることができる。また、それぞ
れ4値用の論理演算回路、2値用の論理演算回路を用い
ることなく、多ビットの4値データおよび2値データを
処理することができ、ハードウェア構成の増大を招くこ
とがない。さらに、2値データであるメモリアクセスに
於いて汎用性を維持することができる。
In the logical operation processing device of the present invention having the above structure,
When processing the value data, the speed can be increased as compared with the logic simulation by the conventional software in which the data processing and the code processing are separately performed. In addition, multi-bit 4-value data and 2-value data can be processed without using a 4-value logic operation circuit and a 2-value logic operation circuit, respectively, without increasing the hardware configuration. .. Further, it is possible to maintain versatility in memory access that is binary data.

【0010】[0010]

【実施例】以下、本発明の一実施例を図面を参照して説
明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0011】図1(a)、(b)は、本発明の一実施例
の論理演算処理装置の構成を示すもので、図1(a)
は、2i ビット目すなわち偶数ビット目を処理する偶数
ビット演算処理部10を示しており、図1(b)は、2
i+1 ビット目すなわち奇数ビット目を処理する奇数ビッ
ト演算処理部20を示している。図1(a)において、
11は2値データの論理演算を行う2値論理演算回路、
12、13、14はそれぞれ2値処理と4値処理とで選
別を行う選択回路、15、16は論理和をとるOR回路
である。また、図1(b)において、21は2値データ
の論理演算を行う2値論理演算回路、22は2値処理と
4値処理とで選別を行う選択回路、23は4値データの
符号を決定する解読器である。なお、図1において、
A、Bは入力、Sは出力であり、CIはキャリ入力、C
Oはキャリ出力である。
1A and 1B show the configuration of a logical operation processing device according to an embodiment of the present invention.
Shows an even-bit arithmetic processing unit 10 for processing the 2i-th bit, that is, the even-numbered bit.
The odd bit arithmetic processing unit 20 for processing the i + 1th bit, that is, the odd bit is shown. In FIG. 1 (a),
11 is a binary logic operation circuit for performing a logical operation on binary data,
Reference numerals 12, 13, and 14 are selection circuits that perform selection by binary processing and four-valued processing, and 15 and 16 are OR circuits that take a logical sum. Further, in FIG. 1B, reference numeral 21 is a binary logical operation circuit for performing a logical operation on binary data, 22 is a selection circuit for selecting between binary processing and four-valued processing, and 23 is a code for four-valued data. It is a decipherer that decides. In addition, in FIG.
A and B are inputs, S is an output, CI is a carry input, C
O is a carry output.

【0012】また、図2は4値データを2ビットで表す
4値表現を示しており、図3は4値論理演算における真
理値表を示すものである。なお、図3(a)は、論理
積、論理和、否定の場合の真理値を示すものであり、図
3(b)は、加算の場合の真理値を示すものである。こ
の図3(b)において、符号*は、キャリ出力が1であ
ることを示しており、また、加算結果がXの場合は、キ
ャリ出力もXである。
Further, FIG. 2 shows a quaternary expression in which quaternary data is represented by 2 bits, and FIG. 3 shows a truth table in a quaternary logical operation. It should be noted that FIG. 3A shows the truth value in the case of logical product, logical sum, and negation, and FIG. 3B shows the truth value in the case of addition. In FIG. 3B, the symbol * indicates that the carry output is 1, and when the addition result is X, the carry output is also X.

【0013】以下、演算回路の動作について説明する。The operation of the arithmetic circuit will be described below.

【0014】図1(a)の偶数ビット演算処理部10に
おいて、2値論理演算回路11では、4値処理であって
も、2値処理と同様な演算処理が行われる。また、2値
処理の場合は選択回路12、13、14の2Vが、4値
処理の場合は4Vがそれぞれアクティブとなる。そし
て、2値処理の場合は、選択回路13、14によって、
2値論理演算回路11の出力がそのまま演算結果として
出力される。また、加算の場合は、選択回路12によ
り、入力キャリビットが、2値の場合は隣の奇数ビット
から(CO2i-1)、4値の場合は偶数ビット(CO2i-
2)から入力され、処理される。
In the even-bit arithmetic processing unit 10 of FIG. 1A, the binary logical operation circuit 11 performs the same arithmetic processing as the binary processing even in the four-value processing. In the case of binary processing, 2V of the selection circuits 12, 13, and 14 become active, and in the case of quaternary processing, 4V become active. In the case of binary processing, the selection circuits 13 and 14
The output of the binary logic operation circuit 11 is directly output as the operation result. In addition, in the case of addition, the selection circuit 12 causes the input carry bit to start from the adjacent odd bit (CO2i-1) when the value is binary, and the even bit (CO2i-) when the value is four.
Input from 2) and processed.

【0015】一方、図1(b)の上記奇数ビット演算処
理部20では、2値処理の場合選択回路22の2Vが、
4値処理の場合4Vがそれぞれアクティブとなる。ま
た、解読器23にはA、B、Cの入力ビットが入力さ
れ、解読される。そして、図2の4値状態表に従って、
4値データの場合、[具体的には、X(1、1)と
(0、1)の入力データ、キャリ入力=0]、ビット1
(奇数ビット目)が”1”であるので、従って、解読器
23は、この状態を判断し、2値論理演算回路21の演
算結果Sに係わらず、4Vをアクティブにし選択回路2
2に”1”のデータを強制的に出力する。その結果、演
算結果S2i+1のデータは”1”である。演算結果S2i+1
は、図1a記載のOR回路16の一方の入力端子に入力
される。偶数ビット目の2値論理演算回路11の入力デ
ータA”1”とB”0”と、入力キャリアCI”0”と
から2値論理演算回路11の演算結果S2iは”1”であ
り、OR回路16の他方の入力端子に入力される。選択
回路14は、4Vがアクティブになっているので、OR
回路16からの出力結果”1”が偶数ビット目の2値論
理演算結果になる。従って、4値データ処理の処理結果
は、X(1、1)となる。これは、図3の真理値表の結
果に一致する。また、2値処理の場合は、2値論理演算
回路21によって行われた演算結果が、選択回路22を
介して出力される。
On the other hand, in the odd bit arithmetic processing unit 20 of FIG. 1B, 2V of the selection circuit 22 in the case of binary processing is
In the case of four-value processing, 4V becomes active. Further, the input bits A, B and C are input to the decoder 23 and are decoded. Then, according to the 4-value state table of FIG.
In the case of four-valued data, [specifically, input data of X (1,1) and (0,1), carry input = 0], bit 1
Since the (odd bit) is "1", the decoder 23 therefore judges this state and activates 4V regardless of the operation result S of the binary logic operation circuit 21 and selects circuit 2
The data of "1" is forcibly output to 2. As a result, the data of the calculation result S2i + 1 is "1". Calculation result S2i + 1
Is input to one input terminal of the OR circuit 16 shown in FIG. 1a. The operation result S2i of the binary logic operation circuit 11 is "1" from the input data A "1" and B "0" of the even-bit binary logic operation circuit 11 and the input carrier CI "0", and the OR It is input to the other input terminal of the circuit 16. Since 4V is active in the selection circuit 14, OR
The output result "1" from the circuit 16 becomes the binary logic operation result of the even bit. Therefore, the processing result of the four-value data processing is X (1,1). This is in agreement with the result of the truth table of FIG. Further, in the case of binary processing, the calculation result performed by the binary logic operation circuit 21 is output via the selection circuit 22.

【0016】そして、4値処理の場合は、図1a記載の
OR回路16によって、2値論理演算回路11からの偶
数ビット出力(S2i)と奇数ビット(S2i+1)との論理
和がとられ、(S2i+1)が1ならば(S2i)を1とし
て、4値のX値を作り出す。
In the case of four-value processing, the OR circuit 16 shown in FIG. 1A takes the logical sum of the even bit output (S2i) from the binary logic operation circuit 11 and the odd bit (S2i + 1). , (S2i + 1) is 1, (S2i) is set to 1 and a four-valued X value is created.

【0017】OR回路15は、2値論理演算回路11の
偶数キャリビット出力(C02i)と奇数ビット演算出力
結果(S2i+1)との論理和をとる。(S2i+1)と(C0
2i)が共に”1”なので、OR回路15出力は”1”に
なる。4値データ処理なので、選択回路13は4Vをア
クティブにする。結局、偶数キャリビット出力(C02
i)は、選択回路13を介して”1”となる。図3
(b)の真理値表に基づき、奇数ビット目のキャリビッ
ト出力(C02i+1)は”1”となる。従って、4値デー
タ処理のキャリビット値は、X値となる。
The OR circuit 15 takes the logical sum of the even carry bit output (C02i) of the binary logic operation circuit 11 and the odd bit operation output result (S2i + 1). (S2i + 1) and (C0
Since 2i) are both "1", the output of the OR circuit 15 becomes "1". Since it is four-value data processing, the selection circuit 13 activates 4V. After all, even carry bit output (C02
i) becomes “1” via the selection circuit 13. Figure 3
Based on the truth table of (b), the odd-numbered carry bit output (C02i + 1) becomes "1". Therefore, the carry bit value of the four-value data processing becomes the X value.

【0018】このように、本実施例の論理演算処理装置
によれば、それぞれ4値用の論理演算回路、2値用の論
理演算回路を用いることなく、多ビットの4値データお
よび2値データを処理することができ、かつ、2値デー
タ処理の場合でも有効データがとびとびとならず、デー
タが詰まった状態とすることができるので、メモリを有
効に活用することができる。また、4値データを処理す
る場合にデータ処理と符号処理を別々に行っている従来
のソフトウェアでの論理シミュレーションに較べて高速
化を図ることができる。さらに、2値データであるメモ
リアクセスに於いて汎用性を維持することができる。
As described above, according to the logical operation processing apparatus of the present embodiment, multi-bit 4-value data and binary data can be obtained without using a 4-value logic operation circuit and a 2-value logic operation circuit, respectively. Can be processed, and even in the case of binary data processing, the valid data does not scatter and the data can be in a clogged state, so that the memory can be effectively used. In addition, when processing four-valued data, it is possible to achieve a higher speed than in the conventional logic simulation using software that separately performs data processing and code processing. Further, it is possible to maintain versatility in memory access that is binary data.

【0019】[0019]

【発明の効果】以上説明したように、本発明の論理演算
処理装置によれば、処理速度の低下やハードウェア構成
の増大を招くことなく、2値データおよび4値データを
演算処理することができ、メモリ等の有効利用および高
速化を図ることができるとともに、2値データであるメ
モリアクセスに於いて汎用性を維持することができる。
As described above, according to the logical operation processing device of the present invention, binary data and quaternary data can be processed without lowering the processing speed or increasing the hardware configuration. Therefore, it is possible to effectively use the memory and increase the speed, and it is possible to maintain versatility in the memory access that is binary data.

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

【図1】本発明の一実施例の論理演算処理装置の構成を
示す図。
FIG. 1 is a diagram showing a configuration of a logical operation processing device according to an embodiment of the present invention.

【図2】4値データを2ビットで表す4値表現を示す
図。
FIG. 2 is a diagram showing a quaternary expression in which quaternary data is represented by 2 bits.

【図3】4値論理演算における真理値表を示す図。FIG. 3 is a diagram showing a truth table in a four-valued logical operation.

【符号の説明】[Explanation of symbols]

10 偶数ビット演算処理部 11 2値論理演算回路 12、13、14 選択回路 15、16 OR回路 20 奇数ビット演算処理部 21 2値論理演算回路 22 選択回路 23 解読器 10 even-bit operation processing unit 11 binary logic operation circuit 12, 13, 14 selection circuit 15, 16 OR circuit 20 odd-bit operation processing unit 21 binary logic operation circuit 22 selection circuit 23 decoder

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 演算処理装置に於いて、 選択的に、2値データ処理又は4値データ処理を選択す
る選択手段と、 前記選択手段の選択結果に基づき、2値データ処理又は
4値データ処理における偶数ビット目の演算処理を行う
第1の2値論理演算手段と、 2値データ処理又は4値データ処理における奇数ビット
目の演算処理を行う第2の2値論理演算手段と、 4値データ処理か否かを決定する手段と、 前記決定手段に基づき、4値データ処理時、前記第2の
2値論理演算手段の演算結果を固定データにする手段
と、 前記固定データと前記第1の2値論理演算手段の演算結
果との論理和を出力する手段とを具備し、 2値データ処理と符号処理を別々に設けたことを特徴と
する論理演算処理装置。
1. In an arithmetic processing unit, selecting means for selectively selecting binary data processing or quaternary data processing, and binary data processing or quaternary data processing based on the selection result of the selecting means. A first binary logical operation means for performing an even-numbered bit arithmetic operation in the above, a second binary logical operation means for performing an odd-numbered arithmetic operation in the binary data processing or the four-value data processing, and a four-valued data Means for deciding whether or not to process, means for setting the operation result of the second binary logic operation means to fixed data during 4-value data processing based on the deciding means, the fixed data and the first A logical operation processing device comprising: means for outputting a logical sum of the operation result of the binary logic operation means; and binary data processing and code processing provided separately.
JP3252501A 1991-09-30 1991-09-30 Logical processing unit Withdrawn JPH0589196A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3252501A JPH0589196A (en) 1991-09-30 1991-09-30 Logical processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3252501A JPH0589196A (en) 1991-09-30 1991-09-30 Logical processing unit

Publications (1)

Publication Number Publication Date
JPH0589196A true JPH0589196A (en) 1993-04-09

Family

ID=17238252

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3252501A Withdrawn JPH0589196A (en) 1991-09-30 1991-09-30 Logical processing unit

Country Status (1)

Country Link
JP (1) JPH0589196A (en)

Similar Documents

Publication Publication Date Title
US9870530B2 (en) Methods and systems for data analysis in a state machine
US11928590B2 (en) Methods and systems for power management in a pattern recognition processing system
US20160239440A1 (en) Methods and systems for routing in a state machine
TWI489779B (en) Boolean logic in a state machine lattice
US8782624B2 (en) Methods and systems for detection in a state machine
US20180341612A1 (en) Methods and apparatuses for providing data received by a state machine engine
US20150253755A1 (en) Counter operation in a state machine lattice
JPH08339291A (en) Selection circuit of maximum value
JPH0697932A (en) Method and apparatus for encoding of communication signal
JPH01297723A (en) Control data regenerating device for sort processor
JP4044586B2 (en) Method and system for performing Boolean operations on bit strings using maximum bit slices
JPH0589196A (en) Logical processing unit
JPH06161712A (en) Multi-value subtracter
CN115865842A (en) A method, device, electronic device and storage medium for configuring flow table behavior
CN116032457A (en) Chaotic flow encryption method, device, equipment and medium based on Tent mapping
CN111857651B (en) Method for parallel addition of multiple small bits by multi-bit adder and application thereof
JPS62184534A (en) Arithmetic circuit
JPH0523013Y2 (en)
JPH01114937A (en) Absolute value generator
JPH06131158A (en) Adding method and addition circuit
JPS63298436A (en) Arithmetic logical operation unit
JPH0779247B2 (en) Decode circuit
JPH0531790B2 (en)
JPH02193268A (en) Image data binarization compressing device
JPS62159284A (en) Multilevel image processing device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19981203