JPH04199924A - Delay correction method for plural channels - Google Patents

Delay correction method for plural channels

Info

Publication number
JPH04199924A
JPH04199924A JP2331661A JP33166190A JPH04199924A JP H04199924 A JPH04199924 A JP H04199924A JP 2331661 A JP2331661 A JP 2331661A JP 33166190 A JP33166190 A JP 33166190A JP H04199924 A JPH04199924 A JP H04199924A
Authority
JP
Japan
Prior art keywords
delay
channel
correction
data
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.)
Granted
Application number
JP2331661A
Other languages
Japanese (ja)
Other versions
JPH0656989B2 (en
Inventor
Takayuki Kobayashi
孝之 小林
Kazuyoshi Shomura
正村 和由
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.)
GRAPHICS COMMUN TECHNOL KK
Original Assignee
GRAPHICS COMMUN TECHNOL KK
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 GRAPHICS COMMUN TECHNOL KK filed Critical GRAPHICS COMMUN TECHNOL KK
Priority to JP2331661A priority Critical patent/JPH0656989B2/en
Publication of JPH04199924A publication Critical patent/JPH04199924A/en
Publication of JPH0656989B2 publication Critical patent/JPH0656989B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Time-Division Multiplex Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To eliminate the unnecessary use of memories by setting respective memories of channels to be one common memory and controlling accesses from respective correction circuits to the memory by means of a control signal from an access allocation circuit lest they collide with each other by means of time division. CONSTITUTION:The memory access allocation circuit 400 is provided for correcting delay by sharing the common memory 200 with respective channels and respective delay correction circuits 101-103 time-divisionally use the common memory 200 by the control. The memory access allocation circuit 400 outputs enable signals E1-E3 allowing the access of the respective delay correction circuits 101-103 for the common memory 200 and a control signal R/W designating reading (R)/writing (W) within the allowable time to the respective delay correction circuits 101-103 for control. Thus, the time difference of the plural channels can be corrected by using one memory 200 in common. Thus, the unnecessary use of the memories is eliminated.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は複数チャネルの遅延補正方法に係り、特にディ
ジタル通信ンステムにおいて複数チャネルを用いて送受
されるディジタル信号の間の時間差の補正に適した遅延
補正方法に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a multi-channel delay correction method, and is particularly suitable for correcting time differences between digital signals transmitted and received using a plurality of channels in a digital communication system. This invention relates to a delay correction method.

[従来の技術] l5DNデイジタル交換網等のディノタル通信ンステム
では、例えばステレオ音声を送るのに、各チャネルの信
号に対して別々の送信チャネルが使われる。この時、各
チャネルは受信点までの間にどういう伝送経路をとるか
は判らず、互いに異なった経路で送られるのが普通であ
る。この場合、受信点では受は取った各チャネル信号の
間の時間差がもとのステレオ音声のときのものと異なっ
てしまうから、各チャネル間の時間差を補正する必要が
ある。
[Prior Art] In a digital communication system such as an I5DN digital switching network, a separate transmission channel is used for each channel signal, for example, to transmit stereo sound. At this time, it is not known which transmission route each channel will take to reach the receiving point, and the signals are normally sent along different routes. In this case, at the receiving point, the time difference between the received channel signals will be different from the original stereo sound, so it is necessary to correct the time difference between the channels.

このための遅延補正方法の従来例を第2図に示す。同図
では3つのチャネルの間の補正を示しており、各チャネ
ル用の遅延補正回路110〜130はクロックCL及び
オクテツトクロック(クロックCL8個に1個のクロッ
ク)QCに同期して動作し、それぞれのチャネルからの
入力データDi。1〜D1n3を監視し、フレームの先
頭を示すフレーム同期信号を検出する。そして互いに連
絡線300を介して他チャネルの同期信号も取り込むこ
とによって自分のチャネルがどれだけの遅延\豐を必要
としているかを判断する。これと同時に7各遅延補正回
路110−130は、入力データD:n1−Di。3を
それぞれのチャネル用に設けられたメモリ210〜23
0へ書き込み指令WR,アドレスADを出力して書き込
む。そして上記遅延量だけそれぞれ遅れたタイミングで
読み出し指令RDを出力し、メモリから読みだしたデー
タを出力データD。utl〜Dout3としてそれぞれ
出力する。
A conventional example of a delay correction method for this purpose is shown in FIG. The figure shows correction between three channels, and the delay correction circuits 110 to 130 for each channel operate in synchronization with the clock CL and the octet clock (one clock for every eight clocks CL) QC. Input data Di from each channel. 1 to D1n3 and detect a frame synchronization signal indicating the beginning of the frame. Then, by mutually taking in the synchronization signals of other channels via the communication line 300, it is determined how much delay \fung is required for the own channel. At the same time, each of the seven delay correction circuits 110-130 receives input data D:n1-Di. 3 to memories 210 to 23 provided for each channel.
Output and write write command WR and address AD to 0. Then, the read command RD is output at a timing delayed by the above delay amount, and the data read from the memory is output data D. They are output as utl to Dout3, respectively.

[発明が解決しようとする課題] 上記従来方式では、各チャネル毎にバッファメモリを配
置するため、回路が大きくなってしまう問題点があった
。と(に最近のメモリは容量の大きなものになっている
が、各チャネルで使うのはそのご(一部で無駄が太き(
なる。
[Problems to be Solved by the Invention] The conventional method described above has a problem in that the circuit becomes large because a buffer memory is arranged for each channel. (Recently, memory has become large in capacity, but each channel uses only that amount (some of it is wasted (
Become.

[課題を解決するための手段] 上記の目的を達成するために、本発明においては、ビッ
ト単位で同期した複数個のディジタルデータ各々を入力
データとした入力データ対応の補正回路と、該補正回路
で共通に使用するために各補正回路用のエリアを割り付
けられた共有メモリと、上記補正回路の各々が衝突せず
に上記共有メモリへアクセスするようにするための制御
用信号を出力するアクセス割当回路とを設けると共に、
上記補正回路の各々において、当該回路への入力データ
のフレーム同期信号の検出と該検出信号の他の補正回路
への連絡、及び該連絡によって得た各入力データのフレ
ーム同期信号の間の時間差の検出を行い、続いて各補正
回路において、上記入力データに、該データを上記制御
用信号に従って上記共有メモリの該当エリアへ書き込ん
だ後読みだすという動作によって、上記制御用信号のも
とで許された時間単位で可能な時間差の遅延を与え、さ
らに該遅延で補正しきれない残留時間差をデータのビッ
ト単位で補正することによって上記各入力データのフレ
ーム同期信号が同一時刻に上記各補正回路から出力され
るようにした。
[Means for Solving the Problem] In order to achieve the above object, the present invention provides a correction circuit corresponding to input data whose input data is a plurality of pieces of digital data synchronized in units of bits, and the correction circuit. A shared memory to which an area for each correction circuit is allocated for common use, and an access assignment for outputting a control signal to allow each of the correction circuits to access the shared memory without conflict. In addition to providing a circuit,
Each of the above correction circuits detects a frame synchronization signal of input data to the circuit, communicates the detection signal to another correction circuit, and calculates the time difference between the frame synchronization signals of each input data obtained by the communication. Detection is performed, and then in each correction circuit, the input data is written to the corresponding area of the shared memory according to the control signal, and then read out, so that the input data is determined as permissible under the control signal. By providing a possible time difference delay in units of time, and further correcting the residual time difference that cannot be corrected by the delay in units of data bits, the frame synchronization signals of each input data are output from each correction circuit at the same time. I made it so that it would be done.

[作用] 各チャネル間の時間差の検出とこの時間差のメモリを用
いた補正の方法は、原理的には従来と同じである。本発
明で各チャネルのメモリを1つの共をメモリとしたので
、それへの各補正回路からのアクセスを時分割で衝突し
ないように行えばよい。このための制御がアクセス割当
回路からの制御用信号で行われており、メモリを共用し
たことで不要なメモリ使用をなくして経済化がはかれる
[Operation] The method of detecting the time difference between each channel and correcting this time difference using a memory is basically the same as the conventional method. In the present invention, since the memory of each channel is a single memory, accesses to it from each correction circuit can be performed in a time-sharing manner to avoid collisions. Control for this is performed using control signals from the access allocation circuit, and by sharing the memory, unnecessary memory usage is eliminated and economy is achieved.

[実施例] 以下、本発明を実施例により詳細に説明する。[Example] Hereinafter, the present invention will be explained in detail with reference to Examples.

第1図は本発明の方法を適用した遅延補正システムの一
実施例を示すブロック図で、第2図と同じく3チヤネル
の場合である。本実施例では共有メモリ200を各チャ
ネルで共有することによって遅延補正を行うもので、そ
のためにメモリアクセス割当回路400を設け、その制
御によって各遅延補正回路101〜103は共有メモリ
200を時分割に使用する。メモリアクセス割当回路4
00は上記制御のために、各遅延補正回路101〜10
3の共有メモリ200へのアクセスを許可するイネーブ
ル信号El−E3と、その許可時間内の読み出しくR)
/書き込み(W)を指定する制開信号R/Wとを各遅延
補正回路101−103へ出力する。
FIG. 1 is a block diagram showing an embodiment of a delay correction system to which the method of the present invention is applied, and is a three-channel case as in FIG. 2. In this embodiment, delay correction is performed by sharing the shared memory 200 with each channel. For this purpose, a memory access allocation circuit 400 is provided, and under the control of the memory access allocation circuit 400, each delay correction circuit 101 to 103 uses the shared memory 200 in a time-sharing manner. use. Memory access allocation circuit 4
00 indicates each delay correction circuit 101 to 10 for the above control.
Enable signal El-E3 that permits access to the shared memory 200 of No. 3 and readout within the permitted time (R)
/A brake signal R/W specifying write (W) is output to each delay correction circuit 101-103.

第3図は遅延補正回路101〜103の1つ(いづれも
同一構成)の構成例を示すブロック図である。本回路で
はフレーム同期検出回路700は入力データD1゜の先
頭位置(同期信号)を検出して検出信号FDo、、lt
を出力する。遅延量算出回路800は、上記検出信号F
DO−tと他の遅延補正回路で検出されて連絡線300
経由で送られてきた検出信号FDII+とから当該入力
データD inに与えるべき遅延量を算出する。ここで
本実施例では、共有メモリ200に対しては、データ8
ビツトを1ワードとして、 1つのアドレスに1ワード
づつのアクセスが行われるものとする。そして上記遅延
量はaワード+bビット(a:  ワード遅延L  b
=ビット遅延11  ともに整数でa≧0.8>b≧0
)という形の量で算出されるものとする。
FIG. 3 is a block diagram showing an example of the configuration of one of the delay correction circuits 101 to 103 (all having the same configuration). In this circuit, the frame synchronization detection circuit 700 detects the leading position (synchronization signal) of the input data D1° and generates the detection signal FDo,,lt.
Output. The delay amount calculation circuit 800 receives the detection signal F.
Detected by DO-t and other delay correction circuits and connected to the communication line 300
The amount of delay to be given to the input data D in is calculated based on the detection signal FDII+ sent via the input data D in. In this embodiment, data 8 is stored in the shared memory 200.
Assume that a bit is one word, and one address is accessed one word at a time. The above delay amount is a word + b bit (a: word delay L b
=Bit delay 11 Both are integers, a≧0.8>b≧0
) shall be calculated as a quantity of the form.

第3図のデータ制御回路500の構成を第4図に示す。FIG. 4 shows the configuration of the data control circuit 500 in FIG. 3.

この回路は入力データを共有メモリへ転送し、また共有
メモリのデータを出力データとして取り出すもので、ま
ず入力データD:n(ンリアルデータ)をS/P変換器
501でパラレルデータに変換してレジスタ502へ格
納する。この格納されたデータ(lワード)はイネーブ
ル信号Eがオンとなりかつ制御信号R/Wが書き込み指
定をし、さらに後述のアドレス制御回路600からアド
レスが指定されたときに双方向バッファ503を経由し
て共有メモリ200の指定アドレスへ書き込まれる。ま
たイネーブル信号Eがオン、制御信号R/Wが読み出し
を指示したときには、アドレス制御回路600から出力
されたアドレスのデータ1ワードが共有メモリ200か
ら読み出され、双方向バッファ503経由でレジスタ5
04へ格納される。このデータはP/S変換器505で
ンリアルデータに変換され、セレクタ506で先に計算
された所要遅延量の内のビット遅延iLbに相当するビ
ット数だけの遅延を与えられ、出力データD outと
して出力される。
This circuit transfers input data to the shared memory and retrieves the data from the shared memory as output data. First, input data D:n (real data) is converted to parallel data by the S/P converter 501. Store in register 502. This stored data (L word) is passed through the bidirectional buffer 503 when the enable signal E is turned on, the control signal R/W specifies writing, and an address is specified from the address control circuit 600, which will be described later. and written to the specified address in the shared memory 200. Further, when the enable signal E is on and the control signal R/W instructs reading, one word of data at the address output from the address control circuit 600 is read from the shared memory 200 and sent to the register 500 via the bidirectional buffer 503.
04. This data is converted into real data by a P/S converter 505, and is given a delay equal to the number of bits corresponding to the bit delay iLb of the required delay amount calculated previously by a selector 506, and the output data D out is output as

第5図は、第3図のアドレス制御回路600の構成を示
すブロック図で、データ制御回路500による共有メモ
リ200アクセス時のアドレスを岸をデータに与える制
御が行われる。また第6図は共有メモリ200のデータ
構成を示すもので、第1図の遅延補正回路101〜10
3の各々に対応するチャネルをチャネル1〜3と呼ぶと
、共有メモリ200にはこの各チャネル用のエリアが確
保されている。その各エリアの先頭アドレスをオフセッ
トOF81〜0FS3、各エリアの大きさをAR1−A
R3とすると、第5図のレジスタ601には該当する大
きさARが、レジスタ604には該当するオフセットO
FSが格納されている。
FIG. 5 is a block diagram showing the configuration of the address control circuit 600 of FIG. 3, in which the data control circuit 500 performs control to give an address to data when accessing the shared memory 200. Further, FIG. 6 shows the data structure of the shared memory 200, and shows the data structure of the shared memory 200.
The channels corresponding to each channel 3 are called channels 1 to 3, and an area for each channel is reserved in the shared memory 200. Offset the start address of each area from OF81 to 0FS3, and set the size of each area to AR1-A.
R3, the register 601 in FIG. 5 has the corresponding size AR, and the register 604 has the corresponding offset O.
FS is stored.

アドレス制御回路600の動作は次の通りである。ます
カウンタ603はオクテツトクロックOCをカウントす
る。そのカウント値Xはレジスタ601に格納されたチ
ャネルの大きさARと比較器602で比較され、X=A
Rになったときにクリア信号が出力されてカウンタ60
3はリセットされx=0にもどる。従ってカウンタ60
3出力のカウント値Xにレジスタ604のオフセットO
FSを加算器605で加算したアドレスxWは、クロッ
クoCを次々カウントしたとき当該チャネルに割り当て
られた共有メモリ上のエリア内をすを指定し、かつイネ
ーブル信号Eがオンのとき(これはクロックOC1つご
とに、他チャネルと重ならないようにメモリアクセス割
当回路400から与えられる)、セレクタ610、スリ
ーステートバッファ611経由で共有メモリ200へ送
られる。一方、減算器606はカウンタ出力Xから遅延
量算出回路800(第3図)で算出されたワード遅延!
aを差し引き、同時にその結果が正または0なら“l”
、負なら“0パとなる信号Cを出力する。減算器606
の出力はセレクタ608へ送られ、また加算器607で
レジスタ601の値ARと加算されてセレクタ608へ
送られる。
The operation of address control circuit 600 is as follows. A counter 603 counts the octet clock OC. The count value X is compared with the channel size AR stored in the register 601 by a comparator 602, and X=A
When it becomes R, a clear signal is output and the counter 60
3 is reset and returns to x=0. Therefore, the counter 60
Offset O of register 604 to count value X of 3 outputs
The address xW obtained by adding FS by the adder 605 specifies the area in the shared memory allocated to the channel when clock oC is counted one after another, and when enable signal E is on (this is clock OC1 (given from memory access allocation circuit 400 so as not to overlap with other channels), is sent to shared memory 200 via selector 610 and three-state buffer 611. On the other hand, the subtracter 606 uses the word delay calculated by the delay amount calculation circuit 800 (FIG. 3) from the counter output X!
Subtract a, and if the result is positive or 0, “l”
, if it is negative, outputs a signal C which becomes "0". Subtractor 606
The output of is sent to the selector 608, and added to the value AR of the register 601 by the adder 607 and sent to the selector 608.

セレクタ608は信号Cが“l”のときは減算器80B
の出力を、 “0″のときは加算器607の出力を選択
する。カウンタ出力Xは当該チャネルに1りり当てられ
たエリアのオフセットを基準とした相対アドレスを示し
ているから、減算器606出力が正または0のとき(C
=“1″)は、この出力アドレスは同じエリア内にあり
、アドレスXWで共有メモリ200に書き込まれたワー
ドよりもaオクテツトクロツタ前に書き込まれたワード
の相対アドレスを指している。また減算器606出力が
負のとき(C=“0”)は、共有メモリへの書き込みは
各エリアでサイクリックに行われているから、減算器出
力に当該エリアの大きさARを加えた加算器607出力
がやはりアドレスxWに書き込まれたワードよりもaオ
クテツトクロック前に書き込まれたワードを指している
。但しワード遅延1aは常にエリアの大きさARよりも
小さくなるように各エリアの大きさが設定されていると
する。従ってセレクタ608は常にアドレスxWのワー
ドよりもaオクテツトクロック前に当該エリアに書き込
まれたワードの、 オフセットを基準とした相対アドレ
スを示しているから、これにオフセットOFSを加算器
609で加えたアドレスXRは、常にアドレスXWのワ
ードよりaワード前に書き込まれたデータのアドレスで
あり、これはアドレスxWへの書き込みと同じオクテツ
トクロックで信号R/Wがリードを指示しているときに
、セレクタ610.  スリステートバッファ611を
介して共有メモリ200へ与えられる。
The selector 608 is the subtracter 80B when the signal C is “L”.
When the output is "0", the output of the adder 607 is selected. The counter output
="1") indicates that this output address is in the same area and is the relative address of a word written a octet clock before the word written to shared memory 200 at address XW. Furthermore, when the output of the subtractor 606 is negative (C="0"), since writing to the shared memory is performed cyclically in each area, the sum of the subtracter output and the size AR of the area is The output of device 607 again points to a word written a octet clock before the word written to address xW. However, it is assumed that the size of each area is set so that the word delay 1a is always smaller than the area size AR. Therefore, the selector 608 always indicates the relative address based on the offset of the word written in the area a octet clock before the word at address xW, so the adder 609 adds the offset OFS to this. Address XR is always the address of data written a word before the word at address Selector 610. It is applied to the shared memory 200 via the three-state buffer 611.

従って本アクセス制御回路は、あるオクテツトクロック
のサイクルでアドレスxWに1ワード書き込み、aワー
ド前に書き込んだアドレスXRのワードを読み出すこと
で、aワードの遅延を当該チャネルのデータに与えるこ
とができる。
Therefore, this access control circuit can apply a delay of a word to the data of the channel by writing one word to address xW in a certain octet clock cycle and reading the word at address XR written a word before. .

以上で第1図の実施例の構成と各回路の動作を述べたが
、次に本実施例の全体の動作を第7図のタイムチャート
を用いて説明する。まず第1図のメモリアクセス割当回
路400の出力するイネーブル信号E1〜E3は、第7
図に示したようにオクテツトクロックOCの一周期を三
等分して順次オン(ハイレベル、以下同様)となる信号
で、これが排他的にオンすることで各遅延補正回路10
1〜103による共有メモリアクセスの衝突が排除され
ている。そして各イネーブル信号の1つのオン期間には
、メモリアクセス割当回路400がらの制御信号R/W
は書き込みWl  読み出しRが1回づつオンする。従
って各遅延補正回路101〜103は、 1オクテツト
クロツタの間に1回づつ、共有メモリ200への書き込
み(W)及び読み出しくR)を行うように制御される。
The configuration of the embodiment shown in FIG. 1 and the operation of each circuit have been described above. Next, the overall operation of this embodiment will be explained using the time chart shown in FIG. 7. First, the enable signals E1 to E3 output from the memory access allocation circuit 400 in FIG.
As shown in the figure, this is a signal that divides one cycle of the octet clock OC into three equal parts and turns on (high level, the same applies hereafter) in sequence.When this signal turns on exclusively, each delay correction circuit 10
1 to 103 are eliminated. During one ON period of each enable signal, the control signal R/W from the memory access allocation circuit 400 is
Write Wl and read R are turned on once each. Therefore, each of the delay correction circuits 101 to 103 is controlled to write (W) and read (R) to the shared memory 200 once during one octet clock.

次に各チャネルの入力データDi、1〜D +、3が第
7図にその一部を示したように、時間的にずれて入力さ
れたとする。ここで、入力データの1ますは1ビツトを
示し、その中の数字o1  ±1、・9参はフレームの
先頭(フレーム同期信号)の番号をOとしたときの相対
的ビット位置を示す番号である。第7図の例では入力デ
ータD、。■は、入力データD:n2より2ワード+1
ビツト(=17ビツト)遅れており、入力データD:n
3より7ビツト遅れている。第3図で示した遅延量算出
回路800は、これら3つのチャネルで検出された同期
信号を取り込んで、自チャネルが一番遅れているとき遅
延;=0を出力し、そうでないときは−番遅れているチ
ャネルとの差を遅延量として出力する。従って第7図の
場合、補正回路101ではワード遅延fit aq  
ビット遅延Wbともに0、補正回路102ではa=2、
b=i、補正回路103ではa ”−OSb = 7が
遅延量算出回路800により算出される。そうするとこ
のとき補正回路1O11つまりチャネルlのアドレス制
御回路では、ワード遅延!a=Oであるので、同一オク
テツトクロックにおいては第5図の書き込みアドレスX
Wと読み出しアドレスXRは同一となる。オクテツトク
ロックOCの周期工ではともにn−3、周期りではとも
にn−2、・・・というアドレスで共有メモリ200を
アクセスする。ここでこれらのアドレスが第6図のチャ
ネル1のエリア内にあることはいうまでもない。一方、
補正回路102、つまりチャネル2のアクセス制御回路
では、ワード遅延量a=2であるがら、同−オクテツト
クロックでは書き込みアドレスxwよりも読み出しアド
レスXRが常に2小さい。第7図のアドレスAD2はこ
れを示している。
Next, it is assumed that the input data Di, 1 to D +, 3 of each channel are inputted with a time lag as shown in part in FIG. Here, 1 box of input data indicates 1 bit, and the number o1 ±1, .9 in the input data is a number indicating the relative bit position when the number at the beginning of the frame (frame synchronization signal) is O. be. In the example of FIG. 7, the input data D,. ■ is input data D: 2 words + 1 from n2
bit (=17 bits) late, input data D:n
It is 7 bits behind 3. The delay amount calculation circuit 800 shown in FIG. 3 takes in the synchronization signals detected in these three channels, and outputs a delay = 0 when its own channel is the most delayed, and a - number when it is not. Outputs the difference with the delayed channel as the delay amount. Therefore, in the case of FIG. 7, the correction circuit 101 has a word delay fit aq
Bit delay Wb is both 0, a=2 in correction circuit 102,
b=i, and in the correction circuit 103, a''-OSb=7 is calculated by the delay amount calculation circuit 800.At this time, in the correction circuit 1O11, that is, the address control circuit of channel l, word delay!a=O. At the same octet clock, write address X in Figure 5
W and read address XR are the same. The shared memory 200 is accessed using an address n-3 for each cycle of the octet clock OC, n-2 for each cycle, and so on. It goes without saying that these addresses are within the area of channel 1 in FIG. on the other hand,
In the correction circuit 102, that is, the access control circuit of channel 2, although the word delay amount a=2, the read address XR is always 2 smaller than the write address xw at the same octet clock. Address AD2 in FIG. 7 indicates this.

以上のようにアドレスが与えられたときのデータ制御回
路500の動作を見ると、第7図のオクテツトクロック
OCの周期■に入力された入力データDIolの一2〜
5番目の8ビツト(フレーム同期信号を含む1ワード)
は、その直後のオクテツトクロックの周期■の立ち上が
りで第4図レジスタ502から双方向バッファ503ヘ
セツトされ(パラレルデータ)、同じ周期■のイネーブ
ル信号E1と書き込み信号Wにより共有メモリ200の
n番地へ書き込まれる。そしてその書き込み直後の読み
出し信号Rによってすぐ読み出され、レジスタ504に
セットされる。このワードは次の周期■のオクテツトク
ロックによりレジスタ504から読み出され、P/S変
換器505でシリアルデータに変換されて、丁度周期V
内の時間にデータJ。utlとして出力される。その後
セレクタ506によるビット遅延1bの遅延が行われる
が、チャネル1ではb=oであるからチャネル1の出力
D0utlはJ6utlと同じ位相にある。一方、チャ
ネル2の周期Iに入力されたフレーム同期信号を含む一
1〜6番目の8ビツト=1ワードは、周期■のイネーブ
ル信号E2がオンの時の書き込み信号Wによって共有メ
モリ200のアドレスmへ書き込まれる。これが読み出
されるのは、アドレス制御回路で読み出しアドレスXR
が2ワード遅らされることにより、読み出しのアドレス
XRがmとなる周期■のときであり、これがデータ制御
回路のP/S変換器505の出力J0ut2として現れ
るのは上記読み出しの次の周期■である。そしてこれが
セレクタ506でビット遅延1b=1ビツトだけ遅らさ
れてチャネル2出力り。ut2となる。
Looking at the operation of the data control circuit 500 when addresses are given as described above, we can see that the input data DIol input in the cycle 2 of the octet clock OC in FIG.
5th 8 bits (1 word including frame synchronization signal)
is set from the register 502 in FIG. 4 to the bidirectional buffer 503 (parallel data) at the rising edge of the octet clock cycle (2) immediately thereafter, and is transferred to address n of the shared memory 200 by the enable signal E1 and write signal W of the same cycle (2). written. Then, it is read out immediately by the read signal R immediately after the write and is set in the register 504. This word is read out from the register 504 by the octet clock of the next cycle (■), is converted into serial data by the P/S converter 505, and is converted into serial data at exactly the cycle V
Data J at the time within. Output as utl. Thereafter, a delay of bit delay 1b is performed by the selector 506, but since b=o in channel 1, the output D0utl of channel 1 is in the same phase as J6utl. On the other hand, the 1st to 6th 8 bits = 1 word including the frame synchronization signal input in period I of channel 2 are written to the address m of the shared memory 200 by the write signal W when the enable signal E2 in period 2 is on. written to. This is read out by the address control circuit at read address XR.
is delayed by 2 words, so that the read address XR becomes m in the cycle ■, and this appears as the output J0ut2 of the P/S converter 505 of the data control circuit in the next cycle ■ of the above read. It is. Then, this is delayed by bit delay 1b=1 bit by selector 506 and outputted from channel 2. It becomes ut2.

こうしてチャネル1.2の出力り。−tll 2のフレ
ーム同期信号は同一クロックのタイミングに揃って出力
される。第7図ではチャネル3については図示を省略し
たが、動作は全く同様である。
Thus, the output of channels 1.2. -tll 2 frame synchronization signals are output at the same clock timing. Although channel 3 is not shown in FIG. 7, its operation is exactly the same.

本実施例によれば、例えば複数チャネルのステレオ信号
の各チャネルが異なる伝送経路で送信されて時間差が生
じたときに、それら各チャネル間の時間差を確実に補正
でき、そのために使うメモリは複数チャネルに対して1
個ですますことができ る。
According to this embodiment, for example, when each channel of a multi-channel stereo signal is transmitted through different transmission paths and a time difference occurs, the time difference between the channels can be reliably corrected, and the memory used for this purpose is 1 for
Can be done individually.

第8図は複数チャネルのデータ列を1つのビットストリ
ームにまとめる、いわゆるノくルクモードでの本発明の
動作例を示すものである。この例では、 1オクテツト
周期の間に16個のクロックCLが入り、 16ビツト
の入力データD inが入力される。この入力データD
 inは2チヤネルのデータからなり、各チャネルの1
ワード(8ビツト)づつが交互に並んだピットストリー
ムであり、かつチャネル1のビットにはフレーム同期信
号を0とした相対番号±1、±2、・・・が付けられ、
チャネル2のビットにはフレーム同期信号を0動鹸−と
した相対番号±1−1±2−1・・・が付けられている
。システムは第1図の構成で遅延補正回路103を除い
たもので、入力データD1゜は2つの補正回路101,
102の双方の入力データD1゜1、DIo2となる。
FIG. 8 shows an example of the operation of the present invention in a so-called Nork mode, in which data strings of a plurality of channels are combined into one bit stream. In this example, 16 clocks CL are input during one octet period, and 16-bit input data D in is input. This input data D
in consists of two channels of data, one of each channel
It is a pit stream in which words (8 bits) are arranged alternately, and the bits of channel 1 are given relative numbers ±1, ±2, etc. with the frame synchronization signal being 0,
The bits of channel 2 are assigned relative numbers ±1-1±2-1, . . . with the frame synchronization signal set to 0. The system has the configuration shown in FIG. 1 except for the delay correction circuit 103, and the input data D1° is transmitted through the two correction circuits 101,
102, the input data D1゜1 and DIo2 are obtained.

メモリアクセス割当回路400は2つの相補的なイネー
ブル信号El、E2を各チャネルへ出力し、また書き込
み信号W1  読み出し信号Rを交互に出力する(第8
図では制御信号R/Wは省略)。各補正回路+01.1
02は自回路内へ1つだけのチャネルデータを取り込む
ために、その内部のデータ制御回路のS/P変換器50
1へのクロックCL(第4図)をそのチャ猿ルへのイネ
ーブル信号E1またはE2がオンのときだけ入力するよ
うにする。これによって入力データD in中のチャネ
ル1のデータは補正回路101のレジスタ502へ、チ
ャネル2のデータは補正回路102のレジスタ502へ
取り込まれる。
The memory access allocation circuit 400 outputs two complementary enable signals El and E2 to each channel, and also outputs a write signal W1 and a read signal R alternately (eighth
(The control signal R/W is omitted in the figure). Each correction circuit +01.1
02 is an S/P converter 50 of the internal data control circuit in order to take in only one channel data into its own circuit.
1 (FIG. 4) is inputted only when the enable signal E1 or E2 to that channel is on. As a result, the data of channel 1 in the input data D in is taken into the register 502 of the correction circuit 101, and the data of channel 2 is taken into the register 502 of the correction circuit 102.

またフレーム周期検出回路700も当該チャネルのフレ
ーム同期信号のみを同様にして検出するようにする。第
8図の例ではチャネル1の方がチャネル2のデータに比
べ27−ド+3ビツト遅れているから、チャネル2の遅
延量算出回路800はワード遅延1 a = 2を出力
する。これによってチャネルL  2の各アドレス制御
回路からの出力アドレスは、第7図と同様にチャネル1
では書き込みWと読み出しRが同一イネーブル信号内で
同じとなり、チャネル2では読み出しアドレスが書き込
みのそれより2小さくなる。こうして各チャネルのデー
タは共有メモリへの書き込み、読み出しを経てP/S変
換器505の出力J。utl、Jout2のようになる
。ここで第7図の場合と同様、チャネル2でビット遅延
量3ビツトの補正をしたのでは、各チャネルが交互に並
んだとき、 1ワードの先頭位置にフレーム同期信号(
番号0.0−)か来ないのでこの補正も行う必要がある
。このためにはチャネル1のフレーム同期信号0がメモ
リアクセス単位の1ワードの3番目にあることに着目し
、チャネル1を6ビツト遅らせてアクセス単位の1ワー
ドの先頭に来るようにする。つまり2つのチャネル間の
時間差に関係なく、チャネルIではビット遅延量=6を
データ制御回路のセレクタ506へ与える。これに伴っ
てチャネル2はチャネル間の時間差から求められた3ビ
ツトと合わせて9ビツトのビット遅延が必要となるが、
今の場合1オクテツトに16ビツト入っている関係から
それでは図からも明らかなように1ワ一ド分遅延が大き
くなってしまう。それで9−8= 1ビツトだけチャネ
ル2にビット遅延を与えると、オクテツトクロックOC
の周期■のようにチャネルlの0〜7番のビットに続い
てチャネル2の0゛〜7′番のビットが続(ようにでき
る。
Also, the frame period detection circuit 700 similarly detects only the frame synchronization signal of the relevant channel. In the example of FIG. 8, since channel 1 is delayed by 27-words+3 bits compared to the data of channel 2, the delay amount calculation circuit 800 of channel 2 outputs word delay 1 a =2. As a result, the output address from each address control circuit of channel L2 is changed to channel 1 as in FIG.
In this case, write W and read R are the same within the same enable signal, and in channel 2, the read address is 2 smaller than that of write. In this way, the data of each channel is written to and read from the shared memory, and then outputted from the P/S converter 505. utl, Jout2. Here, as in the case of Fig. 7, if the bit delay amount of 3 bits is corrected in channel 2, when each channel is arranged alternately, the frame synchronization signal (
Since the number 0.0-) is not received, it is necessary to perform this correction as well. To achieve this, focus is placed on the fact that frame synchronization signal 0 of channel 1 is at the third position of one word in the memory access unit, and channel 1 is delayed by 6 bits so that it comes at the beginning of one word in the access unit. In other words, irrespective of the time difference between the two channels, in channel I, the bit delay amount=6 is applied to the selector 506 of the data control circuit. As a result, channel 2 requires a bit delay of 9 bits, including the 3 bits determined from the time difference between channels.
In the present case, since 1 octet contains 16 bits, as is clear from the figure, the delay increases by 1 word. So if we add a bit delay to channel 2 by 9-8 = 1 bit, the octet clock OC
Bits 0 to 7 of channel 1 are followed by bits 0 to 7' of channel 2, as shown in period (3).

[発明の効果コ 本発明によれば、1つのメモリを共有して使用すること
により複数チャネルの時間差の補正が行え、補正装置を
安価に実現できるという効果かあや・
[Effects of the Invention] According to the present invention, the time difference between multiple channels can be corrected by sharing one memory, and the correction device can be realized at low cost.

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

第1図は本発明の方法を適用した補正システムの一実施
例を示すブロック図、第2図は従来の補正システムの例
を示すブロック図、第3図は第1図の遅延補正回路の構
成を示すブロック図、第4図及び第5図はそれぞれ第3
図のデータ制御回路及びアドレス制御回路の構成を示す
ブロック図、第6図は共有メモリのエリアの説明図、第
7図は第1図の実施例の全体動作の例を示すタイムチャ
ート、第8図は第1図の変形例の動作を示すタイムチャ
ートである。 101〜103−−・遅延補正回路、200・・・共付
メモリ、300・・・連絡線、400−・・メモリアク
セス!’l当回路、500・・・データ制御回路、60
011・・アドレス制御回路。
FIG. 1 is a block diagram showing an example of a correction system to which the method of the present invention is applied, FIG. 2 is a block diagram showing an example of a conventional correction system, and FIG. 3 is a configuration of the delay correction circuit shown in FIG. 1. The block diagrams shown in Figures 4 and 5 are respectively
FIG. 6 is a block diagram showing the configuration of the data control circuit and address control circuit in FIG. 6. FIG. 7 is an explanatory diagram of the area of the shared memory. FIG. The figure is a time chart showing the operation of a modified example of FIG. 1. 101-103--Delay correction circuit, 200--Shared memory, 300--Connection line, 400--Memory access! 'lThis circuit, 500...Data control circuit, 60
011...Address control circuit.

Claims (2)

【特許請求の範囲】[Claims] (1)ビット単位で同期した複数個のディジタルデータ
各々を入力データとした入力データ対応の補正回路と、
該補正回路で共通に使用するために各補正回路用のエリ
アを割り付けられた共有メモリと、上記補正回路の各々
が衝突せずに上記共有メモリへアクセスするようにする
ための制御用信号を出力するアクセス割当回路とを設け
ると共に、上記補正回路の各々において、当該回路への
入力データのフレーム同期信号の検出と該検出信号の他
の補正回路への連絡、及び該連絡によって得た各入力デ
ータのフレーム同期信号の間の時間差の検出を行い、続
いて各補正回路において、上記入力データに、該データ
を上記制御用信号に従って上記共有メモリの該当エリア
へ書き込んだ後読みだすという動作によって、上記制御
用信号のもとで許された時間単位で可能な時間差の遅延
を与え、さらに該遅延で補正しきれない残留時間差をデ
ータのビット単位で補正することによって上記各入力デ
ータのフレーム同期信号が同一時刻に上記各補正回路か
ら出力されるようにしたことを特徴とする複数チャネル
の遅延補正方法。
(1) A correction circuit corresponding to input data, each of which is input data of a plurality of bit-by-bit synchronized digital data;
Outputs a shared memory to which an area for each correction circuit is allocated for common use by the correction circuits, and a control signal so that each of the correction circuits accesses the shared memory without conflict. In addition, each of the correction circuits detects a frame synchronization signal of input data to the circuit, communicates the detection signal to another correction circuit, and detects each input data obtained by the communication. Detecting the time difference between the frame synchronization signals of By providing a possible time difference delay in the time unit allowed under the control signal, and further correcting the residual time difference that cannot be corrected by the delay in units of data bits, the frame synchronization signal of each input data is adjusted. A delay correction method for a plurality of channels, characterized in that outputs are output from each of the correction circuits at the same time.
(2)前記補正回路の各々における残留時間差の補正時
に、前記制御用信号が各補正回路の前記共有メモリへの
アクセスを許可する周期的時間帯の1つの先頭に、出力
データのフレーム同期信号がくるように余分のビット遅
延を与えるようにしたことを特徴とする請求項1記載の
複数チャネルの遅延補正方法。
(2) When correcting the residual time difference in each of the correction circuits, the frame synchronization signal of the output data is transmitted at the beginning of one of the periodic time periods in which the control signal allows each correction circuit to access the shared memory. 2. The multi-channel delay correction method according to claim 1, wherein an extra bit delay is provided so that the delay occurs.
JP2331661A 1990-11-29 1990-11-29 Delay compensation method for multiple channels Expired - Lifetime JPH0656989B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2331661A JPH0656989B2 (en) 1990-11-29 1990-11-29 Delay compensation method for multiple channels

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2331661A JPH0656989B2 (en) 1990-11-29 1990-11-29 Delay compensation method for multiple channels

Publications (2)

Publication Number Publication Date
JPH04199924A true JPH04199924A (en) 1992-07-21
JPH0656989B2 JPH0656989B2 (en) 1994-07-27

Family

ID=18246168

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2331661A Expired - Lifetime JPH0656989B2 (en) 1990-11-29 1990-11-29 Delay compensation method for multiple channels

Country Status (1)

Country Link
JP (1) JPH0656989B2 (en)

Also Published As

Publication number Publication date
JPH0656989B2 (en) 1994-07-27

Similar Documents

Publication Publication Date Title
US20090228127A1 (en) Method and device to process digital media streams
JPS62271540A (en) Method and apparatus for synchronizing clock of bus type local area network
JPS5821865B2 (en) packet switch
JPH01310433A (en) Line memory for converting speed
JP2520585B2 (en) Time switch on time-division channel
KR100573256B1 (en) Multiple address holding memory device
JPH0667752A (en) Method and device for controlling signal timing in digital signal processor
US5185880A (en) Stored instructions executing type timing signal generating system
JPH04199924A (en) Delay correction method for plural channels
JPH04318717A (en) Data multiplex circuit
US6378032B1 (en) Bank conflict avoidance in multi-bank DRAMS with shared sense amplifiers
CA2109007C (en) Time slot assigner for communication system
JP3761962B2 (en) Time switch memory data control device
JP2575542B2 (en) Packet information counter
JPH0467661B2 (en)
JP4771619B2 (en) Direct memory access control device
JP2725700B2 (en) Time division multiple access system
JPH0352694B2 (en)
JPH0833869B2 (en) Data processing device
JPH03191693A (en) Word multiplex time switch
JPH0415741A (en) Request acceptance control system
JP2697164B2 (en) Field memory
JPS5939192A (en) Synchronizing circuit of time division switch
JP2637105B2 (en) Time switch circuit
SU1571594A1 (en) Device for information exchange in multiprocessoring computing system