JPH02214348A - Access fault detector - Google Patents

Access fault detector

Info

Publication number
JPH02214348A
JPH02214348A JP1035919A JP3591989A JPH02214348A JP H02214348 A JPH02214348 A JP H02214348A JP 1035919 A JP1035919 A JP 1035919A JP 3591989 A JP3591989 A JP 3591989A JP H02214348 A JPH02214348 A JP H02214348A
Authority
JP
Japan
Prior art keywords
address data
signal
data
gate
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.)
Pending
Application number
JP1035919A
Other languages
Japanese (ja)
Inventor
Nobuhiro Horii
堀井 信裕
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.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries 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 Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to JP1035919A priority Critical patent/JPH02214348A/en
Publication of JPH02214348A publication Critical patent/JPH02214348A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PURPOSE:To avoid malfunction due to hazard caused at an address change point by applying logic operation to output signals of a 1st latch circuit latched based on an advance clock of a write address data and a 2nd latch circuit latched based on an advance clock of a readout address data. CONSTITUTION:EX-OR 111-113 compare write address data WAi and readout address data RAi with corresponding bits and send a signal of the result of comparison to a NOR gate 12. The NOR gate 12 when 3 inputs are all at an L level gives an H level signal and in other cases gives an L level signal to a data terminal D of 1st and 2nd latch circuits D-FF 131 and 132. The D-FF 131 latches an output signal of the NOR gate 12 by an inverted write clock signal WCLK and the D-FF 132 latches the output signal of the NOR gate 12 by an inverted readout clock signal RCLK. The output signals of the D-FF 131 and 132 are led to an AD gate 14, where they are ANDed. Since the latch clock of the D-FF 131 and 132 is asynchronous, no hazard exists in the same timing.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、非同期系のディジタル通信システムで用いら
れるエラスティック・バッファにおいて、アクセス異常
が生じたことを検出する場合に適用すると好適なアクセ
ス異常検出装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention is an access abnormality that is suitable for use in detecting the occurrence of an access abnormality in an elastic buffer used in an asynchronous digital communication system. This invention relates to a detection device.

〔従来の技術〕[Conventional technology]

従来、非同期系のディジタル通信システムにおいては、
入力信号の伝送速度と受信側におけるデータ伝送速度と
の差や変動を吸収し、または、入力信号に対する位相合
せ等を行うため、エラスティックφバッファが設けられ
ている。
Conventionally, in asynchronous digital communication systems,
An elastic φ buffer is provided to absorb differences and fluctuations between the input signal transmission speed and the data transmission speed on the receiving side, or to perform phase matching with respect to the input signal.

このエラスティック・バッファは、データが格納される
複数のメモリセルを有し、各メモリセルにはアドレスが
付されてデータのリード・ライトに用いられる。データ
のリード・ライトにおいて、同−のアドレスを指定する
と誤ったデータが読出される可能性があるため、書込ア
ドレスと読出アドレスとが一致したことを検出してアク
セス異常とするアクセス異常検出装置が必要である。
This elastic buffer has a plurality of memory cells in which data is stored, and each memory cell is assigned an address and used for reading and writing data. When reading or writing data, specifying the same address may result in incorrect data being read, so an access abnormality detection device detects when the write address and read address match and determines that the access is abnormal. is necessary.

第3図に従来のアクセス異常検出装置を示す。FIG. 3 shows a conventional access abnormality detection device.

この例では、アドレスが3ビツトで表わされるものとし
ているが、実際にはエラスティックφバッフ、アのアド
レスに対応するビット数となる。書込アドレスデータ(
WAi)と読出アドレスデータ(RAi)との対応する
ビットを、それぞれEX−OR(イクスクルーシブーオ
アゲート)311〜313へ導き、比較を行わせる。そ
して、その比較結果をノアゲート32へ送出して論理和
の反転信号としてD型フリップフロップ(以下、D−F
Fという。)33のデータ端子へ与え、読出アドレスデ
ータを歩進させるクロックRCLKでラッチさせるよう
にしていた。このD−FF33の出力信号をアクセス異
常(アドレス一致)の検出信号ClCDとしてデータの
処理装置へ与え、このとき読出されたデータを無効にす
る等の処理に用いている。
In this example, it is assumed that the address is represented by 3 bits, but in reality, the number of bits corresponds to the address of the elastic φ buffer, A. Write address data (
Corresponding bits of WAi) and read address data (RAi) are led to EX-OR (exclusive or gates) 311 to 313, respectively, for comparison. Then, the comparison result is sent to the NOR gate 32 and used as an inverted signal of the logical sum of the D-type flip-flop (hereinafter referred to as D-F).
It's called F. ) 33 and latched with a clock RCLK that increments the read address data. The output signal of this D-FF 33 is given to the data processing device as an access abnormality (address match) detection signal ClCD, and is used for processing such as invalidating the data read at this time.

