JPH10285190A - Signal processing circuit - Google Patents

Signal processing circuit

Info

Publication number
JPH10285190A
JPH10285190A JP8419197A JP8419197A JPH10285190A JP H10285190 A JPH10285190 A JP H10285190A JP 8419197 A JP8419197 A JP 8419197A JP 8419197 A JP8419197 A JP 8419197A JP H10285190 A JPH10285190 A JP H10285190A
Authority
JP
Japan
Prior art keywords
circuit
data
reception
transmission
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8419197A
Other languages
Japanese (ja)
Inventor
Tetsuya Aoki
徹也 青木
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP8419197A priority Critical patent/JPH10285190A/en
Publication of JPH10285190A publication Critical patent/JPH10285190A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To smoothly transmit data by executing mediation so that one processing is preceded when the reception of transmission data and the reception of data transmitted through a serial interface bus are simultaneously executed. SOLUTION: A storage information signal S106 by a transmission preprocessing circuit 106, a read control signal S107 by a transmission post processing circuit 107, a storage information signal S108 by a reception preprocessing circuit 108 and a read control signal S109 by a reception postprocessing circuit are inputted to a FIFO access mediation circuit 112. It is assumed that timing when the circuit 106 or the circuit 107 and the circuit 108 or the circuit 109 are simultaneously accessed. In such a case, a mediation circuit 112 mediates a system so that the access processing of the circuit 108 or the circuit 109 is preceded to the access processing of the circuit 106 or the circuit 107. Thus, the reception processing precedes the transmission processing and data are precisely outputted at a specified time.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、シリアルインタフ
ェースに用いられる信号処理回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a signal processing circuit used for a serial interface.

【0002】[0002]

【従来の技術】近年、マルチメディア・データ転送のた
めのインタフェースとして、高速データ転送、リアルタ
イム転送を実現するIEEE(The Institute of Elect
ricaland Electronic Engineers) 1394、High
Performance Sirial Busが規
格化された。
2. Description of the Related Art In recent years, as an interface for multimedia data transfer, the IEEE (The Institute of Elect) has realized high-speed data transfer and real-time transfer.
ricaland Electronic Engineers) 1394, High
Performance Serial Bus has been standardized.

【0003】このIEEE1394シリアルインタフェ
ースのデータ転送には、従来のRequest,Acknoledgeの要
求、受信確認を行うアシンクロナス(Asynchronous) 転
送と、あるノードから125μsに1回必ずデータが送
られるアイソクロナス(Isochronous) 転送がある。
The data transfer of the IEEE 1394 serial interface includes a conventional request of request and acknowledge, a conventional asynchronous transfer for confirming reception, and an isochronous transfer in which data is always transmitted from a certain node once every 125 μs. is there.

【0004】このように、2つの転送モードを有するI
EEE1394シリアルインタフェースでのデータは、
パケット単位で転送が行われる。
As described above, an I having two transfer modes
The data in the EEE1394 serial interface is
Transfer is performed in packet units.

【0005】図6は、アイソクロナス通信における1ソ
ースパケットのバイトサイズを示す図である。図6
(A)はDVB(Digital Video Broadcast) 仕様時、図
6(B)はDSS(Digital Satelite System) 仕様時の
パケットサイズを示している。
FIG. 6 is a diagram showing the byte size of one source packet in isochronous communication. FIG.
FIG. 6A shows the packet size in DVB (Digital Video Broadcast) specification, and FIG. 6B shows the packet size in DSS (Digital Satelite System) specification.

【0006】DVB仕様時のソースパケットサイズは、
図6(A)に示すように、4バイトのソースパケットヘ
ッダ(SPH;Source Packet Header)と188バイト
のデータの192バイトである。
[0006] The source packet size in the DVB specification is
As shown in FIG. 6A, it is 192 bytes of a 4-byte source packet header (SPH; Source Packet Header) and 188 bytes of data.

【0007】これに対して、DSS仕様時のソースパケ
ットサイズは、図6(B)に示すように、4バイトのソ
ースパケットヘッダ(SPH)、10バイトの付加デー
タ、および130バイトのデータの144バイトであ
る。付加バイトはソースパケットヘッダとデータとの間
に挿入される。なお、IEEE1394規格では、取り
扱う最小データの単位は1クワドレット(quadlet)(=
4バイト=32ビット)であるため、トランスポートス
トリームデータと付加データの合計が32ビット単位で
構成できる設定であることが必要である。ただし、デフ
ォルトでは付加バイトなしで設定される。
[0007] On the other hand, the source packet size in the DSS specification is, as shown in FIG. 6B, a 4-byte source packet header (SPH), 10-byte additional data, and 144-byte 130-byte data. Bytes. Additional bytes are inserted between the source packet header and the data. In the IEEE 1394 standard, the minimum data unit handled is one quadlet (=
(4 bytes = 32 bits), it is necessary that the total of the transport stream data and the additional data be set in a 32-bit unit. However, it is set without additional bytes by default.

【0008】図7は、IEEE1394規格のアイソク
ロナス通信でデータを送信させるときの元のデータと、
実際に送信されるパケットとの対応関係の一例を示す図
である。
FIG. 7 shows original data when data is transmitted by isochronous communication of the IEEE 1394 standard,
FIG. 6 is a diagram illustrating an example of a correspondence relationship with a packet to be actually transmitted.

【0009】図7に示すように、元のデータであるソー
スパケットは、4バイトのソースパケットヘッダと、デ
ータ長を調整するためのパディングデータを付加された
後、所定の数のデータブロックに分割される。なお、パ
ケットを転送するときのデータの単位が1クワドレット
(4バイト)であることから、データブロックや各種ヘ
ッダなどのバイト長は、全て4の倍数に設定される。
As shown in FIG. 7, a source packet which is original data is divided into a predetermined number of data blocks after adding a 4-byte source packet header and padding data for adjusting the data length. Is done. Since the unit of data when transferring a packet is one quadlet (4 bytes), the byte lengths of data blocks and various headers are all set to multiples of four.

【0010】図8は、ソースパケットヘッダのフォーマ
ットを示す図である。図8に示すように、ソースパケッ
トヘッダのうち、25ビットには、たとえば上述したD
VB方式等のディジタル衛星放送等で利用されているM
PEG(Moving Picture Experts Group)−TS(Transpo
rt Stream)データをアイソクロナス通信で送信するとき
に、ジッタを抑制するために利用されるタイムスタンプ
(TimeStamp)が書き込まれる。
FIG. 8 is a diagram showing a format of a source packet header. As shown in FIG. 8, 25 bits of the source packet header include, for example, the D
M used in digital satellite broadcasting such as VB system
PEG (Moving Picture Experts Group)-TS (Transpo
(rt Stream) Time stamp used to suppress jitter when transmitting data by isochronous communication
(TimeStamp) is written.

【0011】そして、このようなパケットヘッダやCI
P(Common Isochronous Packet) ヘッダ等のデータが、
所定の数のデータブロックに付加されることによりパケ
ットが生成される。
Then, such a packet header or CI
Data such as P (Common Isochronous Packet) header
A packet is generated by being added to a predetermined number of data blocks.

【0012】図9はアイソクロナス通信用パケットの基
本構成例を示す図である。図9に示すように、アイソク
ロナス通信のパケットは、第1クワドレットが1394
ヘッダ(Header)、第2クワドレットがヘッダCRC(Hea
der-CRC)、第3クワドレットがCIPヘッダ1(CIP-He
ader1)、第4クワドレットがCIPヘッダ2(CIP-Head
er2)、第5クワドレットがソースパケットヘッダ(SP
H)で、第6クワドレット以降がデータ領域である。そ
して、最後のクワドレットがデータCRC(Data-CRC)で
ある。
FIG. 9 is a diagram showing a basic configuration example of an isochronous communication packet. As shown in FIG. 9, the packet of the isochronous communication has a first quadlet of 1394.
Header (Header), the second quadlet is the header CRC (Hea
der-CRC), the third quadlet is CIP header 1 (CIP-He
ader1), the fourth quadlet is CIP header 2 (CIP-Head
er2), the fifth quadlet is the source packet header (SP
In H), the data area is the sixth and subsequent quadlets. The last quadlet is a data CRC (Data-CRC).

【0013】1394ヘッダは、データ長を表すdata-l
ength 、このパケット転送されるチャネルの番号(0〜
63のいずれか)を示すchannel 、転送スピード(10
0Mbps,200Mbpsまたは400Mbpsのい
ずれか)を示すspeed (または処理のコードを表すtcod
e )、および各アプリケーションで規定される同期コー
ドsyにより構成されている。ヘッダCRCは、パケッ
トヘッダの誤り検出符号である。
The 1394 header has a data-l representing a data length.
ength, the number of the channel to which this packet is transferred (0
63), the transfer speed (10
Speed indicating 0 Mbps, 200 Mbps or 400 Mbps) (or tcod indicating processing code)
e) and a synchronization code sy defined by each application. The header CRC is an error detection code of the packet header.

【0014】CIPヘッダ1は、送信ノード番号のため
のSID(Source node ID)領域、データブロックの長さ
のためのDBS(Data Block Size) 領域、パケット化に
おけるデータの分割数のためのFN(Fraction Number)
領域、パディグデータのクワドレット数のためのQPC
(Quadlet Padding Count) 領域、ソースパケットヘッダ
の有無を表すフラグのためのSPH領域、アイソクロナ
スパケットの数を検出するカウンタのためのDBC(Da
ta Block Continuty Counter)領域により構成されてい
る。なお、DBS領域は、1アイソクロナスパケットで
転送するクワドレット数を表す。
The CIP header 1 includes an SID (Source node ID) area for a transmission node number, a DBS (Data Block Size) area for a data block length, and an FN (FN) for a data division number in packetization. Fraction Number)
QPC for the number of quadlets in area and padding data
(Quadlet Padding Count) area, SPH area for a flag indicating the presence or absence of a source packet header, and DBC (Da) for a counter for detecting the number of isochronous packets.
ta Block Continuty Counter) area. Note that the DBS area indicates the number of quadlets transferred in one isochronous packet.

【0015】CIPヘッダ2は、転送されるデータの種
類を表す信号フォーマットのためのFMT領域、および
信号フォーマットに対応して利用されるFDF(Format
Dependent Field)領域により構成されている。
The CIP header 2 has an FMT area for a signal format indicating the type of data to be transferred, and an FDF (Format) used corresponding to the signal format.
Dependent Field) area.

【0016】SPHヘッダは、トランスポートストリー
ムパケットが到着した軸に固定の遅延値を加えた値が設
定されるタイムスタンプ領域を有している。また、デー
タCRCは、データフィールドの誤り検出符号である。
The SPH header has a time stamp area in which a value obtained by adding a fixed delay value to the axis on which the transport stream packet has arrived is set. The data CRC is an error detection code of the data field.

【0017】上述した構成を有するパケットの送受信を
行うIEEE1394シリアルインタフェースの信号処
理回路は、主としてIEEE1394シリアルバスを直
接ドライブするフィジカル・レイヤ回路と、フィジカル
・レイヤ回路のデータ転送をコントロールするリンク・
レイヤ回路とにより構成される。
The signal processing circuit of the IEEE 1394 serial interface for transmitting and receiving packets having the above-described configuration is mainly composed of a physical layer circuit for directly driving the IEEE 1394 serial bus, and a link for controlling data transfer of the physical layer circuit.
And a layer circuit.

【0018】[0018]

【発明が解決しようとする課題】ところで、上述したI
EEE1394シリアルインタフェースの信号処理回路
は、アプリケーションである側MPEGトランスポータ
(Transporter) とシリアルインタフェースバス側のアク
セスが任意に行われる。IEEE1394シリアルイン
タフェースの信号処理回路は、送信データおよび受信デ
ータは一旦FIFO(First-In First-Out)メモリ(単
に、FIFOという)等の記憶装置に格納されるが、こ
の記憶装置は送信側と受信側で共用されている。したが
って、シリアルインタフェースバスへデータを送出する
送信処理とアプリケーション側へ受信データを出力する
受信処理を調停する回路が必要であるが、未だこの調停
回路が設けられていないことから、スムーズなデータ転
送を行えないおそれがある。
By the way, the above-mentioned I
The signal processing circuit of the EEE1394 serial interface is an application-side MPEG transporter.
(Transporter) and access on the serial interface bus side are arbitrarily performed. In the signal processing circuit of the IEEE 1394 serial interface, transmission data and reception data are temporarily stored in a storage device such as a first-in first-out (FIFO) memory (hereinafter simply referred to as a FIFO). Is shared on the side. Therefore, it is necessary to provide a circuit for arbitrating transmission processing for transmitting data to the serial interface bus and reception processing for outputting received data to the application side, but since this arbitration circuit has not been provided yet, smooth data transfer is possible. It may not be possible.

【0019】本発明は、かかる事情に鑑みてなされたも
のであり、その目的は、送信処理の要求と受信処理の要
求が同時に発生した場合に両処理を的確に調停でき、ス
ムーズなデータ転送を実現できる信号処理回路を提供す
ることにある。
The present invention has been made in view of the above circumstances, and an object of the present invention is to make it possible to arbitrate both processes accurately when a request for a transmission process and a request for a reception process occur at the same time, thereby achieving a smooth data transfer. It is to provide a signal processing circuit that can be realized.

【0020】[0020]

【課題を解決するための手段】上記目的を達成するた
め、本発明の信号処理回路は、アプリケーション側から
送信データを受けて、あらかじめ決められた時間サイク
ルでシリアルインタフェースバスに送出する送信回路
と、上記シリアルインタフェースバスを伝送されたデー
タを受信してアプリケーション側に出力する受信回路
と、送信データの受入れとシリアルインタフェースバス
を伝送されたデータの受信が同時に行われた場合に、上
記送信回路の処理と上記受信回路の処理のうちのいずれ
か一方の回路の処理を先行させて行わせる調停回路とを
有する。
In order to achieve the above object, a signal processing circuit according to the present invention comprises: a transmission circuit for receiving transmission data from an application side and transmitting the transmission data to a serial interface bus in a predetermined time cycle; A receiving circuit that receives the data transmitted through the serial interface bus and outputs the data to the application side; and a process of the transmitting circuit when reception of transmission data and reception of data transmitted through the serial interface bus are performed simultaneously. And an arbitration circuit that causes one of the processes of the receiving circuit to be performed in advance.

【0021】また、本発明の信号処理回路は、記憶手段
をさらに有し、上記送信回路は、受けた送信データを所
定のフォーマットで上記記憶手段に格納し、格納したデ
ータを当該記憶手段から読み出し上記シリアルインタフ
ェースバスに送出し、上記受信回路は、受信データを復
元して上記記憶手段に格納し、所定のタイミングで格納
したデータを読み出しアプリケーション側に出力し、上
記調停回路は、上記送信回路と上記受信回路の上記記憶
手段に対するアクセスを調停する。
Further, the signal processing circuit of the present invention further comprises storage means, wherein the transmission circuit stores the received transmission data in a predetermined format in the storage means, and reads out the stored data from the storage means. The received data is transmitted to the serial interface bus, the receiving circuit restores the received data and stores the data in the storage means, reads out the stored data at a predetermined timing, and outputs the read data to the application side. The access circuit arbitrates access to the storage means.

【0022】また、本発明の信号処理回路は、時間を計
測する計測手段をさらに有し、上記送信回路は、アプリ
ケーション側から受けた送信データに、受信側で受信デ
ータをアプリケーション側へ出力すべき時間情報を付加
して上記記憶手段に格納し、上記受信回路は、上記シリ
アルインタフェースバスを送信されたパケットデータか
ら上記時間情報を取り出し、上記計測手段による計測時
間値が当該時間情報値より大きい場合に、上記記憶手段
から受信データを読み出して上記アプリケーション側へ
出力する。
Further, the signal processing circuit of the present invention further has a measuring means for measuring time, and the transmission circuit should output the transmission data received from the application side and the reception data to the application side on the reception side. Time information is added and stored in the storage means, the receiving circuit extracts the time information from the packet data transmitted through the serial interface bus, and the time measured by the measuring means is larger than the time information value. Then, the received data is read from the storage means and output to the application side.

【0023】また、本発明の信号処理回路では、上記調
停回路は、上記受信回路の処理を先行させる。
In the signal processing circuit of the present invention, the arbitration circuit precedes the processing of the reception circuit.

【0024】本発明の信号処理回路によれば、送信回路
において、アプリケーション側からに送信データがあら
かじめ決められた時間サイクルでシリアルインタフェー
スバスに送出される。またシリアルインタフェースバス
を伝送されてきたデータは受信回路で受信される。そし
て、送信データの受入れとシリアルインタフェースバス
を伝送されたデータの受信が同時に行われた場合には、
調停回路において、送信回路の処理と受信回路の処理の
うちのいずれか一方の回路、たとえば受信回路の処理が
先行させて行われるように調停される。
According to the signal processing circuit of the present invention, in the transmission circuit, the transmission data is transmitted from the application side to the serial interface bus in a predetermined time cycle. The data transmitted through the serial interface bus is received by the receiving circuit. If the reception of the transmission data and the reception of the data transmitted through the serial interface bus are performed at the same time,
In the arbitration circuit, arbitration is performed such that one of the processing of the transmission circuit and the processing of the reception circuit, for example, the processing of the reception circuit is performed in advance.

【0025】また、本発明によれば、上記送信回路にお
いては、受けた送信データが所定のフォーマットで記憶
手段に格納され、格納したデータが記憶手段から読み出
されてシリアルインタフェースバスに送出される。ま
た、受信回路においては、受信データが復元されて記憶
手段に格納され、所定のタイミングで格納したデータが
読み出されてアプリケーション側に出力される。そし
て、調停回路では、送信回路と受信回路の記憶手段に対
するアクセスが調停される。
According to the present invention, in the transmission circuit, the received transmission data is stored in the storage means in a predetermined format, and the stored data is read out from the storage means and transmitted to the serial interface bus. . In the receiving circuit, the received data is restored and stored in the storage means, and the stored data is read out at a predetermined timing and output to the application side. Then, in the arbitration circuit, access to the storage means of the transmission circuit and the reception circuit is arbitrated.

【0026】また、本発明によれば、送信回路では、ア
プリケーション側から受けた送信データに、受信側で受
信データをアプリケーション側へ出力すべき時間情報が
付加されて記憶手段に格納される。また、受信回路で
は、シリアルインタフェースバスを送信されたパケット
データから上記時間情報が取り出され、計測手段による
計測時間値が当該時間情報値より大きい場合に、上記記
憶手段から受信データが読み出されてアプリケーション
側へ出力される。
Further, according to the present invention, in the transmission circuit, the transmission data received from the application side is added with time information for the reception side to output the reception data to the application side and stored in the storage means. In the receiving circuit, the time information is extracted from the packet data transmitted through the serial interface bus, and when the time value measured by the measuring means is larger than the time information value, the received data is read from the storage means. Output to application.

【0027】[0027]

【発明の実施の形態】図1は、IEEE1394シリア
ルインタフェースに適用される本発明に係るMPEG用
信号処理回路の一実施形態を示すブロック構成図であ
る。
FIG. 1 is a block diagram showing an embodiment of an MPEG signal processing circuit according to the present invention applied to an IEEE 1394 serial interface.

【0028】この信号処理回路は、リンク・レイヤ回路
10、フィジカル・レイヤ回路20、ホストコンピュー
タとしてのCPU30により構成されている。また、4
0はMPEGトランスポータを示している。
This signal processing circuit comprises a link layer circuit 10, a physical layer circuit 20, and a CPU 30 as a host computer. Also, 4
0 indicates an MPEG transporter.

【0029】リンク・レイヤ回路10は、CPU30の
制御の下、アシンクロナス転送およびとアイソクロナス
転送の制御、並びにフィジカル・レイヤ回路20の制御
を行う。具体的には、図1に示すように、リンクコア(L
ink Core) 101、ホストインタフェース回路(Host I
/F)102、アプリケーションインタフェース回路(AP
I/F) 103、送信用FIFO(AT-FIFO)104a、受
信用FIFO(AR-FIFO)104bからなるアシンクロナ
ス通信用FIFO104、セルフID用リゾルバ(Resol
ver)105、アイソクロナス通信用送信前処理回路(TXO
PRE)106、アイソクロナス通信用送信後処理回路(TXO
PRO)107、アイソクロナス通信用受信前処理回路(TXI
PRE)108、アイソクロナス通信用受信後処理回路(TXI
PRO)109、アイソクロナス通信用FIFO(I-FIFO)1
10、コンフィギュレーションレジスタ(Configuratio
n Register、以下CFRという)111、およびFIF
Oアクセス調停回路112により構成されている。
Under the control of the CPU 30, the link layer circuit 10 controls asynchronous transfer and isochronous transfer, and controls the physical layer circuit 20. Specifically, as shown in FIG. 1, the link core (L
ink Core) 101, host interface circuit (Host I)
/ F) 102, application interface circuit (AP
I / F) 103, an asynchronous communication FIFO 104 including a transmission FIFO (AT-FIFO) 104a, a reception FIFO (AR-FIFO) 104b, and a self-ID resolver (Resol).
ver) 105, transmission preprocessing circuit for isochronous communication (TXO
PRE) 106, transmission post-processing circuit for isochronous communication (TXO
PRO) 107, isochronous communication reception preprocessing circuit (TXI
PRE) 108, isochronous communication post-processing circuit (TXI
PRO) 109, FIFO (I-FIFO) 1 for isochronous communication
10. Configuration register (Configuratio
n Register (hereinafter referred to as CFR) 111 and FIF
An O access arbitration circuit 112 is provided.

【0030】図1の回路おいて、ホストインタフェース
回路102、送信用FIFO104a、アシンクロナス
通信の受信用FIFO104bおよびリンクコア101
によりアシンクロナス通信系回路が構成される。そし
て、アプリケーションインタフェース回路103、送信
前処理回路106、送信後処理回路107、受信前処理
回路108、受信後処理回路109、FIFO110お
よびリンクコア101によりアイソクロナス通信系回路
が構成される。
In the circuit shown in FIG. 1, a host interface circuit 102, a transmission FIFO 104a, a reception FIFO 104b for asynchronous communication, and a link core 101
Constitutes an asynchronous communication system circuit. The application interface circuit 103, the pre-transmission processing circuit 106, the post-transmission processing circuit 107, the pre-reception processing circuit 108, the post-reception processing circuit 109, the FIFO 110, and the link core 101 constitute an isochronous communication system circuit.

【0031】リンクコア101は、アシンクロナス通信
用パケットおよびアイソクロナス通信用パケットの送信
回路、受信回路、これらパケットのIEEE1394シ
リアルバスBSを直接ドライブするフィジカル・レイヤ
回路20とのインタフェース回路、125μs毎にリセ
ットされるサイクルタイマ、サイクルモニタやCRC回
路から構成されている。そして、たとえばサイクルタイ
マ等の時間データ等はCFR111を通してアイソクロ
ナス通信系処理回路に供給される。
The link core 101 includes a transmission circuit and a reception circuit for asynchronous communication packets and isochronous communication packets, an interface circuit for these packets with the physical layer circuit 20 that directly drives the IEEE 1394 serial bus BS, and is reset every 125 μs. It comprises a cycle timer, a cycle monitor and a CRC circuit. Then, time data such as a cycle timer is supplied to the isochronous communication processing circuit through the CFR 111.

【0032】ホストインタフェース回路102は、主と
してホストコンピュータとしてのCPU30と送信用F
IFO104a、受信用FIFO104bとのアシンク
ロナス通信用パケットの書き込み、読み出し等の調停、
並びに、CPU30とCFR111との各種データの送
受信の調停を行う。たとえばCPU30からは、アイソ
クロナス通信用パケットのSPH(ソースパケットヘッ
ダ)に設定されるタイムスタンプ用遅延時間Txdelay が
ホストインタフェース102を通してCFR111にセ
ットされる。
The host interface circuit 102 mainly includes a CPU 30 as a host computer and a transmission F
Arbitration of writing and reading of asynchronous communication packets with the FIFO 104a and the receiving FIFO 104b,
Also, arbitration of transmission and reception of various data between the CPU 30 and the CFR 111 is performed. For example, the CPU 30 sets the time stamp delay time Txdelay set in the SPH (source packet header) of the isochronous communication packet in the CFR 111 through the host interface 102.

【0033】送信用FIFO104aには、IEEE1
394シリアルバスBSに伝送させるアシンクロナス通
信用パケットが格納され、受信用FIFO104bには
IEEE1394シリアルバスBSを伝送されてきたア
シンクロナス通信用パケットが格納される。
The transmission FIFO 104a has IEEE1
The asynchronous communication packet transmitted by the 394 serial bus BS is stored, and the asynchronous communication packet transmitted by the IEEE 1394 serial bus BS is stored in the reception FIFO 104b.

【0034】アプリケーションインタフェース回路10
3は、MPEGトランスポータ40とアイソクロナス通
信用送信前処理回路106およびアイソクロナス通信用
受信後処理回路109とのクロック信号や制御信号等を
含むMPEGトランスポートストリームデータの送受信
の調停を行う。
Application interface circuit 10
Reference numeral 3 arbitrates the transmission and reception of MPEG transport stream data including a clock signal, a control signal, and the like between the MPEG transporter 40 and the pre-transmission circuit 106 for isochronous communication and the post-processing circuit 109 for isochronous communication.

【0035】リゾルバ105は、IEEE1394シリ
アルバスBSを伝送されてきたセルフIDパケットを解
析して、CFR111に格納する。
The resolver 105 analyzes the self ID packet transmitted through the IEEE 1394 serial bus BS and stores the packet in the CFR 111.

【0036】送信前処理回路106は、アプリケーショ
ンインタフェース回路103を介してMPEGトランス
ポータ40によるMPEGトランスポートストリームデ
ータを受けて、IEEE1394規格のアイソクロナス
通信用としてクワドレット(4バイト)単位にデータ長
を調整し、かつCFR111に設定された遅延時間Txde
lay を用いてタイムスタンプの値を設定して4バイトの
ソースパケットヘッダ(SPH)を付加してFIFO1
10に格納し、いわゆるFIFOの書き込みポインター
等の格納情報信号S106を送信後処理回路107およ
びFIFOアクセス調停回路112に出力する。
The transmission pre-processing circuit 106 receives the MPEG transport stream data from the MPEG transporter 40 via the application interface circuit 103 and adjusts the data length in quadlets (4 bytes) for isochronous communication according to the IEEE 1394 standard. And the delay time Txde set in the CFR 111
The time stamp value is set using lay, and a 4-byte source packet header (SPH) is added to the FIFO1
10 and outputs a storage information signal S 106 such as a so-called FIFO write pointer to the post-transmission processing circuit 107 and the FIFO access arbitration circuit 112.

【0037】なお、ソースパケットヘッダを付加すると
きに受信側のデータ出力時間を決定するタイムスタンプ
を設定するが、この設定は以下のように行われる。ま
ず、MPEGトランスポータ40からパケットの最終デ
ータを受け取ったタイミングで内部のサイクルレジスタ
の値をラッチする。次に、CPU30からホストインタ
フェース102を介してCFR111にセットされた遅
延時間Txdelay を上記サイクルレジスタの値に加算す
る。そして、加算した値をタイムスタンプとして、受け
取ったパケットのソースパケットヘッダに挿入(設定)
する。
When a source packet header is added, a time stamp for determining the data output time on the receiving side is set. This setting is performed as follows. First, the value of the internal cycle register is latched at the timing when the final data of the packet is received from the MPEG transporter 40. Next, the delay time Txdelay set in the CFR 111 from the CPU 30 via the host interface 102 is added to the value of the cycle register. Then, the added value is inserted into the source packet header of the received packet as a time stamp (setting).
I do.

【0038】図2は、タイムスタンプの具体的な構成を
説明するための図である。図2に示すように、受信側の
データ出力時間を決定するためのタイムスタンプは、2
5ビットで現時刻を表す。すなわち、タイムスタンプは
25ビットで構成され、下位12ビットがサイクルオフ
セットCO(cycle-offset)領域、上位13ビットがサイ
クルカウントCC(cycle-count) 領域として割り当てら
れている。サイクルオフセットは0〜3071(12b
101111111111)の125μsをカウント
し(クロックCLK=24.576MHz)、サイクル
カウントは0〜7999(13b 111110011
1111)の1秒をカウントするものである。したがっ
て、原則として、タイムスタンプの下位12ビットは3
072以上を示すことはなく、上位13ビットは800
0以上を示すことはない。
FIG. 2 is a diagram for explaining a specific configuration of the time stamp. As shown in FIG. 2, the time stamp for determining the data output time on the receiving side is 2
The current time is represented by 5 bits. That is, the time stamp is composed of 25 bits, the lower 12 bits are allocated as a cycle offset CO (cycle-offset) area, and the upper 13 bits are allocated as a cycle count CC (cycle-count) area. The cycle offset is 0-3071 (12b
(111111111111) is counted (clock CLK = 24.576 MHz), and the cycle count is 0 to 7999 (13b 111110011).
1111) is counted for one second. Therefore, in principle, the lower 12 bits of the time stamp are 3
072 or more, and the upper 13 bits are 800
It does not indicate 0 or more.

【0039】送信後処理回路107は、送信前処理回路
106による格納納情報信号S106を受けてFIFO
110に格納されたソースパケットヘッダを含むデータ
を読出て、図8に示すように、1394ヘッダ、CIP
ヘッダ1,2を付加してリンクコア101の送信回路に
出力するとともに、FIFO110の読み出しポインタ
ー等を示す読出情報信号S107をFIFOアクセス調
停回路112に出力する。
The post-transmission processing circuit 107 receives the storage information signal S106 from the pre-transmission processing circuit 106, and
The data including the source packet header stored in the H.110 is read, and as shown in FIG.
Headers 1 and 2 are added and output to the transmission circuit of the link core 101, and a read information signal S 107 indicating a read pointer or the like of the FIFO 110 is output to the FIFO access arbitration circuit 112.

【0040】受信前処理回路108は、リンクコア10
1を介してIEEE1394シリアルバスBSを伝送さ
れてきたアイソクロナス通信用パケットを受けて、受信
パケットの1394ヘッダ、CIPヘッダ1,2等の内
容を解析し、データを復元してソースパケットヘッダと
データをFIFO110に格納し、かつ、このFIFO
110へのデータの書き込みを行ったことを示す格納情
報信号S108をパケットの書き込み毎に受信後処理回
路109およびFIFOアクセス調停回路112に出力
する。
The reception pre-processing circuit 108 includes the link core 10
1 receives an isochronous communication packet transmitted on the IEEE 1394 serial bus BS via the IEEE 1394, analyzes the contents of the 1394 header, CIP headers 1, 2 and the like of the received packet, restores the data, and extracts the source packet header and data. Stored in the FIFO 110 and the FIFO
A storage information signal S108 indicating that data has been written to 110 is output to the post-reception processing circuit 109 and the FIFO access arbitration circuit 112 every time a packet is written.

【0041】受信後処理回路109は、たとえば図3に
示すように、内部レジスタ1091、比較回路109
2、およびデータ読出制御回路1093を備えている。
そして、受信前処理回路108による格納情報信号S1
08の受信毎に、内部レジスタ1091にFIFO11
0に格納されたソースパケットヘッダのタイムスタンプ
の時間データを読み出し、読み出したタイムスタンプデ
ータ(TS)とリンクコア101内にあるサイクルタイ
マによるサイクルタイム(CT)を比較し、サイクルタ
イムCTがタイムスタンプデータTSより大きい場合に
はデータ読出指示用パルス信号S1092をデータ読出
制御回路1093に出力する。なお、この比較回路10
92の具体的な比較動作については後述する。データ読
出制御回路1093は、パルス信号S1092を受ける
と、データ読出信号S1093を出力し、FIFO11
0に格納されているソースパケットヘッダを除くデータ
を読み出しアプリケーションインタフェース回路103
を介し、MPEG用トランスポートストリームデータと
してMPEGトランスポータ40に出力するとともに、
FIFO110の読み出しポインター等を示す読出情報
信号S109をFIFOアクセス調停回路112に出力
する。
The post-reception processing circuit 109 includes an internal register 1091 and a comparison circuit 109, as shown in FIG.
2 and a data read control circuit 1093.
Then, the storage information signal S1 by the reception pre-processing circuit 108
08, the FIFO 11 is stored in the internal register 1091.
The time data of the time stamp of the source packet header stored in 0 is read, and the read time stamp data (TS) is compared with the cycle time (CT) of the cycle timer in the link core 101, and the cycle time CT is set to the time stamp. If it is larger than data TS, it outputs data read instruction pulse signal S1092 to data read control circuit 1093. The comparison circuit 10
The specific comparison operation of 92 will be described later. When receiving the pulse signal S1092, the data read control circuit 1093 outputs a data read signal S1093,
And reads out the data excluding the source packet header stored in 0.
, As MPEG transport stream data to the MPEG transporter 40,
A read information signal S109 indicating a read pointer or the like of the FIFO 110 is output to the FIFO access arbitration circuit 112.

【0042】FIFOアクセス調停回路112は、送信
前処理回路106による格納情報信号S106、送信後
処理回路107による読出制御信号S107、受信前処
理回路108による格納情報信号S108、受信後処理
回路109による読出制御信号S109を受けて、送信
前処理106または送信後処理回路107と受信前処理
108または受信後処理回路109がFIFO110を
同時アクセスするタイミングが発生した場合には、受信
前処理108または受信後処理回路109のFIFO1
10に対するアクセス処理を、送信前処理106または
送信後処理回路107のFIFO110に対するアクセ
ス処理に先行して行われるように調停する調停信号S1
12をセレクタ1113に出力する。
The FIFO access arbitration circuit 112 includes a storage information signal S106 by the pre-transmission processing circuit 106, a read control signal S107 by the post-transmission processing circuit 107, a storage information signal S108 by the pre-reception processing circuit 108, and a read by the post-reception processing circuit 109. In response to the control signal S109, when a timing occurs in which the pre-transmission processing 106 or the post-transmission processing circuit 107 and the pre-reception processing 108 or the post-reception processing circuit 109 simultaneously access the FIFO 110, the pre-reception processing 108 or the post-reception processing is performed. FIFO1 of circuit 109
The arbitration signal S1 that arbitrates the access process to the S.10 so that the access process is performed prior to the access process to the FIFO 110 of the pre-transmission processing 106 or the post-transmission processing circuit 107
12 is output to the selector 1113.

【0043】具体的な例を図4のタイミングチャートに
関連付けて説明する。図4ので示すタイミングでは、
送信前処理回路106による格納情報信号S106、ま
たは送信後処理回路107による読出制御信号S107
のみアクティブで、受信前処理回路108による格納情
報信号S108、または受信後処理回路109による読
出制御信号S1094は非アクティブであるから、調停
なしに送信処理としてのFIFO110のアクセスが行
われる。
A specific example will be described with reference to the timing chart of FIG. At the timing shown in FIG.
The stored information signal S106 by the pre-transmission processing circuit 106 or the read control signal S107 by the post-transmission processing circuit 107
Since only the active signal is active and the stored information signal S108 by the pre-reception processing circuit 108 or the read control signal S1094 by the post-reception processing circuit 109 is inactive, the FIFO 110 is accessed as a transmission process without arbitration.

【0044】図4ので示すタイミングでは、送信前処
理回路106による格納情報信号S106、または送信
後処理回路107による読出制御信号S107と受信前
処理回路108による格納情報信号S108、または受
信後処理回路109による読出制御信号S109共にア
クティブであるから、送信処理と受信処理のFIFO1
10のアクセス動作が衝突することになるから、調停の
必要がある。この場合、図4(b)に示すように、送信
前処理回路106による格納情報信号S106、または
送信後処理回路107による読出制御信号S107を1
サイクル(1クロック分)遅らせ、で示すタイミング
で送信処理としてのFIFO110のアクセスを行うよ
うに調停が行われる。
At the timing shown in FIG. 4, the stored information signal S106 by the pre-transmission processing circuit 106, the read control signal S107 by the post-transmission processing circuit 107 and the stored information signal S108 by the pre-reception processing circuit 108, or the post-reception processing circuit 109 Are both active, the FIFO1 of the transmission process and the reception process
Since the ten access operations will collide, arbitration is required. In this case, as shown in FIG. 4B, the storage information signal S106 by the pre-transmission processing circuit 106 or the read control signal S107 by the post-transmission processing circuit 107 is set to 1
Arbitration is performed such that the cycle (one clock) is delayed and the FIFO 110 is accessed as transmission processing at the timing indicated by.

【0045】また、図4の、で示すタイミングで
も、送信前処理回路106による格納情報信号S10
6、または送信後処理回路107による読出制御信号S
107と受信前処理回路108による格納情報信号S1
08、または受信後処理回路109による読出制御信号
S109共にアクティブであるから、送信処理と受信処
理のFIFO110のアクセス動作が衝突することにな
るから、調停の必要がある。この場合、図4(b)に示
すように、送信前処理回路106による格納情報信号S
106、または送信後処理回路107による読出制御信
号S107を2サイクル(2クロック分)遅らせ、で
示すタイミングで送信処理としてのFIFO110のア
クセスを行うように調停が行われる。
Also at the timing shown in FIG. 4, the stored information signal S 10
6, or the read control signal S by the post-transmission processing circuit 107
107 and the storage information signal S1 by the reception pre-processing circuit 108
08 or the read control signal S109 by the post-reception processing circuit 109 is active, so that the access operation of the FIFO 110 in the transmission processing and the reception processing will collide, and therefore arbitration is necessary. In this case, as shown in FIG. 4B, the stored information signal S
Arbitration is performed such that the read control signal S107 by the post-transmission processing circuit 107 is delayed by two cycles (two clocks), and the FIFO 110 is accessed as transmission processing at the timing shown by.

【0046】次に、IEEE1394シリアルバスBS
を伝送されるアシンクロナス通信用パケットの送受信動
作を説明する。なお、受信後処理回路109における動
作は、比較回路1092の具体的な比較動作を中心に、
図5のフローチャートを参照しつつ説明する。
Next, the IEEE 1394 serial bus BS
The transmission and reception operation of the asynchronous communication packet transmitted through the communication device will be described. Note that the operation of the post-reception processing circuit 109 is mainly based on a specific comparison operation of the comparison circuit 1092.
This will be described with reference to the flowchart of FIG.

【0047】IEEE1394シリアルバスBSにアイ
ソクロナス通信用パケットを送出する場合には、たとえ
ばCPU30からアイソクロナス通信用パケットのSP
H(ソースパケットヘッダ)に設定されるタイムスタン
プ用遅延時間Txdelay がホストインタフェース102を
通してCFR111にセットされる。
When transmitting an isochronous communication packet to the IEEE 1394 serial bus BS, the CPU 30 transmits the isochronous communication packet SP, for example.
The time stamp delay time Txdelay set in H (source packet header) is set in the CFR 111 through the host interface 102.

【0048】そして、送信前処理回路106では、アプ
リケーションインタフェース回路103を介してMPE
Gトランスポータ40によるMPEGトランスポートス
トリームデータを受けて、IEEE1394規格のアイ
ソクロナス通信用としてクワドレット(4バイト)単位
にデータ長が調整される。このとき、ラッチ回路106
1にラッチされた遅延時間Txdelay を用いてタイムスタ
ンプの値が設定され4バイトのソースパケットヘッダ
(SPH)が付加されFIFO110に格納される。そ
して、FIFOの書き込みポインター等の格納情報信号
S106が送信後処理回路107およびFIFOアクセ
ス調停回路112に出力される。
Then, in the transmission pre-processing circuit 106, the MPE
Upon receiving the MPEG transport stream data by the G transporter 40, the data length is adjusted in quadlets (4 bytes) for isochronous communication according to the IEEE 1394 standard. At this time, the latch circuit 106
The value of the time stamp is set using the delay time Txdelay latched at 1, and a 4-byte source packet header (SPH) is added and stored in the FIFO 110. Then, a storage information signal S 106 such as a FIFO write pointer is output to the post-transmission processing circuit 107 and the FIFO access arbitration circuit 112.

【0049】送信後処理回路107では、送信前処理回
路106のFIOFアクセス制御回路1062による格
納情報信号S106を受けて、FIFO110に格納さ
れたソースパケットヘッダを含むデータに対して、13
94ヘッダ、CIPヘッダ1,2が付加されしリンクコ
ア101の送信回路に出力され、フィジカル・レイヤ回
路20を介してIEEE1394シリアルバスBSにア
イソクロナス通信用パケットとして送出される。
The post-transmission processing circuit 107 receives the storage information signal S106 from the FIFO access control circuit 1062 of the pre-transmission processing circuit 106, and applies 13 bits to the data including the source packet header stored in the FIFO 110.
A 94 header and CIP headers 1 and 2 are added and output to the transmission circuit of the link core 101, and transmitted as an isochronous communication packet to the IEEE 1394 serial bus BS via the physical layer circuit 20.

【0050】IEEE1394シリアルバスBSを伝送
されてきたアイソクロナス通信用パケットは、リンクコ
ア101を介して受信前処理回路108に入力される。
受信前処理回路108では、受信パケットの1394ヘ
ッダ、CIPヘッダ1,2等の内容が解析され、データ
が復元されてソースパケットヘッダとデータがFIFO
110に書き込まれる。そして、このFIFO110へ
のデータの書き込みを行ったこと示す格納情報信号S1
08がパケットの書き込み毎に受信後処理回路109お
よびFIFOアクセス調停回路112に出力される。
The isochronous communication packet transmitted on the IEEE 1394 serial bus BS is input to the reception pre-processing circuit 108 via the link core 101.
The pre-reception processing circuit 108 analyzes the contents of the received packet such as the 1394 header, CIP headers 1 and 2, and restores the data.
Written to 110. The storage information signal S1 indicating that data has been written to the FIFO 110
08 is output to the post-reception processing circuit 109 and the FIFO access arbitration circuit 112 every time a packet is written.

【0051】受信後処理回路109においては、図5に
示すように、信号S108を受けてFIFO110から
タイムスタンプが内部レジスタ1091に読み出される
とともに、その時のサイクルタイム(Cycle Time;CT)
〔25〕、すなわち、現時刻の秒の桁が内部レジスタ1
091に読み出される(S1)。
In the post-reception processing circuit 109, as shown in FIG. 5, upon receiving the signal S108, the time stamp is read from the FIFO 110 to the internal register 1091, and the cycle time (CT) at that time is read.
[25], that is, the second digit of the current time is stored in the internal register 1
091 (S1).

【0052】そして、比較回路1092において、内部
レジスタ1091に読み出されたタイムスタンプデータ
TSとリンクコア101内にあるサイクルタイマによる
サイクルタイム(CT)、すなわち現時刻CTとが比較
される(S2)。このとき、タイムスタンプの時間TS
が0秒の位置を挟んでいるか否かが確認される。これ
は、0秒を挟んでいると単純な大小比較では処理できな
いことによる。
Then, the comparison circuit 1092 compares the time stamp data TS read into the internal register 1091 with the cycle time (CT) of the cycle timer in the link core 101, that is, the current time CT (S2). . At this time, the time TS of the time stamp
It is checked whether or not is sandwiching the position of 0 seconds. This is because simple magnitude comparison cannot be performed if 0 seconds is interposed.

【0053】ステップS2において、TSがCTより小
さいと判別された場合には、ステップS3において、現
時刻CTからタイムスタンプが示す時間TSを減じた時
間が8000から64を減じた値以上であるか否かが判
別される。すなわち、TSが0秒を挟んで待っている
が、現時刻CTが実際は通りすぎているのではないか否
かがチェックされる。なお、サイクルタイムは25ビッ
トで構成され、上位13ビットをサイクルカウント(cyc
le-count) 領域、下位12ビットをサイクルオフセット
(cycle-offset)領域として用いられている。また、送信
側ではタイムスタンプのサイクルカウントには遅延値tx
delay が最大63ビットしか付加されない。サイクルタ
イムのサイクルカウントは、0〜7999をループす
る。そこで、ステップS3において、肯定的な判別結果
が得られた場合、タイムスタンプは有効であり、サイク
ルタイムは未だ通り過ぎていないと判断され、ステップ
S4の処理に移行する。ステップS3において、否定的
な判別結果が得られた場合、サイクルタイムはタイムス
タンプが示す時間を通り過ぎたものと判断され、ステッ
プS8の処理に移行する。
If it is determined in step S2 that TS is smaller than CT, it is determined in step S3 that the time obtained by subtracting the time TS indicated by the time stamp from the current time CT is equal to or greater than the value obtained by subtracting 64 from 8000. It is determined whether or not it is. That is, it is checked whether or not the current time CT is actually passing while the TS waits for 0 seconds. The cycle time is composed of 25 bits, and the upper 13 bits are used for the cycle count (cyc
le-count) area, lower 12 bits cycle offset
(cycle-offset) area. On the transmitting side, the timestamp cycle count is the delay value tx
The delay is added only up to 63 bits. The cycle count of the cycle time loops from 0 to 7999. Therefore, if a positive determination result is obtained in step S3, it is determined that the time stamp is valid and the cycle time has not passed, and the process proceeds to step S4. If a negative determination result is obtained in step S3, it is determined that the cycle time has passed the time indicated by the time stamp, and the process proceeds to step S8.

【0054】ステップS4においては、CT>TSと0
秒を挟んでTS待ちをしていることから、CTとの単純
な比較はできない。ここでは、ステップS1でレジスタ
に読み出した現時刻の秒の桁CT〔25〕が現在のCT
〔25〕(Refsec)と不一致となるまで待たれる。そし
て、不一致となると、TSとCTの秒の桁が同一となっ
たと判断される(TSは1秒以上待つことはあり得な
い)。
In step S4, CT> TS and 0
A simple comparison with CT cannot be made since the user waits for TS between seconds. Here, the second digit CT [25] of the current time read into the register in step S1 is the current CT.
[25] Wait until it does not match (Refsec). If they do not match, it is determined that the seconds digits of TS and CT are the same (the TS cannot wait for more than one second).

【0055】ステップS4の条件を満足すると、ステッ
プS5において、TS≦CTになったか否かが判別され
る(単純比較される)。そして、TS≦CTになった時
点でFIFO110からのパケット(データ)の読み出
しが開始される。
If the condition of step S4 is satisfied, it is determined in step S5 whether or not TS ≦ CT (simple comparison is performed). Then, when TS ≦ CT, reading of the packet (data) from the FIFO 110 is started.

【0056】一方、ステップS2において、TSがCT
より大きいと判別された場合(TS>CT)には、単純
比較を行うことができるが、まずステップS6において
TSが有効であるか否かのチェックが行われる。具体的
には、TSはCTに最大63を加算したものであること
から、タイムスタンプが示す時間TSから現時刻CTを
減じた時間が64より小さいはずであり、ステップS6
においてその判別が行われる。そして、否定的な判別結
果が得られた場合には、ステップS8に移行し、そのC
TはすでにTSを通りすぎていることから、直ちにFI
FO110からパケットが読み出され、出力される。
On the other hand, in step S2, TS
When it is determined that the value is greater than the value (TS> CT), a simple comparison can be performed. First, in step S6, a check is performed to determine whether the TS is valid. Specifically, since TS is a value obtained by adding a maximum of 63 to CT, the time obtained by subtracting the current time CT from the time TS indicated by the time stamp should be smaller than 64.
Is determined. When a negative determination result is obtained, the process proceeds to step S8,
Since T has already passed TS, FI
A packet is read from the FO 110 and output.

【0057】ステップS6において、肯定的な判別結果
が得られた場合、TSが有効であることから、TS待ち
が行われる。ここでTSが有効で秒の桁がCT〔25〕
と不一致となることはないが、ステップS7において不
一致となったか否かの判別が行われ、万が一、不一致に
なった場合には強制的にFIFO110からパケットが
読み出され、出力される。
If a positive determination result is obtained in step S6, the process waits for a TS because the TS is valid. Here, TS is valid and the second digit is CT [25].
Although there is no discrepancy, it is determined in step S7 whether or not there is a discrepancy. If the discrepancy does occur, the packet is forcibly read from the FIFO 110 and output.

【0058】以上の受信後処理回路109においてFI
FO110のアクセスを行う場合には、読出情報信号S
109がFIFOアクセス調停回路112に出力され
る。
In the above-mentioned post-reception processing circuit 109, FI
When accessing the FO 110, the read information signal S
109 is output to the FIFO access arbitration circuit 112.

【0059】上述したシリアルインタフェースバスへデ
ータを送出する送信処理、アプリケーション側への受信
データを出力する受信処理において、FIFOアクセス
調停回路112には、送信前処理回路106による格納
情報信号S106、送信後処理回路107による読出制
御信号S107、受信前処理回路108による格納情報
信号S108、受信後処理回路109による読出制御信
号S109が入力される。そして、送信前処理106ま
たは送信後処理回路107と受信前処理108または受
信後処理回路109がFIFO110を同時アクセスす
るタイミングが発生した場合には、受信前処理108ま
たは受信後処理回路109のアクセス処理が、送信前処
理106または送信後処理回路107のアクセス処理に
先行して行われるように調停信号S112により調停さ
れる。これにより、受信処理が送信処理に先行して行わ
れる。
In the above-described transmission processing for transmitting data to the serial interface bus and reception processing for outputting received data to the application side, the FIFO access arbitration circuit 112 receives the stored information signal S106 from the transmission preprocessing circuit 106, A read control signal S107 from the processing circuit 107, a stored information signal S108 from the pre-reception processing circuit 108, and a read control signal S109 from the post-reception processing circuit 109 are input. When a timing occurs in which the pre-transmission processing 106 or the post-transmission processing circuit 107 and the pre-reception processing 108 or the post-reception processing circuit 109 simultaneously access the FIFO 110, the access processing of the pre-reception processing 108 or the post-reception processing circuit 109 is performed. Are arbitrated by the arbitration signal S112 so as to be performed prior to the access processing of the pre-transmission processing 106 or the post-transmission processing circuit 107. Thereby, the receiving process is performed prior to the transmitting process.

【0060】以上説明したように、本実施形態によれ
ば、シリアルインタフェースバスへデータを送出する送
信処理、アプリケーション側への受信データを出力する
受信処理において、FIFO110を同時アクセスする
タイミングが生じた場合には、受信処理が送信処理に先
行して行われるように調停するFIFOアクセス調停回
路112を設けたので、送信処理の要求と受信処理の要
求が同時に発生した場合に両処理を的確に調停でき、ス
ムーズなデータ転送を実現できる利点がある。
As described above, according to the present embodiment, in the transmission processing for transmitting data to the serial interface bus and the reception processing for outputting received data to the application side, the timing of simultaneous access to the FIFO 110 occurs. Has a FIFO access arbitration circuit 112 that performs arbitration so that the reception processing is performed prior to the transmission processing, so that when the transmission processing request and the reception processing request occur at the same time, the two processing can be arbitrated accurately. There is an advantage that smooth data transfer can be realized.

【0061】また、本実施形態では、受信したパケット
に付加されているタイムスタンプのデータTSと内部の
サイクルカウンタによるサイクルタイムCTとを比較
し、サイクルタイムCTがタイムスタンプデータTSよ
り大きい場合(CT>TS)、FIFO110に格納し
た受信データを出力するようにしたので、IEEE13
94シリアルバスBSを伝送されてきたアシンクロナス
通信用パケットをMPEGトランスポータ40(アプリ
ケーション)側へ規定された時間に確実に出力すること
ができる。
In this embodiment, the data TS of the time stamp added to the received packet is compared with the cycle time CT by the internal cycle counter, and if the cycle time CT is larger than the time stamp data TS (CT > TS), the received data stored in the FIFO 110 is output.
Asynchronous communication packets transmitted through the 94 serial bus BS can be reliably output to the MPEG transporter 40 (application) at a specified time.

【0062】[0062]

【発明の効果】以上説明したように、本発明によれば、
送信処理の要求と受信処理の要求が同時に発生した場合
に両処理を的確に調停でき、スムーズなデータ転送を実
現できる。
As described above, according to the present invention,
When a request for a transmission process and a request for a reception process occur simultaneously, both processes can be arbitrated accurately and smooth data transfer can be realized.

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

【図1】IEEE1394シリアルインタフェースに適
用される本発明に係るMPEG用信号処理回路の一実施
形態を示すブロック構成図である。
FIG. 1 is a block diagram showing an embodiment of an MPEG signal processing circuit according to the present invention applied to an IEEE 1394 serial interface.

【図2】タイムスタンプの具体的な構成を説明するため
の図である。
FIG. 2 is a diagram illustrating a specific configuration of a time stamp.

【図3】本発明に係るアイソクロナス通信系受信処理回
路のタイムスタンプの処理回路の構成例を示すブロック
図である。
FIG. 3 is a block diagram illustrating a configuration example of a time stamp processing circuit of the isochronous communication system reception processing circuit according to the present invention.

【図4】本発明に係るFIFOアクセス調停回路の動作
を説明するためのタイミングチャートである。
FIG. 4 is a timing chart for explaining the operation of the FIFO access arbitration circuit according to the present invention.

【図5】本発明に係るアイソクロナス通信系受信処理回
路の動作を説明するための図である。
FIG. 5 is a diagram for explaining the operation of the isochronous communication system reception processing circuit according to the present invention.

【図6】アイソクロナス通信における1ソースパケット
のバイトサイズを示す図であって、(A)はDVB仕様
時、(B)はDSS仕様時のパケットサイズを示す図で
ある。
6A and 6B are diagrams showing the byte size of one source packet in isochronous communication, wherein FIG. 6A is a diagram showing a packet size under DVB specifications, and FIG. 6B is a diagram showing a packet size under DSS specifications.

【図7】IEEE1394規格のアイソクロナス通信で
データを送信させるときの元のデータと、実際に送信さ
れるパケットとの対応関係の一例を示す図である。
FIG. 7 is a diagram illustrating an example of a correspondence relationship between original data and data to be actually transmitted when data is transmitted by isochronous communication of the IEEE1394 standard.

【図8】ソースパケットヘッダのフォーマットを示す図
である。
FIG. 8 is a diagram showing a format of a source packet header.

【図9】アイソクロナス通信用パケットの基本構成例を
示す図である。
FIG. 9 is a diagram illustrating a basic configuration example of an isochronous communication packet.

【符号の説明】[Explanation of symbols]

10…リンク・レイヤ回路、101…リンクコア、10
2…ホストインタフェース回路、103…アプリケーシ
ョンインタフェース回路、104…アシンクロナス通信
用FIFO、104a…送信用FIFO(AT-FIFO)、1
04b…受信用FIFO(AR-FIFO)、105…セルフI
D用リゾルバ(Resolver)、106…アイソクロナス通信
用送信前処理回路、107…アイソクロナス通信用送信
後処理回路、108…アイソクロナス通信用受信前処理
回路、109…アイソクロナス通信用受信後処理回路、
1091…内部レジスタ、1092…比較回路、109
3…データ読出制御回路110…アイソクロナス通信用
FIFO(I-FIFO)、111…コンフィギュレーションレ
ジスタ、112…FIFOアクセス調停回路、20…フ
ィジカル・レイヤ回路、30…CPU、40…MPEG
トランスポータ。
10: link layer circuit, 101: link core, 10
2 Host interface circuit 103 Application interface circuit 104 FIFO for asynchronous communication 104a Transmission FIFO (AT-FIFO), 1
04b: FIFO for reception (AR-FIFO), 105: Self-I
Resolver for D, 106: transmission preprocessing circuit for isochronous communication, 107: transmission postprocessing circuit for isochronous communication, 108: reception preprocessing circuit for isochronous communication, 109: reception postprocessing circuit for isochronous communication,
1091: internal register, 1092: comparison circuit, 109
3: Data read control circuit 110: FIFO (I-FIFO) for isochronous communication, 111: Configuration register, 112: FIFO access arbitration circuit, 20: Physical layer circuit, 30: CPU, 40: MPEG
Transporter.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 アプリケーション側から送信データを受
けて、あらかじめ決められた時間サイクルでシリアルイ
ンタフェースバスに送出する送信回路と、 上記シリアルインタフェースバスを伝送されたデータを
受信してアプリケーション側に出力する受信回路と、 送信データの受入れとシリアルインタフェースバスを伝
送されたデータの受信が同時に行われた場合に、上記送
信回路の処理と上記受信回路の処理のうちのいずれか一
方の回路の処理を先行させて行わせる調停回路とを有す
る信号処理回路。
A transmission circuit for receiving transmission data from an application side and transmitting the transmission data to a serial interface bus in a predetermined time cycle; and a reception circuit for receiving data transmitted through the serial interface bus and outputting the data to the application side. Circuit, when the reception of the transmission data and the reception of the data transmitted through the serial interface bus are performed simultaneously, the processing of one of the processing of the transmission circuit and the processing of the reception circuit is performed first. A signal processing circuit having an arbitration circuit for performing the arbitration.
【請求項2】 記憶手段を有し、 上記送信回路は、受けた送信データを所定のフォーマッ
トで上記記憶手段に格納し、格納したデータを当該記憶
手段から読み出し上記シリアルインタフェースバスに送
出し、 上記受信回路は、受信データを復元して上記記憶手段に
格納し、所定のタイミングで格納したデータを読み出し
アプリケーション側に出力し、 上記調停回路は、上記送信回路と上記受信回路の上記記
憶手段に対するアクセスを調停する請求項1記載の信号
処理回路。
2. A transmission circuit, wherein the transmission circuit stores received transmission data in a predetermined format in the storage unit, reads out the stored data from the storage unit, and sends the data to the serial interface bus. The receiving circuit restores the received data and stores it in the storage means, reads out the stored data at a predetermined timing, and outputs the read data to the application side, and the arbitration circuit accesses the storage means of the transmission circuit and the reception circuit to the storage means. 2. The signal processing circuit according to claim 1, wherein the signal processing circuit arbitrates.
【請求項3】 時間を計測する計測手段を有し、 上記送信回路は、アプリケーション側から受けた送信デ
ータに、受信側で受信データをアプリケーション側へ出
力すべき時間情報を付加して上記記憶手段に格納し、 上記受信回路は、上記シリアルインタフェースバスを送
信されたパケットデータから上記時間情報を取り出し、
上記計測手段による計測時間値が当該時間情報値より大
きい場合に、上記記憶手段から受信データを読み出して
上記アプリケーション側へ出力するを有する請求項2記
載の信号処理回路。
3. The transmitting circuit includes a measuring unit for measuring time, wherein the transmitting circuit adds, to the transmitting data received from the application side, time information for outputting the received data to the application side on the receiving side. The reception circuit extracts the time information from the packet data transmitted through the serial interface bus,
3. The signal processing circuit according to claim 2, further comprising: when the time value measured by said measuring means is larger than the time information value, reading the received data from said storage means and outputting it to said application side.
【請求項4】 上記調停回路は、上記受信回路の処理を
先行させる請求項1記載の信号処理回路。
4. The signal processing circuit according to claim 1, wherein said arbitration circuit precedes processing of said reception circuit.
【請求項5】 上記調停回路は、上記受信回路の処理を
先行させる請求項2記載の信号処理回路。
5. The signal processing circuit according to claim 2, wherein the arbitration circuit precedes the processing of the reception circuit.
【請求項6】 上記調停回路は、上記受信回路の処理を
先行させる請求項3記載の信号処理回路。
6. The signal processing circuit according to claim 3, wherein the arbitration circuit precedes the processing of the reception circuit.
JP8419197A 1997-04-02 1997-04-02 Signal processing circuit Pending JPH10285190A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8419197A JPH10285190A (en) 1997-04-02 1997-04-02 Signal processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8419197A JPH10285190A (en) 1997-04-02 1997-04-02 Signal processing circuit

Publications (1)

Publication Number Publication Date
JPH10285190A true JPH10285190A (en) 1998-10-23

Family

ID=13823592

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8419197A Pending JPH10285190A (en) 1997-04-02 1997-04-02 Signal processing circuit

Country Status (1)

Country Link
JP (1) JPH10285190A (en)

Similar Documents

Publication Publication Date Title
US6259694B1 (en) Signal processing circuit
CA2328437C (en) Method of and apparatus for isochronous data communication
US6539488B1 (en) System with a plurality of media access control circuits with a shared memory for storing data and synchronizing data from a clock domain to a host clock domain
US20060013223A1 (en) Apparatus for and method of predictive time stamping of isochronous data packets transmitted over an IEEE 1394-1995 serial bus network
JP3785747B2 (en) Serial interface circuit and signal processing method thereof
JP3731283B2 (en) Signal processing circuit and method thereof
US6804205B1 (en) Method and apparatus for transmitting packet for synchronization using half duplex transmission medium
JP3837857B2 (en) Signal processing circuit
JPH10285241A (en) Signal processing circuit
KR100539018B1 (en) Method and device for processing data packets which have been received or are to be transmitted on a data channel
JP3924903B2 (en) Signal processing circuit
JPH10285223A (en) Signal processing circuit
JP2000183995A (en) Data processing circuit
JP4148290B2 (en) Signal processing circuit
JP4148292B2 (en) Signal processing circuit
JP4148291B2 (en) Signal processing circuit
JP4192988B2 (en) Signal processing circuit
JP4045672B2 (en) Signal processing circuit
JPH10285236A (en) Signal processing circuit
JP4032543B2 (en) Signal processing circuit
JPH10283289A (en) Signal processing circuit
JP2000156698A (en) Signal processing circuit
JPH10285235A (en) Signal processing circuit
JP3189571B2 (en) Data processing device
JP4061731B2 (en) Signal processing circuit and method thereof