JPS63298436A - Arithmetic logical operation unit - Google Patents

Arithmetic logical operation unit

Info

Publication number
JPS63298436A
JPS63298436A JP13249087A JP13249087A JPS63298436A JP S63298436 A JPS63298436 A JP S63298436A JP 13249087 A JP13249087 A JP 13249087A JP 13249087 A JP13249087 A JP 13249087A JP S63298436 A JPS63298436 A JP S63298436A
Authority
JP
Japan
Prior art keywords
circuit
arithmetic
bit
carry signal
data
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
JP13249087A
Other languages
Japanese (ja)
Inventor
Koichi Horiuchi
浩一 堀内
Sumio Ozawa
小沢 純雄
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP13249087A priority Critical patent/JPS63298436A/en
Publication of JPS63298436A publication Critical patent/JPS63298436A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To process plural data to one time as a single operation subject input data and shortening the processing time by stopping the transmission of the carry signals produced for each bit at an optional bit position and supplying an input carry signal to an optional bit position via a selection circuit. CONSTITUTION:An arithmetic circuit 103 is used together with a carry signal selecting circuit 109 and a selection signal generating circuit 111. The circuit 109 stops the transmission of the carry signals produced by the circuit 103 at an optional bit position to the circuit 103 corresponding to the higher level bits. Then an operation subject input carry signal is supplied to the circuit 103 corresponding to an optional bit. Thus it is possible to process plural data packed into a single word at one time as a single operation subject input data in accordance with each valid bit length and bit position.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、1ワード内に種々の有効ビット長をもつ複数
のデータがパックされたデータが存在するデータ処理シ
ステムにおける算術論理演算装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an arithmetic and logic operation unit in a data processing system in which there is data in which a plurality of data having various effective bit lengths are packed in one word. .

        ゛従来の技術 従来の算術論理演算装置の一例(例えば、モリスマーノ
(Morris Nano )著、奥用峻史・井上訓行
共訳「コンピュータの論理設計」、1983年3月1日
、共立出版、P、97)を第2図に示す。
゛Conventional Technology An example of a conventional arithmetic and logic operation device (for example, "Logic Design of Computers" by Morris Nano, co-translated by Shunji Okuyo and Noriyuki Inoue, March 1, 1983, Kyoritsu Shuppan, P. 97) is shown in FIG.

