JPH05282132A - Peak/bottom holding circuit - Google Patents

Peak/bottom holding circuit

Info

Publication number
JPH05282132A
JPH05282132A JP8019692A JP8019692A JPH05282132A JP H05282132 A JPH05282132 A JP H05282132A JP 8019692 A JP8019692 A JP 8019692A JP 8019692 A JP8019692 A JP 8019692A JP H05282132 A JPH05282132 A JP H05282132A
Authority
JP
Japan
Prior art keywords
data
circuit
input
peak
shift 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.)
Granted
Application number
JP8019692A
Other languages
Japanese (ja)
Other versions
JP2845662B2 (en
Inventor
Kenichi Urushiyama
健一 漆山
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)

Abstract

PURPOSE:To shorten a processing time, to reduce soft program development load and to contract a circuit size such as a memory space in an instruction ROM. CONSTITUTION:This peak/bottom holding circuit is provided with a serial data input 11, an exclusive OR 3 for successively comparing bits of outputs from a shift register 8 storing preceding peak/bottom data, a reset-added D type flip flop(FF) 5 holding the data bit of the input 11 when data bits are different and constituted so as to be reset by a start signal 2 indicating the division of data, a selector 7 for selecting the output of the shift register 8 and the serial data input 11 by using the output of the FF 5 as a select signal, an AND 4 for controlling a clock input to the FF 5, and a set-added D type FF 6 to be set up by the start signal 2.

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, it compares the size of a plurality of bits serially transmitted for each frame in bit units and successively updates large data 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, as shown in FIG. 3, a peak / bottom hold circuit of this type converts externally input serial data 14 of an input terminal 1 from serial to parallel (S / P).
A conversion circuit 13, an arithmetic operation circuit (ALU) 18 including a full adder, a register 9 for latching a microcode, and the contents of the microcode, the S
A / P conversion circuit 13 and a programmable logic array (PLA) 10 that generates a control signal for controlling a register 15 that holds data after comparison are configured.

【0003】まず、S/P変換回路13において、シリ
アルDATA14をシリアル→パラレル変換した後、デ
ータバス16を介して、ALU18に転送し、次にレジ
スタ15に保持されている、前フレームまでの最大/最
小データをデータバス16を介してALU11に転送
し、すでにALU18内部にストアしてあるS/P変換
回路13から転送したデータと減算し、その結果発生し
たキャリアウト12をケアすることにより、大小を判定
し、どちらか一方のデータを更新データとしてレジスタ
15に転送することにより、ピーク/ボトムホールドを
行っていた。
First, in the S / P conversion circuit 13, 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 up to the previous frame. / By transferring the minimum data to the ALU 11 via the data bus 16, subtracting it from the data transferred from the S / P conversion circuit 13 already stored inside the ALU 18, and caring for the carryout 12 generated as a result, The peak / bottom hold is performed by determining the magnitude and transferring either one of the data as the update data to the register 15.

【0004】[0004]

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

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

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

【0007】[0007]

【課題を解決するための手段】本発明のピーク/ボトム
ホールド回路の構成は、シリアル入力されるデータを記
憶するシフトレジスタ回路と、このシフトレジスタの出
力と外部から入力されるシリアルデータとをそれぞれ同
一順位のビット対応で比較する排他的論理和回路と、そ
の排他的論理和回路の出力により、シフトレジスタ回路
と外部入力シリアルデータの値とが異なった時の外部入
力シリアルデータ側のデータビットを保持するリセット
付きD形フリップフロップ回路と、そのクロック入力信
号を発生する回路及びそのクロック入力信号が外部入力
シリアルデータの1フレーム内に一発発生したら、次の
フレームのデータが入力されるまでクロック発生を禁止
するセット付きD形フリップフロップ回路と、前記シフ
トレジスタ回路に入力するデータを選択するセレクタと
を備えたことを特徴とする。
The structure of the peak / bottom hold circuit according to the present invention comprises a shift register circuit for storing serially input data, and an output of this shift register and serial data externally input. The exclusive OR circuit that compares bits corresponding to the same rank and the output of the exclusive OR circuit determines the data bit on the external input serial data side when the shift register circuit and the value of the external input serial data are different. When the D-type flip-flop circuit with reset and the circuit for generating the clock input signal and the clock input signal are generated once within one frame of the external input serial data, the clock is held until the data of the next frame is input. A D-type flip-flop circuit with a set for inhibiting generation and the 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 this 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 the present embodiment, an external serial data input (hereinafter referred to as DATA) 11 input at clock φ and MSB first, a clock CK for shifting DATA11 at the falling edge, and a start indicating a frame delimiter of DATA11. Operates with signal 2 and DATA 11 and 1
When there is a bit in which the output of DATA 11 and SR 8 do not match with the exclusive OR (EOR) 3 that compares the peak / bottom data up to the frame before with the shift register (SR) 8 that sequentially holds bit by bit , If there is a mismatched bit in the outputs of the D-type flip-flop (RDFF) 5 with reset for holding the bit data on the DATA 11 side and the DATA 11 and SR 8, the clock is input to the RDFF 5 only once with the bit having the 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 a set (SDFF) 6 set by the start signal 2,
DATA11 when the output of the RDFF5 is "1",
Further, it is configured by including a selector 7 that outputs the output of SR8 when it is "0".

【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 composed of i (i ≧ 1) bits, the SR8 holds the peak data mi one frame before, and the data ni of the new frame ni.
Is input, up to the i−1th bit, ni = mi,
ni−1 = mi−1, and ni−2 at the i−2nd 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, SDFF6 and RDFF5 are set and reset, AND4 is in the clock generation enable state, and the selector 7 is in the state of inputting the output of SR8 to SR8.

【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-2nd bit, DATA1 and SR
Since the bit outputs of 8 are the same and EOR3 is non-astiative, the clock is not input to RDFF5
The output of FF5 holds the reset state "0", and the selector 7 selects the output of SR8 to be input to SR8. Therefore, mi and mi-1 are sequentially held in SR8 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" only for one cycle, and ni-2 (= 1), which is the bit data of DATA11, is held and output to the RDFF 5 at the rising edge of the clock φ during that period, and the selector 7 makes ni.
-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 CK cycle.
AND4 becomes "1" at the clock φ during that period, but the clock φ falls and AND4 becomes "1" →
When falling to "0", SDFF6 outputs "0" at the falling, therefore AND4 becomes clock generation disable and RDF is activated until the next START2 becomes active.
No clock is input to F5, and even if ni-4 <mi-4, the RDFF 5 remains in the ni-2 (= 1) state held in the i-2th bit as in the i-4th bit. Inputs the data ni on the DATA 11 side to SR8.

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

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

【0017】[0017]

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

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

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

【図2】図1に示す実施例の動作を示すタイミング図で
ある。
FIG. 2 is a timing diagram 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) 1 serial data input terminal 2 start signal indicating the beginning 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 four arithmetic circuits (ALU)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 シリアル入力されるデータを記憶するシ
フトレジスタ回路と、前記シフトレジスタの出力と外部
から入力されるシリアルデータとをそれぞれ同一順位の
ビット対応で比較する排他的論理和回路と、前記排他的
論理和回路の出力により、前記シフトレジスタ回路と前
記外部入力シリアルデータの値とが異なった時の外部入
力シリアルデータ側のデータビットを保持するリセット
付きD形フリップフロップ回路と、前記フリップフロッ
プ回路のクロック入力信号を発生する回路及び前記クロ
ック入力信号が前記外部入力シリアルデータの1フレー
ム内に一発発生したら、次のフレームのデータが入力さ
れるまでクロック発生を禁止するセット付きD形フリッ
プフロップ回路と、前記シフトレジスタ回路に入力する
データを選択するセレクタとを備えたことを特徴とする
ピーク/ボトムホールド回路。
1. A shift register circuit for storing serially input data, and an exclusive OR circuit for comparing the output of the shift register and serial data input from the outside in correspondence with bits of the same rank, respectively. 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 external input serial data differs from that of the shift register circuit by the output of the exclusive OR circuit, and the flip-flop. A circuit for generating a clock input signal of a circuit and a D-type flip-flop with a set that prohibits clock generation until the clock input signal is generated once within one frame of the external input serial data until the data of the next frame is input. And a shift circuit for selecting the data to be input to the shift register circuit. A peak / bottom hold circuit characterized by comprising a rector.
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 true JPH05282132A (en) 1993-10-29
JP2845662B2 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
JP2845662B2 (en) 1999-01-13

Similar Documents

Publication Publication Date Title
US6038649A (en) Address generating circuit for block repeat addressing for a pipelined processor
US4472788A (en) Shift circuit having a plurality of cascade-connected data selectors
US7013404B2 (en) Semiconductor integrated circuit characterized by timing adjustment of clock switching control
US5815423A (en) Parallel processing division circuit
US7307453B1 (en) Method and system for parallel state machine implementation
JP3276852B2 (en) Code conversion circuit
US20060150135A1 (en) Circuit information generating apparatus and circuit information generating method
JPH1117531A (en) Digital delay circuit and digital pll circuit
JPH05282132A (en) Peak/bottom holding circuit
KR100246836B1 (en) Semiconductor integrated circuit and consumed power reducing method
JP3595309B2 (en) Address generation circuit
WO2008026273A1 (en) Dma controller
JP6143577B2 (en) Semiconductor integrated circuit and operation method of semiconductor integrated circuit
US6578062B1 (en) Method and circuit for digital division
JP2001034457A (en) Adding and subtracting circuit
JP2642731B2 (en) Address generation circuit
JP3565449B2 (en) Data phase change circuit
JPH04345211A (en) Code converter
JP2583354B2 (en) Data comparator
SU949719A1 (en) Shifting device
JPH04227336A (en) Decoder
JP2000137701A (en) Product-sum operation error correcting method and product sum arithmetic unit
JPH03204027A (en) Multiplication circuit
KR100198665B1 (en) Apparatus for generating complement of 2
JPS62140140A (en) Logic circuit

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