JP2927346B2 - Elastic store circuit - Google Patents
Elastic store circuitInfo
- Publication number
- JP2927346B2 JP2927346B2 JP8216219A JP21621996A JP2927346B2 JP 2927346 B2 JP2927346 B2 JP 2927346B2 JP 8216219 A JP8216219 A JP 8216219A JP 21621996 A JP21621996 A JP 21621996A JP 2927346 B2 JP2927346 B2 JP 2927346B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- value
- output
- circuit
- write
- 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
Links
Landscapes
- Communication Control (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明は、第1のポートに書
き込んだデータを第2のポートから読み出す2ポートメ
モリを用いる際に、読出しアドレスと書込みアドレスと
の接近を検出し両アドレスを初期値に設定することによ
り補正するエラスティックストア回路に関し、特に、ア
ドレスが所定値以上に接近したことを簡単な回路で検出
し、かつ、初期設定の頻度を抑えることができるエラス
ティックストア回路に関する。The present invention relates to a two-port memory for reading data written to a first port from a second port. When a two-port memory is used, an approach between a read address and a write address is detected and both addresses are initialized. More particularly, the present invention relates to an elastic store circuit capable of detecting that an address approaches a predetermined value or more with a simple circuit and suppressing the frequency of initial setting.
【0002】[0002]
【従来の技術】近年のデジタルデータ伝送システムの高
速化、高機能化の要求に伴い、データの速度変換または
遅延調整などを行なうためのエラスティックストア回路
にも高速化、高機能化が要求されており、このため入出
力ポートが独立した2ポートメモリを使用したエラステ
ィックストア回路が使用されるようになっている。2. Description of the Related Art With the recent demand for higher speed and higher function of digital data transmission systems, an elastic store circuit for performing data speed conversion or delay adjustment is required to have higher speed and higher function. Therefore, an elastic store circuit using a two-port memory having independent input / output ports is used.
【0003】このようなエラスティックストア回路にお
いては、書込み動作と読出し動作とがそれぞれ独立した
クロックにより行なわれるため、それぞれのクロックの
位相のずれに起因する読出しアドレスに対する書込みア
ドレスの接近を検出して読出しアドレスが書込みアドレ
スを追い越さないように補正する制御を必要としてい
る。In such an elastic store circuit, the write operation and the read operation are performed by independent clocks. Therefore, the approach of the write address to the read address due to the phase shift of each clock is detected. Control is required to correct the read address so as not to overtake the write address.
【0004】従来、この種のエラスティックストア回路
では、減算器が2ポートメモリに送られる読出しアドレ
スおよび書込みアドレスそれぞれをモニタして読出しア
ドレスと書込みアドレスとの距離差を演算し、この演算
値が予め定められた規定値に達したことを検出した検出
部がイニシャライズ(以後、初期設定と呼称する)信号
を各アドレス発生回路へ通知することにより読出しアド
レスおよび書込みアドレスのアドレス間隔が初期状態に
更新設定され最大距離に戻されている。Conventionally, in this type of elastic store circuit, a subtractor monitors each of a read address and a write address sent to a two-port memory and calculates a distance difference between the read address and the write address. The detection unit that detects that the predetermined value has been reached is notified of an initialization (hereinafter, referred to as initialization) signal to each address generation circuit, thereby updating the address interval between the read address and the write address to the initial state. Set and returned to maximum distance.
【0005】この構成では、読出しアドレスと書込みア
ドレスとの距離差を求めて規定値以内か否かを判断する
ためには二つのアドレスに対して蓄積・演算・比較が必
要であり、回路構成規模が大きい。In this configuration, in order to determine a distance difference between a read address and a write address and determine whether the difference is within a specified value, accumulation, calculation, and comparison are required for two addresses. Is big.
【0006】この加算器を削除して回路規模を縮小する
技術が、例えば、特開平6−188938号公報に記載
されている。この回路では読出しアドレスと書込みアド
レスとが一致して位相差がゼロになった際に読出しアド
レスカウンタと書込みアドレスカウンタとに所定値の差
を持たせたアドレス値をロードしている。A technique for reducing the circuit scale by eliminating this adder is described in, for example, Japanese Patent Application Laid-Open No. Hei 6-188938. In this circuit, when the read address coincides with the write address and the phase difference becomes zero, the read address counter and the write address counter are loaded with an address value having a predetermined value difference.
【0007】一方、別に、簡単な回路で実現する技術
が、例えば、特開平7−250101号公報に記載され
ている。On the other hand, another technique realized by a simple circuit is described, for example, in Japanese Patent Application Laid-Open No. 7-250101.
【0008】このエラスティックストア回路について、
図6を参照して説明する。[0008] This elastic store circuit:
This will be described with reference to FIG.
【0009】図示されるように、このエラスティックス
トア回路では、2ポートメモリ10に対して、読出しア
ドレス発生回路110が読出しアドレスを供給し、書込
みアドレス発生回路120が書込みアドレスを供給して
いる。As shown, in this elastic store circuit, a read address generator 110 supplies a read address to the two-port memory 10, and a write address generator 120 supplies a write address.
【0010】読出しアドレスは読出しアドレスデコード
部130にモニタされ、読出しアドレスデコード部13
0はモニタした読出しアドレスから予め設定された基準
アドレスを検出してパルス送出する。The read address is monitored by read address decode unit 130 and read address decode unit 13
0 detects a preset reference address from the monitored read address and sends a pulse.
【0011】一方、書込みアドレスは書込みアドレスデ
コード部140によりモニタされ、書込みアドレスデコ
ード部140は、読出しアドレスデコード部130から
パルス送出される基準アドレスを中心とした前後の規定
値以内の書込みアドレスを、アドレスの数だけの論理積
回路を用いてモニタしアドレスの一致でパルス送出す
る。これら論理積回路の出力パルスは論理和回路150
を介して基準アドレスを中心とした前後の規定値の範囲
で論理積回路160へ連続して送出される。On the other hand, the write address is monitored by a write address decoding unit 140. The write address decode unit 140 writes a write address within a specified value before and after a reference address centered on the reference address sent from the read address decode unit 130. Monitoring is performed using the AND circuits corresponding to the number of addresses, and pulses are transmitted when the addresses match. The output pulses of these AND circuits are output from the OR circuit 150.
Are continuously transmitted to the AND circuit 160 in a range of specified values before and after the reference address.
【0012】論理積回路160は、一方で書込みアドレ
スに基づき中心に基準アドレス値を有するパルスを論理
和回路150から連続して受け、他方で読出しアドレス
デコード部130から基準アドレスに一致したパルスを
受け、出力を初期設定信号として読出しアドレス発生回
路110および書込みアドレス発生回路120へ送出し
ている。The AND circuit 160 receives, on the one hand, a pulse having a reference address value at the center based on the write address from the OR circuit 150 continuously, and, on the other hand, receives from the read address decoding section 130 a pulse matching the reference address. , Output as an initial setting signal to the read address generation circuit 110 and the write address generation circuit 120.
【0013】読出しアドレス発生回路110および書込
みアドレス発生回路120では、初期設定信号を受けた
際、それぞれ所定の初期値アドレスが設定されるので、
最大距離差が確保される。When the read address generating circuit 110 and the write address generating circuit 120 receive an initial setting signal, predetermined initial value addresses are set, respectively.
The maximum distance difference is ensured.
【0014】この構成によれば、読出しアドレスデコー
ド部130における基準アドレスの抽出論理回路、書込
みアドレスデコード部140の基準アドレスを中心とし
た前後の規定値以内の数の書込みアドレスに対する抽出
論理回路、および論理積回路160という簡単な論理回
路のみで、読出しアドレスと書込みアドレスとの接近を
判断して所定の処理をすることができる。According to this structure, the reference address extraction logic circuit in the read address decoding unit 130, the extraction logic circuit for the number of write addresses within a prescribed value before and after the reference address of the write address decode unit 140, and The predetermined process can be performed by determining the approach between the read address and the write address only by a simple logic circuit called the AND circuit 160.
【0015】[0015]
【発明が解決しようとする課題】上述した従来のエラス
ティックストア回路では次のような問題点がある。The above-mentioned conventional elastic store circuit has the following problems.
【0016】第1の問題点は、特開平6−188938
号公報に記載の回路および上記説明において、なお読出
しアドレスと書込みアドレスとの位相差を検出する論理
回路の数が多いことである。The first problem is disclosed in Japanese Patent Application Laid-Open No. HEI 6-188938.
In the circuit described in the above publication and the above description, the number of logic circuits for detecting the phase difference between the read address and the write address is large.
【0017】その理由は、上記公開公報において読出し
アドレスと書込みアドレスとの位相距離を求め規定値の
位相差mよりの大小を判定するため位相差検出回路に
は、なお先に説明したような二つのアドレスの蓄積、減
算、比較が必要であり、また、上記説明による回路構成
では書込みアドレスデコード部の論理回路が初期設定信
号を発行するために読出しアドレスの基準値を中心とす
る規定値以内の書込みアドレス数に対応して設けられて
いるためである。The reason for this is that the phase difference between the read address and the write address in the above-mentioned publication is determined and the phase difference detection circuit determines the magnitude of the phase difference between the specified value and the phase difference m. It is necessary to accumulate, subtract, and compare addresses, and in the circuit configuration described above, since the logic circuit of the write address decoding unit issues an initial setting signal, writing within a prescribed value centered on the reference value of the read address is required. This is because they are provided corresponding to the number of addresses.
【0018】第2の問題点は、特開平7−250101
号公報に記載の回路および上記説明において、初期設定
する機会頻度が多くなる可能性が高いということであ
る。The second problem is disclosed in JP-A-7-250101.
In the circuit described in the above publication and the above description, there is a high possibility that the frequency of initial setting is increased.
【0019】その理由は、読出しアドレスの基準値を中
心とする規定値以内の書込みアドレスという基準値への
近接の際に読出しアドレス発生回路および書込みアドレ
ス発生回路に対して初期設定更新という手段のみで対応
し、他の緩衝的処置がないからである。The reason is that only the means for initializing and updating the read address generation circuit and the write address generation circuit when approaching a reference value of a write address within a prescribed value centered on the reference value of the read address is used. Correspondingly, there is no other buffering treatment.
【0020】本発明の課題は、読出しアドレスと書込み
アドレスとが一致する状態をできる限り避け、読出しア
ドレスと書込みアドレスとの差を検出する回路を簡素化
して回路規模の縮小化を図り、かつ初期化設定の機会頻
度を抑えることができるエラスティックストア回路を提
供することである。An object of the present invention is to avoid a state in which a read address and a write address match as much as possible, to simplify a circuit for detecting a difference between a read address and a write address, to reduce the circuit scale, and to reduce the initial size. It is an object of the present invention to provide an elastic store circuit that can suppress the frequency of setting of the activation setting.
【0021】[0021]
【課題を解決するための手段】本発明によるエラスティ
ックストア回路は、第1のポートに書き込んだデータを
第2のポートから読み出す2ポートメモリを用い、読出
しアドレスと書込みアドレスとの接近を検出した際に両
アドレスを初期設定することにより補正するエラスティ
ックストア回路において、読出しアドレスおよび書込み
アドレスのいずれか一方に基準値アドレスを設定してこ
れを検出し出力する一方、他方のアドレス値により前記
基準値アドレスを中心とする所定幅のアドレスの距離差
を有する初期設定アドレス値、およびこの初期設定アド
レス値の両脇外側に隣接して所定の範囲を有する停止制
御アドレス値それぞれを検出して出力し、前記基準値ア
ドレスの出力を受けた際に前記初期設定アドレス値の出
力を受けている場合には読出しアドレスと書込みアドレ
スとを最大距離の初期値に設定する一方、前記基準値ア
ドレスの出力を受けた際に前記停止制御アドレス値の出
力を受けている場合には所定の制御信号を発生し、読出
しアドレスおよび書込みアドレスのいずれか一方を移動
して所定の距離に設定する制御を行なうアドレス検出お
よび制御の手段を備えている。An elastic store circuit according to the present invention uses a two-port memory for reading data written to a first port from a second port, and detects an approach between a read address and a write address. In the elastic store circuit for correcting by initializing both addresses at the time, a reference value address is set to one of a read address and a write address, and this is detected and output. Detect and output an initial setting address value having a distance difference between addresses of a predetermined width centered on the value address and a stop control address value having a predetermined range adjacent on both sides outside the initial setting address value. When receiving the output of the initial setting address value when receiving the output of the reference value address, Sets the read address and the write address to the initial value of the maximum distance, and generates a predetermined control signal when receiving the output of the reference value address and receiving the output of the stop control address value. In addition, there is provided an address detection and control means for performing control for moving one of the read address and the write address to set the distance to a predetermined distance.
【0022】この構成では、初期設定アドレス値に加え
て初期設定アドレス値の両脇外側に隣接して所定の範囲
を有する停止制御アドレス値を設け、初期設定する前に
一方のアドレスのみを補正して読出しアドレスと書込み
アドレスとの距離差をほぼ最大に設定することができ
る。In this configuration, in addition to the initial setting address value, a stop control address value having a predetermined range is provided adjacent to both sides outside the initial setting address value, and only one address is corrected before the initial setting. Thus, the distance difference between the read address and the write address can be set to almost the maximum.
【0023】また、本発明による具体的なエラスティッ
クストア回路は、第1のポートに書き込んだデータを第
2のポートから読み出す2ポートメモリを用い、読出し
アドレスと書込みアドレスとの接近を検出した際に両ア
ドレスを初期設定することにより補正するエラスティッ
クストア回路において、読出しアドレスおよび書込みア
ドレスのいずれか一方のアドレスを構成する構成ビット
を取り込んで格納する第1のレジスタとこのレジスタに
格納されたデータを取り出して前記基準値アドレスと一
致した際にパルス出力する第1の論理積回路とを有する
第1のアドレスデコード部と、この第1のアドレスデコ
ード部で設定したアドレスに対して他方のアドレスを構
成する構成ビットを取り込んで格納する第2のレジスタ
と前記基準値アドレスを中央値とする初期設定アドレス
値を前記第2のレジスタに格納された上位ビットにより
生成出力する第2の論理積回路とを有する第2のアドレ
スデコード部と、前記基準値アドレスの出力を前記第1
のアドレスデコード部から受けた際に前記初期設定アド
レス値の出力を前記第2のアドレスデコード部から受け
ている場合、読出しアドレスと書込みアドレスとを最大
距離の初期値に設定する初期設定手段とを備え、更に詳
細には、前記第2のアドレスデコード部は読出しアドレ
スおよび書込みアドレスのいずれか一方のアドレスを構
成する構成ビットを取り込んで格納する第2のレジスタ
と、前記基準値アドレスを中央値とする初期設定アドレ
ス値、およびこの初期設定アドレス値の両脇外側に所定
範囲を形成する二つの停止制御アドレス値それぞれを、
前記第2のレジスタに格納された上位ビットにより生成
出力する三つの第2の論理積回路とを備え、また、前記
制御信号発生手段は前記第2のアドレスデコード部から
初期設定アドレス値の両脇外側に隣接する停止制御アド
レス値で生成出力した所定の制御信号を受け、前記2ポ
ートメモリを構成するアドレス数のカウンタと、このカ
ウンタのほぼ1/2を検出する第4の論理積回路と、前
記制御信号を受けた後、第4の論理積回路の検出出力を
受けるまで書込みまたは読出しを停止する停止信号を送
出するセットリセット付きFF回路とを備えている。A specific elastic store circuit according to the present invention uses a two-port memory for reading data written to a first port from a second port, and detects an approach between a read address and a write address. In an elastic store circuit for correcting by initializing both addresses, a first register for fetching and storing constituent bits constituting one of a read address and a write address, and data stored in this register A first address decoding unit having a first AND circuit for outputting a pulse when the address matches the reference value address, and the other address for the address set by the first address decoding unit. Second register for fetching and storing constituent bits to be configured
A second address decode portion and a second AND circuit for generating and outputting the upper bits stored the previous SL reference value address initialization address value to the center value to the second register when the reference The output of the value address is
And an initial setting means for setting a read address and a write address to an initial value of a maximum distance when receiving the output of the initial setting address value from the second address decoding unit when receiving the output from the second address decoding unit. Prepared , more detailed
More specifically, the second address decoding section reads out the read address.
Address or write address.
Second register for capturing and storing the configuration bits to be generated
And an initial setting address having the reference value address as a median value.
Value and both sides of this initial setting address value.
Each of the two stop control address values that form the range,
Generated by upper bits stored in the second register
And three second AND circuits for outputting.
The control signal generating means is provided from the second address decoding unit.
Stop control addresses adjacent to both sides outside the initial setting address value
Receiving a predetermined control signal generated and output with the
Counter of the number of addresses that make up the
A fourth AND circuit for detecting almost half of the
After receiving the control signal, the detection output of the fourth AND circuit is output.
Send a stop signal to stop writing or reading until
And an output FF circuit with a set reset .
【0024】この構成により、最少数の論理回路で、読
出しアドレスと書込みアドレスとの接近を検出して両ア
ドレスを初期設定することができる。With this configuration, the approach between the read address and the write address can be detected and the two addresses can be initialized by the minimum number of logic circuits.
【0025】[0025]
【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。Next, embodiments of the present invention will be described with reference to the drawings.
【0026】図1は本発明の実施の一形態を示す機能ブ
ロック図である。図1に示されたエラスティックストア
回路では、2ポートメモリ10、読出しアドレス発生回
路11、書込みアドレス発生回路12、読出しアドレス
デコード部13、書込みアドレスデコード部14、論理
積回路15〜17、書込み停止信号生成回路18、およ
び読出し停止信号生成回路19が設けられているものと
する。FIG. 1 is a functional block diagram showing an embodiment of the present invention. In the elastic store circuit shown in FIG. 1, the two-port memory 10, the read address generation circuit 11, the write address generation circuit 12, the read address decode unit 13, the write address decode unit 14, the AND circuits 15 to 17, the write stop It is assumed that a signal generation circuit 18 and a read stop signal generation circuit 19 are provided.
【0027】従来の図6と相違する点は、書込みアドレ
スデコード部14が3つの出力を有し、これら3つの出
力それぞれが初期設定信号、書込み停止信号、および読
出し停止信号それぞれを生成するための3つの論理積回
路15〜17それぞれに入力していることであり、論理
積回路16,17の出力それぞれが書込み停止信号生成
回路18および読出し停止信号生成回路19それぞれを
介して書込み停止信号および読出し停止信号それぞれを
生成出力する制御信号発生手段を備えていることであ
る。The difference from the conventional FIG. 6 is that the write address decoding unit 14 has three outputs, and these three outputs are used to generate an initial setting signal, a write stop signal, and a read stop signal, respectively. That is, the signals are input to the three AND circuits 15 to 17, respectively, and the outputs of the AND circuits 16 and 17 are respectively supplied to the write stop signal generation circuit 18 and the read stop signal generation circuit 19 via the write stop signal and the read stop signal. Control signal generating means for generating and outputting each stop signal is provided.
【0028】2ポートメモリ10は図示されていない入
力ポートおよび出力ポートの二つのポートを有してい
る。The two-port memory 10 has two ports, not shown, an input port and an output port.
【0029】読出しアドレス発生回路11は、2ポート
メモリ10の出力ポートから出力すべきデータが格納さ
れている2ポートメモリ10内のアドレスを指定する読
出しアドレスを発生して2ポートメモリ10へ出力す
る。また、読出しアドレス発生回路11は、論理積回路
15から初期設定信号を受けた際に予め定められた初期
値にアドレスを設定し、また、読出し停止信号生成回路
19から読出し停止信号を受けている間、読出しアドレ
スの出力を停止するものとする。The read address generation circuit 11 generates a read address designating an address in the two-port memory 10 in which data to be output is stored from the output port of the two-port memory 10 and outputs the read address to the two-port memory 10. . Further, the read address generation circuit 11 sets an address to a predetermined initial value when receiving an initialization signal from the AND circuit 15, and receives a read stop signal from the read stop signal generation circuit 19. During this time, the output of the read address is stopped.
【0030】書込みアドレス発生回路12は、2ポート
メモリ10の入力ポートから入力するデータを格納する
2ポートメモリ10内のアドレスを指定する書込みアド
レスを発生して2ポートメモリ10へ出力する。また、
書込みアドレス発生回路12は、論理積回路15から初
期設定信号を受けた際に予め定められた初期値にアドレ
スを設定し、また、書込み停止信号生成回路18から書
込み停止信号を受けている間、書込みアドレスの出力を
停止するものとする。The write address generating circuit 12 generates a write address designating an address in the two-port memory 10 for storing data input from an input port of the two-port memory 10 and outputs the write address to the two-port memory 10. Also,
The write address generating circuit 12 sets an address to a predetermined initial value when receiving an initial setting signal from the AND circuit 15, and while receiving a write stop signal from the write stop signal generating circuit 18, The output of the write address shall be stopped.
【0031】読出しアドレスデコード部13は、基準と
なる読出しアドレスBを予め設定しており、読出しアド
レス発生回路11から2ポートメモリ10へ出力する読
出しアドレスを常時モニタし、基準となる読出しアドレ
スBと一致した際に論理積回路15〜17へパルス出力
するものとする。The read address decoding unit 13 presets a reference read address B, and constantly monitors the read address output from the read address generation circuit 11 to the two-port memory 10, and sets the read address B as a reference. Pulses are output to the AND circuits 15 to 17 when they match.
【0032】書込みアドレスデコード部14は、基準書
込みアドレスとして、基準となるアドレスの幅を書込み
アドレスの下位ビットで予め表す一方、この下位ビット
に続く上位に位置する上位ビットの連続する3種類のア
ドレス値を設定して、それぞれの出力を論理積回路15
〜17それぞれへ入力しているものとする。そして、書
込みアドレスデコード部14は、書込みアドレス発生回
路12から2ポートメモリ10へ送出する書込みアドレ
スの上位ビットを常時モニタし、上位ビットが予め設定
されている基準となる書込みアドレスと一致した際に論
理積回路15〜17の該当する一つへパルス出力するも
のとする。The write address decoding section 14 preliminarily expresses the width of the reference address as the reference write address by using the lower bits of the write address, and the three types of addresses in which the upper bits following the lower bits are consecutively located in the upper bits. A value is set and each output is ANDed by the AND circuit 15.
17 to 17 have been input. Then, the write address decoding unit 14 constantly monitors the upper bits of the write address transmitted from the write address generation circuit 12 to the two-port memory 10, and when the upper bits match the preset reference write address. It is assumed that a pulse is output to a corresponding one of the AND circuits 15 to 17.
【0033】参考値として、基準のアドレス値Bを中心
とし、初期設定を行なうアドレスの距離差“±a”、お
よび書込み制御および読出し制御を行なう両側アドレス
の距離差bを設定した場合における、初期設定信号用に
アドレス値幅“B±a”、ならびにこのアドレス値“B
±a”の両脇に、書込み停止信号用のアドレス値“〜B
−(a+b)”、および読出し停止信号用のアドレス値
“〜B+(a+b)”それぞれが図示されている。これ
らの数値は、正確にはアルファベット符号による上記数
値に“−1”した値がアドレス値“0”からの値とな
る。As reference values, an initial distance difference ". ± .a" between the addresses for initial setting and a distance difference "b" between both side addresses for performing the write control and the read control are set around the reference address value B. The address value width “B ± a” for the setting signal and the address value “B
The address value “〜B” for the write stop signal is provided on both sides of ± a ”.
− (A + b) ”and the address value“ 〜B + (a + b) ”for the read stop signal. It becomes a value from the value “0”.
【0034】また、初期状態においては、書込みアドレ
スと読出しアドレスとの距離差は最大値Aとなるように
設定されるので、例えば、読出しアドレス“0”番地に
対して書込みアドレスは、例えば“(A/2)”番地程
度に設定される。また、読出しアドレスデコード部に設
定する基準アドレスには、“B”番地が下位ビットで中
間値となるように設定されるものとする。In the initial state, the distance difference between the write address and the read address is set to be the maximum value A. For example, for the read address "0", the write address is, for example, "( A / 2) It is set to about the address. It is also assumed that the reference address set in the read address decoding unit is set so that the address "B" is an intermediate value in lower bits.
【0035】論理積回路15は、書込みアドレスデコー
ド部14から幅“B±a”の位置で書込みアドレスを読
出しこの読出されたアドレス位置とアドレスデコード部
13から送出された基準となる読出しアドレスBとが一
致した際にこの一致出力を読出しアドレス発生回路11
および書込みアドレス発生回路12へ初期設定信号とし
て送出する一方で、送信ポインタのアラーム受信部(図
示省略)へアラーム信号として送出するものとする。The AND circuit 15 reads a write address from the write address decode unit 14 at a position of width "B ± a", and reads the read address position and the reference read address B sent from the address decode unit 13 as a reference. Is output when the address matches, the read address generation circuit 11
In addition, it is sent to the write address generating circuit 12 as an initial setting signal, while being sent as an alarm signal to an alarm receiving section (not shown) of the transmission pointer.
【0036】論理積回路16は、書込みアドレスデコー
ド部14から幅“B−(a+1)〜B−(a+b)”の
位置で書込みアドレスを読出しこの読出されたアドレス
位置と読出しアドレスデコード部13から送出された基
準となる読出しアドレスBとが一致した際、この一致出
力を書込み停止信号生成回路18へ出力するものとす
る。The AND circuit 16 reads the write address from the write address decode unit 14 at the position of the width "B- (a + 1) to B- (a + b)", and sends out the read address position and the read address decode unit 13. When the read address B serving as the reference matches, the output of the match is output to the write stop signal generation circuit 18.
【0037】論理積回路17は、読出しアドレスデコー
ド部13から幅“B+(a+1)〜B+(a+b)”の
位置で書込みアドレスを読出しこの読出されたアドレス
位置とアドレスデコード部13から送出された基準とな
る読出しアドレスBとが一致した際、この一致出力を読
出し停止信号生成回路19へ出力するものとする。The AND circuit 17 reads a write address from the read address decode unit 13 at a position of width "B + (a + 1) to B + (a + b)", and reads the read address position and the reference sent from the address decode unit 13. When the read address B coincides with the read address B, the coincidence output is output to the read stop signal generation circuit 19.
【0038】書込み停止信号生成回路18は、論理積回
路16から駆動パルスを受けた際、アドレスカウンタと
同一のクロックによりクロック幅、例えば、“(A/
2)−a”の書込み停止信号を生成して書込みアドレス
発生回路12および受信ポインタの書込みデータ出力部
(図示省略)それぞれへ書込み停止信号として送出する
ものとする。When the write stop signal generation circuit 18 receives a drive pulse from the AND circuit 16, the write stop signal generation circuit 18 uses a clock having the same clock as the address counter, for example, "(A /
2) It is assumed that a write stop signal of -a "is generated and sent as a write stop signal to each of the write address generating circuit 12 and the write data output section (not shown) of the reception pointer.
【0039】読出し停止信号生成回路19は、論理積回
路17から駆動パルスを受けた際、アドレスカウンタと
同一のクロックによりクロック幅“(A/2)−a”の
読出し停止信号を生成して読出し、アドレス発生回路1
1および送信ポインタの読出しデータ入力部(図示省
略)それぞれへ読出し停止信号として送出するものとす
る。When receiving a drive pulse from the AND circuit 17, the read stop signal generating circuit 19 generates a read stop signal having a clock width of "(A / 2) -a" by the same clock as that of the address counter, and reads the read stop signal. , Address generation circuit 1
1 and a read data input unit (not shown) for the transmission pointer (not shown).
【0040】次に、図1を参照して動作機能について説
明する。Next, the operation function will be described with reference to FIG.
【0041】まず、初期状態において、書込みアドレス
と読出しアドレスとの距離差が最大値Aとなるように、
読出しアドレス0番地に対して書込みアドレスが“A/
2”番地程度に設定される。また、読出しアドレスデコ
ード部13に設定する基準アドレスとしては下位ビット
が中間値となるようにB番地が設定されている。First, in the initial state, the distance difference between the write address and the read address becomes the maximum value A,
The write address is “A /
The address is set to about 2 ". Address B is set as a reference address to be set in the read address decoding unit 13 so that the lower bit becomes an intermediate value.
【0042】まず、読出しアドレスデコード部13は、
読出しアドレス値Bが2ポートメモリ10に送られた
際、これを検出して一つのパルスにより出力している。First, the read address decoding unit 13
When the read address value B is sent to the two-port memory 10, it is detected and output by one pulse.
【0043】一方、書込みアドレスデコード部14は、
初期設定信号用のアドレス値“B±a”、ならびに、こ
のアドレス値“B±a”の両脇の書込み停止信号用のア
ドレス値“〜B−(a+b)”および読出し停止信号用
のアドレス値“〜B+(a+b)”それぞれに対して書
込みアドレス値が一致した際、該当する論理積回路15
〜17それぞれへパルスを出力している。On the other hand, the write address decoding unit 14
The address value “B ± a” for the initial setting signal, the address value “〜B− (a + b)” for the write stop signal on both sides of the address value “B ± a”, and the address value for the read stop signal When the write address value matches each of “〜B + (a + b)”, the corresponding AND circuit 15
To 17 are output.
【0044】従って、読出しアドレスデコード部13の
出力と、書込みアドレスデコード部14の出力とが時間
的に重なるということは、両方のアドレスが近接し距離
が短縮されているということである。Therefore, the fact that the output of the read address decode unit 13 and the output of the write address decode unit 14 temporally overlap means that both addresses are close and the distance is shortened.
【0045】アドレス幅“B±a”の書込みアドレスの
位置でアドレスデコード部13から送出された基準とな
る読出しアドレスBが一致した際には論理積回路15に
より初期設定信号およびアラーム信号が送出される。初
期設定信号は、読出しアドレス発生回路11および書込
みアドレス発生回路12へ送出され、読出しアドレス発
生回路11および書込みアドレス発生回路12では、初
期設定信号により読出しアドレスおよび書込みアドレス
の距離差が最大になるような初期値に設定される。また
アラーム信号はアラーム受信部(図示省略)へ送出され
所定の警報で表示される。When the reference read address B sent from the address decoding unit 13 at the position of the write address having the address width "B ± a" matches, the AND circuit 15 sends an initial setting signal and an alarm signal. You. The initialization signal is sent to the read address generation circuit 11 and the write address generation circuit 12, and the read address generation circuit 11 and the write address generation circuit 12 use the initialization signal to maximize the distance difference between the read address and the write address. Initial value is set. The alarm signal is sent to an alarm receiving unit (not shown) and is displayed as a predetermined alarm.
【0046】また、アドレス幅“B−(a+1)〜B−
(a+b)”の書込みアドレスの位置でアドレスデコー
ド部13から送出された基準となる読出しアドレスBが
一致した際には論理積回路16を介して書込み停止信号
生成回路18から書込み停止信号が書込みアドレス発生
回路12へ送出される。書込み停止信号を受けた書込み
アドレス発生回路12は、クロック幅“(A/2)−
a”の書込み停止信号を受けて書込みを停止することに
より読出しアドレスとの距離を最大値付近まで離すこと
ができる。The address width "B- (a + 1) -B-
When the reference read address B sent from the address decoding unit 13 at the write address position of (a + b) "matches, the write stop signal is output from the write stop signal generation circuit 18 via the AND circuit 16 to the write address. The write address is sent to the generation circuit 12. The write address generation circuit 12, which has received the write stop signal, outputs the clock width "(A / 2)-
By stopping the writing in response to the write stop signal of a ″, the distance from the read address can be increased to near the maximum value.
【0047】他方、アドレス幅“B+(a+1)〜B+
(a+b)”の書込みアドレスの位置でアドレスデコー
ド部13から送出された基準となる読出しアドレスBが
一致した際には論理積回路17を介して読出し停止信号
生成回路19から読出し停止信号が読出しアドレス発生
回路11へ送出される。読出し停止信号を受けた読出し
アドレス発生回路11は、クロック幅“(A/2)−
a”の読出し停止信号を受けて読出しを停止することに
より書込みアドレスとの距離を最大値付近まで離すこと
ができる。On the other hand, the address width "B + (a + 1) to B +
When the reference read address B sent from the address decoding unit 13 at the position of the write address of (a + b) "matches, the read stop signal is output from the read stop signal generation circuit 19 via the AND circuit 17 to the read address. The read address is sent to the generation circuit 11. The read address generation circuit 11, which has received the read stop signal, outputs the clock width "(A / 2)-
By stopping the read operation in response to the read stop signal a ", the distance from the write address can be increased to near the maximum value.
【0048】また、二つの読出しアドレスと書込みアド
レスとの接近の判定は2ポートメモリの0番地からA番
地までの書込み・読出し動作の1周期に1回しか行なわ
れないので、判定のために設定したアドレスを通過した
後で基準距離差内に入る可能性がある。しかし、次の判
定までに読出しアドレスが書込みアドレスを追い越しま
たは書込みアドレスが読出しアドレスを追い越すことが
ない範囲の基準距離差は、クロックの位相差およびメモ
リ量から予め演算し、設定されているものとする。Since the determination of the approach between the two read addresses and the write address is performed only once in one cycle of the write / read operation from address 0 to address A of the 2-port memory, it is set for the determination. After passing through the specified address, there is a possibility that the distance will fall within the reference distance difference. However, the reference distance difference in a range where the read address does not overtake the write address or the write address does not overtake the read address before the next determination is calculated and set in advance from the clock phase difference and the memory amount. I do.
【0049】上記説明では、基準のアドレス値Bを読出
しアドレスデコード部に設定し、初期設定信号用アドレ
ス値“B±a”、ならびに、このアドレス値“B±a”
の両脇に、書込み停止信号用のアドレス値“〜B−(a
+b)”、および読出し停止信号用のアドレス値“〜B
+(a+b)”それぞれを書込みアドレスデコード部に
設定したが、読出しおよび書込みのアドレスを逆にし
て、書込みアドレスデコード部に基準のアドレス値Bを
設定し、読出しアドレスデコード部に初期設定信号用ア
ドレス値、書込み停止信号用アドレス値、および読出し
停止信号用アドレス値を設定し出力させてもよい。In the above description, the reference address value B is set in the read address decoding unit, and the address value "B ± a" for the initial setting signal and the address value "B ± a"
, The address values for the write stop signal “〜B- (a
+ B) "and the address value" -B for the read stop signal
+ (A + b) "is set in the write address decode unit, but the read and write addresses are reversed, a reference address value B is set in the write address decode unit, and the address for the initial setting signal is set in the read address decode unit. A value, an address value for a write stop signal, and an address value for a read stop signal may be set and output.
【0050】上記説明では、機能ブロックを図示して説
明したが、論理積回路は別の論理回路による組み合わせ
でもよく、機能の分離併合は上記機能を満たす限り自由
であり、上記説明が本発明を限定するものではない。In the above description, the functional blocks are illustrated and described. However, the logical product circuit may be combined with another logical circuit, and the function can be freely separated and merged as long as the above function is satisfied. It is not limited.
【0051】[0051]
【実施例】次に、図1に図2を併せ参照し具体化された
読出しアドレスデコード部13および書込みアドレスデ
コード部14の一形態について説明する。Next, an embodiment of a read address decode unit 13 and a write address decode unit 14 embodied with reference to FIG. 1 and FIG. 2 will be described.
【0052】まず、2ポートメモリ10は8ビット構成
によるアドレス“0”〜“255”を有し、上記初期設
定アドレス幅となる値“a”をほぼ“8”、また停止制
御アドレス幅となる値“b”をほぼ“16”に設定し
て、初期設定を行なう読出しアドレスと書込みアドレス
との距離差“−7”〜“+8”、書込み制御を行なう距
離差“−23”〜“−8”、および読出し制御を行なう
距離差“+9”〜“+24”それぞれが設定されている
ものとする。First, the two-port memory 10 has addresses "0" to "255" in an 8-bit configuration, and the value "a", which is the initial set address width, is substantially "8", and the stop control address width. The value "b" is set to substantially "16", and the distance difference "-7" to "+8" between the read address and the write address for initial setting, and the distance difference "-23" to "-8" for the write control. ", And distance differences" +9 "to" +24 "for performing read control are set.
【0053】また、初期状態における最大距離をなすア
ドレスとしては、読出しアドレスが0番地、書込みアド
レスが128番地であるものとする。It is assumed that the addresses forming the maximum distance in the initial state are a read address of 0 and a write address of 128.
【0054】また、読出しアドレスデコード部13で、
基準アドレスBが下位4ビットの中間値の“23”番地
に設定される場合、上記条件により、書込みアドレスデ
コード部14において、論理積回路15に出力される初
期設定の条件は距離差“−7”〜“+8”の16番地か
ら31番地となる。同様に、論理積回路16に出力され
る書込み制御の条件は距離差“−23”〜“−8”の0
番地から15番地に設定され、論理積回路17に出力さ
れる読出し制御の条件は距離差“+9”〜“+24”の
32番地から47番地に設定されるものとする。The read address decoding unit 13
In the case where the reference address B is set to the address “23” of the intermediate value of the lower 4 bits, the condition of the initial setting output to the AND circuit 15 in the write address decoding unit 14 is the distance difference “−7”. The address is from address 16 to address 31 of "+8". Similarly, the condition of the write control output to the AND circuit 16 is 0 for the distance difference “−23” to “−8”.
It is assumed that the address is set from address 15 to address 15 and the condition of the read control output to the AND circuit 17 is set from address 32 to address 47 of the distance difference “+9” to “+24”.
【0055】この基準アドレス値Bの23番地設定は、
各エラスティックストア回路における読出しと書込みと
の位相差、周波数差により両方のアドレスが接近するこ
とが予想される距離差を予測して決定されるものであ
る。The reference address value B at address 23 is set as follows:
This is determined by predicting a distance difference between both addresses which is expected to be close due to a phase difference and a frequency difference between reading and writing in each elastic store circuit.
【0056】図2に示されるように、読出しアドレスデ
コード部13は、読出しアドレス発生回路11から2ポ
ートメモリ10へ送られる読出しアドレスを取り込む8
ビット構成のレジスタ131と、レジスタ131の8ビ
ットを読出して23番地で出力する論理積回路132と
を有しているものとする。As shown in FIG. 2, read address decode section 13 takes in a read address sent from read address generating circuit 11 to two-port memory 10.
It is assumed that a register 131 having a bit configuration and an AND circuit 132 that reads out 8 bits of the register 131 and outputs it at an address 23 are provided.
【0057】書込みアドレスデコード部14は、書込み
アドレス発生回路12から2ポートメモリ10へ送られ
る書込みアドレスを取り込む8ビット構成のレジスタ1
41と、レジスタ141の8ビット内、上位4ビットを
読出して、16番地から31番地までを出力できるコー
ド“0001”に設定された論理積回路142と、0番
地から15番地までを出力できるコード“0000”に
設定された論理積回路143と、32番地から47番地
までを出力できるコード“0010”に設定された論理
積回路144とを有しているものとする。The write address decode section 14 is an 8-bit register 1 for taking in the write address sent from the write address generation circuit 12 to the two-port memory 10.
41, a logical product circuit 142 set to a code "0001" capable of reading the upper 4 bits from the 8 bits of the register 141 and outputting addresses 16 to 31 and a code capable of outputting addresses 0 to 15 It is assumed that an AND circuit 143 set to “0000” and an AND circuit 144 set to a code “0010” capable of outputting addresses 32 to 47 are provided.
【0058】従って、論理積回路15は、論理積回路1
42から16番地から31番地までを出力中に論理積回
路132から23番地の出力があった場合、近接過剰と
いうことで、初期設定信号を出力する。論理積回路16
は、論理積回路143から0番地から15番地までを出
力中に論理積回路132から23番地の出力があった場
合、近接間際ということで、書込み禁止信号をパルス出
力する。同様に、論理積回路17は、論理積回路144
から32地から47番地までを出力中に論理積回路13
2から23番地の出力があった場合、近接間際というこ
とで、読出し禁止信号をパルス出力する。Therefore, the logical product circuit 15 is the logical product circuit 1
If there is an output at address 23 from the AND circuit 132 during an output from address 42 to address 16 to address 31, an initial setting signal is output due to excessive proximity. AND circuit 16
When the AND circuit 132 outputs the address 23 while the AND circuit 143 outputs the address 0 to address 15, it outputs a write inhibit signal as a pulse just before the proximity. Similarly, the logical product circuit 17 includes the logical product circuit 144
AND circuit 13 during output from address 32 to address 47
If there is an output at addresses 2 to 23, a read-out prohibition signal is output as a pulse because it is just before proximity.
【0059】次に、図3を参照して図1における書込み
停止信号生成回路18および読出し停止信号生成回路1
9の実施の一形態について説明する。Next, referring to FIG. 3, write stop signal generation circuit 18 and read stop signal generation circuit 1 in FIG.
A ninth embodiment will be described.
【0060】図3(A)に示されるように書込み停止信
号生成回路18は256進カウンタ181、論理積回路
182、およびフリップフロップ(以後、FFと呼称す
る)回路183により構成されている。As shown in FIG. 3A, the write stop signal generation circuit 18 is constituted by a 256-base counter 181, an AND circuit 182, and a flip-flop (hereinafter, referred to as FF) circuit 183.
【0061】書込み停止信号生成回路18は、論理積回
路16の出力パルスを受け、256進カウンタ181の
L(Lord)端子に入力すると共に、同時にFF回路18
3のSet端子に入力して回路をセットする。The write stop signal generation circuit 18 receives the output pulse of the AND circuit 16 and inputs the output pulse to the L (Lord) terminal of the 256-base counter 181, and simultaneously, the FF circuit 18
3 is input to the Set terminal to set the circuit.
【0062】論理積回路182は、256進カウンタ1
81の出力を受け、カウンタ値“120”をデコードし
てFF回路183へ出力する。FF回路183は、論理
積回路182の出力であるカウンタ値“120”をRes
et端子に入力し回路をリセットする。この結果、FF回
路183は、書込み停止信号として使用アドレスの25
5番地のほぼ中間値の120クロック幅の信号を出力す
る。The AND circuit 182 has a 256-base counter 1
Upon receiving the output of 81, it decodes the counter value “120” and outputs it to the FF circuit 183. The FF circuit 183 converts the counter value “120” output from the AND circuit 182 into a Res
Input to et terminal to reset the circuit. As a result, the FF circuit 183 uses the used address 25 as a write stop signal.
It outputs a signal having an address of 5 and having a substantially intermediate value of 120 clocks.
【0063】同様に読出し停止信号生成回路19は、論
理積回路17の出力パルスを受け、256進カウンタ1
91のL(Lord)端子に入力すると共に、同時にFF回
路193のSet端子に入力して回路をセットする。Similarly, the read stop signal generation circuit 19 receives the output pulse of the AND circuit 17 and
The signal is input to the L (Lord) terminal 91 and simultaneously to the Set terminal of the FF circuit 193 to set the circuit.
【0064】論理積回路192は、256進カウンタ1
91の出力を受け、カウンタ値“120”をデコードし
てFF回路193へ出力する。FF回路193は、論理
積回路192の出力であるカウンタ値“120”をRes
et端子に入力し回路をリセットする。この結果、FF回
路193は、読出し停止信号として使用アドレスの25
5番地のほぼ中間値の120クロック幅の信号を出力す
る。The AND circuit 192 includes a 256-base counter 1
Receiving the output of 91, the counter value “120” is decoded and output to the FF circuit 193. The FF circuit 193 converts the counter value “120” output from the AND circuit 192 into a Res
Input to et terminal to reset the circuit. As a result, the FF circuit 193 uses the used address 25 as a read stop signal.
It outputs a signal having an address of 5 and having a substantially intermediate value of 120 clocks.
【0065】次に、図4および図5に図1から図3まで
を併せ参照して読出しアドレスデコード部13の論理積
回路132の出力パルスと、書込みアドレスデコード部
14の論理積回路142〜144の出力パルスとの関係
について説明する。Next, referring to FIGS. 1 and 3 in addition to FIGS. 4 and 5, the output pulse of the AND circuit 132 of the read address decode unit 13 and the AND circuits 142 to 144 of the write address decode unit 14 will be described. The relationship with the output pulse is described.
【0066】図4(A)に示されるように、読出しアド
レスデコード部13の論理積回路132は読出しアドレ
スが23番地の際に1パルスを出力する。書込みアドレ
スデコード部14の論理積回路142は、書込みアドレ
スが16番地から31番地までの間に、連続したパルス
を出力する。同様に、論理積回路143,144それぞ
れは、書込アドレスが0番地から15番地まで、32番
地から47番地まで、それぞれの間に、連続したパルス
を出力する。As shown in FIG. 4A, the AND circuit 132 of the read address decoder 13 outputs one pulse when the read address is at address 23. The AND circuit 142 of the write address decoding unit 14 outputs a continuous pulse when the write address is between addresses 16 and 31. Similarly, each of the AND circuits 143 and 144 outputs a continuous pulse between the write addresses 0 to 15 and the addresses 32 to 47.
【0067】そして、初期状態においては、図4(A)
に示されるように、読出しアドレスと書込みアドレスと
の両アドレスの距離差は最大となるように設定されてい
るので、読出しアドレスのパルスと書込みアドレスのパ
ルスとは時間歴に一致することはない。Then, in the initial state, FIG.
As shown in (1), since the distance difference between the read address and the write address is set to be the maximum, the pulse of the read address and the pulse of the write address do not coincide with the time history.
【0068】図4(B)および図5(A),(B)で
は、書込みおよび読出しの各動作が繰り返され、各動作
のクロックの位相差により二つのアドレスの距離差は変
化し、その距離差が設定された基準読出しアドレスの位
置において、距離差“−23”〜“−8”、距離差“−
7”〜“+8”および距離差“+9”〜“+24”のい
ずれかの範囲内になった場合には対応する論理積回路1
5〜17のうちのいずれか一つの論理積回路の二つの入
力が時間的に一致して、一つのパルス信号を出力する。4 (B) and FIGS. 5 (A) and 5 (B), each operation of writing and reading is repeated, and the distance difference between the two addresses changes due to the phase difference of the clock of each operation. At the position of the reference read address where the difference is set, the distance difference “−23” to “−8” and the distance difference “−”
7 ”to“ +8 ”and the distance difference“ +9 ”to“ +24 ”, the corresponding AND circuit 1
Two inputs of any one of the AND circuits 5 to 17 are temporally coincident and output one pulse signal.
【0069】次に、図4(B)に示されるように、読出
しアドレスと書込みアドレスとの距離差“−7”〜“+
8”の16番地から31番地で、論理積回路142から
出力中、30番地で、論理積回路132から23番地の
出力があた場合、論理積回路15は、この時点で一つの
パルスを初期設定信号として出力する。初期設定信号
は、読出しアドレス発生回路11および書込みアドレス
発生回路12を初期設定して読出しアドレスと書込みア
ドレスとの距離差を最大の初期値に戻す。Next, as shown in FIG. 4B, the distance difference between the read address and the write address is "-7" to "+".
When the output from the AND circuit 142 at addresses 16 to 31 of 8 "is output at the address 30 and the address from the AND circuit 132 at address 23, the AND circuit 15 initializes one pulse at this time. The initial setting signal initializes the read address generation circuit 11 and the write address generation circuit 12 to return the distance difference between the read address and the write address to the maximum initial value.
【0070】図5(A)では、読出しアドレスと書込み
アドレスとの距離差“−23”〜“−8”の0番地から
15番地で、論理積回路143から出力中、2番地で、
論理積回路132から23番地の出力があた場合、論理
積回路16は、この時点で一つのパルスを書込み停止信
号生成回路18へ出力する。書込み停止信号生成回路1
8は上述したように、このパルスにより120クロック
分の長さの書込み停止信号を出力する。書込み停止信号
は、書込みアドレス発生回路12に入力し、書込みアド
レスの発生を120クロック分の間、停止する。この結
果、接近した読出しアドレスと書込みアドレスとの距離
差を最大値付近まで引き離すことができる。In FIG. 5A, at the address 0 to 15 of the distance difference “−23” to “−8” between the read address and the write address, and at the output of the AND circuit 143, at the address 2,
When the address of the address 23 is output from the AND circuit 132, the AND circuit 16 outputs one pulse to the write stop signal generation circuit 18 at this time. Write stop signal generation circuit 1
8 outputs a write stop signal having a length of 120 clocks by this pulse as described above. The write stop signal is input to the write address generation circuit 12, and stops the generation of the write address for 120 clocks. As a result, the distance difference between the approaching read address and write address can be separated to near the maximum value.
【0071】図5(B)も同様に、読出しアドレスと書
込みアドレスとの距離差“+9”〜“+24”の32番
地から47番地で、論理積回路144から出力中、33
番地で、論理積回路132から23番地の出力があた場
合、論理積回路17は、この時点で一つのパルスを読出
し停止信号生成回路19へ出力する。読出し停止信号生
成回路19は上述したように、このパルスにより120
クロック分の長さの読出し停止信号を出力する。読出し
停止信号は、読出しアドレス発生回路11に入力し、読
出しアドレスの発生を120クロック分の間、停止す
る。この結果、接近した読出しアドレスと書込みアドレ
スとの距離差を最大値付近まで引き離すことができる。Similarly, FIG. 5 (B) shows that the distance difference between the read address and the write address is from “+9” to “+24” at addresses 32 to 47, and that the output from the AND circuit 144 is 33
At the address, when the output from the AND circuit 132 to the address 23 is received, the AND circuit 17 reads one pulse at this time and outputs it to the stop signal generation circuit 19. As described above, the read stop signal generation circuit 19 generates 120
A read stop signal of a length corresponding to the clock is output. The read stop signal is input to the read address generation circuit 11 and stops the generation of the read address for 120 clocks. As a result, the distance difference between the approaching read address and write address can be separated to near the maximum value.
【0072】上述したように、読出しアドレスに一つの
基準値を設定し、書込みアドレスに幅をもたせて重なり
を検出していたが、逆に書込みアドレスに一つの基準値
を設定し、読出しアドレスに幅をもたせて重なりを検出
してもよい。As described above, one reference value is set for the read address and the overlap is detected by giving the write address a width. Conversely, one reference value is set for the write address and the read address is set for the read address. The overlap may be detected with a certain width.
【0073】上記説明では、機能ブロックを図示して説
明したが、上述したように、論理積回路は別の論理回路
の組み合わせでもよく、機能の分離併合は上記機能を満
たす限り自由であり、上記説明が本発明を限定するもの
ではない。In the above description, the functional blocks are illustrated and described. However, as described above, the logical product circuit may be a combination of other logical circuits, and the function can be freely separated and merged as long as the above function is satisfied. The description is not intended to limit the invention.
【0074】[0074]
【発明の効果】以上説明したように本発明によれば次の
効果を得ることができる。As described above, according to the present invention, the following effects can be obtained.
【0075】第1の効果は、読出しアドレスと書込みア
ドレスとの位相差を検出する論理回路の数が少なく、簡
単な回路で構成できることである。The first effect is that the number of logic circuits for detecting a phase difference between a read address and a write address is small, and a simple circuit can be used.
【0076】その理由は、初期設定信号を生成するため
に必要な論理回路が読出しアドレスと書込みアドレスと
のアドレスデコード部で初期設定範囲および中心の基準
アドレス値、それぞれを出力する二つとこれら出力の一
致を求める一つと合計3個で済むからである。The reason is that a logic circuit necessary for generating the initial setting signal outputs two values, an initial setting range and a center reference address value, in an address decoding unit for a read address and a write address, and the output of these outputs. This is because only one for matching and three in total are required.
【0077】また、第2の効果は、初期設定する機会、
頻度を抑えることができるということである。The second effect is an opportunity for initial setting,
That is, the frequency can be suppressed.
【0078】その理由は、初期設定範囲の両脇に所定幅
の停止制御範囲を設け、読出しアドレスと書込みアドレ
スとの距離差が停止制御範囲に近接した場合、初期設定
範囲まで近接する前に、読出しアドレスまたは書込みア
ドレスの出力を停止して、読出しアドレスと書込みアド
レスとの距離差を所定の最大幅にするからである。The reason is that a stop control range having a predetermined width is provided on both sides of the initial setting range, and when the distance difference between the read address and the write address approaches the stop control range, the stop control range is set before approaching the initial setting range. This is because the output of the read address or the write address is stopped, and the distance difference between the read address and the write address is set to a predetermined maximum width.
【図1】本発明の実施の一形態を示す機能ブロック図で
ある。FIG. 1 is a functional block diagram showing an embodiment of the present invention.
【図2】図1の部分詳細の一実施例を示す回路図であ
る。FIG. 2 is a circuit diagram showing an example of a part of FIG. 1;
【図3】図2と相違する図1の部分の一実施例を示す回
路図である。FIG. 3 is a circuit diagram showing one embodiment of a portion of FIG. 1 which is different from FIG. 2;
【図4】図2の出力関係を説明するタイムチャートであ
る。FIG. 4 is a time chart for explaining an output relationship of FIG. 2;
【図5】図2の出力関係を説明する図4と別の部分のタ
イムチャートである。FIG. 5 is a time chart for explaining the output relationship of FIG. 2 and a portion different from FIG. 4;
【図6】従来の一例を示す機能ブロック図である。FIG. 6 is a functional block diagram showing an example of the related art.
10 2ポートメモリ 11 読出しアドレス発生回路 12 書込みアドレス発生回路 13 読出しアドレスデコード部 14 書込みアドレスデコード部 15〜17、131、142〜144、182、192
論理積回路 18 書込み停止信号生成回路 19 読出し停止信号生成回路 131、141 レジスタ 181、191 256進カウンタ 183、193 フリップフロップ回路(FF回路)Reference Signs List 10 2-port memory 11 Read address generator 12 Write address generator 13 Read address decoder 14 Write address decoder 15-17, 131, 142-144, 182, 192
AND circuit 18 Write stop signal generation circuit 19 Read stop signal generation circuit 131, 141 Register 181, 191 256-base counter 183, 193 Flip-flop circuit (FF circuit)
Claims (4)
のポートから読み出す2ポートメモリを用い、読出しア
ドレスと書込みアドレスとの接近を検出した際に両アド
レスを初期設定することにより補正するエラスティック
ストア回路において、読出しアドレスおよび書込みアド
レスのいずれか一方に基準値アドレスを設定してこれを
検出し出力する一方、他方のアドレス値により前記基準
値アドレスを中心とする所定幅のアドレスの距離差を有
する初期設定アドレス値、およびこの初期設定アドレス
値の両脇外側に隣接して所定の範囲を有する停止制御ア
ドレス値それぞれを設定してこれらを検出し出力し、前
記基準値アドレスの出力を受けた際に前記初期設定アド
レス値の出力を受けている場合には読出しアドレスと書
込みアドレスとを最大距離の初期値に設定する一方、前
記基準値アドレスの出力を受けた際に前記停止制御アド
レス値の出力を受けている場合には所定の制御信号を発
生し、読出しアドレスおよび書込みアドレスのいずれか
一方を停止して所定の距離に設定する制御を行なうアド
レス検出および制御の手段を備えることを特徴とするエ
ラスティックストア回路。The data written to a first port is transmitted to a second port.
In an elastic store circuit that uses a two-port memory that reads from a port and detects an approach between a read address and a write address and initializes both addresses to make corrections, a reference is made to either the read address or the write address. A value address is set, detected and output, while the other address value has an initial address value having a distance difference of an address of a predetermined width centered on the reference address, and both sides of the initial address value. If adjacent the outer set each stop control address value having a predetermined range outputs detect these, and receives the output of the initial setting address value upon receiving an output of said reference value address Sets the read address and the write address to the initial value of the maximum distance, while the reference value address Wherein generating a predetermined control signal when receiving the output of the stop control address value upon receiving the output, performs control of setting a predetermined distance to stop one of the read and write addresses An elastic store circuit comprising address detection and control means.
のポートから読み出す2ポートメモリを用い、読出しア
ドレスと書込みアドレスとの接近を検出した際に両アド
レスを初期設定することにより補正するエラスティック
ストア回路において、 読出しアドレスおよび書込みアドレスのいずれか一方の
アドレスを構成する構成ビットを取り込んで格納する第
1のレジスタとこのレジスタに格納されたデータを取り
出して前記基準値アドレスと一致した際にパルス出力す
る第1の論理積回路とを有する第1のアドレスデコード
部と、この第1のアドレスデコード部で設定したアドレ
スに対して他方のアドレスを構成する構成ビットを取り
込んで格納する第2のレジスタと前記基準値アドレスを
中央値とする初期設定アドレス値を前記第2のレジスタ
に格納された上位ビットにより生成出力する第2の論理
積回路とを有する第2のアドレスデコード部と、前記基
準値アドレスの出力を前記第1のアドレスデコード部か
ら受けた際に前記初期設定アドレス値の出力を前記第2
のアドレスデコード部から受けている場合、読出しアド
レスと書込みアドレスとを最大距離の初期値に設定する
初期設定手段とを備え、 前記第2のアドレスデコード部は、更に前記初期設定ア
ドレス値の両脇外側に所定範囲を形成する二つの停止制
御アドレス値それぞれを、前記第2のレジスタに格納さ
れた上位ビットにより生成出力する二つの前記論理積回
路と併せて三つの第2の論理積回路とを備え、かつ、前
記第2のアドレスデコード部から初期設定アドレス値の
両脇外側に隣接する停止制御アドレス値で生成出力した
所定の制御信号を受け、前記2ポートメモリを構成する
アドレス数のカウンタと、このカウンタのほぼ1/2を
検出する第4の論理積回路と、前記制御信号を受けた
後、第4の論理積回路の検出出力を受けるまで書込みま
たは読出しを停止する停止信号を送出するセットリセッ
ト付きFF(フリップフロップ)回路とを有する制御信
号発生手段を追加して備え ることを特徴とするエラステ
ィックストア回路。2. The data written to a first port is transmitted to a second port.
In an elastic store circuit that uses a two-port memory that reads from a port and detects when an approach between a read address and a write address is detected and corrects both addresses by initial setting, either one of the read address and the write address A first address having a first register for taking in and storing the constituent bits constituting the first and a first AND circuit for taking out the data stored in the register and outputting a pulse when the data coincides with the reference value address a decoding unit, the initial setting address value of the second register and the previous SL reference value address for storing captures configuration bits constituting the other address to the first address the address set by the decode unit and the median From the upper bits stored in the second register. A second address decoding unit having an AND circuit, and receiving the output of the reference value address from the first address decoding unit and outputting the output of the initial setting address value to the second address decoding unit.
If received from the address decode portion, and an initial setting means for setting a read address and a write address to an initial value of the maximum distance, the second address decode unit is further the initial setting A
Two stop systems that form a predetermined range on both sides outside the dress value
Control address values are stored in the second register.
AND operation of the two logical products generated and output by the selected upper bits
Three second AND circuits in conjunction with the path and
From the second address decoding unit, the initial set address value
Generated and output with stop control address values adjacent on both sides outside
Receiving a predetermined control signal to configure the two-port memory
The counter of the number of addresses and almost half of this counter
A fourth AND circuit for detecting, and receiving the control signal
Then, write until the detection output of the fourth AND circuit is received.
Or a reset signal that sends a stop signal to stop reading
Control signal having an FF (flip-flop) circuit with
Elastic store circuit, characterized in Rukoto provided by adding No. generating means.
のポートから読み出す2ポートメモリを用い、読出しア
ドレスと書込みアドレスとの接近を検出した際に両アド
レスを初期設定することにより補正するエラスティック
ストア回路において、 読出しアドレスおよび書込みアドレスのいずれか一方に
基準値アドレスを設定してこれを検出し出力する第1の
アドレスデコード部と、この第1のアドレスデコード部
で設定したアドレスに対して他方のアドレス値により前
記基準値アドレスを中心とする所定幅のアドレスの距離
差を有する初期設定アドレス値、およびこの初期設定ア
ドレス値の両脇外側に隣接して所定の範囲を有する停止
制御アドレス値それぞれを検出し出力する第2のアドレ
スデコード部と、前記基準値アドレスの出力を前記第1
のアドレスデコード部から受けた際に前記初期設定アド
レス値の出力を前記第2のアドレスデコード部から受け
ている場合、読出しアドレスと書込みアドレスとを最大
距離の初期値に設定する初期設定手段と、前記基準値ア
ドレスの出力を前記第1のアドレスデコード部から受け
た際に前記停止制御アドレス値の出力を前記第2のアド
レスデコード部から受けている場合、所定の制御信号を
発生し、読出しアドレスおよび書込みアドレスのいずれ
か一方を移動して所定の距離に設定する制御を行なう制
御信号発生手段とを備え、 前記第2のアドレスデコード部は、読出しアドレスおよ
び書込みアドレスのいず れか一方のアドレスを構成する
構成ビットを取り込んで格納する第2のレジスタと、前
記基準値アドレスを中央値とする初期設定アドレス値、
およびこの初期設定アドレス値の両脇外側に所定範囲を
形成する二つの停止制御アドレス値それぞれを、前記第
2のレジスタに格納された上位ビットにより生成出力す
る三つの第2の論理積回路とを備え ることを特徴とする
エラスティックストア回路。3. The data written to a first port is transferred to a second port.
In an elastic store circuit that uses a two-port memory that reads from a port and detects the approach between a read address and a write address and initializes both addresses to make corrections, a reference is made to either the read address or the write address. A first address decoding unit for setting, detecting and outputting a value address, and a predetermined width centered on the reference value address by the other address value with respect to the address set by the first address decoding unit. A second address decoding unit that detects and outputs an initial setting address value having a distance difference between addresses and a stop control address value having a predetermined range adjacent to both sides outside the initial setting address value; The output of the value address is
Initial setting means for setting a read address and a write address to an initial value of a maximum distance when receiving the output of the initial setting address value from the second address decoding unit when receiving the output of the initial setting address value from the address decoding unit; When receiving the output of the reference value address from the first address decoding unit and receiving the output of the stop control address value from the second address decoding unit, a predetermined control signal is generated, and the read address is read. and by moving one of the write address and a control signal generating means for controlling to set a predetermined distance, the second address decode portion, Oyo read address
Constitute the Izu Re or the other of the address of fine writing address
A second register for capturing and storing the configuration bits;
Initial address value with the reference value address as the median value,
And a predetermined range on both sides outside this initial setting address value.
Each of the two stop control address values to be formed is
2 is generated and output based on the upper bits stored in the second register.
Elastic store circuit, characterized in Rukoto a three second AND circuit that.
のポートから読み出す2ポートメモリを用い、読出しア
ドレスと書込みアドレスとの接近を検出した際に両アド
レスを初期設定することにより補正するエラスティック
ストア回路において、 読出しアドレスおよび書込みアドレスのいずれか一方に
基準値アドレスを設定してこれを検出し出力する第1の
アドレスデコード部と、この第1のアドレスデコード部
で設定したアドレスに対して他方のアドレス値により前
記基準値アドレスを中心とする所定幅のアドレスの距離
差を有する初期設定アドレス値、およびこの初期設定ア
ドレス値の両脇外側に隣接して所定の範囲を有する停止
制御アドレス値それぞれを検出し出力する第2のアドレ
スデコード部と、前記基準値アドレスの出力を前記第1
のアドレスデコード部から受けた際に前記初期設定アド
レス値の出力を前記第2のアドレスデコード部から受け
ている場合、読出しアドレスと書込みアドレスとを最大
距離の初期値に設定する初期設定手段と、前記基準値ア
ドレスの出力を前記第1のアドレスデコード部から受け
た際に前記停止制御アドレス値の出力を前記第2のアド
レスデコード部から受けている場合、所定の制御信号を
発生し、読出しアドレスおよび書込みアドレスのいずれ
か一方を移動して所定の距離に設定する制御を行なう制
御信号発生手段とを備え、 前記制御信号発生手段は、前記第2のアドレスデコード
部から初期設定アドレス値の両脇外側に隣接する停止制
御アドレス値で生成出力した所定の制御信号を受け、前
記2ポートメモリを構成するアドレス数のカウンタと、
このカウンタのほぼ1/2を検出する第4の論理積回路
と、前記制御信号を受けた後、第4の論理積回路の検出
出力を受けるまで書込みまたは読出しを停止する停止信
号を送出するセットリセット付きFF回路とを備え るこ
とを特徴とするエラスティックストア回路。4. The data written to a first port is transmitted to a second port.
In an elastic store circuit that uses a two-port memory that reads from a port and detects the approach between a read address and a write address and initializes both addresses to make corrections, a reference is made to either the read address or the write address. A first address decoding unit for setting, detecting and outputting a value address, and a predetermined width centered on the reference value address by the other address value with respect to the address set by the first address decoding unit. A second address decoding unit that detects and outputs an initial setting address value having a distance difference between addresses and a stop control address value having a predetermined range adjacent to both sides outside the initial setting address value; The output of the value address is
Initial setting means for setting a read address and a write address to an initial value of a maximum distance when receiving the output of the initial setting address value from the second address decoding unit when receiving the output of the initial setting address value from the address decoding unit; When receiving the output of the reference value address from the first address decoding unit and receiving the output of the stop control address value from the second address decoding unit, a predetermined control signal is generated, and the read address is read. And control signal generating means for performing control for moving one of the write addresses and setting the write address to a predetermined distance , wherein the control signal generating means comprises a second address decoder.
Stop system adjacent to both sides of the initial setting address value from the unit
Receives a predetermined control signal generated and output with the
A counter for the number of addresses constituting the two-port memory;
A fourth AND circuit for detecting approximately 1/2 of this counter
Detecting the fourth AND circuit after receiving the control signal
Stop signal that stops writing or reading until an output is received
Elastic store circuit, characterized in Rukoto a set-reset with FF circuit for delivering items.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8216219A JP2927346B2 (en) | 1996-08-16 | 1996-08-16 | Elastic store circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8216219A JP2927346B2 (en) | 1996-08-16 | 1996-08-16 | Elastic store circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH1065743A JPH1065743A (en) | 1998-03-06 |
JP2927346B2 true JP2927346B2 (en) | 1999-07-28 |
Family
ID=16685151
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP8216219A Expired - Lifetime JP2927346B2 (en) | 1996-08-16 | 1996-08-16 | Elastic store circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2927346B2 (en) |
-
1996
- 1996-08-16 JP JP8216219A patent/JP2927346B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JPH1065743A (en) | 1998-03-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH10228449A (en) | Semiconductor device system and semiconductor device | |
JPH01503342A (en) | Data input device with digital phase lock loop | |
US5594743A (en) | Fifo buffer system having an error detection and correction device | |
JPH04142649A (en) | Memory device | |
JP2927346B2 (en) | Elastic store circuit | |
JPH07182247A (en) | First-in first-out buffer system with error detection and correction unit | |
JP2881773B2 (en) | Error correction device | |
US5961616A (en) | Data transfer system | |
US5959703A (en) | Apparatus and method for removing error data decoding delay in a DTV | |
US6128693A (en) | Bank pointer comparator and address generator for a DVD-ROM system | |
US6201487B1 (en) | Error detecting circuit in a line length decoding system | |
JP2007293911A (en) | Semiconductor device | |
JP3093583B2 (en) | Memory control circuit | |
JP2550925B2 (en) | Elastic store circuit | |
JP3989099B2 (en) | Phase adjustment circuit | |
JP3097672B2 (en) | Memory control circuit | |
JP3598883B2 (en) | Elastic store circuit | |
JP3246096B2 (en) | Self-diagnosis device for digital equipment | |
JP2001325790A (en) | Elastic store circuit | |
JP3108328B2 (en) | Synchronous playback circuit | |
JP2819955B2 (en) | In-device error monitoring circuit | |
JPH02214348A (en) | Access anomaly detection device | |
JPH0669773A (en) | Logic circuit | |
JPH04326232A (en) | Data transmission system | |
JPS6260329A (en) | Digital signal detection system |
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: 19990414 |