JP2599984B2 - Input data peak value detection circuit - Google Patents

Input data peak value detection circuit

Info

Publication number
JP2599984B2
JP2599984B2 JP63309234A JP30923488A JP2599984B2 JP 2599984 B2 JP2599984 B2 JP 2599984B2 JP 63309234 A JP63309234 A JP 63309234A JP 30923488 A JP30923488 A JP 30923488A JP 2599984 B2 JP2599984 B2 JP 2599984B2
Authority
JP
Japan
Prior art keywords
data
input
peak value
bit
register
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 - Lifetime
Application number
JP63309234A
Other languages
Japanese (ja)
Other versions
JPH02155032A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP63309234A priority Critical patent/JP2599984B2/en
Publication of JPH02155032A publication Critical patent/JPH02155032A/en
Application granted granted Critical
Publication of JP2599984B2 publication Critical patent/JP2599984B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は半導体集積回路においてシリアルに入力さ
れるデータ列のピーク値を検出するピーク値検出回路に
関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a peak value detecting circuit for detecting a peak value of a serially input data string in a semiconductor integrated circuit.

〔従来の技術〕[Conventional technology]

従来、この種のピーク値検出回路はその基本構成を第
4図に示すように、シリアルの入力データが入力された
後、パラレルのデータに変換するnビットシリアル/パ
ラレル変換回路11と、変換された入力データを保持する
nビットレジスタ12と、入力データのうちピーク値のデ
ータを保持するnビットレジスタ14と、ピーク値のデー
タを反転するインバータ回路15と、入力データとインバ
ータ回路15により反転されたピーク値のデータとを入力
して両データの大小比較を行なうためのnビット加算器
16と、比較結果に応じてピーク値のデータを選択するた
めのスイッチ回路13とからなり、シリアルに入力される
入力データのピーク値を検出する構成となっている。な
お、第4図において、1は入力データをシリアルに入力
するための入力端子、2はピーク値のデータをシリアル
に出力するための出力端子であり、Ao〜An−1はnビッ
トの入力データを、Bo〜n−1はnビットのピーク値の
データをそれぞれ示す。
Conventionally, this kind of peak value detection circuit has an n-bit serial / parallel conversion circuit 11 for converting serial input data into parallel data after inputting the serial input data, as shown in FIG. N-bit register 12 for holding the input data, n-bit register 14 for holding the peak value data of the input data, inverter circuit 15 for inverting the peak value data, and the input data and the inverter circuit 15 for inverting the input data. N-bit adder for inputting the data of the peak value and comparing the magnitudes of the two values
16 and a switch circuit 13 for selecting peak value data in accordance with the comparison result, and is configured to detect the peak value of serially input data. In FIG. 4, 1 is an input terminal for serially inputting input data, 2 is an output terminal for serially outputting peak value data, and Ao to An-1 are n-bit input data. , And Bo to n−1 indicate n-bit peak value data, respectively.

次に動作について示す。 Next, the operation will be described.

まず、入力端子1からシリアルのnビットの入力デー
タAo〜An−1がシリアル/パラレル変換回路11に入力さ
れたパラレルのデータに変換される。次に、このパラレ
ルの各ビットのデータはnビットレジスタ12に保持さ
れ、その出力はnビット加算器16の一方の入力端に入力
される。また、入力データAo〜An−1のうちピーク値の
データはnビットレジスタ14に保持され、その出力はイ
ンバータ回路15により反転されてnビット加算器16の他
方の入力端に入力される。ここでnビット加算器16は入
力データと反転されたピーク値のデータとに、さらにキ
ャリー入力として、1を入力し加算を行なう、すなわ
ち、nビット加算器16は入力値とピーク値との減算を行
ない、例えば、入力値がピーク値より大きいかもしくは
等しければnビット加算器16のnビット目のキャリー出
力は1(High)となり、また入力値がピーク値より小さ
ければ0(Low)となる。
First, the serial n-bit input data Ao to An-1 is converted from the input terminal 1 into parallel data input to the serial / parallel conversion circuit 11. Next, the data of each parallel bit is held in the n-bit register 12, and its output is input to one input terminal of the n-bit adder 16. The peak value data of the input data Ao to An-1 is held in the n-bit register 14, and its output is inverted by the inverter circuit 15 and input to the other input terminal of the n-bit adder 16. Here, the n-bit adder 16 performs addition by inputting 1 as a carry input to the input data and the inverted peak value data. That is, the n-bit adder 16 subtracts the input value from the peak value. For example, if the input value is greater than or equal to the peak value, the carry output of the n-th bit of the n-bit adder 16 becomes 1 (High), and if the input value is smaller than the peak value, it becomes 0 (Low). .

次にこのnビット目のキャリー出力はスイッチ回路13
に入力される。ここで、スイッチ回路13が1(High)で
導通状態になるとすれば、nビットレジスタ14には常に
1つのピーク値である最大値のデータが保持される。ま
た、スイッチ回路13が0(Low)で導通状態になるとす
れば、nビットレジスタ14には常に1つのピーク値であ
る最小値のデータが保持される。
Next, the carry output of the n-th bit is supplied to the switch circuit 13.
Is input to Here, if the switch circuit 13 is turned on at 1 (High), the n-bit register 14 always holds the data of the maximum value, which is one peak value. If the switch circuit 13 is turned on at 0 (Low), the n-bit register 14 always holds the data of the minimum value which is one peak value.

次に第5図に示すように簡単のために4ビットの例で
説明する。この場合1つのピーク値として最大値の例を
示す。ここで第5図(a),(b)に示すように入力値
を5、今までのピーク値を3とすると、4ビット加算器
16への入力は第5図(c)のようになり、4ビット目の
キャリー出力は1(High)となる。次に、このキャリー
出力はスイッチ回路13に入力される。スイッチ回路13は
1(High)の時、導通状態となり、4ビットレジスタ14
のピーク値のデータが入力データで書き換えられてピー
ク値は5となる。
Next, as shown in FIG. 5, a 4-bit example will be described for simplicity. In this case, an example of the maximum value is shown as one peak value. Here, as shown in FIGS. 5 (a) and 5 (b), assuming that the input value is 5 and the previous peak value is 3, a 4-bit adder is used.
The input to 16 is as shown in FIG. 5C, and the carry output of the fourth bit is 1 (High). Next, the carry output is input to the switch circuit 13. When the switch circuit 13 is 1 (High), the switch circuit 13 becomes conductive and the 4-bit register 14
Is rewritten with the input data, and the peak value becomes 5.

次の入力値が4とすると第5図(c)と同様に、4ビ
ット加算器16への入力は第6図(c)のようになる。こ
の場合、4ビット目のキャリー出力は0(Low)であ
り、スイッチ回路13は導通しない。したがってnビット
レジスタ14のデータは保持され、ピーク値は5となる。
このようにして、従来では、シリアルに入力される入力
データのピーク値である最大値あるいは最小値を出力端
子2から検出していた。
Assuming that the next input value is 4, the input to the 4-bit adder 16 is as shown in FIG. 6C, as in FIG. 5C. In this case, the carry output of the fourth bit is 0 (Low), and the switch circuit 13 does not conduct. Therefore, the data of the n-bit register 14 is held, and the peak value becomes 5.
As described above, conventionally, the maximum value or the minimum value that is the peak value of the serially input input data is detected from the output terminal 2.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

従来のピーク値検出回路は以上のように構成されてい
るので、入力値とピーク値とのデータ数に応じた加算器
が必要となり、データ数が大きくなると半導体集積回路
の面積が増大するという問題点があった。
Since the conventional peak value detection circuit is configured as described above, an adder corresponding to the number of data between the input value and the peak value is required, and the problem is that the area of the semiconductor integrated circuit increases as the number of data increases. There was a point.

この発明は上記のような問題点を解決するためになさ
れたもので、シリアルに入力されるデータとピーク値の
データとのどちらか一方を反転して両データを1ビット
毎に加算し、この加算による最終キャリー出力で両デー
タの大小比較を行なうことにより、入力値とピーク値と
のデータ数に関係なく回路面積を小さくできる入力デー
タのピーク値検出回路を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problem. One of data serially input and data of a peak value is inverted, and both data are added bit by bit. An object of the present invention is to provide a peak value detection circuit for input data which can reduce the circuit area irrespective of the number of data between the input value and the peak value by comparing the magnitude of both data with the final carry output by addition.

〔課題を解決するための手段〕[Means for solving the problem]

この発明に係る入力データのピーク値検出回路は、第
1のレジスタ(nビットレジスタ3)からの入力データ
と反転回路(インバータ回路6)からのピーク値データ
の反転データとキャリー入力とを1ビット毎に加算し、
あるいは第2のレジスタ(nビットレジスタ4)からの
ピーク値データと上記反転回路(インバータ回路6)か
らの入力データの反転データとキャリー入力とを1ビッ
ト毎に加算して、その加算にて生じたキャリーをキャリ
ー出力として出力する加算器(1ビット加算器)7と、
最初のキャリー入力を1として上記加算器7へ出力し
て、この加算器7が出力するキャリー出力を入力し、次
のビットの加算についてキャリー入力として上記加算器
7へ出力するキャリーコントロール回路8と、上記加算
器7により最終ビットまで加算した結果の最終キャリー
出力を、上記キャリーコントロール回路8から入力し
て、この最終キャリー出力に基づいて、上記入力データ
とピーク値データの大小関係を比較し、その結果ピーク
値としたデータを第2のレジスタ(nビットレジスタ
4)に移すスイッチ回路9とを備えたことを特徴とする
ものである。
A peak value detection circuit for input data according to the present invention is configured such that input data from a first register (n-bit register 3), inverted data of peak value data from an inversion circuit (inverter circuit 6), and carry input are 1 bit. Each time,
Alternatively, the peak value data from the second register (n-bit register 4), the inversion data of the input data from the inversion circuit (inverter circuit 6) and the carry input are added for each bit, and the addition is performed. An adder (1-bit adder) 7 for outputting the carry as a carry output;
A carry control circuit 8 outputs the carry output from the adder 7 as an input with the first carry input as 1 and outputs the carry output from the adder 7 to the adder 7 as a carry input for the next bit addition. A final carry output as a result of adding up to the last bit by the adder 7 is input from the carry control circuit 8, and based on the final carry output, the magnitude relationship between the input data and the peak value data is compared. And a switch circuit 9 for transferring data resulting from the peak value to a second register (n-bit register 4).

〔作用〕[Action]

この入力データのピーク値検出回路は、第1のレジス
タ(nビットレジスタ3)からの入力データと反転回路
(インバータ回路6)からのピーク値データの反転デー
タとキャリー入力とが1ビット毎に加算され、あるいは
第2のレジスタ(nビットレジスタ4)からのピーク値
データと上記反転回路(インバータ回路6)からの入力
データの反転データとキャリー入力とを1ビット毎に加
算されて、その加算にて生じたキャリーはキャリー出力
として出力され、そのさい、最初にキャリー入力を1と
して加算器(1ビット加算器)7に入力され、この加算
器7が出力するキャリー出力を、次のビットの加算につ
いてキャリー入力として上記加算器7に入力され、最終
ビットまで加算した結果の最終キャリー出力に基づい
て、上記入力データとピーク値データの大小関係を比較
し、その結果ピーク値としたデータを第2のレジスタ
(nビットレジスタ4)に移す。
The input data peak value detecting circuit adds the input data from the first register (n-bit register 3), the inverted data of the peak value data from the inverting circuit (inverter circuit 6), and the carry input for each bit. Alternatively, the peak value data from the second register (n-bit register 4), the inverted data of the input data from the inverting circuit (inverter circuit 6), and the carry input are added for each bit, and The resulting carry is output as a carry output. At that time, the carry input is first input to an adder (1-bit adder) 7, and the carry output output from the adder 7 is added to the next bit. Is input to the adder 7 as a carry input, and based on the final carry output as a result of adding up to the last bit, the input data and Comparing the magnitude of over click value data, transfer the data and the results peak value in the second register (n-bit register 4).

〔発明の実施例〕(Example of the invention)

以下、本発明を図面に示す実施例に基づいて説明す
る。第1図は本発明の一実施例によるピーク値検出回路
の基本構成を示すブロック図である。同図において、1
は入力データをシリアルに入力するための入力端子、2
はピーク値のデータをシリアルに出力するための出力端
子、3は入力データを保持するnビットレジスタ(第1
のレジスタ)、4は入力データのうちピーク値のデータ
を保持するnビットレジスタ(第2のレジスタ)、5は
ピーク値のデータをシリアルに入力してパラレルのデー
タに変換するシリアル/パラレル変換回路であり、それ
ぞれ入力端子1に対して継続に接続されている。また、
6はnビットレジスタ4からシリアルに出力されるピー
ク値のデータを反転するインバータ回路(反転回路)、
7は入力データとインバータ回路6により反転されたピ
ーク値のデータとをシリアルに入力して両データの大小
比較するための1ビット加算器、8はこの1ビット加算
器7のキャリー出力をコントロールするキャリーコント
ロール回路、9は比較結果に応じてピーク値のデータを
シリアル/パラレル変換回路5から選択しnビットレジ
スタ4に移すためのスイッチ回路である。なお、Ao〜An
−1はnビットの入力データを、Bo〜Bn−1はnビット
のピーク値のデータをそれぞれ示す。
Hereinafter, the present invention will be described based on embodiments shown in the drawings. FIG. 1 is a block diagram showing a basic configuration of a peak value detection circuit according to one embodiment of the present invention. In the figure, 1
Are input terminals for inputting input data serially, 2
Is an output terminal for serially outputting peak value data, and 3 is an n-bit register (first bit) for holding input data.
4) An n-bit register (second register) for holding peak value data among input data, 5 is a serial / parallel conversion circuit for serially inputting peak value data and converting it into parallel data And are continuously connected to the input terminal 1 respectively. Also,
6, an inverter circuit (inverting circuit) for inverting peak value data serially output from the n-bit register 4;
Reference numeral 7 denotes a 1-bit adder for serially inputting the input data and data of the peak value inverted by the inverter circuit 6 and comparing the two data with each other. Reference numeral 8 controls a carry output of the 1-bit adder 7. A carry control circuit 9 is a switch circuit for selecting peak value data from the serial / parallel conversion circuit 5 according to the comparison result and transferring the data to the n-bit register 4. Ao to An
-1 indicates n-bit input data, and Bo to Bn-1 indicate n-bit peak value data.

次に上記実施例の動作を説明する。 Next, the operation of the above embodiment will be described.

入力端子1からnビットの入力データAo〜An−1がシ
リアルにnビットレジスタ3に入力される。また、この
とき、nビットレジスタ4にはピーク値のデータBo〜Bn
−1が保持されているものとする。ここで、nビットレ
ジスタ3の入力データはシリアルに出力され、1ビット
加算器7の一方の入力端に入力されるとともに、継続接
続されたnビットレジスタ4に入力される。また、nビ
ットレジスタ4のピーク値のデータは出力端子2からシ
リアルに出力されるとともに、縦続接続されたシリアル
/パラレル変換回路5に入力される。さらにピーク値の
データはインバータ回路6により反転されて1ビット加
算器7の他方の入力端に入力される。
N-bit input data Ao to An-1 are serially input from an input terminal 1 to an n-bit register 3. At this time, the peak value data Bo to Bn are stored in the n-bit register 4.
It is assumed that -1 is held. Here, the input data of the n-bit register 3 is serially output, input to one input terminal of the 1-bit adder 7, and input to the n-bit register 4 which is continuously connected. The data of the peak value of the n-bit register 4 is output serially from the output terminal 2 and is also input to the serial / parallel conversion circuit 5 connected in cascade. Further, the peak value data is inverted by the inverter circuit 6 and input to the other input terminal of the 1-bit adder 7.

次に1ビット加算器7は、入力データと反転されたピ
ーク値との加算に、さらにキャリーコントロール回路8
からのキャリー入力を加算する。ここで図2(c)で示
すようにキャリーコントロール回路8は最初の例えば最
下位1ビットどうしを比較するとき、1ビット加算器7
のキャリー入力を1(High)とし、次からは前回加算し
たビットについて1ビット加算器7が出力するキャリー
出力を次のビットを加算するときのキャリー入力とす
る。そして1ビット加算器7が出力する最終のnビット
目まで加算した結果の最終キャリー出力をスイッチ回路
9の入力とし制御を行なう。このとき、1ビット加算器
7のnビット目のキャリー出力は入力値がピーク値より
大きいか、もしくは等しければ1(High)となり、入力
値がピーク値より小さければ0(Low)となる。
Next, the one-bit adder 7 further adds a carry control circuit 8 to the addition of the input data and the inverted peak value.
Add the carry input from. Here, as shown in FIG. 2C, the carry control circuit 8 compares the first, for example, the least significant bit with the 1-bit adder 7
Is set to 1 (High), and the carry output output from the 1-bit adder 7 for the previously added bit is used as the carry input when the next bit is added. Then, a final carry output as a result of adding up to the final n-th bit output from the 1-bit adder 7 is input to the switch circuit 9 for control. At this time, the carry output of the n-th bit of the 1-bit adder 7 becomes 1 (High) if the input value is larger than or equal to the peak value, and becomes 0 (Low) if the input value is smaller than the peak value.

ここで、スイッチ回路9が0(Low)で導通状態にな
るとすれば、ピーク値のデータはシリアル/パラレル変
換回路5によりパラレルのデータに変換されて、nビッ
トレジスタ4に入力される。この場合、nビットレジス
タ4には常に1つのピーク値である最大値が保持され
る。また、スイッチ回路9が1(High)で導通状態にな
るとすれば、nビットレジスタ4には常に1つのピーク
値である最小値が保持される。
Here, assuming that the switch circuit 9 is turned on at 0 (Low), the peak value data is converted into parallel data by the serial / parallel conversion circuit 5 and input to the n-bit register 4. In this case, the n-bit register 4 always holds the maximum value which is one peak value. If the switch circuit 9 is turned on at 1 (High), the n-bit register 4 always holds a minimum value, which is one peak value.

次に第2図に示すように簡単のために入力データが4
ビットの例で説明する。この場合、入力データのうちの
1つのピーク値である最大値のデータ例を示す。
Next, as shown in FIG.
An example will be described using bits. In this case, a data example of the maximum value which is one peak value of the input data is shown.

ここで第2図(a),(b)に示すように入力データ
の入力値を5、ピーク値を3とすると、1ビット加算器
7への入力は第2図(c)のようになり、最初のキャリ
ー入力として1(High)を1ビット加算器7に入力して
最下位の1ビット目のデータどうしを加算し、この加算
の結果1ビット目のキャリー出力は1(High)となる。
このキャリー出力はキャリーコントロール回路8によっ
て次のビットの1ビット加算器7のキャリー入力とな
る。このようにして最終的に最上位ビットである4ビッ
ト目の最終キャリー出力は1(High)となり、この最終
キャリー出力はキャリーコントロール回路8によってス
イッチ回路9の入力となる。このときスイッチ回路9
は、入力が0(Low)のとき、導通状態となり、入力が
1(High)のとき導通しないとすれば、4ビットレジス
タ4には入力データが保持され、ピーク値は5となる。
If the input value of the input data is 5 and the peak value is 3, as shown in FIGS. 2A and 2B, the input to the 1-bit adder 7 is as shown in FIG. 2C. As the first carry input, 1 (High) is input to the 1-bit adder 7, and the least significant 1-bit data is added to each other. As a result of this addition, the carry output of the first bit becomes 1 (High). .
This carry output becomes the carry input of the 1-bit adder 7 for the next bit by the carry control circuit 8. In this way, the final carry output of the fourth bit, which is the most significant bit, becomes 1 (High), and the final carry output is input to the switch circuit 9 by the carry control circuit 8. At this time, the switch circuit 9
When the input is 0 (Low), it is conductive, and when the input is 1 (High), it is not conductive. The input data is held in the 4-bit register 4 and the peak value becomes 5.

次に入力値が4とすると第2図(c)と同様に、1ビ
ット加算器7への入力は第3図(c)のようになる。こ
の場合、4ビット目のキャリー出力は0(Low)とな
り、スイッチ回路9は導通状態となる。したがってピー
ク値のデータはシリアル/パラレル変換回路5によりパ
ラレルのデータに変換されて4ビットレジスタ4に入力
され、ピーク値は5となる。
Next, assuming that the input value is 4, the input to the 1-bit adder 7 is as shown in FIG. 3 (c), as in FIG. 2 (c). In this case, the carry output of the fourth bit becomes 0 (Low), and the switch circuit 9 becomes conductive. Therefore, the data of the peak value is converted into parallel data by the serial / parallel conversion circuit 5 and input to the 4-bit register 4, and the peak value becomes 5.

このようにしてシリアルに入力される入力データのピ
ーク値である最大値あるいは最小値を出力端子2から検
出することができる。
In this manner, the maximum value or the minimum value, which is the peak value of the input data serially input, can be detected from the output terminal 2.

なお、上記実施例ではnビットレジスタ4に保持され
たピーク値データを反転させたが、nビットレジスタ3
に保持された入力データを反転させてもよい。
In the above embodiment, the peak value data held in the n-bit register 4 is inverted.
May be inverted.

〔発明の効果〕〔The invention's effect〕

以上のように本発明によれば、シリアルの入力データ
とピーク値データとのどちらか一方を反転して両データ
を1ビット毎に加算し、この加算による最終キャリー出
力で両データの大小比較を行なうように構成したので、
従来のように入力値と、ピーク値とのデータ数に応じた
nビット加算器を用いず、1ビット加算器により上記加
算を行なうことができ、したがって半導体集積回路の回
路面積の小規模化を図れるという効果が得られる。
As described above, according to the present invention, either one of the serial input data and the peak value data is inverted, and both data are added one bit at a time. Because it was configured to do
The above addition can be performed by a 1-bit adder without using an n-bit adder corresponding to the number of data between the input value and the peak value as in the related art, and thus the circuit area of the semiconductor integrated circuit can be reduced. The effect of being able to achieve is obtained.

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

第1図はこの発明の一実施例に係るピーク値検出回路の
基本構成を示すブロック図、第2図(a),(b),
(c)および第3図(a),(b),(c)はこの実施
例において入出力されるデータの一例を示す図、第4図
は従来のピーク値検出回路の基本構成を示すブロック
図、第5図(a),(b),(c)および第6図
(a),(b),(c)はこの従来例において入出力さ
れるデータの一例を示す図である。 3……nビットレジスタ(第1のレジスタ)、4……n
ビットレジスタ(第2のレジスタ)、5……シリアル/
パラレル変換回路、6……インバータ回路(反転回
路)、7……1ビット加算器、8……キャリーコントロ
ール回路、9……スイッチ回路。
FIG. 1 is a block diagram showing a basic configuration of a peak value detection circuit according to one embodiment of the present invention, and FIGS.
3 (c) and FIGS. 3 (a), 3 (b) and 3 (c) show an example of data input and output in this embodiment, and FIG. 4 is a block diagram showing a basic configuration of a conventional peak value detecting circuit. FIGS. 5 (a), 5 (b) and 5 (c) and FIGS. 6 (a), 6 (b) and 6 (c) show examples of data input / output in this conventional example. 3... N-bit register (first register), 4.
Bit register (second register), 5... Serial /
Parallel conversion circuit, 6: Inverter circuit (inverting circuit), 7: 1-bit adder, 8: Carry control circuit, 9: Switch circuit

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】シリアルの入力データを保持する第1のレ
ジスタと、この第1のレジスタに保持されたデータのう
ちピーク値のデータを保持する第2のレジスタと、上記
第1のレジスタに保持された入力データと上記第2のレ
ジスタに保持されたピーク値のデータとのどちらか一方
を反転する反転回路とを有するピーク値検出回路におい
て、 上記第1のレジスタからの入力データと上記反転回路か
らのピーク値データの反転データとキャリー入力とを1
ビット毎に加算し、あるいは上記第2のレジスタからピ
ーク値データと上記反転回路からの入力データの反転デ
ータとキャリー入力とを1ビット毎に加算して、その加
算にて生じたキャリーをキャリー出力として出力する加
算器と、 最初のキャリー入力を1として上記加算器へ出力して、
この加算器が出力するキャリー出力を入力し、次のビッ
トの加算についてキャリー入力として上記加算器へ出力
するキャリーコントロール回路と、 上記加算器により最終ビットまで加算した結果の最終キ
ャリー出力を、上記キャリーコントロール回路から入力
し、この最終キャリー出力に基づいて、上記入力データ
とピーク値データの大小関係を比較し、その結果ピーク
値としたデータを第2のレジスタに移すスイッチ回路と
を備えたことを特徴とする入力データのピーク値検出回
路。
1. A first register for holding serial input data, a second register for holding peak value data among data held in the first register, and a first register for holding data in the first register. A peak value detecting circuit having an inverting circuit for inverting one of the input data obtained and the peak value data held in the second register, wherein the input data from the first register and the inverting circuit are provided. The inverted data of the peak value data from the
The addition is carried out bit by bit, or the peak value data from the second register, the inverted data of the input data from the inverting circuit and the carry input are added bit by bit, and the carry generated by the addition is carried out. And the first carry input is set to 1 and output to the adder,
A carry control circuit for receiving the carry output from the adder and outputting the carry output to the adder as a carry input for the next bit addition; and a final carry output as a result of adding up to the last bit by the adder. And a switch circuit for comparing the magnitude relationship between the input data and the peak value data based on the final carry output from the control circuit, and transferring the resulting data as the peak value to the second register. A peak value detection circuit for input data that is a feature.
JP63309234A 1988-12-06 1988-12-06 Input data peak value detection circuit Expired - Lifetime JP2599984B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63309234A JP2599984B2 (en) 1988-12-06 1988-12-06 Input data peak value detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63309234A JP2599984B2 (en) 1988-12-06 1988-12-06 Input data peak value detection circuit