〔発明が解決しようとする課題〕 しかしながら、上記のような従来のアクセス異常検出装
置では、アドレスデータの変化点において生じるEX−
OR31〜313におけるハザ−ド(いわゆる「ヒゲ」
)がノアゲート32によって第4図のように生じ、これ
がD−F F 33におけるラッチ動作で取込まれ、誤
検出となる問題点があった。
[Problems to be Solved by the Invention] However, in the conventional access abnormality detection device as described above, EX-
Hazards (so-called "whiskers") in OR31-313
) is generated by the NOR gate 32 as shown in FIG. 4, and this is captured by the latch operation in the D-FF 33, resulting in a problem of false detection.

そこで本発明は、バッファに対し同一のアドレスをアク
セスした場合に、的確にアクセス異常を検出することが
でき、アドレス変化点で生じるハザードによって誤動作
することのないアクセス異常検出装置を提供することを
目的とする。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide an access abnormality detection device that can accurately detect access abnormalities when the same address is accessed in a buffer, and that does not malfunction due to hazards that occur at address change points. shall be.

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

本発明に係るアクセス異常検出装置は、到来するデータ
を一時的に格納したFIFO方式で出力するバッファの
データ書込みに用いられる書込アドレスデータの少なく
とも所定ビットと、バッファのデータ読出しに用いられ
る読出アドレスデータの少なくとも所定ビットとの、双
方の所定ビットを比較して一致信号を出力する比較手段
と、この比較手段の一致信号を書込アドレスデータの歩
進クロックに基づきラッチする第1のラッチ回路と、比
較手段の一致信号を読出アドレスデータの歩進クロック
に基づきラッチする第2のラッチ回路と、。第1、第2
のラッチ回路の出力信号に対して論理演算を施してそれ
ぞれの出力信号に発生したハザードを打消す論理演算手
段とを備えたことを特徴とする。
The access abnormality detection device according to the present invention includes at least a predetermined bit of write address data used for writing data to a buffer that temporarily stores incoming data and outputs it in a FIFO format, and a read address used for reading data from the buffer. Comparing means for comparing both predetermined bits with at least a predetermined bit of data and outputting a match signal; and a first latch circuit for latching the match signal of the comparing means based on a step clock of write address data. , a second latch circuit that latches the match signal of the comparison means based on the step clock of the read address data. 1st, 2nd
The present invention is characterized by comprising a logic operation means for performing a logic operation on the output signals of the latch circuits to cancel hazards generated in the respective output signals.

〔作用〕[Effect]

本発明に係るアクセス異常検出装置は、以上の通りに構
成されるので、第1のラッチ回路では書込アドレスデー
タの変化点で生じるハザードの取込みがなされず、第2
のラッチ回路では読出アドレスデータの変化点で生じる
ハザードの取込みがなされず、それぞれ異なるタイミン
グでハザードを有する信号が得られる。そこで、これら
°の信号を論理演算手段に導き、一番単純には論理積を
作成するとハザードは消去される。なお、アドレスの一
致を検出するという点はこの演算では失われない。
Since the access abnormality detection device according to the present invention is configured as described above, the first latch circuit does not capture the hazard that occurs at the change point of the write address data, and the second
The latch circuit does not take in the hazard that occurs at the change point of the read address data, and signals with hazards are obtained at different timings. Therefore, the hazard can be eliminated by guiding these signals to a logic calculation means and, in the simplest way, creating a logical product. Note that the point of detecting address matching is not lost in this calculation.

〔実施例〕〔Example〕

以下、添付図面の第1図、第2図を参照して本発明の一
実施例を説明する。
Hereinafter, one embodiment of the present invention will be described with reference to FIGS. 1 and 2 of the accompanying drawings.

