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
JP4142143B2 - Data correction device - Google Patents
[go: Go Back, main page]

JP4142143B2 - Data correction device - Google Patents

Data correction device Download PDF

Info

Publication number
JP4142143B2
JP4142143B2 JP01968898A JP1968898A JP4142143B2 JP 4142143 B2 JP4142143 B2 JP 4142143B2 JP 01968898 A JP01968898 A JP 01968898A JP 1968898 A JP1968898 A JP 1968898A JP 4142143 B2 JP4142143 B2 JP 4142143B2
Authority
JP
Japan
Prior art keywords
data
control signal
data processing
output
correction
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
JP01968898A
Other languages
Japanese (ja)
Other versions
JPH11219280A (en
Inventor
一文 田上
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 Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP01968898A priority Critical patent/JP4142143B2/en
Publication of JPH11219280A publication Critical patent/JPH11219280A/en
Application granted granted Critical
Publication of JP4142143B2 publication Critical patent/JP4142143B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、データ処理を行った結果を補正するデータ補正装置に関する。
【0002】
【従来の技術】
この種のデータ補正装置は、例えば並列データ処理装置等における並列に配置された算術演算装置の飽和処理、算術シフト装置の飽和処理の他、数が−1以上1未満の固定小数点で表現される場合の乗算装置による−1×1演算実行時の最大値補正といった補正処理を行う。
【0003】
従来は、例えば特開平6−139049号公報に記載されているように、各演算装置ごとにデータ補正装置が備えられ、各演算装置の出力データはデータ補正処理が施された後にデータバスに出力される。
【0004】
【発明が解決しようとする課題】
しかしながら、上記のように並列に配置されたデータ処理装置ごとにデータ補正装置を備えている構成は、全体の回路規模が大きくなる欠点を伴う。また、データ処理装置の状態信号が確定するのを待ってデータ補正処理を行うために、データ処理結果がデータ補正装置で待たされることによる遅延が増大するという問題もあった。
【0005】
本発明は上記のような従来の問題を解決するために、複数のデータ処理装置のデータ補正処理を一括して行うことにより回路規模を低減し効率良いデータ補正処理を実現すると共に、各データ処理装置のデータ処理結果をデータバスで転送するのと並列にデータ補正処理を行うことによりデータ処理時間を全体として低減することを目的とする。
【0006】
【課題を解決するための手段】
本発明のデータ補正装置は、並列に設けられ、かつ独立した複数のデータ処理装置のデータ処理結果を補正するためのデータ補正装置であって、各々が前記複数のデータ処理装置のうち何れかのデータ処理装置の状態を示す少なくとも2組の状態信号と命令デコーダーの出力信号とに基づいて、前記データ処理装置のデータ処理結果に施すべき補正のモードを検出する補正モード検出手段と、補正モード検出手段の出力信号からデータ処理結果に補正を施すための制御信号を生成するデータ補正制御手段と、データ補正制御手段の出力信号に基づいてデータ処理結果にデータ補正処理を施して出力し、又はデータ処理結果をそのまま出力するデータ出力手段とを備えていることを特徴とする。
【0007】
データ補正制御手段は、データ処理結果のビットごとに値0をセットするための第1の制御信号と、値1をセットするための第2の制御信号と、符号拡張のための第3の制御信号とを出力し、データ出力手段は、データ処理結果の各ビットのうち、第1の制御信号によって指定されたビットに値0を出力し、第2の制御信号によって指定されたビットに値1を出力し、第1及び第2の制御信号が共に非能動状態であるビットについてはデータ処理結果をそのまま出力し、かつ、第3の制御信号によって指定されたビットについては符号を拡張して出力するように構成されていることが好ましい。
【0008】
また、補正モード検出手段は、符号拡張モードのときにデータ処理結果の符号が正ならば能動状態になる0拡張モード信号と、データ処理結果の符号が負ならば能動状態になる1拡張モード信号とを生成し、データ補正制御手段は、データ処理結果の各ビットに値0をセットするための第1の制御信号と、値1をセットするための第2の制御信号を出力し、データ出力手段は、データ処理結果の各ビットのうち、第1の制御信号によって指定されたビットに値0を出力し、第2の制御信号によって指定されたビットに値1を出力し、第1及び第2の制御信号が共に非能動状態であるビットについてはデータ処理結果をそのまま出力するように構成されていることも好ましい。
【0009】
更に好ましくは、補正モード検出手段の出力信号と命令デコーダーの出力信号とからデータ処理結果をそのまま出力するための制御信号を生成するデータスルー制御手段を更に備え、データ出力手段は、データスルー制御手段から出力された制御信号にしたがってデータ処理結果をそのまま出力し、又はデータ補正制御手段から出力された制御信号にしたがってデータ処理結果にデータ補正を施したのち出力するように構成されている。
【0010】
【発明の実施の形態】
(実施の形態1)
以下、本発明の実施形態について、図面を参照しながら説明する。図1は本発明の第1の実施形態に係るデータ補正装置の構成を示すブロック図である。図1において、110はデータ処理装置としての算術演算装置(以下、AUと略記する)であり、120は同じくデータ処理装置としての乗算装置(以下、MULと略記する)である。補正モード検出手段410は、AU110及びMUL120から出力された状態信号210、220、及び命令デコーダー500の出力信号510に基づいて、WBUS300に出力されたデータ処理結果に対して施すべきデータ補正処理のモードを検出する。
【0011】
データ補正制御手段420は、補正モード検出手段410の出力信号にしたがって、データ処理結果のビットごとに値0をセットするための制御信号、値1をセットするための制御信号、そして符号拡張のための制御信号を出力する。データ出力手段430は、データ補正制御手段420の出力信号にしたがって、データ処理結果の各ビットに対して値0をセットするための制御信号がハイレベル(能動レベルであるVDD電位を意味する)であればそのビットに値0を出力し、値1をセットするための制御信号がハイレベルであればそのビットに値1を出力する。また、値0をセットするための制御信号と値1をセットするための制御信号が共にローレベル(非能動レベルであるGND電位を意味する)であればそのビットのデータ処理結果の値をそのまま出力する。更に、符号拡張のための制御信号がハイレベルであるビットについてはデータ処理結果の符号を拡張して出力する。
【0012】
このようなデータ補正装置の動作について更に説明する。簡単のために、扱うデータは−1以上1未満の固定小数点データとする。まず、AU110は40ビット幅の2つのデータの加減算を行い演算結果を40ビット幅でWBUS300に出力する。AU110は32ビット精度と40ビット精度の2つのモードを持ち、32ビットオーバーフローフラグと40ビットオーバーフローフラグと常に正しい符号を示すAUサインフラグを出力する。32ビットオーバーフローフラグは、ビット31からビット39までのビットがすべて値0か値1をとらなければハイレベルになるフラグである。
【0013】
MUL120は、16ビット幅の2つのデータの乗算を行い乗算結果を32ビット幅でWBUS300に出力する。MUL120は−1×−1演算を実行したときにハイレベルになる−1×−1検出フラグと乗算結果の符号を示すMULサインフラグとを出力する。
【0014】
補正モード検出手段410は40ビットオーバーフローフラグ、32ビットオーバーフローフラグ、AUサインフラグ、−1×−1検出フラグ、MULサインフラグ、及び命令デコーダー500の出力信号510に基づいて、WBUS300に出力されたデータが32ビット精度で正の方向にオーバーフローを起こしたデータか、32ビット精度で負の方向にオーバーフローを起こしたデータか、40ビット精度で正の方向にオーバーフローを起こしたデータか、40ビット精度で負の方向にオーバーフローを起こしたデータか、それとも−1×−1の乗算結果かを検出してそれぞれのモード信号を検出結果として出力する。
【0015】
データ補正制御手段420は補正モード検出手段410から出力されたモード信号に基づき各ビットに値1をセットする制御信号と、値0をセットする制御信号と、符号拡張のための制御信号を生成し出力する。例えば補正モード検出手段410の出力信号である40ビット精度正のオーバーフローのモード信号がハイレベルであれば、WBUS300に出力された演算結果を値X’7FFFFFFFFFに補正するように、ビット0からビット38は値1をセットする制御信号をハイレベル(能動状態)にし、ビット39は値0をセットする制御信号をハイレベルにする。その他のモード信号がハイレベルである場合も同様である。
【0016】
この実施形態において、補正モード検出手段410は符号拡張モードでWBUS300に出力されたデータの符号が正のときにハイレベルになる0拡張モード信号と、符号拡張モードでWBUS300に出力されたデータの符号が負のときにハイレベルになる1拡張モード信号を出力するように構成してもよい。
【0017】
図2は各演算モードでの演算結果を示している。図2のテーブルにおいて、TはWBUS300に出力された演算結果をそのまま(スルー)出力することを意味する。Sは演算結果の符号を拡張して出力することを意味する。図2にしたがって、ビット0〜30、ビット31〜38、そしてビット39の3つのグループに分けることができる。
【0018】
図3は本実施形態における補正モード検出手段410とデータ補正制御手段420の構成例を示す回路図である。また、各データ処理装置の動作モードにおける命令デコーダー500の出力信号の状態を表1に示す。
【0019】
【表1】

Figure 0004142143
【0020】
補正モード検出手段410は命令デコーダー500の出力信号510から各データ処理装置の動作モードを検出する。また、AU110の32ビットオーバーフローフラグAUOVF32、40ビットオーバーフローフラグAUOVF40、AUサインフラグAUSIN、及びMUL120の−1×−1検出フラグMULDETOに基づいて、40ビット精度正のオーバーフロー補正モード、40ビット精度負のオーバーフロー補正モード、32ビット精度正のオーバーフロー補正モード、32ビット精度負のオーバーフロー補正モード、−1×−1検出モード、−1×−1否検出モード、及びMUL補正無しモードを検出し、補正モード信号として出力する。
【0021】
データ補正制御手段420は40ビット精度正のオーバーフロー補正モード信号、40ビット精度負のオーバーフロー補正モード信号、32ビット精度正のオーバーフロー補正モード信号、32ビット精度負のオーバーフロー補正モード信号、及び−1×−1検出モード信号に基づいて、図2に示した3つのグループに分け、値0をセットする制御信号と値1をセットする制御信号とを生成して出力する。また、−1×−1否検出モード信号及びMUL補正無しモード信号から符号拡張制御信号を生成して出力する。図3において、UP(30−0),UP(38−31),UP(39)はそれぞれビット0からビット30、ビット31からビット38、ビット39に値1をセットする制御信号であり、DOWM(30−0),DOWM(38−31),DOWM(39)はそれぞれビット0からビット30、ビット31からビット38、ビット39に値0をセットする制御信号であり、EXSIN(39−32)はビット32からビット39にビット31のデータを符号拡張する制御信号である。
【0022】
図4は本実施形態におけるデータ出力手段430の回路図である。432は1ビット当たりの符号拡張回路であり、符号拡張制御信号EXSIN(39−32)がハイレベルであるときにビット31のデータを選択して出力する。431は1ビット当たりの補正回路であり、それぞれ値1をセットする制御信号がハイレベルであるときは値1を出力し、値0をセットする制御信号がハイレベルであるときは値0をセットし、値1をセットする制御信号と値0をセットする制御信号が共にローレベルであるときはWBUS300に出力されているデータを出力する。
【0023】
本実施形態のデータ補正装置において、補正モード検出手段は、符号拡張モードのときに−1×−1否検出モード信号とMUL補正無しモード信号の代わりに、データ処理結果の符号が正ならばハイレベルになる0拡張モード信号と、データ処理結果の符号が負ならばハイレベルになる1拡張モード信号を生成し出力するように構成してもよい。
【0024】
図5は本実施形態における補正モード検出手段410とデータ補正制御手段420の別の構成例を示す回路図である。図5において、415は0拡張モード信号と1拡張モード信号を生成する手段である。データ補正制御手段420は、40ビット精度正のオーバーフロー補正モード信号、40ビット精度負のオーバーフロー補正モード信号、32ビット精度正のオーバーフロー補正モード信号、32ビット精度負のオーバーフロー補正モード信号、−1×−1補正モード信号、0拡張モード信号、及び1拡張モード信号に基づいて、図2のテーブルにしたがって3つのグループに分け、値0をセットする制御信号と値1をセットする制御信号を生成して出力する。
【0025】
図6は本実施形態におけるデータ出力手段430の構成例を示す回路図である。値0をセットする制御信号と値1をセットする制御信号に符号拡張の制御が含まれることにより、符号拡張機能が削減される。
【0026】
(実施の形態2)
つぎに、本発明の第2の実施形態の構成を図7に示す。この実施形態のデータ補正装置は、補正モード検出手段410の出力信号と命令デコーダー500の出力信号とに基づいて、WBUS300に出力されたデータをそのまま出力するための制御信号を生成するデータスルー制御手段450を備えている。データ出力手段430は、データスルー制御手段450の出力信号がハイレベルであればWBUS300に出力されたデータをそのまま出力し、データ補正制御手段420の出力信号がハイレベルであればWBUS300に出力されたデータにデータ補正を施して出力する。
【0027】
補正モード検出手段410は、AU32ビット精度補正有り動作モードで演算結果がオーバーフローを起こしていないことを示す32ビットオーバーフロー無しモード信号と、AU40ビット精度補正有り動作モードで演算結果がオーバーフローを起こしていないことを示す40ビットオーバーフロー無しモード信号と、AU補正無しモードを示すAU否補正モード信号を出力する手段を備えている。データスルー制御手段450は、32ビットオーバーフロー無しモード信号、40ビットオーバーフロー無しモード信号、AU否補正モード信号、−1×−1否検出モード信号、及び命令デコーダー500の出力信号に基づいて、図2のテーブルにしたがって、WBUS300に出力されたデータをそのまま出力するためのデータスルー信号を各ビットごとに出力する。
【0028】
このような構成とすることにより、データ出力手段430の出力をハイインピーダンス状態に制御することができ、データ出力手段430の出力データを格納する記憶手段600に対し複数の書き込み経路が存在する場合にも本発明が有効になる。
【0029】
図8は第2の実施形態における補正モード検出手段410、データ補正制御手段420、及びデータスルー制御手段450の構成例を示す回路図である。図8において、データスルー制御手段450は、補正モード検出手段410の出力信号の32ビットオーバーフロー無しモード信号、40ビットオーバーフロー無しモード信号、及び−1×−1否検出モード信号のいずれかがハイレベルであれば、又は命令デコーダー500の出力信号510のうち、補正有りモードであることを示すOPOVC信号がローレベルであれば、ビット0からビット30のデータをそのまま(スルーして)出力するための制御信号TH(30−0)信号をハイレベルにする。また、32ビットオーバーフロー無しモード信号、40ビットオーバーフロー無しモード信号、及びAU否補正モード信号のいずれかがハイレベルであれば、ビット31からビット39のデータをそのまま(スルーして)出力するための制御信号TH(39−31)信号をハイレベルにする。
【0030】
図9は第2の実施形態におけるデータ出力手段430の回路図である。図9において、433は1ビット当たりの補正回路を示している。この補正回路は、データスルー制御信号THがハイレベルであれば入力されたデータをそのまま出力し、1補正制御信号がハイレベルであれば値1を出力し、0補正制御信号がハイレベルであれば値0を出力する。
【0031】
図10は、符号拡張をデータ補正処理で行う際の補正モード検出手段410、データ補正制御手段420、及びデータスルー制御手段450の構成例を示す回路図である。また、図11はデータ出力手段430の構成例を示す回路図である。このような構成とすることにより、符号拡張のための回路を削減することができる。
【0032】
【発明の効果】
以上説明したように本発明のデータ補正装置によれば、飽和処理や符号拡張等のデータ補正処理を一括して行うことができる。また、従来に比べて全体の回路規模が小さくなる。演算結果のデータバス転送と並列にデータ補正処理を行うことができ、更にデータバスの負荷容量を低減することができるので全体としてデータ処理時間を短くすることができる。特に、並列演算装置で並列に配置されるデータ処理装置の数が多くなるほど本発明の効果は大きくなる。
【図面の簡単な説明】
【図1】本発明の第1の実施形態に係るデータ補正装置の構成を示すブロック図
【図2】各演算モードでの演算結果を示すテーブル
【図3】図1のデータ補正装置における補正モード検出手段及びデータ補正制御手段の構成例を示す回路図
【図4】図1のデータ補正装置におけるデータ出力手段の回路図
【図5】図1のデータ補正装置における補正モード検出手段及びデータ補正制御手段の別の構成例を示す回路図
【図6】図1のデータ補正装置におけるデータ出力手段の構成例を示す回路図
【図7】本発明の第2の実施形態に係るデータ補正装置の構成を示すブロック図
【図8】図7のデータ補正装置における補正モード検出手段、データ補正制御手段及びデータスルー制御手段の構成例を示す回路図
【図9】図7のデータ補正装置におけるデータ出力手段の構成例を示す回路図
【図10】図7のデータ補正装置における補正モード検出手段、データ補正制御手段及びデータスルー制御手段の別の構成例を示す回路図
【図11】図7のデータ補正装置におけるデータ出力手段の構成例を示す回路図
【符号の説明】
110 算術演算装置(AU)
120 乗算装置(MUL)
210 AUの状態を示す状態信号
220 MULの状態を示す状態信号
400 データ補正装置
410 補正モード検出手段
415 符号拡張制御信号生成手段
420 データ補正制御手段
430 データ出力手段
431 1ビット当たりのデータ補正回路
432 1ビット当たりの符号拡張回路
433 1ビット当たりのデータ補正回路
440 データ出力手段の出力信号
450 データスルー制御手段
500 命令デコーダー
600 記憶手段[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a data correction apparatus that corrects a result of data processing.
[0002]
[Prior art]
This type of data correction device is expressed by a fixed point whose number is −1 or more and less than 1, in addition to saturation processing of arithmetic operation devices arranged in parallel in parallel data processing devices or the like, saturation processing of arithmetic shift devices, and the like. In this case, correction processing such as maximum value correction at the time of execution of a −1 × 1 operation by the multiplication device is performed.
[0003]
Conventionally, as described in, for example, Japanese Patent Laid-Open No. 6-139049, a data correction device is provided for each arithmetic device, and output data of each arithmetic device is output to a data bus after being subjected to data correction processing. Is done.
[0004]
[Problems to be solved by the invention]
However, the configuration in which the data correction device is provided for each of the data processing devices arranged in parallel as described above has a drawback that the overall circuit scale is increased. In addition, since the data correction process is performed after the status signal of the data processing apparatus is fixed, there is a problem that a delay due to the data processing result being waited by the data correction apparatus increases.
[0005]
In order to solve the conventional problems as described above, the present invention realizes efficient data correction processing by reducing the circuit scale by collectively performing data correction processing of a plurality of data processing devices. An object of the present invention is to reduce the data processing time as a whole by performing data correction processing in parallel with transferring the data processing result of the apparatus via a data bus.
[0006]
[Means for Solving the Problems]
Data correction apparatus of the present invention is provided in parallel, and a data correction unit for correcting the data processing result of a plurality of independent data processing devices, each of one of said plurality of data processing devices Correction mode detection means for detecting a correction mode to be applied to the data processing result of the data processing device based on at least two sets of status signals indicating the status of the data processing device and an output signal of the instruction decoder; and correction mode detection Data correction control means for generating a control signal for correcting the data processing result from the output signal of the means, and data correction processing is performed on the data processing result based on the output signal of the data correction control means, or data is output And a data output means for outputting the processing result as it is.
[0007]
The data correction control means includes a first control signal for setting a value 0 for each bit of the data processing result, a second control signal for setting a value 1, and a third control for sign extension. The data output means outputs a value 0 to the bit designated by the first control signal, and outputs a value 1 to the bit designated by the second control signal. For the bits in which both the first and second control signals are inactive, and the data processing result is output as it is, and the sign specified for the third control signal is extended and output. It is preferable that it is comprised.
[0008]
In addition, the correction mode detection means is a 0 extension mode signal that becomes active if the sign of the data processing result is positive and a 1 extension mode signal that becomes active if the sign of the data processing result is negative in the sign extension mode. The data correction control means outputs a first control signal for setting the value 0 to each bit of the data processing result and a second control signal for setting the value 1, and outputs the data. The means outputs the value 0 to the bit designated by the first control signal, outputs the value 1 to the bit designated by the second control signal, and outputs the value 1 to each bit of the data processing result. It is also preferable that the data processing result is output as it is for the bits for which the two control signals are both inactive.
[0009]
More preferably, it further comprises data through control means for generating a control signal for outputting the data processing result as it is from the output signal of the correction mode detecting means and the output signal of the instruction decoder, and the data output means is the data through control means. The data processing result is output as it is in accordance with the control signal output from, or the data processing result is subjected to data correction in accordance with the control signal output from the data correction control means and then output.
[0010]
DETAILED DESCRIPTION OF THE INVENTION
(Embodiment 1)
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the data correction apparatus according to the first embodiment of the present invention. In FIG. 1, 110 is an arithmetic operation unit (hereinafter abbreviated as AU) as a data processing device, and 120 is a multiplication device (hereinafter abbreviated as MUL) as a data processing device. The correction mode detection means 410 is a mode of data correction processing to be performed on the data processing result output to the WBUS 300 based on the status signals 210 and 220 output from the AU 110 and the MUL 120 and the output signal 510 of the instruction decoder 500. Is detected.
[0011]
The data correction control means 420 is a control signal for setting a value of 0 for each bit of the data processing result, a control signal for setting a value of 1, and for sign extension according to the output signal of the correction mode detection means 410 The control signal is output. In the data output means 430, the control signal for setting the value 0 for each bit of the data processing result is at a high level (meaning a VDD potential which is an active level) according to the output signal of the data correction control means 420. If there is, the value 0 is output to that bit, and if the control signal for setting the value 1 is at high level, the value 1 is output to that bit. If the control signal for setting the value 0 and the control signal for setting the value 1 are both low level (meaning the GND potential which is an inactive level), the value of the data processing result of that bit is used as it is. Output. Furthermore, the sign of the data processing result is extended and outputted for the bits whose control signal for sign extension is at the high level.
[0012]
The operation of such a data correction apparatus will be further described. For simplicity, the data to be handled is fixed point data of −1 or more and less than 1. First, the AU 110 adds and subtracts two pieces of data having a 40-bit width, and outputs the calculation result to the WBUS 300 with a 40-bit width. The AU 110 has two modes of 32-bit accuracy and 40-bit accuracy, and outputs a 32-bit overflow flag, a 40-bit overflow flag, and an AU sign flag that always indicates the correct code. The 32-bit overflow flag is a flag that becomes a high level if all the bits from bit 31 to bit 39 do not take the value 0 or the value 1.
[0013]
The MUL 120 multiplies two pieces of data having a 16-bit width and outputs the multiplication result to the WBUS 300 with a 32-bit width. The MUL 120 outputs a −1 × −1 detection flag that becomes a high level when the −1 × −1 operation is executed, and a MUL sign flag that indicates the sign of the multiplication result.
[0014]
The correction mode detection means 410 uses the 40-bit overflow flag, the 32-bit overflow flag, the AU sign flag, the −1 × −1 detection flag, the MUL sign flag, and the data output to the WBUS 300 based on the output signal 510 of the instruction decoder 500. Is data that has overflowed in the positive direction with 32-bit precision, data that has overflowed in the negative direction with 32-bit precision, data that has overflowed in the positive direction with 40-bit precision, or data with 40-bit precision Whether the data overflows in the negative direction or the multiplication result of −1 × −1 is detected, and each mode signal is output as a detection result.
[0015]
The data correction control unit 420 generates a control signal for setting a value 1 to each bit, a control signal for setting a value 0, and a control signal for sign extension based on the mode signal output from the correction mode detection unit 410. Output. For example, if the 40-bit precision positive overflow mode signal that is the output signal of the correction mode detection means 410 is at a high level, the calculation result output to the WBUS 300 is corrected to the value X′7FFFFFFFFF so that the bit 0 to the bit 38 are corrected. Sets the control signal for setting the value 1 to the high level (active state), and the bit 39 sets the control signal for setting the value 0 to the high level. The same applies when other mode signals are at a high level.
[0016]
In this embodiment, the correction mode detection means 410 has a 0 extension mode signal that goes high when the sign of the data output to the WBUS 300 in the sign extension mode is positive, and the sign of the data output to the WBUS 300 in the sign extension mode. It may be configured to output one extended mode signal that becomes a high level when is negative.
[0017]
FIG. 2 shows calculation results in each calculation mode. In the table of FIG. 2, T means that the calculation result output to the WBUS 300 is output as it is (through). S means that the sign of the operation result is extended and output. According to FIG. 2, it can be divided into three groups of bits 0 to 30, bits 31 to 38, and bits 39.
[0018]
FIG. 3 is a circuit diagram showing a configuration example of the correction mode detection unit 410 and the data correction control unit 420 in the present embodiment. Table 1 shows the state of the output signal of the instruction decoder 500 in the operation mode of each data processing device.
[0019]
[Table 1]
Figure 0004142143
[0020]
The correction mode detection means 410 detects the operation mode of each data processing device from the output signal 510 of the instruction decoder 500. Also, based on the AU110 32-bit overflow flag AUOVF32, 40-bit overflow flag AUOVF40, AU sign flag AUSIN, and -1 × -1 detection flag MULDETO of MUL120, 40-bit precision positive overflow correction mode, 40-bit precision negative Overflow correction mode, 32-bit precision positive overflow correction mode, 32-bit precision negative overflow correction mode, −1 × −1 detection mode, −1 × −1 non-detection mode, and no MUL correction mode are detected, and the correction mode Output as a signal.
[0021]
The data correction control means 420 includes a 40-bit precision positive overflow correction mode signal, a 40-bit precision negative overflow correction mode signal, a 32-bit precision positive overflow correction mode signal, a 32-bit precision negative overflow correction mode signal, and −1 ×. Based on the -1 detection mode signal, the control signal is divided into the three groups shown in FIG. 2, and a control signal for setting value 0 and a control signal for setting value 1 are generated and output. In addition, a sign extension control signal is generated from the −1 × −1 non-detection mode signal and the no MUL correction mode signal and output. In FIG. 3, UP (30-0), UP (38-31), and UP (39) are control signals for setting a value 1 to bit 0 to bit 30, bit 31 to bit 38, and bit 39, respectively. (30-0), DOWM (38-31), and DOWM (39) are control signals that set the value 0 to bit 0 to bit 30, bit 31 to bit 38, and bit 39, respectively. EXSIN (39-32) Is a control signal for sign-extending the data of bit 31 from bit 32 to bit 39.
[0022]
FIG. 4 is a circuit diagram of the data output means 430 in the present embodiment. Reference numeral 432 denotes a sign extension circuit per bit, which selects and outputs the data of bit 31 when the sign extension control signal EXSIN (39-32) is at a high level. 431 is a correction circuit per bit, which outputs a value 1 when the control signal for setting the value 1 is at a high level, and sets a value 0 when the control signal for setting the value 0 is at a high level. When the control signal for setting the value 1 and the control signal for setting the value 0 are both at the low level, the data output to the WBUS 300 is output.
[0023]
In the data correction apparatus of the present embodiment, the correction mode detection means is high if the sign of the data processing result is positive instead of the −1 × −1 non-detection mode signal and the no MUL correction mode signal in the sign extension mode. It may be configured to generate and output a 0 extension mode signal that becomes a level and a 1 extension mode signal that becomes a high level if the sign of the data processing result is negative.
[0024]
FIG. 5 is a circuit diagram showing another configuration example of the correction mode detection unit 410 and the data correction control unit 420 in the present embodiment. In FIG. 5, reference numeral 415 denotes a means for generating a 0 extension mode signal and a 1 extension mode signal. The data correction control means 420 includes a 40-bit precision positive overflow correction mode signal, a 40-bit precision negative overflow correction mode signal, a 32-bit precision positive overflow correction mode signal, a 32-bit precision negative overflow correction mode signal, −1 × Based on the −1 correction mode signal, the 0 extension mode signal, and the 1 extension mode signal, the control signal for setting the value 0 and the control signal for setting the value 1 are generated according to the table of FIG. Output.
[0025]
FIG. 6 is a circuit diagram showing a configuration example of the data output means 430 in the present embodiment. Since the control signal for setting the value 0 and the control signal for setting the value 1 include control of sign extension, the sign extension function is reduced.
[0026]
(Embodiment 2)
Next, the configuration of the second embodiment of the present invention is shown in FIG. The data correction apparatus of this embodiment is a data through control means for generating a control signal for outputting the data output to the WBUS 300 as it is based on the output signal of the correction mode detection means 410 and the output signal of the instruction decoder 500. 450. The data output means 430 outputs the data output to the WBUS 300 as it is if the output signal of the data through control means 450 is high level, and is output to the WBUS 300 if the output signal of the data correction control means 420 is high level. Data is corrected and output.
[0027]
The correction mode detection means 410 has a 32-bit non-overflow mode signal indicating that the operation result has not caused an overflow in the operation mode with AU 32-bit accuracy correction, and an operation result has not caused an overflow in the operation mode with AU 40-bit accuracy correction. Means for outputting a 40-bit overflow no-mode signal indicating the above and an AU rejection correction mode signal indicating the no-AU correction mode. The data through control means 450 is based on the 32-bit no overflow mode signal, the 40-bit no overflow mode signal, the AU rejection correction mode signal, the −1 × −1 rejection detection mode signal, and the output signal of the instruction decoder 500, as shown in FIG. According to the table, a data through signal for outputting the data output to the WBUS 300 as it is is output for each bit.
[0028]
With this configuration, the output of the data output means 430 can be controlled to a high impedance state, and there are a plurality of write paths for the storage means 600 that stores the output data of the data output means 430. The present invention is also effective.
[0029]
FIG. 8 is a circuit diagram showing a configuration example of the correction mode detection unit 410, the data correction control unit 420, and the data through control unit 450 in the second embodiment. In FIG. 8, the data through control unit 450 has a high level of any of the 32-bit no overflow mode signal, the 40 bit no overflow mode signal, and the −1 × −1 non-detection mode signal of the output signal of the correction mode detection unit 410. If the OPOVC signal indicating the correction mode is low in the output signal 510 of the instruction decoder 500, the data of bit 0 to bit 30 is output as it is (through). The control signal TH (30-0) signal is set to the high level. If any of the 32-bit overflow no-mode signal, the 40-bit overflow no-mode signal, and the AU rejection correction mode signal is at a high level, the data from bit 31 to bit 39 is output as it is (through). The control signal TH (39-31) signal is set to the high level.
[0030]
FIG. 9 is a circuit diagram of the data output means 430 in the second embodiment. In FIG. 9, reference numeral 433 denotes a correction circuit per bit. This correction circuit outputs the input data as it is if the data through control signal TH is at a high level, outputs a value 1 if the 1 correction control signal is at a high level, and the 0 correction control signal is at a high level. Value 0 is output.
[0031]
FIG. 10 is a circuit diagram illustrating a configuration example of the correction mode detection unit 410, the data correction control unit 420, and the data through control unit 450 when the sign extension is performed by the data correction processing. FIG. 11 is a circuit diagram showing a configuration example of the data output means 430. With such a configuration, a circuit for code extension can be reduced.
[0032]
【The invention's effect】
As described above, according to the data correction apparatus of the present invention, data correction processing such as saturation processing and sign extension can be performed collectively. In addition, the overall circuit scale is smaller than in the prior art. Data correction processing can be performed in parallel with the calculation result data bus transfer, and the load capacity of the data bus can be further reduced, so that the data processing time can be shortened as a whole. In particular, the effect of the present invention increases as the number of data processing devices arranged in parallel in the parallel arithmetic device increases.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a data correction apparatus according to a first embodiment of the present invention. FIG. 2 is a table showing calculation results in each calculation mode. FIG. 3 is a correction mode in the data correction apparatus of FIG. FIG. 4 is a circuit diagram showing a configuration example of detection means and data correction control means. FIG. 4 is a circuit diagram of data output means in the data correction apparatus of FIG. 1. FIG. 5 is a correction mode detection means and data correction control in the data correction apparatus of FIG. FIG. 6 is a circuit diagram showing a configuration example of data output means in the data correction apparatus of FIG. 1. FIG. 7 is a configuration of a data correction apparatus according to the second embodiment of the present invention. FIG. 8 is a circuit diagram showing a configuration example of correction mode detection means, data correction control means, and data through control means in the data correction apparatus of FIG. 7. FIG. 9 is a circuit diagram of the data correction apparatus of FIG. FIG. 10 is a circuit diagram showing another configuration example of the correction mode detecting means, the data correction control means, and the data through control means in the data correction apparatus of FIG. 7; Schematic diagram showing an example of the configuration of data output means in the data correction apparatus of the present invention
110 Arithmetic operation unit (AU)
120 Multiplier (MUL)
210 Status signal 220 indicating AU status Status signal 400 indicating MUL status 400 Data correction device 410 Correction mode detection means 415 Code extension control signal generation means 420 Data correction control means 430 Data output control means 431 Data correction circuit 432 per bit Sign extension circuit 433 per bit Data correction circuit 440 per bit Output signal 450 of data output means Data through control means 500 Instruction decoder 600 Storage means

Claims (6)

並列に設けられ、かつ独立した複数のデータ処理装置のデータ処理結果を補正するためのデータ補正装置であって、
各々が前記複数のデータ処理装置のうち何れかのデータ処理装置の状態を示す少なくとも2組の状態信号と命令デコーダーの出力信号とに基づいて、前記データ処理装置のデータ処理結果に施すべき補正のモードを検出する補正モード検出手段と、
前記補正モード検出手段の出力信号から前記データ処理結果に補正を施すための制御信号を生成するデータ補正制御手段と、
前記データ補正制御手段の出力信号に基づいて前記データ処理結果にデータ補正処理を施して出力し、又は前記データ処理結果をそのまま出力するデータ出力手段とを備えているデータ補正装置。
A data correction device for correcting data processing results of a plurality of independent data processing devices provided in parallel,
Corrections to be performed on the data processing results of the data processing device based on at least two sets of status signals each indicating the status of any one of the plurality of data processing devices and the output signal of the instruction decoder Correction mode detection means for detecting the mode;
Data correction control means for generating a control signal for correcting the data processing result from the output signal of the correction mode detection means;
A data correction apparatus comprising: data output means for performing data correction processing on the data processing result based on an output signal of the data correction control means and outputting the data processing result, or outputting the data processing result as it is.
前記データ補正制御手段は、前記データ処理結果のビットごとに値0をセットするための第1の制御信号と、値1をセットするための第2の制御信号と、符号拡張のための第3の制御信号とを出力し、
前記データ出力手段は、前記データ処理結果の各ビットのうち、前記第1の制御信号によって指定されたビットに値0を出力し、前記第2の制御信号によって指定されたビットに値1を出力し、前記第1及び第2の制御信号が共に非能動状態であるビットについてはデータ処理結果をそのまま出力し、かつ、前記第3の制御信号によって指定されたビットについては符号を拡張して出力するように構成されている請求項1記載のデータ補正装置。
The data correction control means includes a first control signal for setting a value 0 for each bit of the data processing result, a second control signal for setting a value 1, and a third control signal for sign extension. Control signal and
The data output means outputs a value 0 to a bit designated by the first control signal and outputs a value 1 to a bit designated by the second control signal among the bits of the data processing result The data processing result is output as it is for the bits in which both the first and second control signals are inactive, and the sign is extended and output for the bits specified by the third control signal. The data correction apparatus according to claim 1, wherein the data correction apparatus is configured to do so.
前記補正モード検出手段は、符号拡張モードのときに前記データ処理結果の符号が正ならば能動状態になる0拡張モード信号と、前記データ処理結果の符号が負ならば能動状態になる1拡張モード信号とを生成し、
前記データ補正制御手段は、前記データ処理結果の各ビットに値0をセットするための第1の制御信号と、値1をセットするための第2の制御信号を出力し、
前記データ出力手段は、前記データ処理結果の各ビットのうち、前記第1の制御信号によって指定されたビットに値0を出力し、前記第2の制御信号によって指定されたビットに値1を出力し、前記第1及び第2の制御信号が共に非能動状態であるビットについてはデータ処理結果をそのまま出力するように構成されている請求項1記載のデータ補正装置。
The correction mode detection means includes a 0 extension mode signal that is in an active state if the sign of the data processing result is positive and a one extension mode that is in an active state if the sign of the data processing result is negative in the sign extension mode. Signal and generate
The data correction control means outputs a first control signal for setting a value 0 to each bit of the data processing result and a second control signal for setting a value 1;
The data output means outputs a value 0 to a bit designated by the first control signal and outputs a value 1 to a bit designated by the second control signal among the bits of the data processing result 2. A data correction apparatus according to claim 1, wherein a data processing result is output as it is for a bit in which both of the first and second control signals are inactive.
前記補正モード検出手段の出力信号と前記命令デコーダーの出力信号とから前記データ処理結果をそのまま出力するための制御信号を生成するデータスルー制御手段を更に備え、
前記データ出力手段は、前記データスルー制御手段から出力された制御信号にしたがって前記データ処理結果をそのまま出力し、又は前記データ補正制御手段から出力された制御信号にしたがって前記データ処理結果にデータ補正を施したのち出力するように構成されている請求項1記載のデータ補正装置。
Further comprising data through control means for generating a control signal for outputting the data processing result as it is from the output signal of the correction mode detection means and the output signal of the instruction decoder;
The data output means outputs the data processing result as it is according to the control signal output from the data through control means, or corrects the data processing result according to the control signal output from the data correction control means. The data correction device according to claim 1, wherein the data correction device is configured to output after being applied.
前記データ補正制御手段は、前記データ処理結果のビットごとに値0をセットするための第1の制御信号と、値1をセットするための第2の制御信号と、符号拡張のための第3の制御信号とを出力し、
前記データ出力手段は、前記データ処理結果の各ビットのうち、前記第1の制御信号によって指定されたビットに値0を出力し、前記第2の制御信号によって指定されたビットに値1を出力し、前記第1及び第2の制御信号が共に非能動状態であるビットについてはデータ処理結果をそのまま出力し、かつ、前記第3の制御信号によって指定されたビットについては符号を拡張して出力するように構成されている請求項4記載のデータ補正装置。
The data correction control means includes a first control signal for setting a value 0 for each bit of the data processing result, a second control signal for setting a value 1, and a third control signal for sign extension. Control signal and
The data output means outputs a value 0 to a bit designated by the first control signal and outputs a value 1 to a bit designated by the second control signal among the bits of the data processing result The data processing result is output as it is for the bits in which both the first and second control signals are inactive, and the sign is extended and output for the bits specified by the third control signal. The data correction apparatus according to claim 4, wherein the data correction apparatus is configured to.
前記補正モード検出手段は、符号拡張モードのときに前記データ処理結果の符号が正ならば能動状態になる0拡張モード信号と、前記データ処理結果の符号が負ならば能動状態になる1拡張モード信号とを生成し、
前記データ補正制御手段は前記データ処理結果の各ビットに値0をセットするための 1の制御信号と、値1をセットするための第2の制御信号を出力し、
前記データ出力手段は、前記データ処理結果の各ビットのうち、前記第1の制御信号によって指定されたビットに値0を出力し、前記第2の制御信号によって指定されたビットに値1を出力し、前記第1及び第2の制御信号が共に非能動状態であるビットについてはデータ処理結果をそのまま出力するように構成されている請求項4記載のデータ補正装置。
The correction mode detection means includes a 0 extension mode signal that is in an active state if the sign of the data processing result is positive and a one extension mode that is in an active state if the sign of the data processing result is negative in the sign extension mode. Signal and generate
The data correction control means outputs a second control signal for setting a first control signal, the value 1 for setting the values 0 to each bit of the data processing result,
The data output means outputs a value 0 to a bit designated by the first control signal and outputs a value 1 to a bit designated by the second control signal among the bits of the data processing result 5. The data correction apparatus according to claim 4, wherein a data processing result is output as it is for a bit in which both of the first and second control signals are inactive.
JP01968898A 1998-01-30 1998-01-30 Data correction device Expired - Fee Related JP4142143B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01968898A JP4142143B2 (en) 1998-01-30 1998-01-30 Data correction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01968898A JP4142143B2 (en) 1998-01-30 1998-01-30 Data correction device

Publications (2)

Publication Number Publication Date
JPH11219280A JPH11219280A (en) 1999-08-10
JP4142143B2 true JP4142143B2 (en) 2008-08-27

Family

ID=12006194

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01968898A Expired - Fee Related JP4142143B2 (en) 1998-01-30 1998-01-30 Data correction device

Country Status (1)

Country Link
JP (1) JP4142143B2 (en)

Also Published As

Publication number Publication date
JPH11219280A (en) 1999-08-10

Similar Documents

Publication Publication Date Title
US20020038202A1 (en) Arithmetic unit
JP4935619B2 (en) Digital signal processor
JPH07182141A (en) Arithmetic device and arithmetic method
EP0686910A1 (en) Data processing system having a saturation arithmetic operation function
JPS62191926A (en) Arithmetic unit
JP4142143B2 (en) Data correction device
JP3497852B1 (en) Calculation method and calculation circuit
KR100309520B1 (en) Multiplication methods and multiplication circuits with round-off capability
JP2558952B2 (en) Fixed-point digital signal processor
JP3137131B2 (en) Floating point multiplier and multiplication method
JP2008204356A (en) Reconfigurable circuit
JP3210356B2 (en) Data zero judgment device
US20250077363A1 (en) Method for fault-tolerant operation of a processing unit and of a processing arrangement, circuit arrangement, and computing unit
JPH04281524A (en) Floating point arithmetic processor
JP3557366B2 (en) Size comparison method and device
JP2998324B2 (en) Normalized shift device and normalized shift method
JP3659408B2 (en) Data arithmetic processing apparatus and data arithmetic processing program
JP2508269B2 (en) Square root calculator
JP2558721B2 (en) Input/Output Circuit
JP2001306346A (en) Arithmetic processing unit
JPH10149277A (en) Multiplier
JPH0644226B2 (en) Processor
JP2003330914A (en) Vector calculation processing device, vector calculation method and vector calculation program
JP2004242292A (en) Incrementer and method for fast calculation with zero detection
JP2001306347A (en) Arithmetic processing unit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050125

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070912

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070918

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071105

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080304

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080424

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080520

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080612

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

Free format text: PAYMENT UNTIL: 20110620

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120620

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees