JPH0656997B2 - Erasable buffer circuit - Google Patents
Erasable buffer circuitInfo
- Publication number
- JPH0656997B2 JPH0656997B2 JP61285782A JP28578286A JPH0656997B2 JP H0656997 B2 JPH0656997 B2 JP H0656997B2 JP 61285782 A JP61285782 A JP 61285782A JP 28578286 A JP28578286 A JP 28578286A JP H0656997 B2 JPH0656997 B2 JP H0656997B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- read
- start flag
- write
- circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
- Time-Division Multiplex Systems (AREA)
Description
【発明の詳細な説明】 (産業上の利用分野) 本発明は、ディジタルデータ通信系において、送受信デ
ータ間に速度差や位相差がある場合にこれらの速度差等
を吸収して送受信データを相互に結合するためのエラス
ティックバッファ回路に関する。The present invention relates to a digital data communication system in which, when there is a speed difference or a phase difference between transmitted and received data, the speed difference and the like are absorbed to transmit and receive the transmitted and received data. To an elastic buffer circuit for coupling to.
(従来の技術) 一般にエラスティックバッファ回路は、ディジタルデー
タを送受する各ステーションにおいて、速度差や位相差
がある送受信データを結合する際に情報ビットの重複ま
たは脱落が生じないように適当なビット数の情報を一次
的に記憶するために使用される。そしてこのエラスティ
ックバッファ回路としては、複数の記憶素子を並列に設
け、受信データの情報ビットを到来順に前記記憶素子に
対してサイクリックに書き込む一方、書き込みクロック
とは独立した読み出しクロックにて前記記憶素子から情
報ビットを読み出し、送信データとして送り出す形式の
ものが主として用いられている。(Prior Art) Generally, an elastic buffer circuit has an appropriate number of bits in each station that transmits and receives digital data so that duplication or loss of information bits does not occur when transmitting and receiving data having a speed difference or a phase difference. It is used to temporarily store the information of. As the elastic buffer circuit, a plurality of storage elements are provided in parallel and information bits of received data are cyclically written to the storage elements in the order of arrival, while the storage is performed by a read clock independent of a write clock. A type in which information bits are read from an element and sent as transmission data is mainly used.
(発明が解決しようとする問題点) しかるに、従来のこの種のエラスティックバッファ回路
では、送受信データに対応する記憶素子への書き込みデ
ータおよび読み出しデータ相互間の位相差を検出する位
相比較器や、書き込みまたは読み出しのための制御回路
が必要であり、回路構成が複雑かつ高価になるという欠
点があった。(Problems to be solved by the invention) However, in the conventional elastic buffer circuit of this kind, a phase comparator for detecting a phase difference between write data and read data to a storage element corresponding to transmission / reception data, A control circuit for writing or reading is required, and the circuit configuration is complicated and expensive.
更に、このため従来のエラスティックバッファ回路は通
信系を構成するすべてのステーションのうち制御局のみ
に用いられることが多く、分散形の制御用ローカルネッ
トワーク等において多数のステーションに配置するには
不適当である等の問題があった。Further, therefore, the conventional elastic buffer circuit is often used only for the control station among all the stations constituting the communication system, and is not suitable for being arranged in a large number of stations in a distributed control local network or the like. There was a problem such as being.
本発明は上記の問題点を解決するべく提案されたもの
で、その目的とするところは、位相比較器等の複雑な回
路を不要として回路構成の簡略化を図り、しかも種々の
形態のディジタル伝送システムへの適用を可能にしたエ
ラスティックバッファ回路を提供することにある。The present invention has been proposed in order to solve the above problems, and an object of the present invention is to simplify the circuit configuration by eliminating a complicated circuit such as a phase comparator, and to perform digital transmission of various forms. It is to provide an elastic buffer circuit that can be applied to a system.
(問題点を解決するための手段) 上記目的を達成するため、本発明は、書き込みクロック
に同期させて入力データを遅延させてなる書き込みデー
タを、書き込みクロックに同期させてそのカウント値に
より選択された複数の記憶素子の何れかにビットの到来
順にそれぞれ一時的に書き込むと共に、読み出しクロッ
クのカウント値により選択された複数の記憶素子からビ
ットの到来順に読み出したデータを出力データとするエ
ラスティックバッファ回路において、入力データは、記
憶素子の容量に等しいビット数の約数の周期で入力デー
タのフレーム相互間に挿入されるタイムフィルと、フレ
ームの開始フラグとを有し、この開始フラグを検出して
その時点での書き込みクロックのカウント値をレジスタ
に待避させる開始フラグ検出回路と、開始フラグの検出
後一定の期間、記憶素子の出力をホールドするラッチ回
路と、このラッチ回路でのホールド時間の経過によりレ
ジスタ内の書き込みクロックのカウント値を読み出しク
ロックのカウント値としてロードするホールド時間カウ
ンタとを備えたことを特徴とする。(Means for Solving Problems) In order to achieve the above object, according to the present invention, write data obtained by delaying input data in synchronization with a write clock is selected in synchronization with the write clock according to its count value. An elastic buffer circuit that temporarily writes data in any of a plurality of storage elements in the order of arrival of bits and uses as output data the data read in the order of arrival of bits from the plurality of storage elements selected by the count value of the read clock. In, the input data has a time fill inserted between the frames of the input data at a period of a divisor of the number of bits equal to the capacity of the storage element, and a start flag of the frame. A start flag detection circuit that saves the count value of the write clock at that point in the register and an open flag detection circuit. A latch circuit that holds the output of the storage element for a certain period after detecting the start flag, and a hold time counter that loads the count value of the write clock in the register as the count value of the read clock when the hold time in this latch circuit elapses. It is characterized by having and.
(作用) 本発明では、入力データにおけるフレーム内の開始フラ
グを検出することにより、それまでに各記憶素子に書き
込まれたタイムフィルのビットパターンにラッチ回路に
一定期間ホールドされる。このホールド時間の経過によ
り、開始フラグの検出時点での書き込みクロックのカウ
ント数が読み出しカウンタにロードされ、以後、読み出
しクロックによってカウントアップされる毎に、スルー
状態となったラッチ回路を介して各記憶素子から入力デ
ータのフレーム内の各ビットが到来順に読み出される。(Operation) In the present invention, by detecting the start flag in the frame of the input data, the bit pattern of the time fill written in each storage element is held in the latch circuit for a certain period. With the lapse of this hold time, the count number of the write clock at the time when the start flag is detected is loaded into the read counter, and thereafter, each time the count is incremented by the read clock, each memory is stored via the latch circuit in the through state. Each bit in the frame of input data is read from the element in the order of arrival.
すなわち、開始フラグの検出から始まる一連の動作によ
り、読み出しのビット位置を初期設定するものである。That is, the read bit position is initialized by a series of operations starting from the detection of the start flag.
(実施例) 以下、図に沿って本発明の一実施例を説明する。この実
施例はバッファ容量をnビットで構成したものである。
まず第1図において、1は入力データ(受信データ)Di
が加えられる遅延回路であり、この遅延回路1では後述
するn個のフリップフロップ21〜2nに対する書き込み
データDwを生成するために書き込みクロックCKwに同
期して入力データDiが遅延される。そして、遅延回路
1の出力はn個のフリップフロップ21〜22,……,2
nのD入力端子にそれぞれ加えられている。(Example) An example of the present invention will be described below with reference to the drawings. In this embodiment, the buffer capacity is composed of n bits.
First, in FIG. 1, 1 is input data (received data) Di
In the delay circuit 1, the input data Di is delayed in synchronization with the write clock CKw to generate write data Dw for n flip-flops 2 1 to 2 n described later. The output of the delay circuit 1 is n flip-flops 2 1 to 2 2 , ..., 2
It is added to each D input terminal of n .
一方、受信データから得た書き込みクロックCKwは書
き込みカウンタ3に入力され、書き込みカウンタ3のカ
ウント値出力はnビットのデコーダ4に入力されてい
る。また、書き込みクロックCKwはフリップフロップ
21〜2nの入力側に設けられたn個のアンドゲート51
〜5nの各一方の入力端子にそれぞれ加えられ、これら
の各他方の入力端子にはデコーダ4の出力がそれぞれ加
えられている。そして、アンドゲート51〜5nの各出力
端子は、フリップフロップ21〜2nのクロック入力端子
にそれぞれ接続され、フリップフロップ21〜2nのQ出
力端子はラッチ回路6を介してデータセレクタ7の入力
側にそれぞれ接続されており、このデータセレクタ7か
ら出力データ(送信データ)Doが出力されるようにな
っている。On the other hand, the write clock CKw obtained from the received data is input to the write counter 3, and the count value output of the write counter 3 is input to the n-bit decoder 4. In addition, the write clock CKw is the n AND gates 5 1 provided on the input side of the flip-flops 2 1 to 2 n.
.About.5 n respectively, and the output of the decoder 4 is applied to each of the other input terminals. Then, the output terminals of the AND gates 5 1 to 5 n are respectively connected to the clock input terminal of the flip-flop 2 1 to 2 n, Q output terminal of flip-flop 2 1 to 2 n via the latch circuit 6 data The data selector 7 is connected to the input side of the selector 7, respectively, and the output data (transmission data) Do is output from the data selector 7.
更に、入力データDiは開始フラグ検出回路8に入力さ
れており、この開始フラグ検出回路8からはラッチ信号
S1およびホールド信号S2が出力される。なお、ラッチ
信号S1は書き込みカウンタ3の出力側に設けられたレ
ジスタ9に入力され、また、ホールド信号S2はホール
ド時間カウンタ10およびラッチ回路6のイネーブル端子
ENに入力されている。Further, the input data Di is input to the start flag detection circuit 8, and the start flag detection circuit 8 outputs the latch signal S 1 and the hold signal S 2 . The latch signal S 1 is input to the register 9 provided on the output side of the write counter 3, and the hold signal S 2 is input to the hold time counter 10 and the enable terminal EN of the latch circuit 6.
ここで、ラッチ回路6は、そのイネーブル入力が「L」
(または「H」)の期間中はフリップフロップ21〜2nから
の入力データををそのまま通過させるスルー状態、逆に
イネーブル入力が「H」(または「H」)の期間中は前記入力
データを保持するホールド状態となるものである。Here, the latch circuit 6 has an enable input of “L”.
(Or "H"), the through state in which the input data from the flip-flops 2 1 to 2 n is passed as it is, and conversely, when the enable input is "H" (or "H"), the input data is input. Is held.
ホールド時間カウンタ10の出力としてのロード信号S3
は開始フラグ検出回路8および読み出しカウンタ11に加
えられ、この読み出しカウンタ11には前記書き込みクロ
ックCKwとは独立した読み出しクロックCKrとレジス
タ9の出力とが加えられていると共に、読み出しカウン
タ11の出力はデータセレクタ7に加えられている。Load signal S 3 as output of hold time counter 10
Is added to the start flag detection circuit 8 and the read counter 11. The read counter 11 is supplied with the read clock CKr independent of the write clock CKw and the output of the register 9, and the output of the read counter 11 is It is added to the data selector 7.
次に、この実施例の基本的な動作を説明する。なお、ラ
ッチ回路6は通常、スルー状態であるものとする。Next, the basic operation of this embodiment will be described. The latch circuit 6 is normally in the through state.
まず、受信時の動作を説明すると、送信側ステーション
から送られた入力データDiは、遅延回路1を介して書
き込みクロックCKwに同期した書き込みデータDwとな
る。一方、書き込みカウンタ3は書き込みクロックCK
wをカウントし、そのカウント値出力はデコーダ4によ
りデコードされて出力される。この出力は、n個の出力
端子のうち何れかが「H」となるもので、かかる出力端子
に対応するアンドゲートを介してフリップフロップ21
〜2nのうちの何れかが選択される。すなわち、選択さ
れたフリップフロップは、そのクロック入力端子へのア
ンドゲートの出力により、書き込みクロックCKwに同
期して書き込みデータDwを書き込むこととなる。First, the operation at the time of reception will be described. The input data Di sent from the transmitting station becomes the write data Dw synchronized with the write clock CKw via the delay circuit 1. On the other hand, the write counter 3 uses the write clock CK.
The w is counted, and the count value output is decoded by the decoder 4 and output. This output is one in which any one of the n output terminals becomes “H”, and the flip-flop 2 1 is connected via the AND gate corresponding to the output terminal.
~ 2 n is selected. That is, the selected flip-flop writes the write data Dw in synchronization with the write clock CKw by the output of the AND gate to its clock input terminal.
また、書き込みカウンタ3は書き込みクロックCKwに
同期してカウントアップするため、書き込みデータDw
はそのデータビットの到来順にフリップフロップ…,2
1,22,…,2n,21,…の順番でサイクリックに書き
込まれる。Further, since the write counter 3 counts up in synchronization with the write clock CKw, the write data Dw
Are flip-flops in the order of arrival of the data bits ..., 2
Cyclic writing is performed in the order of 1 , 2 2 , ..., 2 n , 2 1 ,.
次いで、送信時においては、読み出しカウンタ11が読み
出しクロックCKrをカウントしてそのカウント値出力
をデータセレクタ7に送出する。データセレクタ7では
前記カウント値出力に応じて入力端子を選択し、スルー
状態のラッチ回路6を介してフリップフロップ21〜2n
のうちの何れかの出力を出力データDoとして他のステ
ーションに送信する。読み出しカウンタ11は読み出しク
ロックCKrに同期してカウントアップするため、デー
タはフリップフロップ…,21,22,…,2n,21,…
の順番で1ビットずつサイクリックに読み出されること
となる。Next, at the time of transmission, the read counter 11 counts the read clock CKr and sends the count value output to the data selector 7. The data selector 7 selects an input terminal according to the count value output, and the flip-flops 2 1 to 2 n via the latch circuit 6 in the through state.
One of the outputs is sent as output data Do to another station. Since the read counter 11 counts up in synchronization with the read clock CKr, the data is flip-flops ..., 2 1 , 2 2 , ..., 2 n , 2 1 ,.
In this order, the bits are cyclically read bit by bit.
しかして、この実施例においては第2図に示すように入
力データDiのフレーム相互間、すなわち有効なデータ
がない期間にこれを埋め合わせる信号(以下、「タイムフ
ィル」という)を送信側のステーションが送信するものと
する。このタイムフィルは、本発明にかかるバッファ回
路の容量(ビット数)nの約数に等しいビット数で周期を
もつビットパターンを有しており、例えばn=8ビット
とするとタイムフィルの周期は1ビット,2ビット,4
ビット,8ビットの何れかであればよい。Therefore, in this embodiment, as shown in FIG. 2, the transmitting station transmits a signal (hereinafter, referred to as "time fill") to compensate for this between the frames of the input data Di, that is, during the period when there is no valid data. Shall be sent. This time fill has a bit pattern having a cycle with a bit number equal to a divisor of the capacity (bit number) n of the buffer circuit according to the present invention. For example, if n = 8 bits, the time fill cycle is 1 Bit, 2 bit, 4
Either bit or 8 bits may be used.
タイムフィルの周期をこのように設定することにより、
入力データDiのフレーム相互間において各フリップフ
ロップ21〜2nに書き込まれるデータは、各フリップフ
ロップ21〜2nについてそれぞれ一定したものとなる。
つまり、先の例で言えばタイムフィルの周期が8ビット
の約数である限り、例えばフリップフロップ21の出力
は常に「H」または「L」で一定であり、以下フリップフロ
ップ22〜2nについても同様となる。従って、書き込み
カウンタ3と読み出しカウンタ11のカウント値が互いに
一致せず無関係であっても、入力データDi中のタイム
フィルのビットパターンが正確に読み出された出力デー
タDoを得ることができる。By setting the time fill cycle in this way,
The data written in the flip-flops 2 1 to 2 n between the frames of the input data Di is constant for each of the flip-flops 2 1 to 2 n .
That is, in the above example, as long as the time-fill cycle is a divisor of 8 bits, for example, the output of the flip-flop 2 1 is always "H" or "L", and the flip-flops 2 2 to 2 The same applies to n . Therefore, even if the count values of the write counter 3 and the read counter 11 do not match and are irrelevant, it is possible to obtain the output data Do in which the bit pattern of the time fill in the input data Di is accurately read.
このようにしてタイムフィルが読み出された後、データ
ビットに先立ってフレームの開始を示すmビット長の特
定のビットパターン(以下、開始フラグという)が、第2
図の時刻t1において開始フラグ検出回路8により検出
される。これにより、開始フラグ検出回路8からラッチ
信号S1が出力され、レジスタ9ではこのラッチ信号S1
を受けてその時点での書き込みカウンタ3のカウント値
kを取り込む。After the time fill is read in this way, a specific bit pattern of m-bit length (hereinafter, referred to as a start flag) indicating the start of the frame is preceded by the second data bit.
It is detected by the start flag detection circuit 8 at time t 1 in the figure. As a result, the start flag detection circuit 8 outputs the latch signal S 1 , and the register 9 outputs the latch signal S 1
In response to this, the count value k of the write counter 3 at that time is fetched.
一方、フリップフロップ21〜2nへの書き込みデータD
wは、遅延回路1を介して入力データDiをmビット遅延
させたものであるとすると、時刻t1においては、フリ
ップフロップ21〜2nのうちk番目のフリップフロップ
に図示する如く開始フラグの先頭ビットF1が書き込ま
れる。On the other hand, write data D to the flip-flops 2 1 to 2 n
If w is the input data Di delayed by m bits through the delay circuit 1, at time t 1 , the start flag is shown in the k-th flip-flop among the flip-flops 2 1 to 2 n. The first bit F 1 of the is written.
また、開始フラグ検出回路8はラッチ信号S1を出力す
ると同時にホールド信号S2を出力し、このホールド信
号S2はラッチ回路6のイネーブル端子ENに入力され
る。これによってラッチ回路6はホールド状態となり、
開始フラグ検出以前にの各フリップフロップ21〜2nの
出力、すなわちタイムフィルのビットパターンが保持さ
れることになる。よって、この時点では読み出しカウン
タ11のカウント値は書き込みカウンタ3のカウント値を
無関係であるが、タイムフィルのビットパターンはその
まま継続して読み出され、かつ出力される。Further, the start flag detecting circuit 8 outputs the latch signal S 1 and at the same time, outputs the hold signal S 2 , and the hold signal S 2 is input to the enable terminal EN of the latch circuit 6. As a result, the latch circuit 6 enters the hold state,
Start flag detection prior to the output of each flip-flop 2 1 to 2 n, that is so that the bit pattern of the time fill is maintained. Therefore, although the count value of the read counter 11 is irrelevant to the count value of the write counter 3 at this time, the bit pattern of the time fill is continuously read and output as it is.
ホールド時間カウンタ10はホールド信号S2がアクティ
ブ(ホールド)状態である時間をカウントするものであ
り、いま、書き込みクロックCKwと読み出しクロック
CKrとの速度の大小関係が不定であるという仮定のも
とで、ホールド時間カウンタ10においてホールド信号S
2が非アクティブ状態となるまでのカウント値が(n/
2)−1であり、かつこの時(第2図の時刻t1′)にロー
ド信号S3を読み出しカウンタ11に出力するものとす
る。このロード信号S3により、レジスタ9に待避され
ていた書き込みカウンタ3の時刻t1におけるカウント
値が、第2図の時刻t2′において読み出しカウンタ11
にセットされる。The hold time counter 10 counts the time during which the hold signal S 2 is in the active (hold) state, and it is now assumed that the speed relationship between the write clock CKw and the read clock CKr is indefinite. , Hold signal S in hold time counter 10
The count value until 2 becomes inactive is (n /
2) -1, and at this time (time t 1 ′ in FIG. 2), the load signal S 3 is output to the read counter 11. Due to this load signal S 3 , the count value of the write counter 3 saved in the register 9 at the time t 1 is changed to the read counter 11 at the time t 2 ′ in FIG.
Is set to.
ここで、ロード信号S3は開始フラグ検出回路8にも加
えられており、開始フラグ検出回路8はこのロード信号
S3によりリセット状態となって時刻t2′以後、ホール
ド信号S3が非アクティブ状態となる。従って、ラッチ
回路6はそれまでのホールド状態からスルー状態へと切
り換わり、時刻t2′ではk番号のフリップフロップか
ら開始フラグの先頭ビットF1が読み出される。Here, the load signal S 3 is also applied to the start flag detection circuit 8, and the start flag detection circuit 8 is reset by the load signal S 3 and the hold signal S 3 is inactive after time t 2 ′. It becomes a state. Therefore, the latch circuit 6 switches from the hold state until then to the through state, and at time t 2 ′, the first bit F 1 of the start flag is read from the flip-flop of the number k.
以後、読み出しカウンタ11のカウントアップにより、
(k+1)番目から順にフリップフロップ…,2n,21,
22,……とサイクリックに入力データDiが読み出され
るため、出力データDoはこの入力データDiと同じビッ
トパターンとなる。この状態は書き込みクロックCKw
と読み出しクロックCKrとの速度差により書き込みカ
ウンタ3のカウント値と読み出しカウンタ11のカウント
値とが一致するまで継続する。従って、この期間内に最
大長のフレームの読み出しを完了できるような必要最小
限のバッファ容量nを選定すれば、必要最小限のハード
ウェアにて本発明にかかるエラスティックバッファ回路
を構成することができる。After that, when the read counter 11 counts up,
Flip-flops from the (k + 1) th order ..., 2 n , 2 1 ,
Since the input data Di is cyclically read as 2 2 , ..., The output data Do has the same bit pattern as the input data Di. This state is write clock CKw
It continues until the count value of the write counter 3 and the count value of the read counter 11 match due to the speed difference between the read clock CKr and the read clock CKr. Therefore, the elastic buffer circuit according to the present invention can be configured with the minimum necessary hardware by selecting the minimum necessary buffer capacity n so that the reading of the maximum length frame can be completed within this period. it can.
なお、前述したように書き込みクロックCKwおよび読
み出しクロックCKrの速度の大小関係が不定の場合に
は、読み出しの開始時点(第2図の時刻t2′)における
書き込みカウンタ3に対する読み出しカウンタ11の遅れ
をn/2ビットとした時にバッファ容量nを最小にする
ことができる。また、書き込みクロックCKwの速度が
読み出しクロックCKrの速度よりも速い場合には上記
の読み出しカウンタ11の遅れを小さくし、逆に読み出し
クロックCKrの速度が書き込みクロックCKwの速度よ
りも速い場合には読み出しカウンタ11の遅れを大きくす
ればバッファ容量nを最小にすることができる。When the magnitude relationship between the speeds of the write clock CKw and the read clock CKr is indefinite as described above, the delay of the read counter 11 with respect to the write counter 3 at the start of reading (time t 2 ′ in FIG. 2 ) is delayed. The buffer capacity n can be minimized when n / 2 bits are set. Further, when the speed of the write clock CKw is faster than the speed of the read clock CKr, the delay of the read counter 11 is reduced, and conversely, when the speed of the read clock CKr is faster than the speed of the write clock CKw, the read is performed. The buffer capacity n can be minimized by increasing the delay of the counter 11.
この読み出しカウンタ11の遅れは、ホールド時間カウン
タ13におけるカウント数の設定により任意に変更するこ
とができる。The delay of the read counter 11 can be arbitrarily changed by setting the count number in the hold time counter 13.
次いで、この実施例をトークン(送信権)方式のリング状
データウェイに適用した場合について、第3図を参照し
つつ説明する。図において、100,200,………,900は
伝送路20を介してデータを送受信するステーションであ
り、これらの各ステーション100,200,………,900は
すべて同一の構成となっている。このため、便宜的にス
テーション100についてその構成を説明すると、101はリ
タイミングや復号化を行なう受信回路、102は本発明に
かかるエラスティックバッファ回路、103はエラスティ
ックバッファ回路102の読み出しクロックCKr、換言す
れば後述する送信回路105の送信クロックを供給するマ
スタクロック発振器、104はエラスティックバッファ回
路102の出力データと内部送信データとの何れかを選択
する選択回路、105は符号化等を送なう送信回路、CK
w,Di,Doは、それぞれ前記したようにエラスティッ
クバッファ回路102に対する書き込みクロック,入力デ
ータ,出力データ、Do′は内部送信データ、Do″は選
択回路104にて選択される送信データ(すなわち出力デー
タDoまたは内部送信データDo′)を示している。Next, a case where this embodiment is applied to a token (transmission right) type ring-shaped data way will be described with reference to FIG. In the figure, reference numerals 100, 200, ..., 900 denote stations for transmitting and receiving data via the transmission path 20, and these stations 100, 200, ..., 900 all have the same configuration. Therefore, for convenience, the configuration of the station 100 will be described. 101 is a receiving circuit that performs retiming and decoding, 102 is an elastic buffer circuit according to the present invention, 103 is a read clock CKr of the elastic buffer circuit 102, In other words, a master clock oscillator that supplies the transmission clock of the transmission circuit 105 described later, 104 is a selection circuit that selects either the output data of the elastic buffer circuit 102 or the internal transmission data, and 105 does not send encoding or the like. Transmitter circuit, CK
As described above, w, Di, and Do are the write clock for the elastic buffer circuit 102, the input data and the output data, Do 'is the internal transmission data, and Do "is the transmission data selected by the selection circuit 104 (that is, the output). Data Do or internal transmission data Do ') are shown.
ここで、選択回路104はステーション100の内部のマイク
ロプロセッサ(図示せず)等により送信データDo″の選
択制御を行なうものとする。Here, it is assumed that the selection circuit 104 controls selection of the transmission data Do ″ by a microprocessor (not shown) or the like inside the station 100.
なお、他のステーション200,900において、202,902は
それぞれ本発明にかかるエラスティックバッファ回路を
示す。In the other stations 200 and 900, 202 and 902 respectively represent elastic buffer circuits according to the present invention.
いま、ステーション100のみが送信権を有していて選択
回路104により内部送信データDo′が選択され、他のす
べてのステーション200,………,900ではエラスティッ
クバッファ回路202,………,902からの出力を選択して
送信データDo″として出力するものとすると、ステー
ション100における内部送信データDo′は送信データD
o″としてステーション200,………,900の順でデータ
ウェイを一巡する。この際、各ステーション200,……
…,900のエラスティックバッファ回路202,………,90
2における前述の動作により、受信データと送信データ
との間の速度差および位相差を除去することができる。
従って、データビットの重複や脱落のない高信頼性のデ
ータウェイを構築でき、また伝送路の距離を一層延長す
ることができる。Now, only the station 100 has the transmission right, the internal transmission data Do 'is selected by the selection circuit 104, and the elastic buffer circuits 202, ..., 902 in all the other stations 200, ..., 900. If the output from the station is selected and output as the transmission data Do ″, the internal transmission data Do ′ in the station 100 is the transmission data D ″.
As o ″, the data way is cycled in the order of stations 200, ..., 900. At this time, each station 200 ,.
…, 900 elastic buffer circuits 202,…, 90
By the above-described operation in 2, the speed difference and the phase difference between the reception data and the transmission data can be removed.
Therefore, it is possible to construct a highly reliable data way without duplication or loss of data bits, and it is possible to further extend the distance of the transmission path.
(発明の効果) 以上のように本発明によれば、入力データにおける開始
フラグを検出し、それから一定の期間はそれまでに送ら
れたタイムフィルをホールドしてその後に開始フラグ以
後のデータを読み出すものであり、開始フラグの検出に
よって読み出しビット位置の初期設定を行なうようにし
たため、従来のように書き込みデータと読み出しデータ
との位相比較器等を用いることなく、開始フラグ検出回
路やホールド時間カウンタ等の簡単な構成によってエラ
スティックバッファ回路を実現することができる。従っ
て、コストの低減を図ることができ、分散形ネットワー
ク等における各ステーションへの配置も可能となる。(Effect of the Invention) As described above, according to the present invention, the start flag in the input data is detected, the time fill sent until then is held for a certain period, and then the data after the start flag is read. Since the read bit position is initialized by detecting the start flag, a start flag detection circuit, a hold time counter, etc. can be used without using a phase comparator for write data and read data as in the past. An elastic buffer circuit can be realized with a simple configuration of. Therefore, it is possible to reduce the cost, and it is possible to arrange the stations in each station in a distributed network or the like.
加えて、パルススタッフィング方式のような入出力デー
タに対する制御を行なわないため、多くの種類のディジ
タル伝送システムに適用できる等の効果がある。In addition, since the input / output data is not controlled like the pulse stuffing method, it can be applied to many kinds of digital transmission systems.
第1図は本発明の一実施例を示すブロック図、第2図は
動作を示すタイミングチャート、第3図は第1図の実施
例の応用例を示すデータウェイの構成図である。 1……遅延回路、21〜2n……フリップフロップ 3……書き込みカウンタ、4……デコーダ 51〜5n……アンドゲート、6……ラッチ回路 7……データセレクタ、8……開始フラグ検出回路 9……レジスタ、10……ホールド時間カウンタ 11……読み出しカウンタ CKw……書き込みクロック CKr……読み出しクロック Di……入力データ、Do……出力データ Dw……書き込みデータ、S1……ラッチ信号 S2……ホールド信号、S3……ロード信号FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a timing chart showing an operation, and FIG. 3 is a configuration diagram of a data way showing an application example of the embodiment of FIG. 1 ...... delay circuit, 2 1 to 2 n ...... flip-flop 3 ...... write counter, 4 ...... decoder 5 1 to 5 n ...... AND gate, 6 ...... latch circuit 7 ...... data selector, 8 ...... start Flag detection circuit 9 …… Register, 10 …… Hold time counter 11 …… Read counter CKw …… Write clock CKr …… Read clock Di …… Input data, Do …… Output data Dw …… Write data, S 1 …… Latch signal S 2 …… Hold signal, S 3 …… Load signal
Claims (1)
を遅延させてなる書き込みデータを、前記書き込みクロ
ックに同期させてそのカウント値により選択された複数
の記憶素子の何れかにビットの到来順にそれぞれ一時的
に書き込むと共に、読み出しクロックのカウント値によ
り選択された前記複数の記憶素子から前記ビットの到来
順に読み出したデータを出力データとするエラスティッ
クバッファ回路において、 前記入力データは、前記記憶素子の容量に等しいビット
数の約数の周期で前記入力データのフレーム相互間に挿
入されるタイムフィルと、フレームの開始フラグとを有
し、この開始フラグを検出してその時点での前記書き込
みクロックのカウント値をレジスタに待避させる開始フ
ラグ検出回路と、前記開始フラグの検出後一定の期間、
前記記憶素子の出力をホールドするラッチ回路と、この
ラッチ回路でのホールド時間の経過により前記レジスタ
内の前記書き込みクロックのカウント値を読み出しクロ
ックのカウント値としてロードするホールド時間カウン
タとを備えたことを特徴とするエラスティックバッファ
回路。1. Write data, which is obtained by delaying input data in synchronization with a write clock, is temporarily stored in any of a plurality of storage elements selected by the count value in synchronization with the write clock in the order of arrival of bits. In the elastic buffer circuit that outputs the data read from the plurality of storage elements selected by the count value of the read clock in the order of arrival of the bits as the output data, while the input data is the capacity of the storage element. It has a time fill inserted between the frames of the input data at a period of a divisor of an equal number of bits, and a start flag of the frame, and when this start flag is detected, the count value of the write clock at that time point. Start flag detection circuit that saves the start flag to the register and a fixed value after the start flag is detected. Period of
A latch circuit that holds the output of the storage element; and a hold time counter that loads the count value of the write clock in the register as the read clock count value when the hold time in the latch circuit elapses. Characteristic elastic buffer circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61285782A JPH0656997B2 (en) | 1986-11-29 | 1986-11-29 | Erasable buffer circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61285782A JPH0656997B2 (en) | 1986-11-29 | 1986-11-29 | Erasable buffer circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS63138828A JPS63138828A (en) | 1988-06-10 |
| JPH0656997B2 true JPH0656997B2 (en) | 1994-07-27 |
Family
ID=17695996
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61285782A Expired - Fee Related JPH0656997B2 (en) | 1986-11-29 | 1986-11-29 | Erasable buffer circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0656997B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5101203A (en) * | 1990-06-29 | 1992-03-31 | International Business Machines Corporation | Digital data regeneration and deserialization circuits |
| JP2005101771A (en) | 2003-09-22 | 2005-04-14 | Matsushita Electric Ind Co Ltd | Clock transfer circuit and method |
-
1986
- 1986-11-29 JP JP61285782A patent/JPH0656997B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS63138828A (en) | 1988-06-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3156813B2 (en) | Buffer control circuit | |
| US4056851A (en) | Elastic buffer for serial data | |
| US4945548A (en) | Method and apparatus for detecting impending overflow and/or underrun of elasticity buffer | |
| JPH055711Y2 (en) | ||
| JP2000099193A (en) | Device and method for synchronization, and interface circuit | |
| KR880009520A (en) | Digital data memory system | |
| CA1090888A (en) | Data buffer retiming circuit | |
| JPH0664564B2 (en) | Data interface device and data processing method | |
| US5321727A (en) | Signal phasing arrangement in a system for doubling the digital channel | |
| US5179664A (en) | Symbol-wide elasticity buffer with a read-only section and a read-write section | |
| JP2641276B2 (en) | Two-stage synchronizer | |
| US4964142A (en) | Receiver synchronization in encoder/decoder | |
| JPH0656997B2 (en) | Erasable buffer circuit | |
| EP0530030B1 (en) | Circuit for detecting a synchronizing signal in frame synchronized data transmission | |
| EP1122737A1 (en) | Circuit for managing the transfer of data streams from a plurality of sources within a system | |
| US5825834A (en) | Fast response system implementing a sampling clock for extracting stable clock information from a serial data stream with defined jitter characeristics and method therefor | |
| US5444658A (en) | Elastic store memory circuit | |
| US6362671B2 (en) | Device for the regeneration of a clock signal | |
| US7358868B2 (en) | Method and circuit system for the synchronous transmission of digital signals through a bus | |
| RU2043652C1 (en) | Device for interface between computer and communication channel | |
| US20070130395A1 (en) | Bus processing apparatus | |
| US5083291A (en) | Transceiving process for a digital telephone line | |
| US20020099969A1 (en) | Data input and output device using timer function | |
| KR0172459B1 (en) | Clock playback method and device | |
| JPH04152728A (en) | Format conversion circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |