JPH1117774A - Serial interface circuit - Google Patents

Serial interface circuit

Info

Publication number
JPH1117774A
JPH1117774A JP9164812A JP16481297A JPH1117774A JP H1117774 A JPH1117774 A JP H1117774A JP 9164812 A JP9164812 A JP 9164812A JP 16481297 A JP16481297 A JP 16481297A JP H1117774 A JPH1117774 A JP H1117774A
Authority
JP
Japan
Prior art keywords
circuit
packet
data
time
split
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
JP9164812A
Other languages
Japanese (ja)
Inventor
Ryuta Nakamura
龍太 中村
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 JP9164812A priority Critical patent/JPH1117774A/en
Publication of JPH1117774A publication Critical patent/JPH1117774A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To enable transmission/reception while making the data of a large capacitance into packets and to enable smooth processing by generating a request packet from a present node to the other node, sending it to a serial interface and detecting split time out when the packet of a response to the request packet is not returned within preset time. SOLUTION: A pending detection circuit 1261 detects whether the response from the other node is under pending or not and when pending is detected, a detecting signal S1261 is outputted to a split time counter 1262. When the detecting signal is received, the split time counter 1262 starts time measuring operation. When the time of the split time counter 1262 reaches the set time of a time out register 1263, a time out signal STO showing split time out is outputted from a comparator circuit 1264. Thus, for example, communication operation is stopped and an error is displayed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ディジタルシリア
ルインタフェース回路に係り、特にHDD(Hard Disk
Drive) 、DVD(Digital Video Disk)−ROM、CD
(Compact Disk)−ROM、テープストリーマ(Tape Stre
amer) 等のストレージ装置に接続するシリアルインタフ
ェース回路およびその信号処理方法に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital serial interface circuit, and more particularly to a hard disk drive (HDD).
Drive), DVD (Digital Video Disk) -ROM, CD
(Compact Disk)-ROM, Tape Streamer
The present invention relates to a serial interface circuit connected to a storage device such as an amer) and a signal processing method thereof.

【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シリアルインタフェ
ースのデータ転送においては、ネットワーク内で行われ
る転送動作をサブアクションと呼び、2つのサブアクシ
ョンが規定されている。一つは、従来のRequest,Acknow
ledge の要求、受信確認を行うアシンクロナス(Asynch
ronous) 転送であり、他の一つはあるノードから125
μsに1回必ずデータが送られるアイソクロナス(Isoch
ronous) 転送である。
In the data transfer of the IEEE 1394 serial interface, a transfer operation performed in a network is called a subaction, and two subactions are defined. One is conventional Request, Acknow
Asynchronous (Asynch) for requesting and confirming receipt of ledge
ronous) forwarding, and the other is 125
Isochronous (Isoch) where data is always sent once every μs
ronous) Transfer.

【0004】このように、2つの転送モードを有するI
EEE1394シリアルインタフェースでのデータは、
パケット単位で転送が行われるが、IEEE1394規
格では、取り扱う最小データの単位は1クワドレット(q
uadlet) (=4バイト=32ビット)である。
As described above, an I having two transfer modes
The data in the EEE1394 serial interface is
Although transfer is performed in packet units, in the IEEE 1394 standard, the minimum data unit handled is one quadlet (q
uadlet) (= 4 bytes = 32 bits).

【0005】IEEE1394規格では、通常、コンピ
ュータデータは、図7に示すように、アシンクロナス転
送を用いて行われる。アシンクロナス転送は、図7
(a)に示すように、バスを獲得するためのアービトレ
ーション(arb)、データを転送するパケットトラン
スミッション、およびアクノリッジメント(ack)の
3つの遷移状態をとる。
[0005] In the IEEE1394 standard, computer data is usually transmitted using asynchronous transfer as shown in FIG. Asynchronous transfer is shown in FIG.
As shown in (a), there are three transition states: arbitration (arb) for acquiring a bus, packet transmission for transferring data, and acknowledgment (ack).

【0006】そして、パケットトランスミッションの実
行は、図7(b)に示すようなフォーマットで行われ
る。転送パケットの第1クワドレットは、16ビットの
デスティネーションID(destination ID)領域、6ビッ
トのトランザクション・ラベルtl(transaction labe
l) 領域、2ビットのリトライ コードrt(retry cod
e)領域、4ビットのトランザクション・コードtcod
e(transanction code) 領域、および4ビットのプライ
オリティpri(priority)領域から構成されている。デ
スティネーションID領域はこのノードのバスナンバー
とノードナンバー、プライオリティ領域は優先レベルを
示す。
The execution of packet transmission is performed in a format as shown in FIG. The first quadlet of the transfer packet includes a 16-bit destination ID (destination ID) area and a 6-bit transaction label tl (transaction label).
l) area, 2-bit retry code rt (retry cod
e) area, 4-bit transaction code tcod
An e (transanction code) area and a 4-bit priority pri (priority) area. The destination ID area indicates the bus number and node number of this node, and the priority area indicates the priority level.

【0007】第2クワドレットおよび第3クワドレット
は、16ビットのソースID(source ID) 領域、および
48ビットのデスティネーション・オフセット(destina
tionoffset)領域により構成されている。ソースID領
域はこのパケットを送ったノードIDを示し、デスティ
ネーション・オフセット領域はハイ(High)およびロー(L
ow) の連続した領域からなり、デスティネーション・ノ
ードのアドレス空間のアドレスを示す。
[0007] The second and third quadlets have a 16-bit source ID area and a 48-bit destination offset (destina- tion).
tionoffset) region. The source ID area shows the ID of the node that sent this packet, and the destination offset area shows high (High) and low (L
ow), and indicates the address of the address space of the destination node.

【0008】第4クワドレットは、16ビットのデータ
長(data length) 領域、および16ビットのイクステン
ディド・トランザクション・コード(extended tcode)領
域に構成されている。データ長領域は受信したパケット
のバイト数を示し、イクステンディド tcode領域はtc
odeがロック・トランザクション(Lock transaction)
の場合、このパケットのデータが行う実際のロック動作
(Lock Action) を示す領域である。
[0008] The fourth quadlet is composed of a 16-bit data length area and a 16-bit extended transaction code (extended tcode) area. The data length field indicates the number of bytes of the received packet, and the extended tcode field is tc.
mode is a Lock transaction
If, the actual locking action performed by the data in this packet
(Lock Action).

【0009】データフィールド領域(data field)の前の
クワドレットに付加されたヘッダCRC(header CRC)
領域は、パケットヘッダの誤り検出符号である。また、
データ領域(data field)の後のクワドレットに付加され
たデータCRC(data CRC) 領域は、データフィールド
の誤り検出符号である。
[0009] A header CRC (header CRC) added to the quadlet before the data field area (data field)
The area is an error detection code of the packet header. Also,
A data CRC (data CRC) area added to the quadlet after the data area (data field) is an error detection code of the data field.

【0010】[0010]

【発明が解決しようとする課題】ところで、上述したよ
うに、アシンクロナス転送で行われる通常のコンピュー
タデータの転送では、そのプロトコルとして、SBP−
2(Serial Bus Protocol-2) が用いられる。このプロト
コルによると、ストレージデバイス(Storage Device)で
あるターゲット(Target)からホストコンピュータ(Host
Computer) であるイニシエータ(Initiator) にデータを
転送するときは、ストレージデバイスからホストコンピ
ュータのメモリへデータを書き込む形で、またホストコ
ンピュータからターゲットにデータを転送するときは、
ストレージデバイスがホストコンピュータのメモリのデ
ータを読み出す形で転送が行われる。
As described above, in the normal computer data transfer performed by the asynchronous transfer, the SBP-based protocol is used as the protocol.
2 (Serial Bus Protocol-2) is used. According to this protocol, a host device (Host) is transferred from a target (Target) that is a storage device.
When transferring data to the initiator, which is a Computer, the data is written from the storage device to the memory of the host computer, and when transferring the data from the host computer to the target,
The transfer is performed in such a manner that the storage device reads the data in the memory of the host computer.

【0011】しかしながら、ストレージデバイスに格納
される、あるいはストレージデバイスから読み出される
大容量のデータをIEEE1394規格のパケットにし
て、送受信するための、いわゆるトランザクション・レ
イヤ(Transaction Layer) をコントロールする処理系回
路システムが未だ確立されていない。また、スプリット
トランザクションにおいてスプリットタイムアウトを検
出する回路の実現も要望されている。
However, a processing circuit system for controlling a so-called transaction layer for transmitting and receiving a large amount of data stored in or read from the storage device in packets of the IEEE 1394 standard. Has not yet been established. There is also a need for a circuit that detects a split timeout in a split transaction.

【0012】本発明は、かかる事情に鑑みてなされたも
のであり、その目的は、スプリットタイムアウトの検出
を自動化でき、大容量のデータを所定の規格に合わせて
たパケットにして送受信することができ、また、円滑な
送受信処理をことができるシリアルインタフェース回路
を提供することにある。
The present invention has been made in view of the above circumstances, and an object of the present invention is to enable automatic detection of split timeout, and to transmit and receive a large amount of data as a packet conforming to a predetermined standard. Another object of the present invention is to provide a serial interface circuit capable of performing smooth transmission / reception processing.

【0013】[0013]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、自ノードとシリアルインタフェースバス
を介して接続された他ノード間でパケットの送受信を行
うシリアルインタフェース回路であって、自ノードから
他ノードへの要求パケットを生成し、上記シリアルイン
タフェースバスに送出する第1のデータ処理回路と、上
記要求パケットに対する応答パケットがあらかじめ設定
した時間内に返送されないときにスプリットタイムアウ
トを検出する第2のデータ処理回路とを有する。
In order to achieve the above object, the present invention relates to a serial interface circuit for transmitting and receiving a packet between another node connected to the own node via a serial interface bus. And a second data processing circuit for generating a request packet to be transmitted to another node and transmitting the request packet to the serial interface bus, and a second data processing circuit for detecting a split timeout when a response packet to the request packet is not returned within a predetermined time. Data processing circuit.

【0014】また、本発明では、上記第2のデータ処理
回路は、他ノードからの応答がペンディングであるか否
かを検出し、ペンディングであると検出した場合には検
出信号を出力するペンディング検出回路と、上記ペンデ
ィング検出回路による検出信号を受けると起動して時間
を計時するスプリットタイムカウンタと、タイムアウト
時間を任意に設定可能なタイムアウトレジスタと、上記
スプリットタイムカウンタの時間が上記タイムアウトレ
ジスタの設定時間に達するとスプリットタイムアウトで
あることを示すタイムアウト信号を出力する比較回路と
を有する。
In the present invention, the second data processing circuit detects whether or not a response from another node is pending, and outputs a detection signal when the response is detected as pending. Circuit, a split time counter which starts up when receiving a detection signal from the pending detection circuit and measures time, a timeout register which can set a timeout time arbitrarily, and a time of the split time counter set time of the timeout register. And a comparison circuit that outputs a timeout signal indicating that a split timeout has occurred.

【0015】また、本発明では、上記スプリットタイム
カウンタは、計時動作開始後であってタイムアウト信号
が上記比較回路から出力される前に応答パケットを受け
ると計時動作を停止する。
In the present invention, when the split time counter receives the response packet after the start of the timing operation and before the timeout signal is output from the comparison circuit, the split time counter stops the timing operation.

【0016】また、本発明では、タイムアウトレジスタ
の設定時間は、データ長に応じて変更される。
In the present invention, the set time of the timeout register is changed according to the data length.

【0017】また、本発明の回路によれば、第1のデー
タ処理回路において、自ノードから他ノードへの要求パ
ケットが生成され、シリアルインタフェースバスに送出
される。そして、第2のデータ処理回路において、要求
パケットに対する応答パケットがあらかじめ設定した時
間内に返送されないときにスプリットタイムアウトが検
出される。
Further, according to the circuit of the present invention, in the first data processing circuit, a request packet from the own node to another node is generated and transmitted to the serial interface bus. The second data processing circuit detects a split timeout when a response packet to the request packet is not returned within a preset time.

【0018】たとえば、ペンディング検出回路で、他ノ
ードからの応答がペンディングであるか否かが検出さ
れ、ペンディングであると検出された場合には検出信号
がスプリットタイムカウンタに出力される。スプリット
タイムカウンタは、検出信号を受けると起動されて計時
動作が開始される。そして、このスプリットタイムカウ
ンタの時間がタイムアウトレジスタの設定時間に達する
とスプリットタイムアウトであることを示すタイムアウ
ト信号が比較回路から出力される。
For example, a pending detection circuit detects whether or not a response from another node is pending, and outputs a detection signal to the split time counter when the response is detected as pending. The split time counter is activated upon receiving the detection signal, and starts the timekeeping operation. When the time of the split time counter reaches the time set in the time-out register, a time-out signal indicating a split time-out is output from the comparison circuit.

【0019】[0019]

【発明の実施の形態】図1は、本発明に係るIEEE1
394シリアルインタフェース回路の一実施形態を示す
ブロック構成図である。なお、このシリアルインタフェ
ース回路は、アシンクロナス通信で扱われるコンピュー
タデータの転送を行うことを目的として構成されてい
る。このため、図1においては、アイソクロナス通信系
回路の具体的な構成は図示していない。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows an IEEE 1 according to the present invention.
FIG. 3 is a block diagram illustrating an embodiment of a 394 serial interface circuit. This serial interface circuit is configured to transfer computer data handled in asynchronous communication. Therefore, FIG. 1 does not show a specific configuration of the isochronous communication system circuit.

【0020】このシリアルインタフェース回路は、リン
ク/トランザクション・レイヤ集積回路10、フィジカ
ル・レイヤ回路20、ストレージデバイスとしての図示
しないハードディスクドライバ(HDD)のコントロー
ラ30、ホストコンピュータとしてのローカルプロセッ
サ40により構成されている。
This serial interface circuit includes a link / transaction layer integrated circuit 10, a physical layer circuit 20, a hard disk driver (HDD) controller 30 (not shown) as a storage device, and a local processor 40 as a host computer. I have.

【0021】リンク/トランザクション・レイヤ集積回
路10は、リンク・レイヤ回路100およびトランザク
ション・レイヤ回路120が集積化されて構成され、ロ
ーカルプロセッサ40の制御の下、アシンクロナス転送
の制御、並びにフィジカル・レイヤ回路20の制御を行
う。
The link / transaction layer integrated circuit 10 is formed by integrating the link layer circuit 100 and the transaction layer circuit 120, and controls the asynchronous transfer under the control of the local processor 40 and the physical layer circuit. 20.

【0022】リンク・レイヤ回路100は、図1に示す
ように、リンクコア(Link Core))101、CPUインタ
フェース回路(Sub-CPU I/F )102、アシンクロナス
通信で用いられる送信用FIFO(AT-FIFO:First-In F
irst-Out) 103、受信用FIFO(AR-FIFO)104、
受信パケットを判別する分別回路(DeMux) 105、セル
フID用リゾルバ(Resolver)106、およびコントロー
ルレジスタ(ControlRegisters 、以下CRという)1
07により構成されている。
As shown in FIG. 1, a link layer circuit 100 includes a link core (Link Core) 101, a CPU interface circuit (Sub-CPU I / F) 102, and a transmission FIFO (AT-AT) used for asynchronous communication. FIFO: First-In F
irst-Out) 103, receiving FIFO (AR-FIFO) 104,
Classification circuit (DeMux) 105 for discriminating received packets, resolver for self ID (Resolver) 106, and control register (ControlRegisters, hereinafter referred to as CR) 1
07.

【0023】リンクコア101は、コマンドやコンピュ
ータデータが転送されるアシンクロナス通信用パケット
およびアイソクロナス通信用パケットの送信回路、受信
回路、これらパケットのIEEE1394シリアルバス
BSを直接ドライブするフィジカル・レイヤ回路20と
のインタフェース回路、125μs毎にリセットされる
サイクルタイマ、サイクルモニタやCRC回路から構成
されている。また、図示しないハードディスクから読み
出され、トランザクション・レイヤ回路120で所定の
送信パケットとして生成されたコンピュータデータの送
信処理等を行う。たとえば、後述するトランザクション
・レイヤ回路120のトランザクションコントローラ1
26から送るべきデータがある旨の知らせを受けるとフ
ィジカル・レイヤ回路20を経由して1394シリアル
バスのアービトレーションを行いバスを確保する。な
お、図1では、上述したように、アイソクロナス通信系
のFIFO等は省略している。
The link core 101 includes a transmission circuit and a reception circuit for asynchronous communication packets and isochronous communication packets to which commands and computer data are transferred, and a physical layer circuit 20 for directly driving these packets on the IEEE 1394 serial bus BS. It is composed of an interface circuit, a cycle timer reset every 125 μs, a cycle monitor and a CRC circuit. Further, it performs a transmission process of computer data read from a hard disk (not shown) and generated by the transaction layer circuit 120 as a predetermined transmission packet. For example, a transaction controller 1 of a transaction layer circuit 120 described later
Upon receiving a notification that there is data to be sent from 26, the 1394 serial bus is arbitrated via the physical layer circuit 20 to secure the bus. In FIG. 1, the FIFO and the like of the isochronous communication system are omitted as described above.

【0024】CPUインタフェース回路102は、ロー
カルプロセッサ40と送信用FIFO103、受信用F
IFO104とのアシンクロナス通信用パケットの書き
込み、読み出し等の調停、並びに、ローカルプロセッサ
40とCR107との各種データの送受信の調停を行
う。たとえば、イニシエータとしてのホストコンピュー
タからIEEE1394インタフェースバスBSを送信
され、受信用FIFOに格納されたストレージデバイス
としてのハードディスクのコントロール用コマンドをロ
ーカルプロセッサ40に伝送する。
The CPU interface circuit 102 includes a local processor 40, a transmission FIFO 103, and a reception FIFO.
It performs arbitration such as writing and reading of asynchronous communication packets with the IFO 104 and arbitration of transmission and reception of various data between the local processor 40 and the CR 107. For example, a host computer as an initiator transmits an IEEE 1394 interface bus BS, and transmits a command for controlling a hard disk as a storage device stored in a reception FIFO to the local processor 40.

【0025】ローカルプロセッサ40からは、コンピュ
ータデータを送受信するためにトランザクション・レイ
ヤ回路120を起動させるためのデータがCPUインタ
フェース102を通してCR107にセット(ADPst
=1)される。
From the local processor 40, data for activating the transaction layer circuit 120 for transmitting and receiving computer data is set in the CR 107 through the CPU interface 102 (ADPst).
= 1).

【0026】送信用FIFO103には、IEEE13
94シリアルバスBSに伝送させるアシンクロナス通信
用パケットが格納され、格納データはリンクコア101
に与えられる。
The transmission FIFO 103 includes IEEE13
Asynchronous communication packets to be transmitted to the N. 94 serial bus BS are stored.
Given to.

【0027】また、受信用FIFO104は、IEEE
1394シリアルバスBSを伝送されてきたアシンクロ
ナス通信用パケット、たとえばストレージデバイスとし
てのハードディスクのコントロール用コマンド等が、分
別回路105により格納される。
The receiving FIFO 104 is based on the IEEE standard.
Asynchronous communication packets transmitted through the 1394 serial bus BS, for example, commands for controlling a hard disk as a storage device and the like are stored by the classification circuit 105.

【0028】分別回路105は、リンクコア101を介
したアシンクロナス通信用パケットの第1クワドレッド
にあるトランザクションコードtcode(Transaction
code)およびトランザクションラベルtl(Transaction
label) をチェックし、イニシエータであるホストコン
ピュータからターゲットであるトランザクション・レイ
ヤ回路に対しての応答パケット(Response Packet) であ
るかその他のパケットであるかの分別を行い、応答パケ
ットのみをトランザクション・レイヤ回路120に入力
させ、その他のパケットを受信用FIFO104に格納
する。
The discrimination circuit 105 has a transaction code tcode (Transaction) in the first quadred of the asynchronous communication packet via the link core 101.
code) and transaction label tl (Transaction
label), discriminates whether the packet is a response packet (Response Packet) from the initiator host computer to the target transaction layer circuit or other packets, and only the response packet is transferred to the transaction layer circuit. The packet is input to the circuit 120, and the other packets are stored in the reception FIFO 104.

【0029】なお、分別のチェックに用いられるトラン
ザクションラベルtlは共通に「a」にセットされ、t
code(Transaction code)は、書き込み(Write) の要
求(request)および応答(Response)、読み出し(Read)の
要求(Read request) および応答(Read Response) で異
なるデータがセットされる。具体的には、tcode
は、書き込み要求(Write request)でクワドレット書き
込み(Quadlet Write) の場合には「0」、ブロック書き
込み(Block Write) の場合には「1」にセットされる。
また、書き込み応答(Write Response)の場合には「2」
にセットされる。読み出し要求(Read request) でクワ
ドレット読み出し(Quadlet Read)の場合には「4」、ブ
ロック読み出し(Block Read)の場合には「5」にセット
される。また、読み出し応答(Read Response) の場合に
は「6/7」にセットされる。
The transaction label tl used for sorting check is set to "a" in common, and t
In the code (Transaction code), different data is set for a write request (request) and response (Response), and for a read (Read) request (Read request) and response (Read Response). Specifically, tcode
Is set to "0" in the case of a quadlet write in a write request and "1" in the case of a block write.
"2" for a write response
Is set to It is set to "4" in the case of a quadlet read in a read request (Read request), and is set to "5" in the case of a block read (Block Read). In the case of a read response (Read Response), it is set to “6/7”.

【0030】リゾルバ106は、IEEE1394シリ
アルインタフェースバスBSを伝送されてきたセルフI
Dパケットを解析し、CR107に格納する。また、エ
ラーチェック、ノード数のカウント等の機能も有する。
The resolver 106 receives the self-I data transmitted over the IEEE 1394 serial interface bus BS.
The D packet is analyzed and stored in the CR 107. It also has functions such as error checking and counting the number of nodes.

【0031】トランザクション・レイヤ回路120は、
コンピュータ周辺機器(本実施形態ではハードディス
ク)のデータをSBP−2(Serial Bus Protocol-2) 規
格に基づいて、アシンクロナスパケットとして自動的に
送信、受信をする機能を備えている。また、トランザク
ション・レイヤ回路120は、リトライ(Retry) 機能並
びにスプリットタイムアウト(Split Timeout) 検出機能
を備えている。リトライ機能は、要求パケットを送信し
た後、ack busy* のAckコードが返ってきた場合、該
当する要求パケットを再送信する機能である。パケット
を再送信する場合、送信パケットの第1クワドレッドに
ある2ビットのrt領域を「00」から「01」にセッ
トしてコアリンク101に知らせ送信する。スプリット
タイムアウト(Split Timeout) 検出機能は、応答パケッ
トが返ってくるまでのタイムアウトを検出する機能であ
る。
The transaction layer circuit 120
It has a function of automatically transmitting and receiving data of a computer peripheral device (a hard disk in this embodiment) as an asynchronous packet based on the SBP-2 (Serial Bus Protocol-2) standard. Further, the transaction layer circuit 120 has a retry function and a split timeout detection function. The retry function is a function of retransmitting the corresponding request packet when an ack busy * Ack code is returned after transmitting the request packet. When retransmitting a packet, the 2-bit rt area in the first quadred of the transmission packet is set from “00” to “01”, and the core link 101 is notified and transmitted. The split timeout detection function is a function for detecting a timeout until a response packet is returned.

【0032】このトランザクション・レイヤ回路120
は、トランスポートデータインタフェース回路121、
要求パケット生成回路(SBPreq)122、応答パケットデ
コード回路(SBPRsp)123、要求用FIFO(Request F
IFO:ADPTF)124、応答用FIFO(Response FIFO:ADP
RF) 125、およびトランザクションコントローラ12
6により構成されている。そして、要求パケット生成回
路122、応答パケットデコード回路123、要求用F
IFO124、応答用FIFO125、およびトランザ
クションコントローラ126によりデータ処理回路AD
Pが構成される。
This transaction layer circuit 120
Is a transport data interface circuit 121,
Request packet generation circuit (SBPreq) 122, response packet decode circuit (SBPRsp) 123, request FIFO (Request F
IFO: ADPTF) 124, Response FIFO (Response FIFO: ADP)
RF) 125, and the transaction controller 12
6. Then, the request packet generation circuit 122, the response packet decode circuit 123, the request F
A data processing circuit AD is provided by the I / O 124, the response FIFO 125, and the transaction controller 126.
P is configured.

【0033】トランスポートデータインタフェース回路
121は、HDDコントローラ30と要求パケット生成
回路122、応答パケットデコード回路123とのデー
タの送受信の調停を行う。
The transport data interface circuit 121 arbitrates the transmission and reception of data between the HDD controller 30, the request packet generation circuit 122, and the response packet decode circuit 123.

【0034】要求パケット生成回路122は、リンク・
レイヤ回路100のCR107からデータ転送起動の指
示を受けると、送信(書き込み)の場合、SBP−2規
格に従ってトランスポートデータインタフェース回路1
21を介して得た図示しないハードディスクに記録され
たコンピュータデータをパケットに分けられるように1
個以上のデータに分け、CR107にセットされた転送
データ長等のデータに基づいてSBPプロトコルのアド
レスを算出し、パケット毎に増加する1394バスアド
レスとトランザクションラベルtl(=a)やトランザ
クションコードtcode(たとえば1または5)等を
設定した4クラドレットからなる1394ヘッダを付加
して要求用FIFO124に格納する。また、受信(読
み出し)の場合には、SBP−2規格に従って、CR1
07にセットされた転送データ長等のデータに基づいて
SBPプロトコルのアドレスを算出し、パケット毎に増
加する1394バスアドレスとトランザクションラベル
tl(=a)やトランザクションコードtcode(た
とえば1または5)等を設定し、指定されたアドレス、
データ長分の1394ブロック読み出し要求コマンド(B
lock read Request Command)を1個以上のパケットにし
て要求用FIFO124に格納する。
The request packet generation circuit 122 has a link
Upon receiving a data transfer start instruction from the CR 107 of the layer circuit 100, in the case of transmission (write), the transport data interface circuit 1 according to the SBP-2 standard.
21 so that the computer data recorded on a hard disk (not shown) obtained through
The data is divided into a plurality of pieces of data, and the address of the SBP protocol is calculated based on the data such as the transfer data length set in the CR 107. The 1394 bus address and the transaction label tl (= a) and the transaction code tcode ( For example, a 1394 header made up of four cladlets in which, for example, 1 or 5) is set is stored in the request FIFO 124. In the case of reception (reading), CR1 is used in accordance with the SBP-2 standard.
07, the SBP protocol address is calculated based on the data such as the transfer data length, and the 1394 bus address and the transaction label tl (= a), the transaction code tcode (for example, 1 or 5), etc., which are increased for each packet, are calculated. Set and specified address,
1394 block read request command (B
lock read Request Command) is stored in the request FIFO 124 as one or more packets.

【0035】なお、要求パケット生成回路122は、送
信および受信時には、CR107にて指定される最大長
データmax-payload を受けて送信する要求パケットに対
する応答パケットの最大データ長を計算する。この最大
データ長(バイト)maxpl は次式に基づいて求められ
る。
The request packet generation circuit 122 calculates the maximum data length of a response packet to a request packet to be transmitted upon receiving the maximum length data max-payload specified by the CR 107 during transmission and reception. This maximum data length (byte) maxpl is obtained based on the following equation.

【0036】[0036]

【数1】maxpl =2(max,Payload+2) …(1)[Formula 1] maxpl = 2 (max, Payload + 2) (1)

【0037】応答パケットデコード回路123は、受信
時に応答用FIFO125に格納されたデータを読み出
し、1394ヘッダを取り除いて、データを所定のタイ
ミングでトランスポートデータインタフェース回路12
1を介してHDDコントローラ30に出力する。
The response packet decoding circuit 123 reads the data stored in the response FIFO 125 at the time of reception, removes the 1394 header, and transfers the data at a predetermined timing to the transport data interface circuit 12.
1 to the HDD controller 30.

【0038】要求用FIFO124は、送信(書き込
み)時にはパケット化された送信データが格納され、受
信(読み出し)の場合には、1394ブロック読み出し
要求コマンドが格納される。なお、要求用FIFO12
4は、送るべきデータを記憶しているときは、その旨を
示すたとえばローレベル(「0」)でアクティブの信号
EMTをトランザクションコントローラ126に出力す
る。
The request FIFO 124 stores packetized transmission data when transmitting (writing), and stores a 1394 block read request command when receiving (reading). The request FIFO 12
When the data to be transmitted is stored, the signal 4 outputs an active signal EMT, for example, at a low level (“0”) indicating this to the transaction controller 126.

【0039】応答用FIFO125は、受信(読み出
し)の場合には、ホストコンピュータ側から1394シ
リアルバスBSを伝送されてきた受信データが格納され
る。なお、応答用FIFO125は、残りの記憶容量を
示す信号S125をトランザクションコントローラ12
6に出力する。
In the case of receiving (reading), the response FIFO 125 stores received data transmitted from the host computer via the 1394 serial bus BS. The response FIFO 125 sends a signal S125 indicating the remaining storage capacity to the transaction controller 12.
6 is output.

【0040】トランザクションコントローラ126は、
送信時に要求用FIFO124に格納されたパケット化
された送信データ、および受信時に要求用FIFO12
4に格納された1394ブロック読み出し要求コマンド
(要求パケット)のリンク・レイヤコア回路100のリ
ンクコア101への出力制御を行う。また、送信時に、
リンク・レイヤ回路100の分別回路105からの応答
パケットを受けて、そのリトライコードrcodeをC
R107に書き込み、受信時には分別回路105からの
応答パケットを応答用FIFO125に格納する。
The transaction controller 126
The packetized transmission data stored in the request FIFO 124 at the time of transmission, and the request FIFO 12 at the time of reception.
4 controls the output of the 1394 block read request command (request packet) stored in No. 4 to the link core 101 of the link layer core circuit 100. Also, when sending,
Upon receiving a response packet from the classification circuit 105 of the link layer circuit 100, the retry code rcode is set to C
The response packet from the classification circuit 105 is stored in the response FIFO 125 upon reception.

【0041】また、トランザクションコントローラ12
6は、スプリットトランザクションの過程で、いわゆる
ペンディング(Pending) のackコードを受け取ってか
ら、応答パケットが返ってこない場合にスプリットタイ
ムアウトとして検出し、たとえば通信動作を停止してエ
ラー表示を行う。
The transaction controller 12
In the split transaction, when a response packet is not returned after receiving a so-called pending ack code in the process of the split transaction, it is detected as a split timeout, and for example, the communication operation is stopped and an error is displayed.

【0042】IEEE1394では、要求パケットの送
信に対しては応答パケットが返ってくる。そして、他ノ
ード側であるリスポンダ(Responder) が十分な応答速度
を持たない場合には、スプリットトランザクションとい
うプロセスで応答パケットのやり取りが行われる。
In IEEE 1394, a response packet is returned in response to transmission of a request packet. When the responder (Responder) on the other node side does not have a sufficient response speed, the response packet is exchanged in a process called a split transaction.

【0043】図2は、スプリットトランザクションの概
念図である。この場合、自ノード側であるリクエスタ(R
equester) からの要求パケットを受け取った他ノード側
のレスポンダは、4ビットのackコードにペンディン
グであることを設定して送り返す。その後、書き込みや
読み出しの処理が完了(Complete)としたら応答パケット
をリクエスタに送信する。上述したように、このスプリ
ットトランザクション過程でペンディング(Pending) の
ackコードを受け取ってから、応答パケットが返って
こない場合にスプリットタイムアウトとして検出する。
FIG. 2 is a conceptual diagram of a split transaction. In this case, the requester (R
The responder on the other node side that has received the request packet from the equester) sets a 4-bit ack code to indicate that it is pending and sends it back. Thereafter, when the writing and reading processes are completed (Complete), a response packet is transmitted to the requester. As described above, if a response packet is not returned after a pending ack code is received during the split transaction process, it is detected as a split timeout.

【0044】図3は、このスプリットタイムアウト検出
機能を実現するスプリットタイムアウト検出回路の構成
例を示すブロック図である。このスプリットタイムアウ
ト検出回路は、図3に示すように、他ノードからの応答
がペンディングであるか否かを検出し、ペンディングで
あると検出した場合には検出信号S1261を出力する
ペンディング検出回路1261と、ペンディング検出回
路1261による検出信号S1261を受けると起動し
て時間を計時するスプリットタイムカウンタ1262
と、タイムアウト時間を任意に設定可能なタイムアウト
レジスタ1263と、スプリットタイムカウンタの時間
がタイムアウトレジスタの設定時間に達するとスプリッ
トタイムアウトであることを示すタイムアウト信号ST
Oを出力する比較回路1264とから構成されている。
また、スプリットタイムカウンタ1261は、計時動作
開始後であってタイムアウト信号が比較回路1264か
ら出力される前に応答パケットを受けると計時動作を停
止する。さらに、タイムアウトレジスタ1263の設定
時間は、たとえばデータ長に応じて変更される。
FIG. 3 is a block diagram showing a configuration example of a split timeout detecting circuit for realizing the split timeout detecting function. As shown in FIG. 3, the split timeout detection circuit detects whether or not a response from another node is pending, and outputs a detection signal S1261 when detecting that the response is pending. , A split time counter 1262 that starts up and counts time when it receives a detection signal S1261 from a pending detection circuit 1261.
A time-out register 1263 that can arbitrarily set a time-out time, and a time-out signal ST indicating that a split time-out has occurred when the time of the split time counter reaches the time set in the time-out register.
And a comparison circuit 1264 for outputting O.
Also, the split time counter 1261 stops the timing operation when receiving a response packet after the start of the timing operation and before the timeout circuit is output from the comparison circuit 1264. Further, the set time of the timeout register 1263 is changed according to, for example, the data length.

【0045】図4は、スプリットタイムアウト検出回路
の動作を示すフローチャートである。図4に示すよう
に、ペンディング検出回路1261で、他ノードからの
応答がペンディングであるか否かが検出され、ペンディ
ングであると検出された場合には検出信号S1261が
スプリットタイムカウンタ1261に出力される(S
1)。スプリットタイムカウンタ1262は、検出信号
を受けると起動されて計時動作が開始される(S2)。
そして、このスプリットタイムカウンタ1262の時間
がタイムアウトレジスタ1263の設定時間に達すると
(S3)、スプリットタイムアウトであることを示すタ
イムアウト信号STOが比較回路1264から出力され
る。これにより、たとえば通信動作が停止されエラー表
示が行われる。
FIG. 4 is a flowchart showing the operation of the split timeout detecting circuit. As shown in FIG. 4, the pending detection circuit 1261 detects whether or not a response from another node is pending. If the response is pending, a detection signal S1261 is output to the split time counter 1261. (S
1). Upon receiving the detection signal, the split time counter 1262 is activated and starts a timekeeping operation (S2).
When the time of the split time counter 1262 reaches the time set in the time-out register 1263 (S3), the comparison circuit 1264 outputs a time-out signal STO indicating a split time-out. Thereby, for example, the communication operation is stopped and an error display is performed.

【0046】また、ステップS4において、スプリット
タイムカウンタ1261が、計時動作開始後であってタ
イムアウト信号が比較回路1264から出力される前に
応答パケットを受けとったか否かの判別が行われる。そ
して、応答パケットを受けとったと判別された場合に
は、応答が正常に行われたものとして計時動作が停止さ
れる。これに対して、応答パケットを受けとっていない
と判別された場合には、ステップS3の動作に戻ってス
プリットタイムカウンタ1262の時間がタイムアウト
レジスタ1263の設定時間に達したか否かの判別が行
われる。
In step S4, it is determined whether or not the split time counter 1261 has received a response packet after the start of the clocking operation and before the timeout signal is output from the comparison circuit 1264. When it is determined that the response packet has been received, the timer operation is stopped assuming that the response has been normally performed. On the other hand, if it is determined that the response packet has not been received, the process returns to step S3 to determine whether the time of the split time counter 1262 has reached the time set in the timeout register 1263. .

【0047】次に、上記構成において、SBP−2規格
で決められたパケットを転送する場合のコンピュータデ
ータの通常の送信および受信動作を説明する。
Next, a description will be given of a normal transmission and reception operation of computer data in the case of transferring a packet determined by the SBP-2 standard in the above configuration.

【0048】まず、送信動作、すなわち、ターゲットで
あるハードディスクからイニシエータであるホストコン
ピュータにデータを転送するときであって、ストレージ
デバイス(ハードディスク)からホストコンピュータの
メモリへデータを書き込む動作を行う場合について説明
する。
First, a transmission operation, that is, a case where data is transferred from a target hard disk to a host computer which is an initiator and an operation of writing data from a storage device (hard disk) to a memory of the host computer will be described. I do.

【0049】ホストコンピュータから1394シリアル
バスBSを転送されてきたSBP−2規格に基づいたO
RB(Operation Request Block) 等のパケットデータが
フィジカル・レイヤ回路20、リンク・レイヤ回路10
0のリンクコア101を介して分別回路105に入力さ
れる。
O based on the SBP-2 standard transmitted from the host computer via the 1394 serial bus BS.
Packet data such as RB (Operation Request Block) is transmitted to the physical layer circuit 20 and the link layer circuit 10
0 is input to the classification circuit 105 via the link core 101 of 0.

【0050】分別回路105では、受信パケットを受け
てホストコンピュータからターゲットであるトランザク
ション・レイヤ回路に対しての応答パケット(Response
Packet) であるかその他のパケットであるかの分別が行
われる。そしてこの場合、その他のパケットであること
から受信データが受信用FIFO104に格納される。
受信用FIFO104に格納されたORB等の受信デー
タは、CPUインタフェース回路102を介してローカ
ルプロセッサ40に入力される。ローカルプロセッサ4
0では、CPUインタフェース回路102を介してOR
Bの内容に従ってCR107のトランザクション・レイ
ヤ回路用レジスタの初期化が行われる。これにより、ト
ランザクション・レイヤ回路120が起動される。
Upon receiving the received packet, the classification circuit 105 receives a response packet (Response) from the host computer to the target transaction layer circuit.
Packet) or other packets. In this case, the received data is stored in the receiving FIFO 104 because it is another packet.
The reception data such as the ORB stored in the reception FIFO 104 is input to the local processor 40 via the CPU interface circuit 102. Local processor 4
At 0, OR is output via the CPU interface circuit 102.
According to the contents of B, the register for the transaction layer circuit of the CR 107 is initialized. As a result, the transaction layer circuit 120 is activated.

【0051】起動されたトランザクション・レイヤ回路
120では、要求パケット生成回路122において、ト
ランスポートインタフェース121を介してHDDコン
トローラ30に対してのデータの要求が始められる。要
求に応じ、トランスポートインタフェース121を介し
て送られたきた送信データは、要求パケット生成回路1
22においてSBP−2規格に従ってトランスポートデ
ータインタフェース回路121を介して得た図示しない
ハードディスクに記録されたコンピュータデータをパケ
ットに分けられるように1個以上のデータに分けられ、
CR107にセットされた転送データ長等のデータに基
づいてSBPプロトコルのアドレスが算出され、パケッ
ト毎に増加する1394バスアドレスとトランザクショ
ンラベルtl(=a)やトランザクションコードtco
de(たとえば1または5)等が設定された4クラドレ
ットからなる1394ヘッダが付加されて要求用FIF
O124に格納される。
In the activated transaction layer circuit 120, the request packet generation circuit 122 starts a data request to the HDD controller 30 via the transport interface 121. The transmission data transmitted via the transport interface 121 in response to the request is transmitted to the request packet generation circuit 1.
At 22, the computer data recorded on the hard disk (not shown) obtained via the transport data interface circuit 121 in accordance with the SBP-2 standard is divided into one or more data so as to be divided into packets.
The address of the SBP protocol is calculated based on the data such as the transfer data length set in the CR 107, and the 1394 bus address which increases for each packet, the transaction label tl (= a), and the transaction code tco
1394 header consisting of four cladlets in which de (for example, 1 or 5) is set,
It is stored in O124.

【0052】要求用1FIFO124に1つの1394
パケットサイズ以上のデータが格納されると、そのデー
タはトランザクションコントローラ126によりリンク
・レイヤ回路100のリンクコア101に送られる。そ
して、リンクコア101によって、フィジカル・レイヤ
回路20を介して1394シリアルバスBSに対しアー
ビトレーションが掛けられる。これにより、バスの獲得
ができたならば、転送データを含む書き込み要求パケッ
ト(Write Request Packet)がフィジカル・レイヤ回路2
0、1394シリアルバスBSを介してホストコンピュ
ータに送信される。
One 1394 is stored in one FIFO for request 124.
When data equal to or larger than the packet size is stored, the data is sent to the link core 101 of the link layer circuit 100 by the transaction controller 126. The link core 101 arbitrates the 1394 serial bus BS via the physical layer circuit 20. As a result, if a bus can be acquired, a write request packet (Write Request Packet) including transfer data is sent to the physical layer circuit 2.
0, transmitted to the host computer via the 1394 serial bus BS.

【0053】送信後、ホストコンピュータから書き込み
要求パケットに対するAckコードと、場合によっては
書き込み応答パケット(Write Response Packet) が送ら
れてきて、フィジカル・レイヤ回路20、リンク・レイ
ヤ回路100のリンクコア101を介して分別回路10
5に入力される。
After the transmission, an Ack code for the write request packet and a write response packet (Write Response Packet) are transmitted from the host computer, and the physical layer circuit 20 and the link core 101 of the link layer circuit 100 are transmitted. Classification circuit 10 via
5 is input.

【0054】分別回路105では、受信パケットのトラ
ンザクションコードtcodeおよびトランザクション
ラベルtlのチェックが行われ、ホストコンピュータか
らターゲットであるトランザクション・レイヤ回路12
0に対しての応答パケット(Response Packet) であると
判別されると、その応答パケットがトランザクション・
レイヤ回路120のトランザクションコントローラ12
6に入力される。
In the classification circuit 105, the transaction code tcode and the transaction label tl of the received packet are checked, and the target transaction layer circuit 12 is sent from the host computer.
If the response packet is determined to be a response packet (Response Packet) for the
Transaction controller 12 of layer circuit 120
6 is input.

【0055】トランザクションコントローラ126で
は、入力された応答パケットのAckコードと応答コー
ド(Response code) が正常ならば次のデータのリンクコ
ア101への送出が行われる。以上の動作が繰り返され
て、コンピュータデータのホストコンピュータのメモリ
への書き込み(送信)動作が行われる。
In the transaction controller 126, if the Ack code and the response code (Response code) of the input response packet are normal, the next data is transmitted to the link core 101. By repeating the above operation, the operation of writing (transmitting) the computer data to the memory of the host computer is performed.

【0056】以上の送信に関するトランザクション・レ
イヤ回路120の動作の概略を図5に示す。
FIG. 5 shows an outline of the operation of the transaction layer circuit 120 for the above transmission.

【0057】次に、受信動作、すなわち、ホストコンピ
ュータからターゲットにデータを転送するときであっ
て、ストレージデバイス(ハードディスク)がホストコ
ンピュータのメモリのデータを読み出す動作を行う場合
について説明する。
Next, a reception operation, that is, a case where data is transferred from the host computer to the target, and a case where the storage device (hard disk) performs an operation of reading data from the memory of the host computer will be described.

【0058】ホストコンピュータから1394シリアル
バスBSを転送されてきたSBP−2規格に基づいたO
RB等のパケットデータがフィジカル・レイヤ回路2
0、リンク・レイヤ回路100のリンクコア101を介
して分別回路105に入力される。
An O based on the SBP-2 standard transmitted from the host computer via the 1394 serial bus BS.
Packet data such as RB is a physical layer circuit 2
0, which is input to the classification circuit 105 via the link core 101 of the link layer circuit 100.

【0059】分別回路105では、受信パケットを受け
てホストコンピュータからターゲットであるトランザク
ション・レイヤ回路に対しての応答パケット(Response
Packet) であるかその他のパケットであるかの分別が行
われる。そしてこの場合、その他のパケットであること
から受信データが受信用FIFO104に格納される。
受信用FIFO104に格納されたORB等の受信デー
タは、CPUインタフェース回路102を介してローカ
ルプロセッサ40に入力される。ローカルプロセッサ4
0では、CPUインタフェース回路102を介してOR
Bの内容に従ってCR107のトランザクション・レイ
ヤ回路用レジスタの初期化が行われる。これにより、ト
ランザクション・レイヤ回路120が起動される。
Upon receiving the received packet, the classification circuit 105 receives a response packet (Response) from the host computer to the target transaction layer circuit.
Packet) or other packets. In this case, the received data is stored in the receiving FIFO 104 because it is another packet.
The reception data such as the ORB stored in the reception FIFO 104 is input to the local processor 40 via the CPU interface circuit 102. Local processor 4
At 0, OR is output via the CPU interface circuit 102.
According to the contents of B, the register for the transaction layer circuit of the CR 107 is initialized. As a result, the transaction layer circuit 120 is activated.

【0060】起動されたトランザクション・レイヤ回路
120では、要求パケット生成回路122において、S
BP−2規格に従って、CR107にセットされた転送
データ長等のデータに基づいてSBPプロトコルのアド
レスが算出され、パケット毎に増加する1394バスア
ドレスとトランザクションラベルtl(=a)やトラン
ザクションコードtcode(たとえば1または5)等
が設定され、指定されたアドレス、データ長分の139
4ブロック読み出し要求コマンド(Block readRequest C
ommand)がパケット化されて要求用FIFO124に格
納される。
In the activated transaction layer circuit 120, the request packet generation circuit 122
According to the BP-2 standard, the address of the SBP protocol is calculated based on the data such as the transfer data length set in the CR 107, and the 1394 bus address which increases for each packet, the transaction label tl (= a), and the transaction code tcode (for example, 1 or 5) is set, and 139 of the specified address and data length are set.
4 block read request command (Block readRequest C
ommand) is packetized and stored in the request FIFO 124.

【0061】要求用FIFO124に格納された読み出
し要求コマンドパケットは、トランザクションコントロ
ーラ126によりリンク・レイヤ回路100のリンクコ
ア101に送られる。そして、リンクコア101によっ
て、フィジカル・レイヤ回路20を介して1394シリ
アルバスBSに対しアービトレーションが掛けられる。
これにより、バスの獲得ができたならば、読み出し要求
パケット(Read Request Packet) がフィジカル・レイヤ
回路20、1394シリアルバスBSを介してホストコ
ンピュータに送信される。
The read request command packet stored in the request FIFO 124 is sent by the transaction controller 126 to the link core 101 of the link layer circuit 100. The link core 101 arbitrates the 1394 serial bus BS via the physical layer circuit 20.
As a result, if the bus is acquired, a read request packet (Read Request Packet) is transmitted to the host computer via the physical layer circuit 20 and the 1394 serial bus BS.

【0062】送信後、ホストコンピュータから読み出し
要求パケットに対するAckコードと、指定されたデー
タ長分のデータを含んだ読み出し応答パケット(Read R
esponse Packet) が送られてきて、フィジカル・レイヤ
回路20、リンク・レイヤ回路100のリンクコア10
1を介して分別回路105に入力される。
After the transmission, an Ack code for the read request packet from the host computer and a read response packet (Read R) including data of the designated data length.
esponse Packet) is sent to the physical layer circuit 20 and the link core 10 of the link layer circuit 100.
The signal is input to the classification circuit 105 through the line 1.

【0063】分別回路105では、受信パケットのトラ
ンザクションコードtcodeおよびトランザクション
ラベルtlのチェックが行われ、ホストコンピュータか
らターゲットであるトランザクション・レイヤ回路に対
しての応答パケット(Response Packet) であると判別さ
れると、その応答パケットがトランザクション・レイヤ
回路120のトランザクションコントローラ126に入
力される。
In the sorting circuit 105, the transaction code tcode and the transaction label tl of the received packet are checked, and it is determined that the received packet is a response packet (Response Packet) from the host computer to the target transaction layer circuit. Then, the response packet is input to the transaction controller 126 of the transaction layer circuit 120.

【0064】トランザクションコントローラ126で
は、分別回路105からの応答パケットが応答用FIF
O125に格納される。応答用FIFO125に格納さ
れたデータは、応答パケットデコード回路123によっ
て読み出され、1394ヘッダが取り除かれて、所定の
タイミングでトランスポートデータインタフェース回路
121を介してHDDコントローラ30に出力される。
以上の動作が繰り返されて、コンピュータデータのスト
レージデバイス(ハードディスク)への書き込み(受
信)動作が行われる。
In the transaction controller 126, the response packet from the classification circuit 105 is
It is stored in O125. The data stored in the response FIFO 125 is read by the response packet decoding circuit 123, the 1394 header is removed, and the data is output to the HDD controller 30 via the transport data interface circuit 121 at a predetermined timing.
By repeating the above operation, the operation of writing (receiving) the computer data to the storage device (hard disk) is performed.

【0065】以上の受信に関するトランザクション・レ
イヤ回路129の動作の概略を図6に示す。
FIG. 6 shows an outline of the operation of the transaction layer circuit 129 for the above reception.

【0066】以上説明したように、本第1の実施形態に
よれば、ストレージデバイスが接続され、ストレージデ
バイスのデータを読み出し、自己指定のトランザクショ
ンラベルを付加して送信アシンクロナスパケットとして
シリアルインタフェースバスBSに送出し、他ノードの
データを当該ストレージデバイスへ転送する場合に、自
己指定のラベルを付加した要求パケットを生成してシリ
アルインタフェースバスBSに送出し、他ノードからの
この要求パケットに対する応答パケットを受信し、応答
パケットからデータ部を取り出してストレージデバイス
へ転送するデータ処理回路としてのトランザクション・
レイヤ回路120を設けたので、ストレージデバイスに
格納される、あるいはストレージデバイスから読み出さ
れる大容量のデータをSBP−2規格に合わせてたIE
EE1394パケットにして送受信することができ、I
EEE1394シリアルバスインタフェースのアシンク
ロナス パケットを用いて大容量のデータ転送を実現す
ることができる。そして、SBP−2規格に基づいたO
RBのフェッチ、データ転送、イニシエータへのステイ
タス送信といったシーケンスを簡略化でき、ディスクド
ライバ、テープストリーマ等のコンピュータ周辺機器の
データをIEEE1394シリアルバスに接続する際に
最適な設計が可能となる。
As described above, according to the first embodiment, the storage device is connected, the data of the storage device is read, and a self-designated transaction label is added to the serial interface bus BS as a transmission asynchronous packet. When transmitting and transferring the data of the other node to the storage device, a request packet with a self-designated label is generated and transmitted to the serial interface bus BS, and a response packet to the request packet from the other node is received. And a transaction as a data processing circuit for extracting a data portion from the response packet and transferring the data portion to the storage device.
Since the layer circuit 120 is provided, the large-capacity data stored in or read from the storage device can be converted into an IE conforming to the SBP-2 standard.
EE1394 packets can be transmitted and received.
Large-capacity data transfer can be realized by using asynchronous packets of the IEEE 1394 serial bus interface. And O based on the SBP-2 standard.
Sequences such as RB fetch, data transfer, and status transmission to the initiator can be simplified, and an optimum design can be made when data of a computer peripheral device such as a disk driver and a tape streamer is connected to the IEEE 1394 serial bus.

【0067】また、他ノードからの応答がペンディング
であるか否かを検出し、ペンディングであると検出した
場合には検出信号S1261を出力するペンディング検
出回路1261と、ペンディング検出回路1261によ
る検出信号S1261を受けると起動して時間を計時す
るスプリットタイムカウンタ1262と、タイムアウト
時間を任意に設定可能なタイムアウトレジスタ1263
と、スプリットタイムカウンタの時間がタイムアウトレ
ジスタの設定時間に達するとスプリットタイムアウトで
あることを示すタイムアウト信号STOを出力する比較
回路1264とを設けたので、スプリットタイムアウト
の検出を自動化でき、制御系回路の付加を軽減でき、ま
た、リトライインターバルを任意に設定できることか
ら、仕様に応じた円滑な送受信処理を行うことができ
る。
Further, it is detected whether or not the response from the other node is pending. If the response is pending, a pending detection circuit 1261 for outputting a detection signal S1261 and a detection signal S1261 from the pending detection circuit 1261 are output. A split time counter 1262 that starts up and counts the time when it receives the command, and a time-out register 1263 that can set a timeout time arbitrarily.
And a comparison circuit 1264 that outputs a timeout signal STO indicating that a split time-out has occurred when the time of the split time counter reaches the time set in the time-out register. Since the addition can be reduced and the retry interval can be arbitrarily set, a smooth transmission / reception process according to the specification can be performed.

【0068】さらに、トランザクション・レイヤ回路1
20に要求用FIFO124および応答用FIFO12
5を設けるとともに、リンク・レイヤ回路100に送信
用FIFO103および受信用FIFO104を設けた
ので、要求用FIFO124および応答用FIFO12
5によるデータのやりとりと並列して、データ以外の通
常の1394パケットの送受信を行うことできる。
Further, the transaction layer circuit 1
20 is a request FIFO 124 and a response FIFO 12
5 as well as the transmission FIFO 103 and the reception FIFO 104 in the link layer circuit 100, the request FIFO 124 and the response FIFO 12
5, the transmission and reception of normal 1394 packets other than the data can be performed in parallel with the exchange of the data according to the fifth embodiment.

【0069】また、リンクコア101を介したアシンク
ロナス通信用パケットの第1クワドレッドにあるトラン
ザクションコードtcode(Transaction code)および
トランザクションラベルtl(Transaction label) をチ
ェックし、イニシエータであるホストコンピュータから
ターゲットであるトランザクション・レイヤ回路に対し
ての応答パケット(Response Packet) であるかその他の
パケットであるかの分別を行い、応答パケットのみをト
ランザクション・レイヤ回路120に入力させ、その他
のパケットを受信用FIFO104に格納する分別回路
105を設けたので、たとえばトランザクション・レイ
ヤ回路120側で致命的なエラーがおきてデータの読み
出し/書き込み動作が止まってしまったとしても、デー
タの次の入力されてくるコマンドの読み出しができなる
ことがなく、データの読み出し/書き込みの状況にかか
わりなくコマンドの受信を円滑に行うことができる利点
がある。
Further, the transaction code tcode (Transaction code) and the transaction label tl (Transaction label) in the first quadrant of the asynchronous communication packet via the link core 101 are checked, and the target transaction is transmitted from the host computer as the initiator. Discriminating whether the packet is a response packet (Response Packet) to the layer circuit or another packet, input only the response packet to the transaction layer circuit 120, and store the other packet in the reception FIFO 104 Since the classification circuit 105 is provided, even if a fatal error occurs in the transaction layer circuit 120 and the data read / write operation is stopped, for example, the read command of the next input command of the data is read. Without becomes possible out, there is an advantage that the reception of the no command regardless of the data read / write status can be smoothly performed.

【0070】[0070]

【発明の効果】以上説明したように、本発明によれば、
スプリットタイムアウトの検出を自動化でき、制御系回
路の付加を軽減でき、大容量のデータを所定の規格に合
わせてたパケットにして送受信することができ、また、
円滑な送受信処理を行うことができる。
As described above, according to the present invention,
Split timeout detection can be automated, the addition of control circuits can be reduced, and large-capacity data can be transmitted and received as packets conforming to a predetermined standard.
Smooth transmission / reception processing can be performed.

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

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

【図2】スプリットトランザクションの概念を示す図で
ある。
FIG. 2 is a diagram illustrating the concept of a split transaction.

【図3】本発明に係るスプリットタイムアウト検出回路
の構成例を示すブロック図である。
FIG. 3 is a block diagram illustrating a configuration example of a split timeout detection circuit according to the present invention.

【図4】図3の回路の動作を説明するためのフローチャ
ートである。
FIG. 4 is a flowchart illustrating the operation of the circuit of FIG. 3;

【図5】本発明に係るトランザクション・レイヤ回路に
おける送信動作の概略を示す図である。
FIG. 5 is a diagram schematically illustrating a transmission operation in the transaction layer circuit according to the present invention.

【図6】本発明に係るトランザクション・レイヤ回路に
おける受信動作の概略を示す図である。
FIG. 6 is a diagram schematically illustrating a receiving operation in the transaction layer circuit according to the present invention.

【図7】IEEE1394規格のアシンクロナス転送を
説明するための図である。
FIG. 7 is a diagram for describing asynchronous transfer of the IEEE 1394 standard.

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

10…リンク/トランザクションレイヤ集積回路、20
…フィジカル・レイヤ回路、30…HDDコントロー
ラ、40…ローカルプロセッサ、100,100a…リ
ンク・レイヤ回路、101…リンクコア、102…CP
Uインタフェース回路、103…アシンクロナス送信用
FIFO、104…アシンクロナス受信用FIFO、1
05,105a…分別回路、106…リゾルバ、107
…コントロールレジスタ、120…トランザクション・
レイヤ回路、121…トランスポートデータインタフェ
ース回路、121…要求パケット生成回路、123…応
答パケットデコード回路、124…要求用FIFO、1
25…応答用FIFO、126…トランザクションコン
トローラ、1261…ペンディング検出回路、1262
…スプリットタイムカウンタ、1263…タイムアウト
レジスタ、1264…比較回路(Comp)。
10 link / transaction layer integrated circuit, 20
... Physical layer circuit, 30 ... HDD controller, 40 ... Local processor, 100, 100a ... Link layer circuit, 101 ... Link core, 102 ... CP
U interface circuit, 103: Asynchronous transmission FIFO, 104: Asynchronous reception FIFO, 1
05, 105a: Classification circuit, 106: Resolver, 107
... Control register, 120 ... Transaction
Layer circuit, 121: transport data interface circuit, 121: request packet generation circuit, 123: response packet decoding circuit, 124: request FIFO, 1
25 Response FIFO, 126 Transaction Controller, 1261 Pending Detection Circuit, 1262
... Split time counter, 1263 ... Timeout register, 1264 ... Comparison circuit (Comp).

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 自ノードとシリアルインタフェースバス
を介して接続された他ノード間でパケットの送受信を行
うシリアルインタフェース回路であって、 自ノードから他ノードへの要求パケットを生成し、上記
シリアルインタフェースバスに送出する第1のデータ処
理回路と、 上記要求パケットに対する応答パケットがあらかじめ設
定した時間内に返送されないときにスプリットタイムア
ウトを検出する第2のデータ処理回路とを有するシリア
ルインタフェース回路。
1. A serial interface circuit for transmitting and receiving a packet between a self-node and another node connected via a serial interface bus, comprising: generating a request packet from the self-node to another node; And a second data processing circuit for detecting a split timeout when a response packet to the request packet is not returned within a preset time.
【請求項2】 上記第2のデータ処理回路は、他ノード
からの応答がペンディングであるか否かを検出し、ペン
ディングであると検出した場合には検出信号を出力する
ペンディング検出回路と、 上記ペンディング検出回路による検出信号を受けると起
動して時間を計時するスプリットタイムカウンタと、 タイムアウト時間を任意に設定可能なタイムアウトレジ
スタと、 上記スプリットタイムカウンタの時間が上記タイムアウ
トレジスタの設定時間に達するとスプリットタイムアウ
トであることを示すタイムアウト信号を出力する比較回
路とを有する請求項1記載のシリアルインタフェース回
路。
2. A pending detection circuit for detecting whether or not a response from another node is pending, and outputting a detection signal when the response is detected as pending, A split time counter that starts and counts time when a detection signal is received by the pending detection circuit, a timeout register that can set a timeout time arbitrarily, and a split when the time of the split time counter reaches the time set in the timeout register. 2. The serial interface circuit according to claim 1, further comprising: a comparison circuit that outputs a timeout signal indicating a timeout.
【請求項3】 上記スプリットタイムカウンタは、計時
動作開始後であってタイムアウト信号が上記比較回路か
ら出力される前に応答パケットを受けると計時動作を停
止する請求項2記載のシリアルインタフェース回路。
3. The serial interface circuit according to claim 2, wherein the split time counter stops the timing operation when receiving a response packet after the start of the timing operation and before a timeout signal is output from the comparison circuit.
【請求項4】 タイムアウトレジスタの設定時間は、デ
ータ長に応じて変更される請求項2記載のシリアルイン
タフェース回路。
4. The serial interface circuit according to claim 2, wherein the set time of the timeout register is changed according to the data length.
【請求項5】 タイムアウトレジスタの設定時間は、デ
ータ長に応じて変更される請求項3記載のシリアルイン
タフェース回路。
5. The serial interface circuit according to claim 3, wherein the time set in the timeout register is changed according to the data length.
【請求項6】 上記第2のデータ処理回路によりスプリ
ットタイムアウトが検出されると、パケット転送処理を
停止させる回路を有する請求項1記載のシリアルインタ
フェース回路。
6. The serial interface circuit according to claim 1, further comprising a circuit for stopping a packet transfer process when a split timeout is detected by said second data processing circuit.
JP9164812A 1997-06-20 1997-06-20 Serial interface circuit Pending JPH1117774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9164812A JPH1117774A (en) 1997-06-20 1997-06-20 Serial interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9164812A JPH1117774A (en) 1997-06-20 1997-06-20 Serial interface circuit

Publications (1)

Publication Number Publication Date
JPH1117774A true JPH1117774A (en) 1999-01-22

Family

ID=15800395

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9164812A Pending JPH1117774A (en) 1997-06-20 1997-06-20 Serial interface circuit

Country Status (1)

Country Link
JP (1) JPH1117774A (en)

Similar Documents

Publication Publication Date Title
JP3543647B2 (en) Data transfer control device and electronic equipment
JP3584789B2 (en) Data transfer control device and electronic equipment
JP3608441B2 (en) Data transfer control device and electronic device
JP3733699B2 (en) Serial interface circuit
JP2003174486A (en) Information communication device, information communication method and information communication processing program
US6580711B1 (en) Serial interface circuit and signal processing method of the same
JP3494041B2 (en) Data transfer control device and electronic equipment
JP3539287B2 (en) Data transfer control device and electronic equipment
JP3494040B2 (en) Data transfer control device and electronic equipment
JPH1117710A (en) Serial interface circuit
JPH1117775A (en) Serial interface circuit
JP3494042B2 (en) Data transfer control device and electronic equipment
JPH1117773A (en) Serial interface circuit
JP3837843B2 (en) Serial interface circuit
JPH1117774A (en) Serial interface circuit
JPH1117767A (en) Serial interface circuit
JPH11308300A (en) Serial interface circuit
JPH11308301A (en) Serial interface circuit
JP4582180B2 (en) Data transmission equipment
JP4062829B2 (en) Serial interface circuit
JPH10285223A (en) Signal processing circuit
JP2000115176A (en) Serial interface circuit
JP3610982B2 (en) Data transfer control device and electronic device
JP2002366508A (en) Data transfer method