Publications (2)

Publication Number Publication Date
JPH02155032A JPH02155032A (en) 1990-06-14
JP2599984B2 true JP2599984B2 (en) 1997-04-16

Family

ID=17990543

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63309234A Expired - Lifetime JP2599984B2 (en) 1988-12-06 1988-12-06 Input data peak value detection circuit

Country Status (1)

Country Link
JP (1) JP2599984B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4878847A (en) * 1972-01-22 1973-10-23
JPS5150938U (en) * 1974-10-16 1976-04-17
JPS52123271A (en) * 1976-04-08 1977-10-17 Toshiba Corp Alarm signal producing circuit
JPS5798040A (en) * 1980-12-10 1982-06-18 Fujitsu Ltd Comparator for serial magnitude
JPS61214025A (en) * 1985-03-20 1986-09-22 Mitsubishi Electric Corp Comparator for difference absolute value
JPS63184133A (en) * 1987-01-26 1988-07-29 Nec Corp Comparator

Also Published As

Publication number Publication date
JPH02155032A (en) 1990-06-14

Similar Documents

Publication Publication Date Title
JPH10161850A (en) Absolute value comparing circuit
JP2599984B2 (en) Input data peak value detection circuit
JP2766133B2 (en) Parallel-serial data conversion circuit
JPH05160727A (en) A/d converter
JPH03102265A (en) Maximum value detecting circuit
JP2629737B2 (en) accumulator
JP2956373B2 (en) Arithmetic circuit
JP2769261B2 (en) Microcomputer
JPS6232724A (en) Analog/digital converter
JP2959303B2 (en) Arithmetic circuit
JP3210356B2 (en) Data zero judgment device
US6389444B1 (en) Adder apparatus having single adder for +1 and +2 functions
JP3141561B2 (en) Analog / digital conversion circuit
JP2904239B2 (en) A / D conversion circuit
JP2513021B2 (en) Signed digit number sign judgment circuit
SU739523A1 (en) Binary decimal-to-binary converter
JPS63184133A (en) Comparator
JPS61105640A (en) Parallel complement circuit
JPH0377538B2 (en)
JPH05315971A (en) Serial/parallel conversion circuit
JPH06224780A (en) Code conversion circuit
JPS60241333A (en) Adding circuit of mod(2n-1)
JPS61210427A (en) Converting circuit
JPS6282820A (en) Comparator circuit
JPH05257643A (en) Binary complement unit