第2図は第1図のアクセス異常検出装置が用いられてい
るエラスティック・バッファ部を示している。INPU
T端子に到来したデータは書込部21によりバッファ2
2のメモリセルに書込まれる。この実施例では、バッフ
ァ22は8メモリセルであり、1から8までのアドレス
が与えられている。書込アドレス発生部24は、到来す
るデータに同期した書込クロックWCLKで歩進される
8進カウンタで構成され、3桁のアドレスデータを出力
する。出力されたアドレスデータは書込部21へ与えら
れ、書込部21はアドレスデータと対応するアドレスを
持つバッファ22のメモリセルにデータを書込む。読出
アドレス発生部26は、書込クロックWCLKとは非同
期の読出クロックRCLKで歩進される8進カウンタで
構成され、3桁のアドレスデータを出力する。このアド
レスデータは読出部23へ与えられ、読出部23はアド
レスデータと対応するアドレスを持つバッファ22内の
メモリセルのデータを読出す。読出されたデータは0U
TPUT端子よりデータ処理装置等へ送出される。ここ
で、書込アドレスデータと読出アドレスデータとは、同
一にならないように初期設定される。なお、書込クロッ
クWCLKと読出クロックRCLKとは、図示クロック
発生部より出力される。
FIG. 2 shows an elastic buffer section in which the access abnormality detection device of FIG. 1 is used. INPU
The data arriving at the T terminal is sent to the buffer 2 by the writing section 21.
2 memory cells. In this embodiment, buffer 22 has eight memory cells and is given addresses from 1 to 8. The write address generator 24 is composed of an octal counter that is incremented by a write clock WCLK synchronized with incoming data, and outputs three-digit address data. The output address data is given to the write section 21, and the write section 21 writes data into the memory cell of the buffer 22 having an address corresponding to the address data. The read address generator 26 is composed of an octal counter that is incremented by a read clock RCLK asynchronous to the write clock WCLK, and outputs three-digit address data. This address data is given to the readout section 23, and the readout section 23 reads out the data of the memory cell in the buffer 22 having the address corresponding to the address data. The read data is 0U
The data is sent from the TPUT terminal to a data processing device, etc. Here, the write address data and the read address data are initially set so that they are not the same. Note that the write clock WCLK and the read clock RCLK are output from the illustrated clock generation section.

アクセス異常検出装置は、書込アドレス発生部24から
送出される書込アドレスデータ、読出アドレス発生部2
6から送出される読出アドレスデータ、書込クロックW
CLKの反転信号WCLK。
The access abnormality detection device collects write address data sent from the write address generation section 24 and read address generation section 2.
Read address data sent from 6, write clock W
CLK inverted signal WCLK.

読出クロックRCLKの反転信号RCLKを受けて検出
信号ClCDを出力するもので、その具体的構成は第1
図に示されている。
It receives the inverted signal RCLK of the read clock RCLK and outputs the detection signal ClCD.
As shown in the figure.

第1図において、EX−OR11〜113は■ 比較手段を構成し、対応するビットの書込アドレスデー
タWAiと読出アドレスデータRAiとを比較し、ノア
ゲート12へ比較結果の信号を送出する。ノアゲート1
2は3つの入力が全てLレベルのときHレベルの信号を
、その他のときにはLレベルの信号を、第1のラッチ回
路(D−FF131)および第2のラッチ回路(D−F
F132)のデータ端子りへ与える。D−FF131は
ノアゲート12の出力信号を反転書込クロック信号WC
LKでラッチし、D−FF132はノアゲート12の出
力信号を反転読出クロック信号RCLKでラッチする。
In FIG. 1, EX-ORs 11 to 113 constitute (1) comparison means, which compares write address data WAi and read address data RAi of corresponding bits, and sends a comparison result signal to NOR gate 12. noah gate 1
2 outputs an H level signal when all three inputs are at L level, and an L level signal at other times, to the first latch circuit (D-FF131) and the second latch circuit (D-FF131).
F132) data terminal. The D-FF 131 inverts the output signal of the NOR gate 12 and converts it into a write clock signal WC.
The D-FF 132 latches the output signal of the NOR gate 12 using the inverted read clock signal RCLK.

D−FF1B、とD−FF13□との出力信号は論理演
算手段であるアンドゲート14へ導かれ、論理積を作成
される。
The output signals of D-FF1B and D-FF13□ are led to AND gate 14, which is a logic operation means, and a logical product is created.

そして、アンドゲート14の出力信号はD−FF15の
データ端子りへ与えられ、反転読出クロック信号RCL
Kでラッチされて、アクセス異常(アドレス一致)の検
出信号ClCDとしてデータ処理装置へ送られる。
The output signal of the AND gate 14 is applied to the data terminal of the D-FF 15, and the inverted read clock signal RCL
It is latched at K and sent to the data processing device as an access abnormality (address match) detection signal ClCD.

上記のようにアクセス異常検出装置25が構成されてい
る結果、ノアゲート12の出力に従来例と同様に、第4
図に示されるようなアドレスの変化点てハザードが生じ
ていても、D−FF13゜では反転書込クロック信号W
CLKでラッチが行われるから、読出アドレスデータが
変化する点でのハザードを取込むことはない。また、D
−FF132では反転読出クロック信号RCLKでラッ
チが行われるから、書込アドレスデータが変化する点で
のハザードを取込むことはない。また、D−FF13.
では書込アドレスデータが変化する点のハザードを取込
むことがあり、D−FF132では読出アドレスデータ
が変化する点のハザードを取込むことがあるが、それぞ
れの出力信号におけるハザードが同一タイミングで現わ
れないため(そのようにクロックが発生される)、アン
ドゲート14で論理積が作られるとハザードは打消され
、アドレスが一致したときの検出信号としての属性は残
される。このアンドゲート14の出力信号をD−FF1
5でラッチして検出信号ClCDとするため、ハザード
によって誤検出が生じない検出信号ClCDが得られる
。この検出信号ClCDは従来と同様に用いられる。
As a result of the access abnormality detection device 25 being configured as described above, the fourth
Even if a hazard occurs at the address change point as shown in the figure, the inverted write clock signal W
Since latching is performed at CLK, no hazard is introduced at the point where the read address data changes. Also, D
In the -FF 132, latching is performed using the inverted read clock signal RCLK, so there is no hazard at the point where the write address data changes. Also, D-FF13.
In D-FF132, the hazard at the point where the write address data changes may be taken in, and in the D-FF132, the hazard at the point at which the read address data changes, but the hazards in each output signal appear at the same timing. Therefore, when the AND gate 14 generates a logical product, the hazard is canceled and the attribute as a detection signal when the addresses match remains. The output signal of this AND gate 14 is converted to D-FF1
Since the detection signal ClCD is latched at 5, a detection signal ClCD that does not cause false detection due to a hazard can be obtained. This detection signal ClCD is used in the same manner as before.

本発明は上記実施例に限定されるものではなく、様々な
変形が可能である。
The present invention is not limited to the above embodiments, and various modifications are possible.

例えば、論理演算手段はアンドゲートでなく、いくつか
のゲートを用いて同様の構成としてもよい。また、アド
レスデータの全ビットを用いなくとも、例えば上位の何
ビットかを用いて読出アドレスと書込アドレスの間隔が
異常に近づいてことを検出するようにしてもよい。この
ようにすると、読出クロックが書込クロックかのいずれ
かの周波数が異常となった場合、誤ったデータが読出さ
れる前に異常を検出して、動作を中止するなどの対策を
とることができる。
For example, the logical operation means may have a similar configuration using several gates instead of an AND gate. Further, instead of using all bits of the address data, for example, some high-order bits may be used to detect that the interval between the read address and the write address is abnormally close. In this way, if the frequency of either the read clock or the write clock becomes abnormal, it is possible to detect the abnormality and take measures such as stopping the operation before erroneous data is read. can.

〔発明の効果〕〔Effect of the invention〕

以上、詳細に説明したように本発明によれば、第1のラ
ッチ回路と第2のラッチ回路とのラッチクロックが非同
期であることから、それぞれのラッチ回路の出力に存在
するハザードは同一タイミングに存在しないことになる
。従って、これを論理演算することにより、アドレスの
変化点で生じるハザードに影響されることなく、的確に
アクセス異常を検出することができる。
As described in detail above, according to the present invention, since the latch clocks of the first latch circuit and the second latch circuit are asynchronous, the hazards present in the output of each latch circuit occur at the same timing. It turns out that it doesn't exist. Therefore, by performing a logical operation on this, it is possible to accurately detect an access abnormality without being affected by the hazard that occurs at the address change point.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例に係るアクセス異常検出装置
の構成図、第2図はアクセス異常検出装置が用いられる
エラスティック争バッファ部の構成図、第3図は従来の
アクセス異常検出装置の構成図、第4図は従来のアクセ
ス異常検出装置の動作を説明するためのタイミングチャ
ートである。 11〜113・・・EX−OR,12・・・ノアゲート
、13 .13 .15・・・D−FF、14・・・ア
ンドゲート、21・・・書込部、22・・・バッファ、
23・・・読出部、24・・・書込アドレス発生部、2
5・・・アクセス異常検出装置、26・・・読出アドレ
ス発生部。 特許出願人  住友電気工業株式会社 代理人弁理士   長谷用  芳  樹実施例が適用さ
れるエラスチック壷バッファ第2図
FIG. 1 is a configuration diagram of an access anomaly detection device according to an embodiment of the present invention, FIG. 2 is a configuration diagram of an elastic contention buffer section in which the access anomaly detection device is used, and FIG. 3 is a conventional access anomaly detection device. FIG. 4 is a timing chart for explaining the operation of the conventional access abnormality detection device. 11-113...EX-OR, 12...Noah Gate, 13. 13. 15...D-FF, 14...AND gate, 21...Writing section, 22...Buffer,
23...Reading section, 24...Write address generation section, 2
5... Access abnormality detection device, 26... Read address generation unit. Patent Applicant: Sumitomo Electric Industries, Ltd. Representative Patent Attorney: Yoshiki Hase Figure 2: Elastic pot buffer to which the embodiment is applied