第2図は、長さ4ビツトの2つの入力データについて演
算を行なう算術論理演算装置の一例である。201及び
202は演算対象となる入力データ、203は上記の各
々の入力データの対応するビット間の演算を行なう演算
回路、204は演算回路203における演算のモード(
例えば論理積演算、加算など)を制御する信号205を
生成する回路、206は最下位ビットに対応する演算回
路203への演算対象となる入力桁上げ信号、207は
各々の演算回路203が生成する桁上げ信号、208は
各々の演算回路203の演算結果出力データ、209は
最上位ビットに対応する演算回路203からの出力桁上
げ信号である。
FIG. 2 is an example of an arithmetic and logic operation device that performs operations on two input data having a length of 4 bits. 201 and 202 are input data to be operated on, 203 is an arithmetic circuit that performs an operation between corresponding bits of each input data, and 204 is an operation mode in the arithmetic circuit 203 (
206 is an input carry signal to be operated on to the arithmetic circuit 203 corresponding to the least significant bit; 207 is generated by each arithmetic circuit 203 A carry signal 208 is the operation result output data of each arithmetic circuit 203, and 209 is an output carry signal from the arithmetic circuit 203 corresponding to the most significant bit.

2つの入力データ201と202の間で加算を行なう場
合を例として動作を説明する。入力データ201をAi
(i=o〜3.但しi=o1MsBとする。)、入力デ
ータ202をBi(l=o〜3)とし、第1ビツトに対
応する演算回路203への桁上げ信号をC3、演算結果
出力データを1+1 F8、生成される桁上げ信号をCthとすると、演算回
路203は次式で示す演算を行なう。
The operation will be explained by taking as an example the case where addition is performed between two input data 201 and 202. Ai the input data 201
(i=o~3. However, i=o1MsB.), input data 202 is Bi (l=o~3), carry signal to the arithmetic circuit 203 corresponding to the first bit is C3, arithmetic result output Assuming that the data is 1+1 F8 and the generated carry signal is Cth, the arithmetic circuit 203 performs the calculation shown in the following equation.

Fi= (Ai■Bi )Ci+1 C= A B +(A、■Bi)Ci+11   t 
l 但し、入力桁上げ信号C4=1とし、■は排他的論理和
演算を表わす。
Fi= (Ai■Bi)Ci+1 C= A B + (A, ■Bi)Ci+11 t
l However, the input carry signal C4 is set to 1, and ■ represents an exclusive OR operation.

発明が解決しようとする問題点 しかしながら、上記のような構成では、1ワード内に種
々の有効ビット長をもつ複数のデータがパックされたデ
ータを演算対象とする場合には、演算結果出力データ2
08及び出力桁上げ信号209は意味をもたなくなる。
Problems to be Solved by the Invention However, in the above configuration, when data in which a plurality of pieces of data having various effective bit lengths are packed in one word is to be operated on, the operation result output data 2
08 and output carry signal 209 have no meaning.

上記のようなデータが存在するデータ処理システムにお
いては、実際の演算対象となるパックされた各データに
対する演算結果出力データや出力桁上げ信号が必要にな
る。例えば、第2図の例において、2ビツトのデータ0
1と2ビツトのデータ11がパックされた4ビツトのデ
ータ0111と、2ビツトのデータ00と2ビツトのデ
ータ11がパックされた4ビツトのデータo011を加
算する場合、演算結果は1010となり、出力桁上げ信
号として論理″0”を生成する。しかしながら演算対象
となるパックされた各データに着目すると、演算結果は
上位2ビツトによるolと下位2ビツトによる10がパ
ックされたolloとなり、出力桁上げ信号も上位2ビ
ツトによる論理“0”と下位2ビツトによる論理@1″
を生成すべきである。従って、第2図の構成をもつよう
な算術論理演算装置で、1ワード内に種々の有効ビット
長をもつ複数のデータがパックされたデータを演算対象
とする場合には、パックされた各データ毎にそれ専用の
算術論理演算装置をもたせるか、又はノ<ツクされた各
データ毎にそのデータを演算対象としてパックされたデ
ータ数だけ処理を行なう必要があり、前者の場合にはハ
ードウェア量が膨大になシ、又後後者の場合には処理時
間が増大するという欠点がある。
In a data processing system in which the above-mentioned data exists, operation result output data and output carry signals are required for each piece of packed data that is the subject of actual operation. For example, in the example shown in Figure 2, the 2-bit data 0
When adding 4-bit data 0111 packed with 1 and 2-bit data 11 and 4-bit data o011 packed with 2-bit data 00 and 2-bit data 11, the calculation result becomes 1010, and the output is A logic "0" is generated as a carry signal. However, if we focus on each piece of packed data that is the object of the operation, the operation result will be OL, which is packed with OL by the upper 2 bits and 10 by the lower 2 bits, and the output carry signal will also be a logic "0" by the upper 2 bits and a logic "0" by the lower 2 bits. Logic with 2 bits @1″
should be generated. Therefore, in an arithmetic and logic operation unit having the configuration shown in Fig. 2, when data in which multiple pieces of data with various effective bit lengths are packed into one word is to be operated on, each packed data Either it is necessary to have a dedicated arithmetic and logic operation unit for each data, or it is necessary to process each piece of data by the number of packed data, and in the former case, the amount of hardware is However, in the latter case, there is a disadvantage that the processing time increases.

上記のように第2図の構成をもつような算術論理演算装
置では、1ワード内に種々の有効ビット長をもつ複数の
データがパックされたデータに対して、有意な演算結果
出力データや出力桁上げ信号が生成されないという問題
点を有していた。
As mentioned above, in an arithmetic logic unit having the configuration shown in Figure 2, significant operation result output data and The problem was that a carry signal was not generated.

本発明はかかる点に鑑み、1ワード内にパックされた複
数のデータを各々の有効ビット長及びビット位置に応じ
て、一つの演算対象入力データとして一度に処理する算
術論理演算装置を提供することを目的とする。
In view of this, the present invention provides an arithmetic and logic operation device that processes a plurality of data packed into one word at once as one operation target input data according to each effective bit length and bit position. With the goal.

問題点を解決するための手段 本発明は、上記問題点を解決するために各ビット毎に演
算結果に応じた桁上げ信号と生成する演算回路と、各ビ
ット毎に上記演算回路により生成された桁上げ信号の上
位ビットに対応する上記演算回路への伝搬を任意のビッ
ト位置で止め、演算対象入力桁上げ信号を任意のビット
に対応する上記演算回路に入力させる桁上げ信号選択回
路と、上記桁上げ信号選択回路への選択制御信号を生成
する選択信号生成回路を備えた算術論理演算装置である
Means for Solving the Problems In order to solve the above problems, the present invention provides an arithmetic circuit that generates a carry signal according to the arithmetic result for each bit, and a carry signal generated by the arithmetic circuit for each bit. a carry signal selection circuit that stops propagation of the carry signal to the arithmetic circuit corresponding to the upper bit at an arbitrary bit position and inputs the input carry signal to be operated on to the arithmetic circuit corresponding to the arbitrary bit; The present invention is an arithmetic and logic operation device that includes a selection signal generation circuit that generates a selection control signal to a carry signal selection circuit.

作  用 本発明は上記した構成により、桁上げ信号選択回路が、
各ビット毎に演算回路により生成された桁上げ信号の上
位ビットに対応する演算回路への伝搬を任意のビット位
置で止め、演算対象入力桁上げ信号を任意のビットに対
応する演算回路に入力させるので、1ワード内にパック
された複数のデータを各々の有効ビット長及びビット位
置に応じて、一つの演算対象入力データとして一度に処
理する。
Effect of the present invention With the above-described configuration, the carry signal selection circuit
The propagation of the carry signal generated by the arithmetic circuit for each bit to the arithmetic circuit corresponding to the upper bit is stopped at an arbitrary bit position, and the input carry signal to be operated is input to the arithmetic circuit corresponding to the arbitrary bit. Therefore, a plurality of pieces of data packed into one word are processed at once as one operation target input data according to each effective bit length and bit position.

実施例 第1図は本発明の算術論理演算装置の一実施例を示すブ
ロック図である。第1図は最大有効ビット長が4ビツト
の2つの入力データについて演算を行なう場合の一例で
ある。101及び102は演算対象となる入力データ、
103は上記の各々の入力データの対応するビット間i
の演算を行なう演算回路、104は演算回路103にお
ける演算のモードを制御する信号105を生成する回路
、106は演算対象となる入力桁上げ信号、107は各
々の演算回路103が生成する出力桁上げ信号、108
は各々の演算回路103の演算結果出力データ、109
は入力桁上げ信号106と各々の桁上げ信号107のう
ち1つの信号を選択する選択回路、111は各々の桁上
げ信号選択回路109に対する選択制御信号112を生
成する回路、110は各々の桁上げ信号選択回路109
によって選択された桁上げ信号である。
Embodiment FIG. 1 is a block diagram showing an embodiment of the arithmetic and logic operation device of the present invention. FIG. 1 shows an example in which an operation is performed on two input data having a maximum effective bit length of 4 bits. 101 and 102 are input data to be calculated,
103 is i between corresponding bits of each of the above input data
104 is a circuit that generates a signal 105 that controls the mode of calculation in the calculation circuit 103, 106 is an input carry signal to be calculated, and 107 is an output carry generated by each calculation circuit 103. signal, 108
is the calculation result output data of each calculation circuit 103, 109
111 is a selection circuit that selects one signal from the input carry signal 106 and each carry signal 107; 111 is a circuit that generates a selection control signal 112 for each carry signal selection circuit 109; and 110 is a selection circuit for each carry signal. Signal selection circuit 109
This is the carry signal selected by .

以上のように構成された本実施例の算術論理演算装置に
ついて、以下にその動作を説明する。
The operation of the arithmetic and logic operation device of this embodiment configured as described above will be explained below.

入力データ101と102は各々の対応するビット毎に
演算回路103に入力される。各波回路1o3ではこれ
らの入力データ及び同じビットに対応する桁上げ信号選
択回路109からの桁上げ信号110をもとに、(但し
、最下位ビットに対応する演算回路103の場合は、桁
上げ信号110の代わりに入力桁上げ信号106を用い
るものとする。)演算モード制御信号106に応じた演
算が行なわれ、演算結果出力データ108及び、上位ビ
ットに対応する桁上げ信号選択回路109への入力及び
外部への出力となる出力桁上げ信号107を生成する。
Input data 101 and 102 are input to an arithmetic circuit 103 for each corresponding bit. In each wave circuit 1o3, based on these input data and the carry signal 110 from the carry signal selection circuit 109 corresponding to the same bit (however, in the case of the arithmetic circuit 103 corresponding to the least significant bit, the carry (The input carry signal 106 is used instead of the signal 110.) An operation is performed according to the operation mode control signal 106, and the operation result output data 108 and the carry signal selection circuit 109 corresponding to the upper bit are sent. An output carry signal 107 is generated as input and output to the outside.

また、各桁上げ信号選択回路109では、桁上げ信号選
択制御信号112に応じて、下位ビットに対応する演算
回路103からの出力桁上げ信号107と入力桁上げ信
号106のうち1つの信号を、同じビットに対応する演
算回路103への入力となる桁上げ信号11oとして選
択する。
In addition, each carry signal selection circuit 109 selects one of the output carry signal 107 and input carry signal 106 from the arithmetic circuit 103 corresponding to the lower bit according to the carry signal selection control signal 112. It is selected as the carry signal 11o that is input to the arithmetic circuit 103 corresponding to the same bit.

第1図の例において入力データ101をAi(i=o〜
3)、入力データ1o2をB、(i=o〜3)とし、第
iビットに対応する涙算回路103への桁上げ信号11
0をDi1演算結果出1カデータ108をFi、出力桁
上げ信号107をCiとし、入力桁上げ信号106をD
4とする。例えば、入力データ101が有効ビット長2
ビツトのデータo1と有効ビット長2ビツトのデータ1
1がパックされた4ビツトのデータA=0111、人力
データ102が有効ピット長2ピツトのデータo。
In the example of FIG. 1, the input data 101 is Ai (i=o~
3), input data 1o2 is set to B, (i=o~3), and carry signal 11 is sent to the tear calculation circuit 103 corresponding to the i-th bit.
0 is Di1 calculation result output 1 data 108 is Fi, output carry signal 107 is Ci, input carry signal 106 is D
Set it to 4. For example, input data 101 has an effective bit length of 2
Bit data o1 and effective bit length 2 bit data 1
Data A of 4 bits packed with 1 = 0111, human data 102 is data o with an effective pit length of 2 pits.

と有効ビット長2ビツトのデータ11がパックされた4
ビツトのデータB=0011、入力桁上げ信号106が
D4=0で、演算モードが加算の場合を考える。
and data 11 with an effective bit length of 2 bits are packed 4
Consider the case where bit data B=0011, input carry signal 106 is D4=0, and the calculation mode is addition.

このとき、各々の桁上げ信号選択回路においてDo=C
1・D1=D4・D2=C3 が選択されるように桁上げ信号選択制御信号112が選
択信号生成回路111において生成される。
At this time, Do=C in each carry signal selection circuit
A carry signal selection control signal 112 is generated in the selection signal generation circuit 111 so that 1.D1=D4.D2=C3 is selected.

また、各々の演算回路103では次式で示す演算が行な
われる。
Further, each arithmetic circuit 103 performs an arithmetic operation expressed by the following equation.

F、=(A、(EIB、)D。F, = (A, (EIB,)D.

C,=At Bi+ (A、■Bl)D。C,=At Bi+ (A,■Bl)D.

但し、■は排他的論理和を表わす。However, ■ represents exclusive OR.

この演算の結果として Fo=o、E1=1.F2=1.F3=OC=o、C=
1.C2=1.C3=1 が生成される。
As a result of this operation, Fo=o, E1=1. F2=1. F3=OC=o, C=
1. C2=1. C3=1 is generated.

この結果、本算術論理演算装置は、上位2ビツトの演算
結果出力データとしてF。F1=01.桁上げ信号とし
てC0=1を、下位2ビツトの演算結果出力データとし
て12132109桁上げ信号としてC2=1を出力す
る。
As a result, this arithmetic and logic operation device outputs F as the operation result output data of the upper 2 bits. F1=01. C0=1 is output as a carry signal, and C2=1 is output as a 12132109 carry signal as the operation result output data of the lower two bits.

発明の効果 以上のように、本発明によれば、各ビット毎に生成され
る桁上げ信号の伝搬を任意のビット位置で止め、入力桁
上げ信号を任意のピット位置に入力させる選択回路を設
けることにより、1ワード内にパックされた複数のデー
タを各々の有効ビット長及びピット位置に応じて一つの
演算対象入力データとして一度に処理する算術論理演算
装置が構成でき、1ワード内に種々の有効ビット長をも
つ複数のデータがパックされたデータが存在するデータ
処理システムにおける実用的効は大きい。
Effects of the Invention As described above, according to the present invention, a selection circuit is provided which stops the propagation of a carry signal generated for each bit at an arbitrary bit position and inputs an input carry signal to an arbitrary pit position. By doing this, it is possible to configure an arithmetic and logic operation device that processes multiple pieces of data packed in one word at once as one operation target input data according to each effective bit length and pit position. This has great practical effects in a data processing system where there is data in which a plurality of pieces of data having an effective bit length are packed.

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

第1図は本発明における一実施例の算術論理演算装置の
ブロック図、第2図は従来の算術論理演算装置の一列を
示すブロック図である。 103・・・・・・演算回路、104・・・・・・演算
モード制御回路、109・・・・・・桁上げ信号選択回
路、106゜107.110・・・・・・桁上げ信号、
111・・・・・・選択信号生成回路。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第2
FIG. 1 is a block diagram of an arithmetic and logic operation device according to an embodiment of the present invention, and FIG. 2 is a block diagram showing a row of conventional arithmetic and logic operation devices. 103... Arithmetic circuit, 104... Arithmetic mode control circuit, 109... Carry signal selection circuit, 106° 107.110... Carry signal,
111...Selection signal generation circuit. Name of agent: Patent attorney Toshio Nakao and 1 other person 2nd
figure

Claims (1)

【特許請求の範囲】[Claims] 複数の演算対象入力データの対応するビット毎に演算を
行ない、各ビット毎に演算結果に応じた桁上げ信号を生
成する演算回路と、上記演算回路の演算のモードを指定
する演算モード制御回路と、各ビット毎に上記演算回路
により生成された桁上げ信号の上位ビットに対応する上
記演算回路へ伝搬を任意のビット位置で止め、演算対象
入力桁上げ信号を任意のビットに対応する上記演算回路
に入力させる桁上げ信号選択回路と、上記桁上げ信号選
択回路への選択制御信号を生成する選択信号生成回路を
具備し、1ワード内にパックされた複数のデータを各々
の有効ビット長及びビット位置に応じて、一つの演算対
象入力データとして一度に処理することを特徴とする算
術論理演算装置。
an arithmetic circuit that performs an arithmetic operation on each corresponding bit of a plurality of arithmetic target input data and generates a carry signal according to the arithmetic result for each bit; an arithmetic mode control circuit that specifies an arithmetic mode of the arithmetic circuit; , the arithmetic circuit stops propagation of the carry signal generated by the arithmetic circuit for each bit to the arithmetic circuit corresponding to the upper bit at an arbitrary bit position, and transfers the input carry signal to be operated on to the arithmetic circuit corresponding to the arbitrary bit. and a selection signal generation circuit that generates a selection control signal to the carry signal selection circuit. An arithmetic and logic operation device that processes input data as one operation target at one time according to its position.
JP13249087A 1987-05-28 1987-05-28 Arithmetic logical operation unit Pending JPS63298436A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13249087A JPS63298436A (en) 1987-05-28 1987-05-28 Arithmetic logical operation unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13249087A JPS63298436A (en) 1987-05-28 1987-05-28 Arithmetic logical operation unit

Publications (1)

Publication Number Publication Date
JPS63298436A true JPS63298436A (en) 1988-12-06

Family

ID=15082591

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13249087A Pending JPS63298436A (en) 1987-05-28 1987-05-28 Arithmetic logical operation unit

Country Status (1)

Country Link
JP (1) JPS63298436A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010165245A (en) * 2009-01-16 2010-07-29 Fujitsu Ltd Processor
CN104808966A (en) * 2014-01-29 2015-07-29 马维尔以色列(Misl)有限公司 Method and apparatus for valid encoding

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010165245A (en) * 2009-01-16 2010-07-29 Fujitsu Ltd Processor
CN104808966A (en) * 2014-01-29 2015-07-29 马维尔以色列(Misl)有限公司 Method and apparatus for valid encoding
CN104808966B (en) * 2014-01-29 2019-03-12 马维尔以色列(M.I.S.L.)有限公司 The method and apparatus of efficient coding

Similar Documents

Publication Publication Date Title
JPH0222423B2 (en)
US5222141A (en) Apparatus and method for encoding data
JPS63298436A (en) Arithmetic logical operation unit
US3234370A (en) Segmented arithmetic device
JPH0727455B2 (en) Logic synthesis network
JP3014618B2 (en) Fuzzy arithmetic unit
JPS63163654A (en) Device for selecting input/output unit
RU2134442C1 (en) Device for logic program control of electric drives, electronic switches, and alarms
JPS61157935A (en) Arithmetic logic unit
JPS61131137A (en) Continuous generating system of plural addresses
JPH044612B2 (en)
SU1019457A1 (en) Digital function generator
JP2715493B2 (en) Semiconductor memory device
JPH07134731A (en) Node operation pipeline
KR0182037B1 (en) Over sampling digital filter
JPH0497473A (en) Information processor
JPH038016A (en) Latch data bit operating circuit
JPS61163435A (en) Random number generator
JPS6442758A (en) Input and output control system
JPS59189430A (en) Interruption controlling system
JPH07112186B2 (en) Synchronous processing LSI interface method
JPS6352236A (en) Data conversion processing system
JPS6115273A (en) Vector arithmetic processor
JPH0581339A (en) Data processor
JPH02306725A (en) Method and apparatus for code conversion