JP2845662B2 - Peak / bottom hold circuit - Google Patents

Peak / bottom hold circuit

Info

Publication number
JP2845662B2
JP2845662B2 JP8019692A JP8019692A JP2845662B2 JP 2845662 B2 JP2845662 B2 JP 2845662B2 JP 8019692 A JP8019692 A JP 8019692A JP 8019692 A JP8019692 A JP 8019692A JP 2845662 B2 JP2845662 B2 JP 2845662B2
Authority
JP
Japan
Prior art keywords
circuit
data
input
peak
clock
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
JP8019692A
Other languages
Japanese (ja)
Other versions
JPH05282132A (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.)
NEC Yamagata Ltd
Original Assignee
NEC Yamagata 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 NEC Yamagata Ltd filed Critical NEC Yamagata Ltd
Priority to JP8019692A priority Critical patent/JP2845662B2/en
Publication of JPH05282132A publication Critical patent/JPH05282132A/en
Application granted granted Critical
Publication of JP2845662B2 publication Critical patent/JP2845662B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明はピーク/ボトムホールド
回路に関し、特にフレーム毎にシリアル伝送される複数
ビットのデータについてビット単位での大小比較を行な
い、大きいデータまたは小さいデータを逐次更新してい
くピーク/ボトムホールド回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a peak / bottom hold circuit, and in particular, compares a plurality of bits of data transmitted serially for each frame in bit units and sequentially updates large or small data. It relates to a peak / bottom hold circuit.

【0002】[0002]

【従来の技術】従来、この種のピーク/ボトムホールド
回路は、図3に示すように、入力端子1の外部入力シリ
アルデータ14をシリアル→パラレル変換する(S/P
変換)回路13と、フルアダーなどから構成される四則
演算回路(ALU)18と、マイクロコードをラッチす
るレジスタ9と、マイクロコードの内容により、前記S
/P変換回路13と比較後のデータを保持するレジスタ
15をコントロールするための制御信号を発生するプロ
グラマブル論理アレイ(PLA)10とを有して構成さ
れている。
2. Description of the Related Art Conventionally, this kind of peak / bottom hold circuit performs serial-to-parallel conversion of external input serial data 14 of an input terminal 1 as shown in FIG.
Conversion) circuit 13, an arithmetic operation circuit (ALU) 18 composed of a full adder, etc., a register 9 for latching a microcode, and the contents of the microcode.
The circuit includes a / P conversion circuit 13 and a programmable logic array (PLA) 10 for generating a control signal for controlling a register 15 for holding data after comparison.

【0003】まず、S/P変換回路13において、シリ
アルDATA14をシリアル→パラレル変換した後、デ
ータバス16を介して、ALU18に転送し、次にレジ
スタ15に保持されている、前フレームまでの最大/最
小データをデータバス16を介してALU11に転送
し、すでにALU18内部にストアしてあるS/P変換
回路13から転送したデータと減算し、その結果発生し
たキャリアウト12をケアすることにより、大小を判定
し、どちらか一方のデータを更新データとしてレジスタ
15に転送することにより、ピーク/ボトムホールドを
行っていた。
[0003] First, in the S / P conversion circuit 13, the serial DATA 14 is converted from serial to parallel, then transferred to the ALU 18 via the data bus 16, and then stored in the register 15 until the previous frame. / Minimum data is transferred to the ALU 11 via the data bus 16, subtracted from the data transferred from the S / P conversion circuit 13 already stored in the ALU 18, and the resulting carry-out 12 is taken care of. Peak / bottom hold is performed by judging the magnitude and transferring either data to the register 15 as update data.

【0004】[0004]

【発明が解決しようとする課題】前述した従来のピーク
/ボトムホールド回路は、マイクロコード命令により、
ALU18の減算機能を実行して、そのキャリアウト1
2によって大小判定しているので、レジスタ群からAL
U18へのデータ転送及び減算実行するのに計5マシン
サイクル程度(比較的すデータのビット数と、ALU1
8のビット数によってその2倍以上)の処理時間を必要
とし、ソフトプログラム開発に負担がかかるという欠点
がある。
The above-described conventional peak / bottom hold circuit uses a microcode instruction.
Execute the subtraction function of ALU18,
2 is used to determine whether the size is large or small.
A total of about 5 machine cycles to execute data transfer and subtraction to U18 (the number of bits of relatively
(More than twice the processing time depending on the number of bits of 8), and there is a drawback that a load is required for software program development.

【0005】また、処理する信号によっては、許容処理
時間内に全ての処理が実行できず、オーバーフローを起
こす場合もあるという欠点があり、さらにマイクロコー
ドが増加するため、マイクロコードソフトをストアする
インストラクションROMのメモリー空間も大きくなる
という欠点と、この機能を実現するために新規にALU
11やPLA10等を構成すると、回路規模が非常に大
きくなってしまうという欠点がある。
[0005] In addition, depending on the signal to be processed, there is a disadvantage that all the processing cannot be executed within the allowable processing time and an overflow may occur. Further, since the microcode is increased, an instruction for storing microcode software is required. The disadvantage is that the memory space of the ROM is large, and a new ALU is required to realize this function.
However, there is a drawback that the circuit scale becomes very large when the configuration such as 11 or PLA10 is configured.

【0006】本発明の目的は、前記諸欠点を解決し、回
路規模が小さくても、許容処理時間内に必要な処理がで
きるようにしたピーク/ボトムホールド回路を提供する
ことにある。
An object of the present invention is to provide a peak / bottom hold circuit which solves the above-mentioned drawbacks and can perform necessary processing within an allowable processing time even if the circuit scale is small.

【0007】[0007]

【課題を解決するための手段】本発明のピーク/ボトム
ホールド回路の構成は、シリアル入力されるデータを記
憶するシフトレジスタ回路と、このシフトレジスタの出
力と外部から入力されるシリアルデータとをそれぞれ同
一順位のビット対応で比較する排他的論理和回路と、そ
の排他的論理和回路の出力により、シフトレジスタ回路
と外部入力シリアルデータの値とが異なった時の外部入
力シリアルデータ側のデータビットを保持するリセット
付きD形フリップフロップ回路と、そのクロック入力信
号を発生する回路及びそのクロック入力信号が外部入力
シリアルデータの1フレーム内に一発発生したら、次の
フレームのデータが入力されるまでクロック発生を禁止
するセット付きD形フリップフロップ回路と、前記シフ
トレジスタ回路に入力するデータを選択するセレクタと
を備えたことを特徴とする。
A peak / bottom hold circuit according to the present invention comprises a shift register circuit for storing serially input data, and an output of the shift register and serial data input from the outside. An exclusive-OR circuit that compares the bits of the same order and compares the data bits on the external input serial data side when the value of the shift register circuit differs from that of the external input serial data by the output of the exclusive-OR circuit. A D-type flip-flop circuit with reset, a circuit for generating the clock input signal, and a clock input signal generated once in one frame of the externally input serial data until a clock of the next frame is input. A D-type flip-flop circuit with a set for inhibiting generation and a shift register circuit; Characterized by comprising a selector for selecting data to be force.

【0008】[0008]

【実施例】図1は本発明の一実施例を示すブロック図、
図2は図1に示す本実施例の動作を示すタイミング図で
ある。
FIG. 1 is a block diagram showing an embodiment of the present invention.
FIG. 2 is a timing chart showing the operation of the present embodiment shown in FIG.

【0009】図1において、本実施例は、クロックφと
MSBファーストで入力される外部シリアリデータ入力
(以下DATA)11と、DATA11を立下りでシフ
トするクロックCKと、DATA11のフレーム区切り
を示すスタート信号2により動作し、DATA11と1
フレーム前までのピーク/ボトムデータをビット毎に順
次保持するシフトレジスタ(SR)8との比較を行う排
他的論理和(EOR)3と、DATA11とSR8との
出力が一致しないビットがある場合に、DATA11側
のビットデータを保持するリセット付きD形フリップフ
ロップ(RDFF)5と、DATA11とSR8の出力
において、不一致のビットがある場合、ビット順位の大
きいビットでRDFF5に一発だけクロックを入力し、
その後のビットではクロック入力を禁止する論理積(以
下AND)4と、前記スタート信号2でセットされるセ
ット付きD形フリップフロップ回路(SDFF)6と、
前記RDFF5の出力が“1”のときDATA11を、
また“0”のときSR8の出力を出力するセレクタ7と
を有して、構成している。
In FIG. 1, in this embodiment, a clock φ and an external serial data input (hereinafter referred to as “DATA”) 11 input in MSB first, a clock CK for shifting DATA 11 at the falling edge, and a start indicating a frame break of DATA 11 are shown. Operated by signal 2, DATA11 and 1
Exclusive OR (EOR) 3 for comparing with a shift register (SR) 8 that sequentially holds the peak / bottom data for each bit before the frame, and when there is a bit in which the output of DATA 11 and SR 8 do not match. , A D-type flip-flop with reset (RDFF) 5 for holding bit data on the DATA 11 side, and if there are mismatched bits in the outputs of DATA 11 and SR8, only one clock is input to RDFF 5 with a bit having a higher bit order. ,
In the subsequent bits, a logical product (hereinafter referred to as AND) 4 for inhibiting clock input, a D-type flip-flop circuit with set (SDFF) 6 set by the start signal 2,
When the output of the RDFF5 is "1", DATA11 is
In addition, a selector 7 that outputs the output of the SR 8 when it is “0” is provided.

【0010】次に本実施例の動作を、図1,図2を併用
して説明する。
Next, the operation of this embodiment will be described with reference to FIGS.

【0011】DADA1かがi(i≧1)ビットで構成
され、今SR8に1フレーム前のピークデータmiが保
持されており、DATA1には新フレームのデータni
が入力されたとし、i−1ビット目まではni=mi,
ni−1=mi−1となり、i−2ビット目でni−2
>mi−2すなわちni>miとなる様な場合について
説明する。
The data DADA1 is constituted by i (i ≧ 1) bits, the peak data mi of one frame before is held in SR8, and the data ni of the new frame is stored in DATA1.
Is input, ni = mi, up to the (i-1) th bit.
ni-1 = mi-1, and ni-2 at the (i-2) th bit
> Mi-2, that is, ni> mi will be described.

【0012】スタート信号(START)2がアクティ
ブになると、SDFF6,RDFF5がそれぞれセッ
ト,リセットされ、AND4はクロック発生イネーブル
状態で、セレクタ7はSR8の出力をSR8に入力する
状態にある。
When the start signal (START) 2 becomes active, the SDFF 6 and the RDFF 5 are set and reset, respectively, the AND 4 is in a clock generation enable state, and the selector 7 is in a state of inputting the output of the SR 8 to the SR 8.

【0013】i−2ビット目までは、DATA1とSR
8のビット出力は同一であり、EOR3はノンアスティ
ブであるため、RDFF5にクロック入力されず、RD
FF5の出力はリセット状態の“0”を保持し、セレク
タ7はSR8の出力をSR8に入力する様にセレクトす
るため、クロックCKの立下りで、mi,mi−1が順
次SR8に保持される。このクロックCKの立下りで、
次のデータビットni−2,mi−2がEOR3に入力
されると、ni−2>mi−2(すなわちni−2=
1,mi−2=0)であるため、EOR3の出力はCK
一周期分だけ“1”となり、その期間のクロックφの立
上りで、RDFF5にDATA11のビットデータであ
るni−2(=1)を保持・出力し、セレクタ7はni
−2を出力し、次のCKの立下りでni−2をSR8に
保持する。
Up to the i-2th bit, DATA1 and SR
8 are the same, and EOR3 is non-active, so that no clock is input to RDFF5,
Since the output of the FF 5 holds the reset state “0” and the selector 7 selects the output of the SR 8 so as to be input to the SR 8, mi and mi−1 are sequentially held in the SR 8 at the falling edge of the clock CK. . At the falling edge of this clock CK,
When the next data bits ni-2 and mi-2 are input to EOR3, ni-2> mi-2 (that is, ni-2 =
1, mi-2 = 0), the output of EOR3 is CK
It becomes "1" for one cycle, and holds and outputs ni-2 (= 1) which is the bit data of DATA11 to the RDFF5 at the rise of the clock φ in that period, and the selector 7 sets ni to
-2 is output, and ni-2 is held in SR8 at the next falling edge of CK.

【0014】EOR3の出力がCK一周期分だけ“1”
となり、その期間のクロックφでAND4が“1”にな
るが、クロックφが立ち下り、AND4が“1”→
“0”に立下ると、SDFF6がその立下りで“0”を
出力するため、AND4はクロック発生ディセーブルと
なり、次のSTART2がアクティブになるまでRDF
F5にクロックは入力されず、i−4ビット目のよう
に、ni−4<mi−4でもRDFF5はi−2ビット
目に保持したni−2(=1)の状態のままなので、セ
レクタ7はDATA11側のデータniをSR8に入力
する。
The output of EOR3 is "1" for one cycle of CK.
AND4 becomes “1” at the clock φ in that period, but the clock φ falls and AND4 becomes “1” →
When the signal falls to “0”, the SDFF 6 outputs “0” at the falling edge, so that the clock generation of AND4 is disabled, and the RDF is disabled until the next START2 becomes active.
No clock is input to F5, and as in the (i-4) th bit, even if ni-4 <mi-4, the RDFF5 remains in the ni-2 (= 1) state held in the (i-2) th bit. Inputs data ni on the DATA11 side to SR8.

【0015】以上の様に順次データビットを比較判定
し、異なるビットがあったらそのビットによってSR8
の入力を切りかえることにより、ピークホールドを行
う。
As described above, the data bits are sequentially compared and determined.
The peak hold is performed by switching the input of.

【0016】ボトムホールドの場合、セレクタ7のS
(セレクトコントロール信号)入力を反転またはJ0,
J1(データイン入力)を入れかえ、ni>miのと
き、miを出力するように変更するだけで、ボトムホー
ルドが実現される。
In the case of bottom hold, S
(Select control signal) Invert input or J0,
By replacing J1 (data-in input) and changing ni to be output when ni> mi, bottom hold is realized.

【0017】[0017]

【発明の効果】以上説明したように、本発明は、シリア
ルに入力されるデータと保持してある前のピーク/ボト
ムデータとをシリアル比較し、データ選択することによ
り、従来に比べて信号処理のソフトプログラム開発負担
の削減、処理時間の短縮、マイクロコード用インストラ
クションROMのメモリ空間減少ができ、また、回路規
模を小さくできるという効果がある。
As described above, according to the present invention, the serially input data and the stored peak / bottom data are compared serially, and the data is selected, so that the signal processing can be performed in comparison with the prior art. This has the effect of reducing the software program development burden, reducing the processing time, reducing the memory space of the microcode instruction ROM, and reducing the circuit scale.

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

【図1】本発明の一実施例のピーク/ボトムホールド回
路を示すブロック図である。
FIG. 1 is a block diagram showing a peak / bottom hold circuit according to one embodiment of the present invention.

【図2】図1に示す実施例の動作を示すタイミング図で
ある。
FIG. 2 is a timing chart showing the operation of the embodiment shown in FIG.

【図3】従来のピーク/ボトムホールド回路を示すブロ
ック図である。
FIG. 3 is a block diagram showing a conventional peak / bottom hold circuit.

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

1 シリアルデータ入力端子 2 フレームの始まりを示すスタート信号 3 排他的論理和(EOR) 4 論理積(AND) 7 セレクタ 8 シフトレジスタ 9,15 レジスタ 10 プログラマブル論理アレイ(PLA) 11 外部シリアルデータ入力 13 シリアル/パラレル変換回路 18 四則演算回路(ALU) Reference Signs List 1 serial data input terminal 2 start signal indicating start of frame 3 exclusive OR (EOR) 4 logical product (AND) 7 selector 8 shift register 9, 15 register 10 programmable logic array (PLA) 11 external serial data input 13 serial / Parallel conversion circuit 18 arithmetic operation circuit (ALU)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 シリアル入力されるデータを記憶するシ
フトレジスタ回路と、前記シフトレジスタの出力と外部
から入力されるシリアルデータとをそれぞれ同一順位の
ビット対応で比較する排他的論理和回路と、前記排他的
論理和回路の出力により、前記シフトレジスタ回路と前
記外部入力シリアルデータの値とが異なった時の外部入
力シリアルデータ側のデータビットを保持するリセット
付きD形フリップフロップ回路と、前記フリップフロッ
プ回路のクロック入力信号を発生する回路及び前記クロ
ック入力信号が前記外部入力シリアルデータの1フレー
ム内に一発発生したら、次のフレームのデータが入力さ
れるまでクロック発生を禁止するセット付きD形フリッ
プフロップ回路と、前記シフトレジスタ回路に入力する
データを選択するセレクタとを備えたことを特徴とする
ピーク/ボトムホールド回路。
A shift register circuit for storing serially input data; an exclusive OR circuit for comparing an output of the shift register with serial data input from the outside in correspondence with bits having the same order; A D-type flip-flop circuit with reset for holding a data bit on the external input serial data side when the value of the shift register circuit differs from the value of the external input serial data by an output of an exclusive OR circuit; A circuit for generating a clock input signal of a circuit, and a D-type flip-flop with a set for prohibiting clock generation until data of the next frame is input when the clock input signal is generated once in one frame of the externally input serial data And a selector for selecting data to be input to the shift register circuit. And a peak / bottom hold circuit.
JP8019692A 1992-04-02 1992-04-02 Peak / bottom hold circuit Expired - Fee Related JP2845662B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8019692A JP2845662B2 (en) 1992-04-02 1992-04-02 Peak / bottom hold circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8019692A JP2845662B2 (en) 1992-04-02 1992-04-02 Peak / bottom hold circuit

Publications (2)

Publication Number Publication Date
JPH05282132A JPH05282132A (en) 1993-10-29
JP2845662B2 true JP2845662B2 (en) 1999-01-13

Family

ID=13711634

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8019692A Expired - Fee Related JP2845662B2 (en) 1992-04-02 1992-04-02 Peak / bottom hold circuit

Country Status (1)

Country Link
JP (1) JP2845662B2 (en)

Also Published As

Publication number Publication date
JPH05282132A (en) 1993-10-29

Similar Documents

Publication Publication Date Title
US4472788A (en) Shift circuit having a plurality of cascade-connected data selectors
JP4374363B2 (en) Bit field operation circuit
JPH05216624A (en) Arithmetic unit
JPH07168753A (en) Modulo addition circuit and its operation method
JP3735425B2 (en) Absolute value comparison circuit
US7307453B1 (en) Method and system for parallel state machine implementation
JP2845662B2 (en) Peak / bottom hold circuit
US4641278A (en) Memory device with a register interchange function
US7296049B2 (en) Fast multiplication circuits
JP3544821B2 (en) Division circuit
JPH0346024A (en) Floating point computing element
US5826098A (en) Data processing system which converts received data packet into extended packet with prescribed field for accumulation process
JP2766133B2 (en) Parallel-serial data conversion circuit
JP3595309B2 (en) Address generation circuit
US6578062B1 (en) Method and circuit for digital division
JP3074958B2 (en) Serial multiplier with addition function
JP3259489B2 (en) Decimal divider
JP2001034457A (en) Adding and subtracting circuit
JPH04345211A (en) Code converter
JPH08212052A (en) Normalized data generation circuit
JP2833327B2 (en) Address generation method and address generation circuit
JP2575856B2 (en) Arithmetic circuit
JP2583354B2 (en) Data comparator
JPH02165326A (en) Non-recovery type divider
JPH08190471A (en) Multiplier

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: 19981006

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

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: 20081030

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20091030

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees