Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3259116B2 - Pipeline type division processing unit - Google Patents
[go: Go Back, main page]

JP3259116B2 - Pipeline type division processing unit - Google Patents

Pipeline type division processing unit

Info

Publication number
JP3259116B2
JP3259116B2 JP00387594A JP387594A JP3259116B2 JP 3259116 B2 JP3259116 B2 JP 3259116B2 JP 00387594 A JP00387594 A JP 00387594A JP 387594 A JP387594 A JP 387594A JP 3259116 B2 JP3259116 B2 JP 3259116B2
Authority
JP
Japan
Prior art keywords
data
divisor
register
pipeline
dividend
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 - Fee Related
Application number
JP00387594A
Other languages
Japanese (ja)
Other versions
JPH07210371A (en
Inventor
信幸 湯浅
Original Assignee
日本電気エンジニアリング株式会社
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 日本電気エンジニアリング株式会社 filed Critical 日本電気エンジニアリング株式会社
Priority to JP00387594A priority Critical patent/JP3259116B2/en
Publication of JPH07210371A publication Critical patent/JPH07210371A/en
Application granted granted Critical
Publication of JP3259116B2 publication Critical patent/JP3259116B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、1サイクルで複数ビッ
トの部分商を得る除算器を用いたパイプライン動作を行
うパイプライン型除算処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pipeline type division processing device for performing a pipeline operation using a divider for obtaining a partial quotient of a plurality of bits in one cycle.

【0002】[0002]

【従来の技術】従来、この種のパイプライン型除算処理
装置は、例えば特開平1−286023号公報に示され
るように、除算処理のみ実行可能となっている。
2. Description of the Related Art Conventionally, this type of pipeline type division processing apparatus can execute only division processing as disclosed in, for example, Japanese Patent Laid-Open No. 1-286023.

【0003】図3は従来のパイプライン型除算処理装置
の構成を示す図である。この図は、例として6段構成の
場合を示している。
FIG. 3 is a diagram showing a configuration of a conventional pipeline type division processing device. This figure shows a case of a six-stage configuration as an example.

【0004】33は初段ブロック、27〜31は共に同
一構成の中間段ブロック、32は終段ブロックを示して
おり、それぞれ1サイクル毎に処理を実行する。
Reference numeral 33 denotes a first-stage block, 27 to 31 denote intermediate-stage blocks having the same configuration, and 32 denotes a last-stage block, each of which executes a process for each cycle.

【0005】初段ブロック33は入力除数データを格納
する除数レジスタ1と入力被除数データを格納する被除
数レジスタ7を備える。
The first-stage block 33 includes a divisor register 1 for storing input divisor data and a dividend register 7 for storing input dividend data.

【0006】中間段ブロック27は初段の除数レジスタ
1、被除数レジスタ7にそれぞれ格納された除数データ
及び被除数データを入力し、nビットの部分商を求める
nビット除算器19、前段の除数レジスタ1に格納され
た除数データを格納する除数レジスタ2、nビット除算
器19の除算結果の余りデータを次段の被除数データと
して格納する被除数レジスタ8、nビット除算器19の
除算結果の部分商データを格納する商レジスタ13を備
える。
The intermediate stage block 27 inputs the divisor data and the dividend data stored in the first stage divisor register 1 and the dividend register 7, respectively, and outputs the n-bit divider 19 for obtaining the n-bit partial quotient to the preceding stage divisor register 1. The divisor register 2 for storing the stored divisor data, the dividend register 8 for storing the remainder data of the division result of the n-bit divider 19 as the dividend data of the next stage, and the partial quotient data of the division result for the n-bit divider 19 are stored. The quotient register 13 is provided.

【0007】次の中間段ブロック28は前段の除数レジ
スタ2、被除数レジスタ8にそれぞれ格納された除数デ
ータ及び被除数データを入力し、nビットの部分商を求
めるnビット除算器20、前段の除数レジスタ2に格納
された除数データを格納する除数レジスタ3、nビット
除算器20の除算結果の余りデータを次段の被除数デー
タとして格納する被除数レジスタ9、nビット除算器2
0の除算結果の部分商データ及び前段までの部分商デー
タを格納する商レジスタ14を備える。
The next intermediate stage block 28 receives the divisor data and the dividend data stored in the divisor register 2 and the dividend register 8 in the preceding stage, respectively, and obtains an n-bit divider 20 for obtaining an n-bit partial quotient. A divisor register 3 for storing the divisor data stored in 2; a dividend register 9 for storing the remainder data of the division result of the n-bit divider 20 as dividend data in the next stage; and an n-bit divider 2
A quotient register 14 is provided for storing partial quotient data resulting from division by 0 and partial quotient data up to the preceding stage.

【0008】同様に、中間段ブロック29はnビット除
算器21、除数レジスタ4、被除数レジスタ10、商レ
ジスタ15を備え、中間段ブロック30はnビット除算
器22、除数レジスタ5、被除数レジスタ11、商レジ
スタ16を備え、中間段ブロック31はnビット除算器
23、除数レジスタ6、被除数レジスタ12、被除数レ
ジスタ17を備える。
Similarly, the intermediate stage block 29 includes an n-bit divider 21, a divisor register 4, a dividend register 10, and a quotient register 15, and the intermediate stage block 30 includes an n-bit divider 22, a divisor register 5, a dividend register 11, The intermediate stage block 31 includes a quotient register 16 and an n-bit divider 23, a divisor register 6, a dividend register 12, and a dividend register 17.

【0009】終段ブロック32はnビット除算器25及
び商レジスタ18のみ備え、商レジスタ18に格納され
た各段の部分商データは全体の商データとしてまとめて
出力される。
The final-stage block 32 includes only the n-bit divider 25 and the quotient register 18, and the partial quotient data of each stage stored in the quotient register 18 is output collectively as the entire quotient data.

【0010】尚、上記除数レジスタ1〜6、被除数レジ
スタ7〜12及び商レジスタ13〜18にはそれぞれパ
イプラインレジスタが用いられる。
Note that pipeline registers are used as the divisor registers 1 to 6, the dividend registers 7 to 12, and the quotient registers 13 to 18, respectively.

【0011】次に動作を説明する。まず、最初のサイク
ルで除数データ、被除数データが与えられると、除数デ
ータは除数レジスタ1に、被除数は被除数レジスタ7に
格納される。次のサイクルでレジスタ1,7に格納され
た除数データ、被除数データは共にnビット除算器19
に入力され、ここでnビットの部分商と余りが求められ
る。部分商データは商レジスタ13に、余りデータは被
除数レジスタ8に格納される。このとき、除数レジスタ
1に格納された除数は除数レジスタ2に移される。
Next, the operation will be described. First, when the divisor data and the dividend data are given in the first cycle, the divisor data is stored in the divisor register 1 and the dividend is stored in the dividend register 7. In the next cycle, the divisor data and dividend data stored in the registers 1 and 7 are both n-bit dividers 19
Where the n-bit partial quotient and remainder are obtained. The partial quotient data is stored in the quotient register 13 and the remainder data is stored in the dividend register 8. At this time, the divisor stored in the divisor register 1 is transferred to the divisor register 2.

【0012】その次のサイクルでレジスタ2,8に格納
された除数データ、被除数データはnビット除算器20
に入力され、ここでnビットの部分商と余りが求められ
る。部分商データは商レジスタ14に、余りデータは被
除数レジスタ9に格納される。このとき、除数レジスタ
2に格納された除数は除数レジスタ3に移され、商レジ
スタ13に格納された部分商は商レジスタ14に移され
る。
In the next cycle, the divisor data and the dividend data stored in the registers 2 and 8 are output from the n-bit divider 20.
Where the n-bit partial quotient and remainder are obtained. The partial quotient data is stored in the quotient register 14, and the remainder data is stored in the dividend register 9. At this time, the divisor stored in the divisor register 2 is transferred to the divisor register 3, and the partial quotient stored in the quotient register 13 is transferred to the quotient register 14.

【0013】このようにして1サイクル毎にnビットの
部分商が求められ、最段ブロック32の商レジスタ18
にはnビット×6段分の除算結果が入力される。これに
よりn×6ビットの商データを求めることができる。
In this manner, a partial quotient of n bits is obtained for each cycle, and the quotient register 18 of the lowermost block 32 is obtained.
, A division result of n bits × 6 stages is input. Thereby, quotient data of n × 6 bits can be obtained.

【0014】尚、図3では除算処理ブロック(中間段及
び終段ブロック)の段数を6段、除算器の処理ビット数
をnとしているが、除算処理ブロックの段数、部分商を
求める除算器の処理ビット数を変更することによって、
必要なビット幅の除算処理装置を構成することができ
る。
In FIG. 3, the number of division processing blocks (intermediate stage and final stage blocks) is six and the number of processing bits of the divider is n. By changing the number of processing bits,
A division processing device having a required bit width can be configured.

【0015】ところで、除算処理以外に単にデータを移
送するパイプライン処理を行いたい場合がある。この場
合、従来では図4に示すようなハードウェア構成をとっ
ている。
Incidentally, there is a case where it is desired to perform a pipeline process for simply transferring data in addition to the division process. In this case, a hardware configuration as shown in FIG. 4 is conventionally used.

【0016】図4は従来法のハード構成とハードウェア
の占有を示す図である。図において、左側41が図3に
示した従来の除算処理装置を示している。右側は、除算
処理装置41に対応した段数のパイプラインレジスタ群
42を示している。34〜40はパイプラインレジスタ
で、1サイクル毎に次の段のレジスタにデータが移る。
ここではデータを除算データA1〜A4と通常データ
(単なるパイプライン移送データ)B1〜B3としてい
る。27〜40の中の斜線で示す部分は、ある1サイク
ルのハードウェアの未使用部分を示している。
FIG. 4 is a diagram showing the hardware configuration of the conventional method and the occupation of the hardware. In the figure, the left side 41 shows the conventional division processing device shown in FIG. On the right side, a pipeline register group 42 of the number of stages corresponding to the division processing device 41 is shown. 34 to 40 are pipeline registers, and data is transferred to the register of the next stage every cycle.
Here, the data is divided data A1 to A4 and normal data (mere pipeline transfer data) B1 to B3. The hatched portions in 27 to 40 indicate unused portions of the hardware in one cycle.

【0017】すなわち、図3のような従来の除算処理装
置では除算命令しか行えず、除算処理以外のパイプライ
ン処理があるとき、入出力データの順序を変えずに機能
するには、図4のように除算処理装置に対応するパイプ
ラインレジスタ群を新たに持つ必要がある。よって、ハ
ード量の増加を招くことになる。
That is, in the conventional division processing apparatus as shown in FIG. 3, only a division instruction can be executed, and when there is a pipeline processing other than the division processing, the function can be performed without changing the order of the input / output data. Thus, it is necessary to newly have a pipeline register group corresponding to the division processing device. Therefore, the amount of hardware increases.

【0018】また、除算処理装置41とパイプラインレ
ジスタ群42は同期をとらなければならないため、図4
の斜線で示すように、除算データのときはパイプライン
レジスタ群42側のハードウェアに、通常データのとき
は除算器41側にハードウェアに未使用部分が存在する
ことになる。このことからハードウェアが有効に活用さ
れていないことがわかる。
Since the division processing unit 41 and the pipeline register group 42 must be synchronized, FIG.
As shown by the diagonal lines, there is an unused portion in the hardware on the pipeline register group 42 side in the case of division data, and in the divider 41 side in the case of normal data. This indicates that the hardware is not being used effectively.

【0019】ここで、先行技術として、例えば特開平1
−266628号公報(以下、先行技術と称する)に
は、定数の減算と乗算を同時に実施することで、パイプ
ラインレジスタと変換器に伴う遅延を回避し、除算と平
方根関数を速やかに計算可能にした「除算を計算する装
置と方法」が開示されている。
Here, as a prior art, for example,
Japanese Unexamined Patent Publication No. 266628 (hereinafter referred to as prior art) discloses that simultaneous subtraction and multiplication of constants can avoid delays associated with pipeline registers and converters, and can quickly calculate division and square root functions. The disclosed "apparatus and method for calculating division" is disclosed.

【0020】[0020]

【発明が解決しようとする課題】以上述べたように、従
来のパイプライン型除算処理装置では、単にデータを移
送処理することができず、このようなパイプライン処理
を行うためには新たにパイプラインレジスタ群を設けな
ければならないため、ハードウェア量の増加を免れな
い。また、ハードウェアを有効活用することもできな
い。
As described above, the conventional pipeline-type division processing device cannot simply transfer data, and a new pipeline is required to perform such pipeline processing. Since a line register group must be provided, an increase in the amount of hardware is unavoidable. Also, the hardware cannot be used effectively.

【0021】本発明は上記の課題を解決するためになさ
れたもので、除算処理機能とパイプライン処理機能を備
え、かつハードウェアを有効活用し、全体としてハード
ウェア量を低減したパイプライン型除算処理装置を提供
することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and has a pipeline type division function which has a division processing function and a pipeline processing function, makes effective use of hardware, and reduces the amount of hardware as a whole. It is an object to provide a processing device.

【0022】ここで、上記先行技術は、除算と平方根関
数をパイプライン方式で計算可能とする装置と方法を示
すものであって、除算処理機能とパイプライン処理機能
を兼ね備え、ハードの有効活用を実現する本発明の技術
思想を示唆する具体的な記載がなく、本発明とは全く異
なる技術思想に立脚するものである。
Here, the above-mentioned prior art shows an apparatus and a method capable of calculating a division and a square root function by a pipeline method. The apparatus and method have both a division processing function and a pipeline processing function, and make effective use of hardware. There is no specific description suggesting the technical idea of the present invention to be realized, and the present invention is based on a technical idea completely different from the present invention.

【0023】[0023]

【課題を解決するための手段】上記目的を達成するため
に本発明は、1サイクルで除数データを格納する除数パ
イプラインレジスタ及び被除数データを格納する被除数
パイプラインレジスタを備える初段ブロックと、1サイ
クルで初段あるいは前段から除数データ及び被除数デー
タを入力してnビットの部分商を求めるnビット除算
器、初段あるいは前段から除数データを格納する除数パ
イプラインレジスタ、前記nビット除算器の除算結果の
部分商データと前段までの部分商データを格納する商パ
イプラインレジスタ及び前記nビット除算器の除算結果
の余りデータを次段の被除数データとして格納する被除
数パイプラインレジスタを備える1個以上の中間段ブロ
ックと、1サイクルで前段から除数データ及び被除数デ
ータを入力してnビットの部分商を求めるnビット除算
器及び前記nビット除算器の除算結果の部分商と前段ま
での部分商データを格納し全体の除算結果として出力す
る商パイプラインレジスタを備える終段ブロックとを備
えるパイプライン型除算処理装置において、前記初段ブ
ロックに、除算処理サイクル時には入力除数データを前
記除数パイプラインレジスタに格納させ、移送処理サイ
クル時には除数「1」データを強制的に前記除数パイプ
ラインレジスタに格納させる除数切換処理部を設けるよ
うにしたことを特徴とする。
To achieve the above object, the present invention provides a first stage block having a divisor pipeline register for storing divisor data in one cycle and a divisor pipeline register for storing dividend data in one cycle. An n-bit divider for inputting divisor data and dividend data from the first or previous stage to obtain an n-bit partial quotient, a divisor pipeline register for storing divisor data from the first or previous stage, and a portion of the division result of the n-bit divider One or more intermediate-stage blocks including a quotient pipeline register for storing quotient data and partial quotient data up to the previous stage, and a dividend pipeline register for storing remainder data of the division result of the n-bit divider as dividend data of the next stage. And input divisor data and dividend data from the previous stage in one cycle and And a final block having a quotient pipeline register for storing partial quotients of the division result of the n-bit divider and partial quotient data up to the preceding stage and outputting the result as an overall division result. In the pipeline type division processing apparatus provided, the first stage block stores input divisor data in the divisor pipeline register during a division processing cycle, and forcibly stores divisor "1" data in the divisor pipeline register during a transfer processing cycle. It is characterized in that a divisor switching processing unit for storing is provided.

【0024】特に前記除数切換処理部は、除数「1」デ
ータを発生する手段と、この手段で発生される除数
「1」データと入力除数データのいずれか一方を除数切
換信号に応じて選択的に導出するセレクタとを具備し、
前記除数切換信号を除算処理サイクル、移送処理サイク
ルで切り換え、除算処理サイクルでは入力除数データ
が、移送処理サイクルでは除数「1」データが選択され
るようにしたことを特徴とする。
In particular, the divisor switching processing section includes means for generating divisor "1" data, and selectively outputs one of the divisor "1" data and input divisor data generated by this means in accordance with the divisor switching signal. And a selector for deriving
The divisor switching signal is switched between a division processing cycle and a transfer processing cycle, and input divisor data is selected in the division processing cycle and divisor "1" data is selected in the transfer processing cycle.

【0025】[0025]

【作用】上記構成によるパイプライン型除算処理装置で
は、初段ブロックで1サイクル毎に入力除数データと除
数「1」データを選択できるようにし、除算処理サイク
ルでは入力除数データを、パイプライン処理サイクルで
は除数「1」データを出力することで、パイプライン処
理を実行可能とし、かつパイプライン処理時に未使用と
なっていた除算処理ブロックをパイプラインレジスタと
して活用し、必要なハードウェア量の低減を図ってい
る。
In the pipeline type division processing device having the above configuration, the input divisor data and the divisor "1" data can be selected every cycle in the first-stage block, and the input divisor data is used in the division processing cycle, and in the pipeline processing cycle. By outputting the divisor “1” data, pipeline processing can be executed, and the division processing block that has not been used at the time of the pipeline processing is used as a pipeline register to reduce the necessary hardware amount. ing.

【0026】[0026]

【実施例】以下、図面を参照して本発明の一実施例を詳
細に説明する。但し、図1において、図3と同一部分に
は同一符号を付して示す。
An embodiment of the present invention will be described below in detail with reference to the drawings. However, in FIG. 1, the same parts as those in FIG. 3 are denoted by the same reference numerals.

【0027】図1は本発明に係るパイプライン型除算処
理装置の構成を示す図であり、例として6段構成の場合
を示している。
FIG. 1 is a diagram showing a configuration of a pipeline type division processing apparatus according to the present invention, and shows a case of a six-stage configuration as an example.

【0028】図1において、初段ブロック26は、除数
レジスタ1及び被除数レジスタ7と共に除数切換制御部
25を備える。この除数切換制御部25は、除数「1」
データを発生するデータ発生部251と、除数「1」デ
ータと入力除数データのいずれか一方を除数切換信号に
応じて選択的に導出するセレクタ252とを備え、除数
切換信号を除算処理サイクル、移送処理サイクルで切り
換えることで、除算処理サイクルでは入力除数データ
が、移送処理サイクルでは除数「1」データを出力する
ことができる。ここで選択された除数データは除数レジ
スタ1に格納される。
In FIG. 1, the first-stage block 26 includes a divisor switch control unit 25 together with the divisor register 1 and the dividend register 7. The divisor switching control unit 25 outputs the divisor “1”.
A data generator 251 for generating data; and a selector 252 for selectively deriving one of the divisor "1" data and the input divisor data according to the divisor switching signal. By switching in the processing cycle, input divisor data can be output in the division processing cycle, and divisor "1" data can be output in the transfer processing cycle. The divisor data selected here is stored in the divisor register 1.

【0029】図2は本発明のデータのハードウェアの占
有を示す図である。ここではデータを除算データA1〜
A4と通常データ(単なるパイプライン移送データ)B
1〜B3とし、除算処理とパイプライン処理がサイクル
毎に切り変わっていることを示している。
FIG. 2 is a diagram showing the occupation of the hardware of the data of the present invention. Here, the data is divided by data A1 to A1.
A4 and normal data (mere pipeline transfer data) B
1 to B3 indicate that the division processing and the pipeline processing are switched every cycle.

【0030】次に、図1の動作について説明する。Next, the operation of FIG. 1 will be described.

【0031】はじめに、除算処理機能の動作について説
明する。まず、除数レジスタ1に入力された除数データ
が入るように、除数切換制御部25に除数切換信号を送
る。これによって、入力除数データは除数レジスタ1
に、被除数データは被除数レジスタ7に格納される。
First, the operation of the division processing function will be described. First, a divisor switch signal is sent to the divisor switch controller 25 so that the divisor data input to the divisor register 1 is entered. As a result, the input divisor data is stored in the divisor register 1
The dividend data is stored in the dividend register 7.

【0032】次のサイクルでレジスタ1,7に格納され
た除数データ、被除数データが中間段ブロック27のn
ビット除算器19に入力され、nビットの部分商と余り
が求められる。部分商データは商レジスタ13に、余り
データは被除数レジスタ8に格納される。その次のサイ
クルで、中間段ブロック28にて、レジスタ2,8に格
納された除数データ、被除数データについてnビットの
商と余りが求められる。
In the next cycle, the divisor data and dividend data stored in the registers 1 and 7
The data is input to the bit divider 19, and the n-bit partial quotient and remainder are obtained. The partial quotient data is stored in the quotient register 13 and the remainder data is stored in the dividend register 8. In the next cycle, the intermediate stage block 28 calculates the quotient and remainder of n bits for the divisor data and the dividend data stored in the registers 2 and 8.

【0033】このようにして1サイクル毎にnビットの
部分商が求められ、終段ブロック32の商レジスタ18
にはnビット×6段分の除算結果が入力される。これに
より、n×6ビットの商を求めることができる。
In this way, a partial quotient of n bits is obtained for each cycle, and the quotient register 18 of the last block 32 is obtained.
, A division result of n bits × 6 stages is input. Thus, a quotient of n × 6 bits can be obtained.

【0034】次に、パイプラインレジスタ機能の動作に
ついて説明する。まず、除数レジスタ1に「1」の値を
入力するように、除数切換制御部25に除数切換信号を
送る。これによって、除数レジスタ1には除数データと
して「1」が強制的に格納される。被除数レジスタ7に
は移送データが被除数データとして格納される。
Next, the operation of the pipeline register function will be described. First, a divisor switch signal is sent to the divisor switch controller 25 so that a value of “1” is input to the divisor register 1. As a result, "1" is forcibly stored in the divisor register 1 as divisor data. The dividend data is stored in the dividend register 7 as dividend data.

【0035】次のサイクルで、レジスタ1,7に格納さ
れた除数データ「1」、移送データが中間段ブロック2
7のnビット除算器19に入力され、nビットの部分商
と余りが求められる。このとき、除数データが「1]な
ので、商データは被除数レジスタ7の格納データの上位
nビットになり、レジスタ13に格納される。
In the next cycle, the divisor data “1” stored in the registers 1 and 7 and the transfer data are stored in the intermediate block 2.
7 is input to an n-bit divider 19, and the n-bit partial quotient and remainder are obtained. At this time, since the divisor data is “1”, the quotient data becomes the upper n bits of the data stored in the dividend register 7 and is stored in the register 13.

