JPH1117711A - Serial interface circuit - Google Patents

Serial interface circuit

Info

Publication number
JPH1117711A
JPH1117711A JP16598897A JP16598897A JPH1117711A JP H1117711 A JPH1117711 A JP H1117711A JP 16598897 A JP16598897 A JP 16598897A JP 16598897 A JP16598897 A JP 16598897A JP H1117711 A JPH1117711 A JP H1117711A
Authority
JP
Japan
Prior art keywords
error
circuit
packet
data
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP16598897A
Other languages
Japanese (ja)
Other versions
JP3837843B2 (en
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 JP16598897A priority Critical patent/JP3837843B2/en
Publication of JPH1117711A publication Critical patent/JPH1117711A/en
Application granted granted Critical
Publication of JP3837843B2 publication Critical patent/JP3837843B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To transmit/receive the data of a large capacitance with a packet corresponding to a prescribed standard and to enable error discrimination by generating a request packet from a present node to the other node, sending it to a serial interface bus, performing receiving processing to the packet of a response to the request packet and discriminating the presence/absence of error in the received response packet. SOLUTION: A transaction controller discriminates the presence/absence of error in the response packet and when there is an error, an error discrimination circuit 1261 is provided for discriminating the contents of the error. When the presence of error in the response packet is detected, the error discrimination circuit 1261 outputs a signal to a request packet generating circuit, a response packet circuit an FIFO for request and a packet for response and stops the processing of them. Then, an error code corresponding to the contents of the error is set to the error register of a control register CR and when the presence of error is detected, an interruption pit is set to the CR.

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
amer) or the like for a serial interface circuit connected to a storage device.

【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 destination node address space.

【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. It is also necessary to implement a circuit for detecting and determining a communication error in the transaction system.

【0012】本発明は、かかる事情に鑑みてなされたも
のであり、その目的は、大容量のデータを所定の規格に
合わせてたパケットにして送受信することができ、ま
た、エラーが発生した場合にその判別を行うことがで
き、円滑な送受信処理をすることができるシリアルイン
タフェース回路を提供することにある。
The present invention has been made in view of the above circumstances, and has as its object to transmit and receive a large amount of data in packets conforming to a predetermined standard, and to provide a method for transmitting and receiving data when an error occurs. Another object of the present invention is to provide a serial interface circuit capable of performing such a determination and performing a smooth transmission / reception process.

【0013】[0013]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、自ノードとシリアルインタフェースバス
を介して接続された他ノード間でパケットの送受信を行
うシリアルインタフェース回路であって、自ノードから
他ノードへの要求パケットを生成し、上記シリアルイン
タフェースバスに送出し、当該要求パケットに対する応
答パケットに対する受信処理を行うデータ処理回路と、
受信した応答パケットにエラーが有るか否かを判別し、
エラーがある場合にはそのエラー内容を判別するエラー
判別回路とを有する。
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. A data processing circuit that generates a request packet to the other node from and transmits the request packet to the serial interface bus, and performs a reception process on a response packet to the request packet;
Determine whether there is an error in the received response packet,
When there is an error, an error determining circuit for determining the content of the error is provided.

【0014】また、本発明では、上記エラー判別回路
は、エラーを検出すると上記データ処理回路のパケット
の送受信処理を停止させる。
In the present invention, when the error detection circuit detects an error, it stops the packet transmission / reception processing of the data processing circuit.

【0015】また、本発明では、エラーレジスタを有
し、上記エラー判別回路は、エラーを検出した場合には
エラー内容を上記エラーレジスタにセットする。
Further, according to the present invention, an error register is provided, and when the error is detected, the error discriminating circuit sets the content of the error in the error register.

【0016】また、本発明では、上記エラーレジスタに
エラー内容がセットされている場合には、上記データ処
理回路を初期化する制御回路を有する。
Further, the present invention has a control circuit for initializing the data processing circuit when an error content is set in the error register.

【0017】また、本発明では、上記エラー判別回路は
エラーを検出すると上記制御回路にエラーを検出した旨
を知らせ、上記制御回路は、エラー検出の知らせを受け
て上記エラーレジスタの読み出しを行い、上記初期化処
理を行う。
In the present invention, when the error discriminating circuit detects an error, the error discriminating circuit informs the control circuit that the error has been detected, and the control circuit reads the error register in response to the error detection, The above initialization processing is performed.

【0018】また、本発明の回路によれば、データ処理
回路において、自ノードから他ノードへの要求パケット
が生成され、シリアルインタフェースバスに送出され
る。そして、他ノードからの要求パケットに対する応答
パケットが受信されて所定の処理が行われる。また、応
答パケットはエラー判別回路にも入力される。エラー判
別回路では、受信した応答パケットにエラーが有るか否
かが検出され、かつエラーがある場合にはそのエラー内
容が判別される。たとえば、エラー判別回路でエラーが
検出されると、データ処理回路のパケットの送受信処理
が停止され、また、そのエラー内容がエラーレジスタに
セットさされるとともに、エラーを検出した旨が制御回
路に知らされる。すなわち、エラー割り込みが行われ
る。制御回路では、エラー検出の知らせを受けると、エ
ラーレジスタの内容の読み出しが行われ、データ処理回
路に対する初期化処理が行われる。
Further, according to the circuit of the present invention, in the data processing circuit, a request packet from the own node to another node is generated and transmitted to the serial interface bus. Then, a response packet to the request packet from the other node is received and a predetermined process is performed. Further, the response packet is also input to the error determination circuit. The error discriminating circuit detects whether or not the received response packet has an error, and if there is an error, discriminates the content of the error. For example, when an error is detected by the error discriminating circuit, the packet transmission / reception processing of the data processing circuit is stopped, the content of the error is set in the error register, and the control circuit is notified that the error has been detected. You. That is, an error interrupt is performed. When the control circuit receives the notification of the error detection, the content of the error register is read, and the initialization processing for the data processing circuit is performed.

【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)[Expression 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は、残りの記憶容量を
示す信号をトランザクションコントローラ126に出力
する。
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 outputs a signal indicating the remaining storage capacity to the transaction controller 126.

【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は、図2に示すように、応答パケット(他ノードから
の受信確認であるAcknowledge も含む)にエラーが有る
か否かを判別し、エラーがある場合にはそのエラー内容
を判別し、要求パケット生成回路122、応答パケット
デコード回路123、要求用FIFO124および応答
用パケット125の処理を信号S126で停止させるエ
ラー判別回路1261を有している。
The transaction controller 12
6, as shown in FIG. 2, it is determined whether or not there is an error in the response packet (including Acknowledge which is a confirmation of reception from another node). An error determination circuit 1261 for stopping the processing of the packet generation circuit 122, the response packet decode circuit 123, the request FIFO 124, and the response packet 125 by the signal S126.

【0042】書き込み(送信)および読み出し(受信)
のトランザクションの場合、受け取る受信確認(Acknowl
edge) または応答パケットに関しては、たとえば図3に
示すようなエラーが発生する可能性があり、エラー判別
回路1261は、エラーがあことを検出すると、要求パ
ケット生成回路122、応答パケットデコード回路12
3、要求用FIFO124および応答用パケット125
の処理を停止させるとともに、これらのエラーの内容を
判別し、たとえば内容に応じたエラーコードをCR10
7のエラーレジスタにセットする。また、エラーがある
ことを検出すると割り込み信号(Interrupt) 用のCR1
07に割り込みビットをセットしてローカルプロセッサ
40にエラーを検出したことを知らせる。
Write (transmit) and read (receive)
Acknowledgment (Acknowledge)
edge) or a response packet, for example, there is a possibility that an error as shown in FIG. 3 may occur. When the error determination circuit 1261 detects that there is an error, the request packet generation circuit 122 and the response packet decode circuit
3. Request FIFO 124 and Response Packet 125
Is stopped, the contents of these errors are determined, and for example, an error code corresponding to the contents is set to CR10.
7 is set in the error register. When an error is detected, CR1 for an interrupt signal (Interrupt) is output.
An interrupt bit is set to 07 to notify the local processor 40 that an error has been detected.

【0043】ここで、図3の各エラーコードの内容につ
いて説明する。エラーコードERC「0」は、エラーな
し、「1」は送信した要求に不適当なackコードが返
ってきた、「2」は受信した応答に不適当なackコー
ドを返した、「3」は規定時間内に応答が戻らない、
「4」はリトライ制限の回数、要求パケットを送っても
相手がビジーである、「5」はバスリセットが発生し
た、「6」は不適当なrcode(response code) を受
信した、「7」は指定ノード以外からの応答パケットを
受信した、「8」は実行しているトランザクションとは
異なるtcode(transaction code)を受信した、とい
う内容である。
Here, the contents of each error code in FIG. 3 will be described. The error code ERC "0" indicates no error, "1" indicates that an inappropriate ack code was returned for the transmitted request, "2" indicates an inappropriate ack code for the received response, and "3" indicates There is no response within the specified time,
"4" indicates the number of retries, the other party is busy even if a request packet is sent, "5" indicates that a bus reset has occurred, "6" has received an inappropriate rcode (response code), and "7". Indicates that a response packet has been received from a node other than the designated node, and "8" indicates that a tcode (transaction code) different from the transaction being executed has been received.

【0044】ここで、図2に示すエラー判別回路の書き
込み(受信)時の動作を図4のフローチャートを参照し
つつ説明し、その後、SBP−2規格で決められたパケ
ットを転送する場合のコンピュータデータの通常の送信
および受信動作を説明する。
Here, the operation of the error discriminating circuit shown in FIG. 2 at the time of writing (receiving) will be described with reference to the flowchart of FIG. The normal operation of transmitting and receiving data will be described.

【0045】エラー判別回路1261においては、ま
ず、要求パケットに対する適当なackコード(応答パ
ケット)が返ってきたか否かの判別が行われる(S
1)。ステップS1で不適当なackコードである場合
には、コード「1」の送信した要求に不適当なackコ
ードが返ってきたエラーであると判別される。ステップ
S1で適当はackコードが返ってきたと判別される
と、その応答がコンプリート(Complete)、ビジー(Bus
y)、ペンディング(Pending) 、であるかで異なる判別処
理が行われれる。
The error determining circuit 1261 first determines whether an appropriate ack code (response packet) for the request packet has been returned (S).
1). If it is an inappropriate ack code in step S1, it is determined that the error is that an inappropriate ack code was returned in response to the request transmitted with code "1". If it is determined in step S1 that an appropriate ack code has been returned, the response is completed (Complete) or busy (Bus).
Different determination processing is performed depending on whether y) or Pending.

【0046】コンプリートの場合には、読み出しである
か書き込みであるかが判別され、読み出しであると不適
当な応答である場合にはコード「1」のエラーであると
判別され、書き込みである場合にはコンプリートである
と判別される(S3)。
In the case of complete, it is determined whether it is a read or a write. If the read is an inappropriate response, it is determined that an error of code "1" is detected. Is determined to be complete (S3).

【0047】ビジーの場合には、再送信を行うリトライ
動作が行われるが、このリトライ回数が、あらかじめ設
定したリトライ制限回数に達したか否かの判別が行われ
る(S4)。ステップS4において、リトライ制限回数
に達していないと判別した場合にはステップS1の動
作、すなわち要求パケットの再送信動作が行われる。一
方、リトライ制限回数に達していると、コード「4」の
リトライ制限の回数だけ要求パケットを送っても相手が
ビジーであるエラーと判別される。
In the case of busy, a retry operation for retransmission is performed, and it is determined whether the number of retries has reached a preset retry limit number (S4). If it is determined in step S4 that the retry limit has not been reached, the operation of step S1, that is, the retransmission operation of the request packet is performed. On the other hand, if the retry limit has been reached, it is determined that the other party is busy even if the request packet is transmitted as many times as the retry limit of code “4”.

【0048】ペンディングンの場合には、ステップS5
〜S9の判別動作が順に行われる。まず、ステップS5
においては、応答パケットをあらじめ設定した時間内に
受信したか否かの判別が行われる。ステップS5におい
て、応答パケットがあらじめ設定した時間内に返ってこ
なかった場合には、コード「3」の規定時間内に応答が
戻らないというエラーであると判別される。一方、規定
時間内に応答が戻った場合には、ステップS6の処理に
移行する。
In the case of pending, step S5
Steps S9 to S9 are sequentially performed. First, step S5
In, it is determined whether a response packet has been received within a preset time. In step S5, if the response packet does not return within the preset time, it is determined that the error does not return within the time specified by the code "3". On the other hand, if the response is returned within the specified time, the process proceeds to step S6.

【0049】ステップS6においては、受信した応答に
不適当なackコードを返したか否かの判別が行われ
る。ステップS6において、受信した応答に不適当なa
ckコードを返した場合には、コード2の不適当なac
kコードを返したエラーであると判別される。一方、適
当なackコードを返した場合には、ステップS7の処
理に移行する。
In step S6, it is determined whether or not an inappropriate ack code has been returned to the received response. In step S6, a
If the ck code is returned, the inappropriate ac
It is determined that the error has returned the k code. On the other hand, if an appropriate ack code has been returned, the process proceeds to step S7.

【0050】ステップS7においては、適当なrcod
e(response code) を受信したか否かの判別が行われ
る。ステップS7において、不適当なrcodeを受信
した場合には、コード「6」の不適当なrcodeを受
信したエラーであると判別される。一方、適当なrco
deを受信した場合には、ステップS8の処理に移行す
る。
In step S7, an appropriate rcod
It is determined whether or not e (response code) has been received. In step S7, if an inappropriate rcode is received, it is determined that the error is that an inappropriate rcode with code "6" was received. On the other hand,
If de is received, the process proceeds to step S8.

【0051】ステップS8においては、ソース(source)
IDが正常であるか否かの判別が行われる。ステップS
8において、ソースIDが異常であると判別されると、
コード「7」の指定ノード以外からの応答パケットを受
信したエラーであると判別される。一方、正常なソース
IDを受信した場合には、ステップS9の処理に移行す
る。
In step S8, the source
It is determined whether or not the ID is normal. Step S
If it is determined in step 8 that the source ID is abnormal,
It is determined that an error has occurred in receiving a response packet from a node other than the designated node with the code “7”. On the other hand, if a normal source ID has been received, the process proceeds to step S9.

【0052】ステップS9においては、受信したtco
de(transaction code)が正常であるか否かの判別が行
われる。ステップS9において、受信したtcodeが
異常であると判別されると、コード「8」の実行してい
るトランザクションとは異なるtcodeを受信したエ
ラーであると判別される。一方、正常なtcodeを受
信した場合にはエラーなし(コンプリート)として処理
される。
In step S9, the received tco
It is determined whether or not de (transaction code) is normal. If it is determined in step S9 that the received tcode is abnormal, it is determined that the received error is an error in which a tcode different from the transaction executed by the code “8” is received. On the other hand, when a normal tcode is received, it is processed as no error (complete).

【0053】エラー判別回路1261では、上述したよ
うにエラーがあることが検出されると、信号S126が
要求パケット生成回路122、応答パケットデコード回
路123、要求用FIFO124および応答用パケット
125に出力されて、それらの処理が停止させる処理が
行われる。そして、エラーの内容に応じたエラーコード
がCR107のエラーレジスタにセットされ、また、エ
ラーがあることを検出すると割り込み信号(Interrupt)
用のCR107に割り込みビットがセットされる。これ
により、ローカルプロセッサ40にエラーにより割り込
む要求があることが報知される。これにより、ローカル
プロセッサ40により、CR107の内容が読み出さ
れ、CR107を介して、トランザクション・レイヤ回
路120に対する初期化(リセット)処理が行われる。
When the error discriminating circuit 1261 detects that there is an error as described above, the signal S126 is output to the request packet generating circuit 122, the response packet decoding circuit 123, the request FIFO 124 and the response packet 125. Then, a process for stopping those processes is performed. Then, an error code corresponding to the content of the error is set in the error register of the CR 107, and when an error is detected, an interrupt signal (Interrupt) is generated.
An interrupt bit is set in the CR 107 for use. This notifies the local processor 40 that there is a request to interrupt due to an error. As a result, the contents of the CR 107 are read by the local processor 40, and an initialization (reset) process for the transaction layer circuit 120 is performed via the CR 107.

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

【0055】まず、送信動作、すなわち、ターゲットで
あるハードディスクからイニシエータであるホストコン
ピュータにデータを転送するときであって、ストレージ
デバイス(ハードディスク)からホストコンピュータの
メモリへデータを書き込む動作を行う場合について説明
する。
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.

【0056】ホストコンピュータから1394シリアル
バスBSを転送されてきたSBP−2規格に基づいたO
RB(Operatio Request Block)等のパケットデータがフ
ィジカル・レイヤ回路20、リンク・レイヤ回路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 (Operatio Request Block) is transmitted to the physical layer circuit 20 and the link layer circuit 100.
Is input to the classification circuit 105 via the link core 101.

【0057】分別回路105では、受信パケットを受け
てホストコンピュータからターゲットであるトランザク
ション・レイヤ回路に対しての応答パケット(Response
Packet) であるかその他のパケットであるかの分別が行
われる。そしてこの場合、その他のパケットであること
から受信データが受信用FIFO104に格納される。
受信用FIFO104に格納されたORB等の受信デー
タは、CPUインタフェース回路102を介してローカ
ルプロセッサ40に入力される。ローカルプロセッサ4
0では、CPUインタフェース回路102を介してOR
Bの内容に従ってCR107のトランザクション・レイ
ヤ回路用レジスタの初期化が行われる。これにより、ト
ランザクション・レイヤ回路120が起動される。
The classification circuit 105 receives the received packet and 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.

【0058】起動されたトランザクション・レイヤ回路
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.

【0059】要求用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.

【0060】送信後、ホストコンピュータから書き込み
要求パケットに対するAckコードと、場合によっては
書き込み応答パケット(Write Response Packet) が送ら
れてきて、フィジカル・レイヤ回路20、リンク・レイ
ヤ回路100のリンクコア101を介して分別回路10
5に入力される。
After 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.

【0061】分別回路105では、受信パケットのトラ
ンザクションコードtcodeおよびトランザクション
ラベルtlのチェックが行われ、ホストコンピュータか
らターゲットであるトランザクション・レイヤ回路12
0に対しての応答パケット(Response Packet) であると
判別されると、その応答パケットがトランザクション・
レイヤ回路120のトランザクションコントローラ12
6に入力される。
In the sorting circuit 105, the transaction code tcode and the transaction label tl of the received packet are checked, and the transaction layer circuit 12 as the target 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.

【0062】トランザクションコントローラ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.

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

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

【0065】ホストコンピュータから1394シリアル
バスBSを転送されてきたSBP−2規格に基づいたO
RB(Operatio Request Block)等のパケットデータがフ
ィジカル・レイヤ回路20、リンク・レイヤ回路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 (Operatio Request Block) is transmitted to the physical layer circuit 20 and the link layer circuit 100.
Is input to the classification circuit 105 via the link core 101.

【0066】分別回路105では、受信パケットを受け
てホストコンピュータからターゲットであるトランザク
ション・レイヤ回路に対しての応答パケット(Response
Packet) であるかその他のパケットであるかの分別が行
われる。そしてこの場合、その他のパケットであること
から受信データが受信用FIFO104に格納される。
受信用FIFO104に格納されたORB等の受信デー
タは、CPUインタフェース回路102を介してローカ
ルプロセッサ40に入力される。ローカルプロセッサ4
0では、CPUインタフェース回路102を介してOR
Bの内容に従ってCR107のトランザクション・レイ
ヤ回路用レジスタの初期化が行われる。これにより、ト
ランザクション・レイヤ回路120が起動される。
The classification circuit 105 receives the received packet and 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.

【0067】起動されたトランザクション・レイヤ回路
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.

【0068】要求用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.

【0069】送信後、ホストコンピュータから読み出し
要求パケットに対する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.

【0070】分別回路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.

【0071】トランザクションコントローラ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.

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

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

【0074】また、応答パケットにエラーが有るか否か
を判別し、エラーがある場合にはそのエラー内容を判別
し、要求パケット生成回路122、応答パケットデコー
ド回路123、要求用FIFO124および応答用パケ
ット125の処理を信号S126で停止させるエラー判
別回路1261を設けたので、エラーが発生した場合に
その判別を行うことができ、制御系回路の付加を軽減で
き的確な送受信処理をすることができる。
Also, it is determined whether or not the response packet has an error. If there is an error, the content of the error is determined, and the request packet generation circuit 122, the response packet decode circuit 123, the request FIFO 124, and the response packet are determined. Since the error discriminating circuit 1261 for stopping the process at 125 with the signal S126 is provided, when an error occurs, it is possible to determine the error, the addition of a control system circuit can be reduced, and accurate transmission / reception processing can be performed.

【0075】さらに、トランザクション・レイヤ回路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.

【0076】また、リンクコア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.

【0077】[0077]

【発明の効果】以上説明したように、本発明によれば、
大容量のデータを所定の規格に合わせてたパケットにし
て送受信することができることはもとより、エラーが発
生した場合にその判別を行うことができ、制御系回路の
付加を軽減でき、的確な送受信処理をすることができ
る。
As described above, according to the present invention,
In addition to being able to transmit and receive large-capacity data in packets conforming to a predetermined standard, it is also possible to determine if an error has occurred, reduce the need for additional control circuitry, and perform accurate transmission and reception processing. Can be.

【図面の簡単な説明】[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 block diagram illustrating an error determination circuit according to the present invention.

【図3】エラーコードの一例を示す図である。FIG. 3 is a diagram showing an example of an error code.

【図4】エラー判別動作を説明するためのフローチャー
トである。
FIG. 4 is a flowchart illustrating an error determination operation.

【図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…エラー判別回路。
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 ... Error discrimination circuit.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 自ノードとシリアルインタフェースバス
を介して接続された他ノード間でパケットの送受信を行
うシリアルインタフェース回路であって、 自ノードから他ノードへの要求パケットを生成し、上記
シリアルインタフェースバスに送出し、当該要求パケッ
トに対する応答パケットに対する受信処理を行うデータ
処理回路と、 受信した応答パケットにエラーが有るか否かを判別し、
エラーがある場合にはそのエラー内容を判別するエラー
判別回路とを有するシリアルインタフェース回路。
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 data processing circuit for performing a reception process on a response packet to the request packet; and determining whether the received response packet has an error,
A serial interface circuit having an error discriminating circuit for discriminating the content of the error when there is an error;
【請求項2】 上記エラー判別回路は、エラーを検出す
ると上記データ処理回路のパケットの送受信処理を停止
させる請求項1記載のシリアルインタフェース回路。
2. The serial interface circuit according to claim 1, wherein said error determination circuit stops a packet transmission / reception process of said data processing circuit when detecting an error.
【請求項3】 エラーレジスタを有し、 上記エラー判別回路は、エラーを検出した場合にはエラ
ー内容を上記エラーレジスタにセットする請求項1記載
のシリアルインタフェース回路。
3. The serial interface circuit according to claim 1, further comprising an error register, wherein said error discriminating circuit sets an error content in said error register when an error is detected.
【請求項4】 エラーレジスタを有し、 上記エラー判別回路は、エラーを検出した場合にはエラ
ー内容を上記エラーレジスタにセットする請求項2記載
のシリアルインタフェース回路。
4. The serial interface circuit according to claim 2, further comprising an error register, wherein said error discriminating circuit sets an error content in said error register when an error is detected.
【請求項5】 上記エラーレジスタにエラー内容がセッ
トされている場合には、上記データ処理回路を初期化す
る制御回路を有する請求項3記載のシリアルインタフェ
ース回路。
5. The serial interface circuit according to claim 3, further comprising a control circuit for initializing said data processing circuit when an error content is set in said error register.
【請求項6】 上記エラーレジスタにエラー内容がセッ
トされている場合には、上記データ処理回路を初期化す
る制御回路を有する請求項4記載のシリアルインタフェ
ース回路。
6. The serial interface circuit according to claim 4, further comprising a control circuit for initializing said data processing circuit when an error content is set in said error register.
【請求項7】 上記エラー判別回路はエラーを検出する
と上記制御回路にエラーを検出した旨を知らせ、 上記制御回路は、エラー検出の知らせを受けて上記エラ
ーレジスタの読み出しを行い、上記初期化処理を行う請
求項5記載のシリアルインタフェース回路。
7. When the error discriminating circuit detects the error, the error discriminating circuit notifies the control circuit that the error has been detected. The control circuit reads the error register in response to the error detection, and performs the initialization processing. 6. The serial interface circuit according to claim 5, wherein
【請求項8】 上記エラー判別回路はエラーを検出する
と上記制御回路にエラーを検出した旨を知らせ、 上記制御回路は、エラー検出の知らせを受けて上記エラ
ーレジスタの読み出しを行い、上記初期化処理を行う請
求項6記載のシリアルインタフェース回路。
8. When the error discriminating circuit detects an error, the error discriminating circuit informs the control circuit that the error has been detected. The control circuit reads the error register in response to the notice of the error detection, and executes the initialization processing. 7. The serial interface circuit according to claim 6, wherein
JP16598897A 1997-06-23 1997-06-23 Serial interface circuit Expired - Fee Related JP3837843B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16598897A JP3837843B2 (en) 1997-06-23 1997-06-23 Serial interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16598897A JP3837843B2 (en) 1997-06-23 1997-06-23 Serial interface circuit

Publications (2)

Publication Number Publication Date
JPH1117711A true JPH1117711A (en) 1999-01-22
JP3837843B2 JP3837843B2 (en) 2006-10-25

Family

ID=15822790

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16598897A Expired - Fee Related JP3837843B2 (en) 1997-06-23 1997-06-23 Serial interface circuit

Country Status (1)

Country Link
JP (1) JP3837843B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001006711A1 (en) * 1999-07-15 2001-01-25 Seiko Epson Corporation Data transfer controller and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001006711A1 (en) * 1999-07-15 2001-01-25 Seiko Epson Corporation Data transfer controller and electronic device
US6725413B1 (en) 1999-07-15 2004-04-20 Seiko Epson Corporation Data transfer control device and electronic equipment

Also Published As

Publication number Publication date
JP3837843B2 (en) 2006-10-25

Similar Documents

Publication Publication Date Title
JP3560423B2 (en) Packet transmitting / receiving device and packet receiving device
US20070180336A1 (en) Multi-initiator control unit and method
JP3584789B2 (en) Data transfer control device and electronic equipment
JP2000134229A (en) Data transfer controller and electronic equipment
JP3608441B2 (en) Data transfer control device and electronic device
JP3733699B2 (en) Serial interface circuit
US6580711B1 (en) Serial interface circuit and signal processing method of the same
JP3539287B2 (en) Data transfer control device and electronic equipment
JP3494040B2 (en) Data transfer control device and electronic equipment
US6643816B1 (en) Transmitting apparatus and error handling method in transmitting apparatus
JPH1117710A (en) Serial interface circuit
JP3837843B2 (en) Serial interface circuit
JPH1117775A (en) Serial interface circuit
JPH1117773A (en) Serial interface circuit
JP3494042B2 (en) Data transfer control device and electronic equipment
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
JP2000224195A (en) Data transmitter
JP4062829B2 (en) Serial interface circuit
JP2000115176A (en) Serial interface circuit
JP2003023471A (en) Packet transmission/reception processing circuit
JP3610982B2 (en) Data transfer control device and electronic device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040115

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060403

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060711

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060724

LAPS Cancellation because of no payment of annual fees