Claims (1)

【特許請求の範囲】 到来するデータを一時的に格納してFIFO方式で出力
するバッファのデータ書込みに用いられる書込みアドレ
スデータの少なくとも所定ビットと、前記バッファのデ
ータ読出しに用いられる読出アドレスデータの少なくと
も所定ビットとを比較して一致信号を出力する比較手段
と、 この比較手段の一致信号を前記書込アドレスデータの歩
進クロックに基づきラッチする第1のラッチ回路と、 前記比較手段の一致信号を前記読出アドレスデータの歩
進クロックに基づきラッチする第2のラッチ回路と、 前記第1、第2のラッチ回路の出力信号に対して論理演
算を施してそれぞれの出力信号に発生したハザードを打
消す論理演算手段とを備えたことを特徴とるアクセス異
常検出装置。
[Scope of Claims] At least a predetermined bit of write address data used to write data to a buffer that temporarily stores incoming data and outputs it in a FIFO format, and at least a predetermined bit of read address data used to read data from the buffer. a comparison means that compares the match signal with a predetermined bit and outputs a match signal; a first latch circuit that latches the match signal of the compare means based on a step clock of the write address data; a second latch circuit that latches the read address data based on a step clock, and performs a logical operation on the output signals of the first and second latch circuits to cancel hazards occurring in the respective output signals. 1. An access anomaly detection device comprising: logical operation means.
JP1035919A 1989-02-15 1989-02-15 Access fault detector Pending JPH02214348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1035919A JPH02214348A (en) 1989-02-15 1989-02-15 Access fault detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1035919A JPH02214348A (en) 1989-02-15 1989-02-15 Access fault detector

Publications (1)

Publication Number Publication Date
JPH02214348A true JPH02214348A (en) 1990-08-27

Family

ID=12455443

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1035919A Pending JPH02214348A (en) 1989-02-15 1989-02-15 Access fault detector

Country Status (1)

Country Link
JP (1) JPH02214348A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6492858B1 (en) 1999-07-22 2002-12-10 Nec Corporation Semiconductor integrated circuit and method for generating a control signal therefor
JP2011113404A (en) * 2009-11-27 2011-06-09 Fujitsu Ltd Buffer memory device and buffering method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6492858B1 (en) 1999-07-22 2002-12-10 Nec Corporation Semiconductor integrated circuit and method for generating a control signal therefor
JP2011113404A (en) * 2009-11-27 2011-06-09 Fujitsu Ltd Buffer memory device and buffering method

Similar Documents

Publication Publication Date Title
US6000022A (en) Method and apparatus for coupling signals between two circuits operating in different clock domains
US6260152B1 (en) Method and apparatus for synchronizing data transfers in a logic circuit having plural clock domains
US8612651B2 (en) FIFO buffer
US5495451A (en) Apparatus for detecting data input/output states of a plurality of first-in first-out memories
JP3076205B2 (en) First in first out buffer device
US6195769B1 (en) Failsafe asynchronous data transfer corruption indicator
JPH02214348A (en) Access fault detector
US20130061083A1 (en) Quad-Data Rate Controller and Realization Method Thereof
US6765932B1 (en) Method and apparatus for synchronizing a data stream
JP3090330B2 (en) Output signal generating apparatus and method, and FIFO memory
KR100301653B1 (en) High speed empty flag generator
KR100277682B1 (en) Error Detection Device of Line Length Decoding System
US7752506B1 (en) FIFO memory error circuit and method
KR0162766B1 (en) System of calculating the effective depth in fifo architecture
JP2783495B2 (en) Clock transfer circuit
JPH0319540A (en) Access fault detector for elastic buffer
US5883840A (en) Memory device and method for storing data according to the FIFO principle
JP2744298B2 (en) Failure detection method for buffer control counting circuit
JP2819955B2 (en) In-device error monitoring circuit
JPH09274599A (en) Buffer memory device
JP2000353939A (en) Clock signal synchronous flip flop circuit
KR100338402B1 (en) Memory device and method of controlling the same
JP3212979B2 (en) Timing signal malfunction detection circuit
JPS58149540A (en) Control storage device
JPH0312745B2 (en)