【0036】その次のサイクルでは、中間段ブロック2
8にて、レジスタ2,8に格納された値を除数、被除数
として除算処理が行われ、商レジスタ14には前段の商
レジスタ13の値と移送データの(n+1)ビット目か
らnビットが格納される。
In the next cycle, the intermediate stage block 2
At 8, a division process is performed using the values stored in the registers 2 and 8 as a divisor and a dividend, and the quotient register 14 stores the value of the quotient register 13 in the preceding stage and n bits from the (n + 1) th bit of the transfer data. Is done.

【0037】このようにして1サイクル毎に移送データ
を「1」で除算し、nビット分の移送データが各段の商
レジスタに格納される。終段ブロック32の商レジスタ
18には、nビット×6段分の移送データが格納され
る。これにより、見掛上、n×6ビットの商のビット幅
のパイプラインレジスタとして機能する。
In this way, the transfer data is divided by "1" every cycle, and the transfer data for n bits is stored in the quotient register of each stage. The quotient register 18 of the last-stage block 32 stores transfer data for n bits × 6 stages. Thereby, it apparently functions as a pipeline register having a quotient of n × 6 bits.

【0038】したがって、本発明の除算処理装置は、除
算処理機能とパイプライン処理機能を備え、図2に示す
ように、各段毎、各サイクル毎に両機能を切り換えるこ
とができるので、ハードウェアを有効に活用することが
できる。
Therefore, the division processing device of the present invention has a division processing function and a pipeline processing function, and as shown in FIG. 2, both functions can be switched for each stage and for each cycle. Can be effectively utilized.

【0039】尚、上記実施例では6段構成の場合につい
て説明したが、除算処理ブロック(中間段及び終段ブロ
ック)の段数を6段、除算器の処理ビット数をnとして
いるが、本発明はこれに限定されるものではなく、除算
処理ブロックの段数、部分商を求める除算器の処理ビッ
ト数を変更することによって、必要なビット幅の除算処
理装置を構成することができる。
Although the above embodiment has been described in connection with a six-stage configuration, the number of division processing blocks (intermediate and final blocks) is six, and the number of processing bits of the divider is n. The present invention is not limited to this. By changing the number of stages of the division processing block and the number of processing bits of the divider for obtaining the partial quotient, a division processing device having a required bit width can be configured.

【0040】以上説明したように、本発明によるパイプ
ライン型除算処理装置は、除算処理機能だけでなく、わ
ずかなハードウェアの追加により、パイプライン処理機
能を持つことができる。さらに、除算処理機能とパイプ
ライン処理機能の2種類の機能を各段毎、サイクル毎に
切り換えることができるので、図4に示したパイプライ
ンレジスタ群42を持つ必要がなくなる。また、必要な
レジスタのビット幅を少なくすることができるので、物
量を低減することができる。
As described above, the pipeline type division processing device according to the present invention can have not only the division processing function but also the pipeline processing function by adding a small amount of hardware. Further, since two types of functions, a division processing function and a pipeline processing function, can be switched for each stage and for each cycle, it is not necessary to have the pipeline register group 42 shown in FIG. Further, since the required register bit width can be reduced, the physical quantity can be reduced.

【0041】尚、本発明は上述した実施例に限定される
ものではなく、本発明の要旨を逸脱しない範囲で種々変
形しても同様に実施可能であることはいうまでもない。
It should be noted that the present invention is not limited to the above-described embodiment, and it goes without saying that various modifications can be made without departing from the spirit of the present invention.

【0042】[0042]

【発明の効果】以上述べたように本発明によれば、除算
処理機能とパイプライン処理機能を備え、かつハードウ
ェアを有効活用し、全体としてハードウェア量を低減し
たパイプライン型除算処理装置を提供することができ
る。
As described above, according to the present invention, there is provided a pipeline type division processing apparatus having a division processing function and a pipeline processing function, and utilizing hardware effectively to reduce the amount of hardware as a whole. Can be provided.

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

【図1】この発明の一実施例に係るパイプライン型除算
器の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a pipeline type divider according to one embodiment of the present invention.

【図2】同実施例のデータのハードウェアの占有の様子
を示す図である。
FIG. 2 is a diagram showing how data is occupied by hardware according to the embodiment.

【図3】従来のパイプライン型除算器の構成を示すブロ
ック図である。
FIG. 3 is a block diagram showing a configuration of a conventional pipeline type divider.

【図4】従来のパイプライン型除算器のハードウェア構
成とハードウェアの占有の様子を示す図である。
FIG. 4 is a diagram showing a hardware configuration of a conventional pipeline type divider and how hardware is occupied.

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

1〜6 除数レジスタ 7〜12 被除数レジスタ 13〜18 商レジスタ 19〜24 nビット除算器 25 除数切換制御部 26〜33 処理ブロック 34〜40 パイプラインレジスタ 41 除算処理装置 42 パイプラインレジスタ群 1 to 6 divisor register 7 to 12 dividend register 13 to 18 quotient register 19 to 24 n-bit divider 25 divisor switching control unit 26 to 33 processing block 34 to 40 pipeline register 41 division processing device 42 pipeline register group

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 1サイクルで除数データを格納する除数
パイプラインレジスタ及び被除数データを格納する被除
数パイプラインレジスタを備える初段ブロックと、 1サイクルで初段あるいは前段から除数データ及び被除
数データを入力してnビットの部分商を求めるnビット
除算器、初段あるいは前段から除数データを格納する除
数パイプラインレジスタ、前記nビット除算器の除算結
果の部分商データと前段までの部分商データを格納する
商パイプラインレジスタ及び前記nビット除算器の除算
結果の余りデータを次段の被除数データとして格納する
被除数パイプラインレジスタを備える1個以上の中間段
ブロックと、 1サイクルで前段から除数データ及び被除数データを入
力してnビットの部分商を求めるnビット除算器及び前
記nビット除算器の除算結果の部分商と前段までの部分
商データを格納し全体の除算結果として出力する商パイ
プラインレジスタを備える終段ブロックとを備えるパイ
プライン型除算処理装置において、 前記初段ブロックに、除算処理サイクル時には入力除数
データを前記除数パイプラインレジスタに格納させ、移
送処理サイクル時には除数「1」データを強制的に前記
除数パイプラインレジスタに格納させる除数切換処理部
を設けるようにしたことを特徴とするパイプライン型除
算処理装置。
1. A first-stage block including a divisor pipeline register for storing divisor data and a dividend pipeline register for storing dividend data in one cycle, and inputting divisor data and dividend data from the first stage or the previous stage in one cycle. An n-bit divider for obtaining a partial quotient of bits, a divisor pipeline register for storing divisor data from the first stage or the previous stage, and a quotient pipeline for storing partial quotient data resulting from the division by the n-bit divider and partial quotient data up to the previous stage A register and at least one intermediate stage block provided with a dividend pipeline register for storing remainder data of the division result of the n-bit divider as dividend data of the next stage; and inputting divisor data and dividend data from the previous stage in one cycle. N-bit divider for obtaining an n-bit partial quotient by In a pipeline type division processing device including a partial block having a partial quotient of a division result of a divider and a quotient pipeline register that stores partial quotient data up to a previous stage and outputs the result as an overall division result, the first-stage block includes: A divisor switching processor is provided for storing input divisor data in the divisor pipeline register during a division processing cycle and forcibly storing divisor "1" data in the divisor pipeline register during a transfer processing cycle. Pipeline type division processing device.
【請求項2】 前記除数切換処理部は、除数「1」デー
タを発生する発生手段と、この発生手段で発生される除
数「1」データと入力除数データのいずれか一方を除数
切換信号に応じて選択的に導出するセレクタとを具備
し、前記除数切換信号を除算処理サイクル、移送処理サ
イクルで切り換え、除算処理サイクルでは入力除数デー
タが、移送処理サイクルでは除数「1」データが選択さ
れるようにしたことを特徴とする請求項1記載のパイプ
ライン型除算処理装置。
2. The divisor switching processing section generates a divisor "1" data, and outputs one of the divisor "1" data and input divisor data generated by the divisor in response to a divisor switching signal. And a selector for selectively deriving the divisor switching signal in a division processing cycle and a transfer processing cycle, so that input divisor data is selected in the division processing cycle and divisor "1" data is selected in the transfer processing cycle. 2. The pipeline type division processing device according to claim 1, wherein:
JP00387594A 1994-01-19 1994-01-19 Pipeline type division processing unit Expired - Fee Related JP3259116B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00387594A JP3259116B2 (en) 1994-01-19 1994-01-19 Pipeline type division processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00387594A JP3259116B2 (en) 1994-01-19 1994-01-19 Pipeline type division processing unit

Publications (2)

Publication Number Publication Date
JPH07210371A JPH07210371A (en) 1995-08-11
JP3259116B2 true JP3259116B2 (en) 2002-02-25

Family

ID=11569366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00387594A Expired - Fee Related JP3259116B2 (en) 1994-01-19 1994-01-19 Pipeline type division processing unit

Country Status (1)

Country Link
JP (1) JP3259116B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254072B (en) * 2021-05-27 2023-04-07 上海阵量智能科技有限公司 Data processor, data processing method, chip, computer device, and medium

Also Published As

Publication number Publication date
JPH07210371A (en) 1995-08-11

Similar Documents

Publication Publication Date Title
US5798955A (en) High-speed division and square root calculation unit
JPS6347874A (en) Arithmetic unit
US4041292A (en) High speed binary multiplication system employing a plurality of multiple generator circuits
JP2835153B2 (en) High radix divider
JP3418460B2 (en) Double precision division circuit and method
US4797849A (en) Pipelined vector divide apparatus
US4754422A (en) Dividing apparatus
US5113362A (en) Integrated interpolator and method of operation
JP3259116B2 (en) Pipeline type division processing unit
US4761757A (en) Carry-save-adder three binary dividing apparatus
JPH0816364A (en) Counter circuit and microprocessor using the same
KR100284883B1 (en) Real or complex multiplier
JP2000020486A (en) SIMD type computing unit
JP2991788B2 (en) Decoder
JPS588353A (en) Multiplier
JP3517162B2 (en) Division and square root arithmetic unit
JP3695561B2 (en) Accumulator
JPS5935236A (en) Variable word length multiplying circuit
JP2005518048A (en) Method and apparatus for combining data on parallel data buses
JP3213982B2 (en) Division circuit
JP2000172487A (en) Multiplier circuit and method therefor
JPH0816366A (en) Divider and its division method
Montuschi et al. Simple radix 2 division and square root with skipping of some addition steps.
JP3068640B2 (en) Computing device
JPS62138928A (en) Calculation system for square root

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20011030

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071214

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081214

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081214

Year of fee payment: 7

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081214

Year of fee payment: 7

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees