JPH031693B2 - - Google Patents

Info

Publication number
JPH031693B2
JPH031693B2 JP17871984A JP17871984A JPH031693B2 JP H031693 B2 JPH031693 B2 JP H031693B2 JP 17871984 A JP17871984 A JP 17871984A JP 17871984 A JP17871984 A JP 17871984A JP H031693 B2 JPH031693 B2 JP H031693B2
Authority
JP
Japan
Prior art keywords
data
zero value
leading zero
bit
arithmetic units
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.)
Expired
Application number
JP17871984A
Other languages
Japanese (ja)
Other versions
JPS6155733A (en
Inventor
Makoto Suwada
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.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP17871984A priority Critical patent/JPS6155733A/en
Publication of JPS6155733A publication Critical patent/JPS6155733A/en
Publication of JPH031693B2 publication Critical patent/JPH031693B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、複数の演算ユニツトに並列的にビツ
ト分配されたデータを使用するデータ処理装置の
演算方式に関する。さらに具体的には、並列処理
方式のデータ処理装置におけるデータのリーデイ
ングゼロ値を検出する方法に関する。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to an arithmetic system for a data processing device that uses data whose bits are distributed in parallel to a plurality of arithmetic units. More specifically, the present invention relates to a method of detecting a leading zero value of data in a parallel processing type data processing device.

〈従来技術〉 従来、この種の並列処理方式のデータ処理装置
では、並列的にビツト分配されたデータのリーデ
イングゼロ値を得る為に、シリアルな形に変換し
てから検出しなければならなかつた。従つて、シ
リアル変換によりデータのビツト数幅が大きくな
り、それに伴つて各並列演算ユニツトとは別の演
算器や、複雑な制御が必要になる等の欠点があつ
た。
<Prior art> Conventionally, in this type of parallel processing type data processing device, in order to obtain the leading zero value of data whose bits are distributed in parallel, it was necessary to convert the data into serial form before detection. . Therefore, serial conversion increases the width of the number of data bits, which has the disadvantage of requiring a separate arithmetic unit from each parallel arithmetic unit and complicated control.

〈発明の目的〉 本発明の目的は、各並列演算ユニツトを有効に
使い、かつ簡単な比較回路を設ける事により、上
記欠点を解決し、リーデイングゼロ値の検出を効
率化させる方式を提供する事にある。
<Objective of the Invention> The object of the present invention is to provide a system that solves the above-mentioned drawbacks and improves the efficiency of detecting the leading zero value by effectively using each parallel processing unit and providing a simple comparison circuit. It is in.

〈発明の構成〉 本発明は、順序付けられた複数個の演算ユニツ
トを含むデータ処理装置において、2値データの
各位のビツトを上位ビツトより前記演算ユニツト
に対応した順序に従つて分配する手段を有し、前
記各演算ユニツトは分配されたビツトデータの組
を入力としてリーデイングゼロ値を検出する手段
を備え、該各演算ユニツトのリーデイングゼロ値
検出手段の出力結果を入力とする比較手段を備え
る事によつて、前記2値データのリーデイングゼ
ロ値を検出する事を特徴としたリーデイングゼロ
値検出方式である。
<Structure of the Invention> The present invention provides a data processing device including a plurality of ordered arithmetic units, which includes means for distributing bits of each bit of binary data in an order corresponding to the arithmetic units, starting from the most significant bits. Each of the arithmetic units is provided with a means for detecting a leading zero value using the distributed set of bit data as an input, and a comparing means is provided for receiving an output result of the leading zero value detecting means of each arithmetic unit. Therefore, this is a leading zero value detection method characterized by detecting the leading zero value of the binary data.

〈実施例〉 次に本発明による実施例について、図面を参照
して詳細に説明する。
<Example> Next, an example according to the present invention will be described in detail with reference to the drawings.

第1図は演算ユニツトが4個の場合の構成図を
示す。100は、101で示す2値データを分配
する分配手段を示す。ただし、101内の数値は
各ビツトの位置を示す。200は第0の演算ユニ
ツトを示し、以下、210,220,230は第
1、第2、第3の各演算ユニツトを示す。
FIG. 1 shows a configuration diagram when there are four arithmetic units. Reference numeral 100 indicates a distribution means for distributing binary data indicated by 101. However, the numerical value within 101 indicates the position of each bit. Reference numeral 200 indicates the 0th arithmetic unit, and hereinafter, 210, 220, and 230 indicate the first, second, and third arithmetic units.

201,211,221,231は、各演算ユ
ニツト200〜230に分配されたビツトデータ
の組を示し、該ビツトデータの組201〜231
内の数値は、2値データ101で示された2値数
のビツト位置に対応している。
201, 211, 221, and 231 indicate sets of bit data distributed to each arithmetic unit 200 to 230, and the sets of bit data 201 to 231
The numerical values within correspond to the bit positions of the binary number indicated by the binary data 101.

250,251,252,253は、それぞれ
リーデイングゼロ値の検出手段を示す。300は
比較手段を示す。
250, 251, 252, and 253 each indicate a leading zero value detection means. 300 indicates a comparison means.

第2図にリーデイングゼロ値検出の実施例を示
す。201〜231は、第1図に於けるビツトデ
ータの組を示しており、データとしてそれぞれ、
201=00000010…,211=00000001…,22
1=00001011…,231=00000100…が与えられ
ているものとする。
FIG. 2 shows an embodiment of leading zero value detection. 201 to 231 indicate sets of bit data in FIG.
201=00000010…,211=00000001…,22
It is assumed that 1=00001011..., 231=00000100... are given.

なお、ビツトデータの組201〜231の上に
示す数字は、シリアルなもとの2値データ101
のビツト位置を表わしている。また、第2図の一
番上の数字は、各ビツトデータの組201〜23
1の各ビツトの位置を示す。
Note that the numbers shown above the bit data sets 201 to 231 are the serial original binary data 101.
represents the bit position. In addition, the numbers at the top of FIG. 2 indicate each bit data set 201 to 23.
The position of each bit of 1 is shown.

第2図の例でのリーデイングゼロ値は、2値デ
ータ101の位置で18番目であり、これは2値数
で表わすと、00010010=1×24+1×21=16+2
となる。これは、通常“0”の数をビツト位置の
順に計数する事により得るが、これは、図の一点
鎖線に示す位置よりも左の“0”の数を計数する
事になる。
In the example of FIG. 2, the leading zero value is the 18th position in the binary data 101, which is expressed as a binary number: 00010010 = 1 x 2 4 + 1 x 2 1 = 16 + 2
becomes. This is usually obtained by counting the number of "0"s in the order of the bit positions, but this means counting the number of "0s" to the left of the position indicated by the dashed line in the figure.

一方、各並列データ201〜231を左側から
見ていくと、最初に“1”が出てくるまでは全て
“0”である事は明白であるから、各演算ユニツ
ト200〜230で得るリーデイングゼロ値は、
第0の演算ユニツト200の場合、6番目でa0
=000110=1×22+1×21=4+2=、同様に
第1の演算ユニツト210の場合、7番目でa1
=000111=1×22+1×21+1×20=4+2+1
、第2の演算ユニツト220の場合、4番目
でa2=000100=1×22、第3の演算ユニツト
の場合、5番目でa3=000101=1×22+1×20
4+1=である。
On the other hand, if we look at each of the parallel data 201 to 231 from the left, it is clear that all of them are "0" until the first "1" appears, so the leading zero value obtained by each calculation unit 200 to 230 teeth,
In the case of the 0th arithmetic unit 200, the 6th a0
=000110=1×2 2 +1×2 1 =4+2= 6 Similarly, in the case of the first arithmetic unit 210, a1 at the seventh
=000111=1×2 2 +1×2 1 +1×2 0 =4+2+1
= 7 , in the case of the second calculation unit 220, a2 = 000100 = 1 x 2 2 = 4 in the case of the 4th calculation unit, a3 = 000101 = 1 x 2 2 + 1 × 2 0 = in the case of the 5th calculation unit, in the case of the third calculation unit
4+1= 5 .

したがつて、00010010を得るためには、これら
a0〜a3を比較して検出した最小値a2=
000100を4倍し、最小値である演算ユニツト22
0より上位に位置する演算ユニツト200,21
0の数を加算すればよい。すなわち、000100×(4)
+(2)=010000+000010=010010である。
Therefore, in order to obtain 00010010, the minimum value a2=a2=
Multiply 000100 by 4 and calculate the minimum value, arithmetic unit 22.
Arithmetic units 200, 21 located above 0
Just add the number of 0's. i.e. 000100×(4)
+(2)=010000+000010=010010.

この時、上位に位置する演算ユニツト200,
210の数は、最小値を示す演算ユニツト220
の2進数番号〔10〕に対応している為、各演算ユ
ニツトに対しその2進数番号〔00〕〜〔11〕は、
固定値となる。即ち、最小値“000100”を4倍
し、演算ユニツト220の2進数番号“10”を加
算する事により、リーデイングゼロ値として
“00010010”を得る事になる。
At this time, the higher-ranking arithmetic unit 200,
The number 210 indicates the minimum value of the arithmetic unit 220.
corresponds to the binary number [10], so the binary number [00] to [11] for each calculation unit is
It will be a fixed value. That is, by multiplying the minimum value "000100" by four and adding the binary number "10" of the arithmetic unit 220, "00010010" is obtained as the leading zero value.

一般に、n個の演算ユニツトから成り、1番目
の演算ユニツトが、xなるリーデイングゼロ値の
最小値となる場合、以下の式が成り立つ(ただし
Rは、全データのリーデイングゼロ値である)。
Generally, when there are n arithmetic units and the first arithmetic unit has the minimum value of the leading zero value x, the following formula holds true (where R is the leading zero value of all data).

R=n×x+1 また並列演算ユニツト数が2jである場合、各演
算ユニツトからのリーデイングゼロ値をj桁左側
にシフトして、演算ユニツトの2進数番号を固定
値として付加し、データを比較して最小値を検出
する事により、全データのリーデイングゼロ値を
得ることができる。例えば、前記の実施例では、
j=2であるから、固定値は〔00〕〜〔11〕で、 a0=000110→R0=00011000=1×24+1×23 =16+8=24 a1=000111→R1=00011101=1×24+1×23
+1×22+1×20 =24+4+1=29 a2=000100→R2=00010010=1×24+1×21
=16+2=18 a3=000101→R3=00010111=1×24+1×22
+1×21+1×20 =16+4+2+1=23 となり、この最小値はR2で、00010010となる。
R = n x x + 1 If the number of parallel processing units is 2 j , the leading zero value from each processing unit is shifted to the left by j digits, the binary number of the processing unit is added as a fixed value, and the data is compared. By detecting the minimum value, the leading zero value of all data can be obtained. For example, in the above embodiment,
Since j = 2, the fixed value is [00] to [11], a0 = 000110 → R0 = 000110 00 = 1 × 2 4 + 1 × 2 3 = 16 + 8 = 24 a1 = 000111 → R1 = 000111 01 = 1 ×2 4 +1×2 3
+1×2 2 +1×2 0 =24+4+1=29 a2=000100→R2=000100 10 =1×2 4 +1×2 1
=16+2=18 a3=000101→R3=000101 11 =1×2 4 +1×2 2
+1×2 1 +1×2 0 =16+4+2+1=23, and the minimum value is R2, which is 00010010.

また同時に有効ビツト数を比較すれば、有効ビ
ツト数内のリーデイングゼロ値を算出する事がで
きることは勿論である。たとえば、第2図の全デ
ータのうち、上位からLビツトが有効である場
合、前記R0,R1,R2,R3の場合と同じく、上
位Lビツトを比較する事により、任意のビツト長
内のリーデイングゼロ値を検出する事ができる。
なお、Lが最小値の場合はLがリーデイングゼロ
値となる。
Furthermore, by comparing the effective bit numbers at the same time, it is of course possible to calculate the leading zero value within the effective bit numbers. For example, if the upper L bits of all the data in Figure 2 are valid, the reading within a given bit length can be determined by comparing the upper L bits as in the case of R0, R1, R2, and R3. Zero value can be detected.
Note that when L is the minimum value, L becomes the leading zero value.

〈発明の効果〉 本発明は以上説明したように、各演算ユニツト
で算出したリーデイングゼロ値を比較して、全体
のリーデイングゼロ値を得る為、データをシリア
ル変換した場合、データのビツト幅が大きくなる
事によるハードウエア量の増大や、演算の複雑化
などを除くことができるという効果がある。
<Effects of the Invention> As explained above, the present invention compares the leading zero values calculated by each calculation unit to obtain the overall leading zero value, so when data is serially converted, the bit width of the data is large. This has the effect of eliminating the increase in the amount of hardware and the complexity of calculations caused by this.

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

第1図は、本発明による一実施例を示す概略的
な構成図、第2図は同上を説明する説明図であ
る。 100…分配手段、101…2値データ、20
0〜230…第0〜第3の演算ユニツト、201
〜231…分配されたビツトデータの組、250
〜253…リーデイングゼロ値の検出手段、30
0…比較手段。
FIG. 1 is a schematic configuration diagram showing an embodiment of the present invention, and FIG. 2 is an explanatory diagram illustrating the same. 100...Distribution means, 101...Binary data, 20
0 to 230...0th to third arithmetic units, 201
~231...Distributed bit data set, 250
~253... Leading zero value detection means, 30
0...Comparison means.

Claims (1)

【特許請求の範囲】[Claims] 1 順序付けられる複数個の演算ユニツトを含む
データ処理装置であつて、少なくとも、2値デー
タの各位のビツトを上位ビツトから順次に、上記
演算ユニツトに上記の順序に従つて分配する手段
を有し、該各演算ユニツトは、上記の分配される
ビツトデータの組を入力してリーデイングゼロ値
を検出する手段をもち、さらに該リーデイングゼ
ロ値の検出手段の各出力を入力して比較する手段
を備えることによつて、前記2値データのリーデ
イングゼロ値を検出するようにした事を特徴とす
るリーデイングゼロ値の検出方式。
1. A data processing device including a plurality of ordered arithmetic units, comprising at least means for sequentially distributing each bit of binary data from the most significant bit to the arithmetic units in the above order; Each of the arithmetic units has means for inputting the set of distributed bit data and detecting a leading zero value, and further comprises means for inputting and comparing each output of the leading zero value detecting means. A leading zero value detection method, characterized in that the leading zero value of the binary data is detected by.
JP17871984A 1984-08-28 1984-08-28 Detection system of leading zero value Granted JPS6155733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17871984A JPS6155733A (en) 1984-08-28 1984-08-28 Detection system of leading zero value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17871984A JPS6155733A (en) 1984-08-28 1984-08-28 Detection system of leading zero value

Publications (2)

Publication Number Publication Date
JPS6155733A JPS6155733A (en) 1986-03-20
JPH031693B2 true JPH031693B2 (en) 1991-01-11

Family

ID=16053366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17871984A Granted JPS6155733A (en) 1984-08-28 1984-08-28 Detection system of leading zero value

Country Status (1)

Country Link
JP (1) JPS6155733A (en)

Also Published As

Publication number Publication date
JPS6155733A (en) 1986-03-20

Similar Documents

Publication Publication Date Title
JPS6132437Y2 (en)
JPH031693B2 (en)
Mäkinen Left distance binary tree representations
JPH0831024B2 (en) Arithmetic processor
SU824200A1 (en) Adding device
JP2606580B2 (en) Numerical data calculation method
SU830377A1 (en) Device for determining maximum number code
SU1272331A1 (en) Device for calculating values of sine and cosine functions
SU593211A1 (en) Digital computer
JP2652054B2 (en) Protection relay device
JPH0319985B2 (en)
SU860055A1 (en) Converter of bcd numbers in 4,2,2,1 code to binary numbers
SU1305671A1 (en) Device for calculating values of function z=arccos y/x
JPS6029063A (en) Code converter
SU1089585A1 (en) Device for collecting and processing information for monitoring system
SU586460A1 (en) Device for reproducing function with slope short of 2 to the k power
SU588543A1 (en) Device for adding binary numbers
SU811276A1 (en) Device for solving system of linear algebraic equations
JPS62209621A (en) Multiplying device
SU561966A1 (en) Computing system for processing numbers and multidimensional vectors
SU1141401A1 (en) Device for calculating difference of two numbers
SU807275A1 (en) Single-digit decimal adder-subractor
SU1008752A1 (en) Data search device
JPH0434784B2 (en)
JPH0724812Y2 (en) Multi-input digital filter