JPH11308301A - Serial interface circuit - Google Patents
Serial interface circuitInfo
- Publication number
- JPH11308301A JPH11308301A JP10115692A JP11569298A JPH11308301A JP H11308301 A JPH11308301 A JP H11308301A JP 10115692 A JP10115692 A JP 10115692A JP 11569298 A JP11569298 A JP 11569298A JP H11308301 A JPH11308301 A JP H11308301A
- Authority
- JP
- Japan
- Prior art keywords
- packet
- control
- serial interface
- circuit
- interface circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Communication Control (AREA)
- Information Transfer Systems (AREA)
- Computer And Data Communications (AREA)
- Small-Scale Networks (AREA)
Abstract
(57)【要約】
【課題】制御系パケットを効率良く、しかも高速に処理
することができるシリアルインタフェース回路を提供す
る。
【解決手段】リンク・レイヤ回路100にCSR106
と、CSR用FIFO105と、受信パケットがCSR
用FIFO105に格納すべきCSR宛のパケットであ
るのか、受信用FIFO104に格納すべきコントロー
ル用コマンド等のパケットであるのかは、第3クワドレ
ットのデスティネーション・オフセット領域により示さ
れるアドレスによって判断し、受信パケットの第1から
第3クワドレットまでは、CSR用FIFO105およ
び受信用FIFO104の両方に書き込みを行い、CS
R宛のパケットであると判断した場合には、受信用FI
F104に書き込みポインタを前の状態に戻させるCS
R−abort 信号S108を出力する分別回路108とを
設ける。
(57) [Summary] [PROBLEMS] To provide a serial interface circuit capable of processing a control system packet efficiently and at high speed. A link layer circuit has a CSR (106).
, The CSR FIFO 105, and the received packet
Whether the packet is addressed to a CSR to be stored in the FIFO 105 for control or a control command or the like to be stored in the FIFO 104 for reception is determined by the address indicated by the destination offset area of the third quadlet. From the first to the third quadlets of the packet, writing is performed to both the CSR FIFO 105 and the reception FIFO 104,
If it is determined that the packet is addressed to R, the reception FI
CS causing F104 to return write pointer to previous state
And a classification circuit 108 that outputs an R-abort signal S108.
Description
【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規格では、通常、コンピ
ュータデータは、図4に示すように、アシンクロナス転
送を用いて行われる。アシンクロナス転送は、図4
(a)に示すように、バスを獲得するためのアービトレ
ーション(arb)、データを転送するパケットトラン
スミッション、およびアクノリッジメント(ack)の
3つの遷移状態をとる。[0005] In the IEEE 1394 standard, computer data is normally 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】そして、パケットトランスミッションの実
行は、図4(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】そして、上述したように、アシンクロナス
転送で行われる通常のコンピュータデータの転送では、
そのプロトコルとして、SBP−2(Serial Bus Protoc
ol-2) が用いられる。なお、このプロトコルによると、
ストレージデバイス(Storage Device)であるターゲット
(Target)からホストコンピュータ(Host Computer) であ
るイニシエータ(Initiator) にデータを転送するとき
は、ストレージデバイスからホストコンピュータのメモ
リへデータを書き込む形で、またホストコンピュータか
らターゲットにデータを転送するときは、ストレージデ
バイスがホストコンピュータのメモリのデータを読み出
す形で転送が行われる。As described above, in the ordinary computer data transfer performed by the asynchronous transfer,
As the protocol, SBP-2 (Serial Bus Protocol)
ol-2) is used. According to this protocol,
Targets that are storage devices
When transferring data from the (Target) to the initiator (Initiator) which is the host computer, write data from the storage device to the memory of the host computer, and when transferring 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】[0011]
【発明が解決しようとする課題】ところで、シリアルイ
ンタフェース回路においては、たとえばアイソクロナス
通信用のコアレジスタ、バス・ディペンド(bus・depend
ent)レジスタ、ユニット・アーキテクチャ( unit・arch
itecture) レジスタ等からなる制御およびステータスの
レジスタであるCSR(Control and Status Registers)
が設けられる。In a serial interface circuit, for example, a core register for isochronous communication, a bus
ent) register, unit architecture (unit
itecture) CSR (Control and Status Registers), which is a control and status register consisting of registers, etc.
Is provided.
【0012】IEEE1394シリアルインタフェース
上で、CSRへのアクセス(読み出し/書き込み)は、
一般的にソフトウェアで行われていた。これは、CSR
自体もソフトウェア側で持っているためである。このよ
うな場合には、制御回路としてのCPU側で全ての処理
を行うため、アクセスに対する要求(Request) パケット
はコマンド転送用のパケットと同一の受信FIFO(Fir
s-In First-Out) に格納した後、順次CPUが読み出
し、所定の処理を行う。On the IEEE 1394 serial interface, access to CSR (read / write)
Generally it was done with software. This is the CSR
This is because the software itself has it. In such a case, since all processing is performed on the CPU side as a control circuit, a request packet for access (Request) is the same reception FIFO (Fir
(s-In First-Out), the CPU sequentially reads out and performs a predetermined process.
【0013】しかしながら、CPUの負荷を軽減する等
の観点からCSRをハードウェアで実現することが要望
されるが、この場合、これらのパケットが同じFIFO
に格納されて処理されることは、効率が悪く、高速・効
率化をねらってハードウェアで実現する意味がなくなっ
てしまう。However, from the viewpoint of reducing the load on the CPU, it is desired to implement CSR by hardware. In this case, these packets have the same FIFO.
Is processed in a low efficiency, and there is no point in realizing with hardware for the purpose of high speed and efficiency.
【0014】本発明は、かかる事情に鑑みてなされたも
のであり、その目的は、制御系パケットを効率良く、し
かも高速に処理することができるシリアルインタフェー
ス回路を提供することにある。The present invention has been made in view of such circumstances, and an object of the present invention is to provide a serial interface circuit capable of processing a control system packet efficiently and at high speed.
【0015】[0015]
【課題を解決するための手段】上記目的を達成するた
め、本発明は、シリアルインタフェースバスを転送され
たパケットを受信するシリアルインタフェース回路であ
って、制御およびステータス用レジスタと、上記レジス
タへのアクセスを要求する要求パケットが格納される第
1の記憶手段と、制御用パケットが格納される第2の記
憶手段と、上記レジスタまたは上記第2の記憶手段に格
納された制御用パケットの内容に応じた処理を行う制御
回路とを有する。To achieve the above object, the present invention relates to a serial interface circuit for receiving a packet transferred on a serial interface bus, comprising a control and status register and an access to the register. First storage means for storing a request packet for requesting, a second storage means for storing a control packet, and a control packet stored in the register or the second storage means. And a control circuit for performing the processing.
【0016】また、本発明は、シリアルインタフェース
バスを転送された供給先情報が付加されているパケット
を受信するシリアルインタフェース回路であって、制御
およびステータス用レジスタと、上記レジスタへのアク
セスを要求する要求パケットが格納される第1の記憶手
段と、制御用パケットが格納される第2の記憶手段と、
受信パケットを受けて、上記供給先情報から受信パケッ
トが上記要求パケットであると判断した場合には当該要
求パケットを上記第1の記憶手段に書き込ませ、上記制
御用パケットであると判断した場合には当該制御用パケ
ットを上記第2の記憶手段に書き込ませる分別回路と、
上記レジスタまたは上記第2の記憶手段に格納された制
御パケットの内容に応じた処理を行う制御回路とを有す
る。Further, the present invention is a serial interface circuit for receiving a packet added with supply destination information transferred through a serial interface bus, and requests a control and status register and access to the register. First storage means for storing request packets, second storage means for storing control packets,
When the received packet is received and it is determined from the destination information that the received packet is the request packet, the request packet is written to the first storage means, and when the received packet is determined to be the control packet, A classification circuit for writing the control packet into the second storage means,
A control circuit for performing processing in accordance with the content of the control packet stored in the register or the second storage means.
【0017】また、本発明では、上記分別回路は、受信
パケットの供給先情報を判別するまで、受信パケットを
上記第1および第2の記憶手段に書き込ませ、判別の結
果、受信パケットが上記要求パケットである場合には、
上記第2の記憶手段のパケットの書き込みを停止させ
る。Further, in the present invention, the classification circuit causes the received packet to be written into the first and second storage means until the destination information of the received packet is determined. If it is a packet,
The writing of the packet in the second storage means is stopped.
【0018】また、本発明では、上記分別回路は、上記
第2の記憶手段の書き込みを停止させるとともに、書き
込みポインタを当該書き込みの前の状態に戻させる。Further, in the present invention, the sorting circuit stops writing in the second storage means and returns a write pointer to a state before the writing.
【0019】また、本発明では、上記受信パケットはア
シンクロナスパケットであり、上記供給先情報は、デス
ティネーション・オフセット(destination offset)領域
に設定されている情報である。In the present invention, the received packet is an asynchronous packet, and the destination information is information set in a destination offset area.
【0020】また、本発明では、上記第2の記憶手段
は、制御信号を受けると、上記分別回路の書き込み停止
指示または書き込みポインタの変更指示にかかわらずパ
ケットの書き込みを行う。Further, in the present invention, the second storage means, upon receiving the control signal, writes the packet regardless of the write stop instruction of the sorting circuit or the write pointer change instruction.
【0021】また、上記制御信号は、外部から入力され
る信号である。The control signal is a signal input from the outside.
【0022】また、本発明では、制御回路から制御情報
を設定可能な内部レジスタを有し、上記第2の記憶手段
は、上記内部レジスタに制御情報が設定されている場合
に上記分別回路の書き込み停止指示または書き込みポイ
ンタの変更指示にかかわらずパケットの書き込みを行
う。Further, according to the present invention, there is provided an internal register in which control information can be set from a control circuit, and the second storage means writes the data in the classification circuit when the control information is set in the internal register. The packet is written regardless of the stop instruction or the write pointer change instruction.
【0023】本発明によれば、シリアルインタフェース
バスを転送されたパケットは、たとえば分別回路に入力
される。分別回路では、たとえば受信パケットに付加さ
れている供給先情報により制御およびステータス用レジ
スタのアクセスを要求する要求パケットか、コマンド等
の制御用パケットであるかが判別される。このとき、受
信パケットが上記要求パケットであると判断した場合に
は当該要求パケットが第1の記憶手段に書き込まれ、制
御用パケットであると判断した場合には当該制御用パケ
ットが第2の記憶手段に書き込まれる。分別回路では、
たとえば受信パケットの供給先情報を判別するまで、受
信パケットが第1および第2の記憶手段の両方に書き込
まれる。そして、判別の結果、受信パケットが要求パケ
ットである場合には、第2の記憶手段のパケットの書き
込みが停止させ、また第2の記憶手段の書き込みポイン
タが当該書き込みの前の状態に戻される。According to the present invention, a packet transferred on the serial interface bus is input to, for example, a classification circuit. The discrimination circuit determines, for example, whether the packet is a request packet for requesting access to the control and status register or a control packet such as a command based on the destination information added to the received packet. At this time, if it is determined that the received packet is the request packet, the request packet is written to the first storage means. If it is determined that the received packet is a control packet, the control packet is stored in the second storage means. Written in the means. In the classification circuit,
For example, the received packet is written to both the first and second storage units until the supply destination information of the received packet is determined. If the result of the determination is that the received packet is a request packet, the writing of the packet in the second storage means is stopped, and the write pointer of the second storage means is returned to the state before the writing.
【0024】また、本発明によれば、第2の記憶手段に
対して、外部からの制御信号として、あるいは制御回路
によって内部レジスタに設定された制御情報として与え
られた場合には、分別回路の書き込み停止指示または書
き込みポインタの変更指示にかかわらずパケットの書き
込みが行われる。これにより、制御回路により制御およ
びステータスレジスタへのアクセスをソフトウェアでの
処理が可能となる。Further, according to the present invention, when the second storage means is given as an external control signal or as control information set in an internal register by the control circuit, the classification circuit of the classification circuit is provided. Packet writing is performed regardless of a write stop instruction or a write pointer change instruction. As a result, the control circuit can access the control and status registers by software.
【0025】[0025]
【発明の実施の形態】第1実施形態 図1は、本発明に係るIEEE1394シリアルインタ
フェース回路の第1の実施形態を示すブロック構成図で
ある。なお、このシリアルインタフェース回路は、アシ
ンクロナス通信で扱われるコンピュータデータの転送を
行うことを目的として構成されている。このため、図1
においては、アイソクロナス通信系回路の具体的な構成
は図示していない。DESCRIPTION OF THE PREFERRED EMBODIMENTS First Embodiment FIG. 1 is a block diagram showing a first embodiment of the IEEE 1394 serial interface circuit according to the present invention. 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.
【0026】このシリアルインタフェース回路は、リン
ク/トランザクション・レイヤ集積回路10、フィジカ
ル・レイヤ回路20、ストレージデバイスとしての図示
しないハードディスクドライバ(HDD)のコントロー
ラ30、ホストコンピュータとしてのローカルプロセッ
サ40により構成されている。The serial interface circuit comprises 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.
【0027】リンク/トランザクション・レイヤ集積回
路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, as well as the physical layer circuit. 20.
【0028】リンク・レイヤ回路100は、図1に示す
ように、リンクコア(Link Core))101、CPUインタ
フェース回路(Sub-CPU I/F )102、アシンクロナス
通信で用いられる送信用FIFO(AT-FIFO)103、受
信用FIFO(AR-FIFO)104、CSR用FIFO10
5、CSR106、ORゲート107、受信パケットを
判別する分別回路(DeMux) 108、セルフID用リゾル
バ(Resolver)109、およびコントロールレジスタ(Co
ntrol Registers 、以下CRという)110により構成
されている。As shown in FIG. 1, the link layer circuit 100 comprises 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) 103, receiving FIFO (AR-FIFO) 104, CSR FIFO 10
5, a CSR 106, an OR gate 107, a classification circuit (DeMux) 108 for determining a received packet, a resolver (Resolver) 109 for self ID, and a control register (Co
ntrol Registers (hereinafter referred to as CR) 110.
【0029】リンクコア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.
【0030】CPUインタフェース回路102は、ロー
カルプロセッサ40と送信用FIFO103、受信用F
IFO104とのアシンクロナス通信用パケットの書き
込み、読み出し等の調停、並びに、ローカルプロセッサ
40とCSR106、CR110との各種データの送受
信の調停を行う。たとえば、イニシエータとしてのホス
トコンピュータからIEEE1394インタフェースバ
スBSを送信され、受信用FIFOに格納されたストレ
ージデバイスとしてのハードディスクのコントロール用
コマンドをローカルプロセッサ40に伝送し、またCS
R106のセットデータのCSR106とローカルプロ
セッサ40間のデータ伝送を行う。The CPU interface circuit 102 includes a local processor 40, a transmission FIFO 103, and a reception FIFO 103.
The arbitration of writing and reading of the asynchronous communication packet with the IFO 104 and the arbitration of transmission and reception of various data between the local processor 40 and the CSR 106 and the CR 110 are performed. For example, an IEEE 1394 interface bus BS is transmitted from a host computer as an initiator, and a command for controlling a hard disk as a storage device stored in a reception FIFO is transmitted to the local processor 40.
Data transmission between the CSR 106 of the set data of the R 106 and the local processor 40 is performed.
【0031】また、ローカルプロセッサ40からは、コ
ンピュータデータを送受信するためにトランザクション
・レイヤ回路120を起動させるためのデータがCPU
インタフェース回路102を介してCR110にセット
される。Data for activating the transaction layer circuit 120 for transmitting and receiving computer data is transmitted from the local processor 40 to the CPU.
It is set in the CR 110 via the interface circuit 102.
【0032】送信用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.
【0033】また、受信用FIFO104は、IEEE
1394シリアルバスBSを伝送されてきたアシンクロ
ナス通信用パケット、たとえばストレージデバイスとし
てのハードディスクのコントロール用コマンド等が、分
別回路108により格納される。また、分別回路108
からのCSR−abort 信号S108をORゲート107
を介してアクティブで受けると、たとえば3クワドレッ
ト程度まで格納した受信パケットは、他の受信用FIF
O、すなわちCSR用FIFO105に格納すべきもの
として、ライト(write) ポインタを元に戻す(当該パケ
ットの格納開始前のポインタ位置に戻す)。また、OR
ゲート107を介して外部からのFIFO−cont信号F
CNTをアクティブで受けると、分別回路108からの
CSR−abort 信号S108をORゲート107を介し
てアクティブで受けたとしても、受信パケットの格納を
停止せずにすべて格納する。これにより、ローカルプロ
セッサ40により従来のようにソフトウェアによる制御
が可能である。Further, the receiving FIFO 104 is an IEEE
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 108. Also, the classification circuit 108
The CSR-abort signal S108 from the OR gate 107
Actively received through the receiving device, for example, a received packet stored up to about 3 quadlets is transmitted to another receiving FIFO.
O, that is, the write pointer is returned to the original position to be stored in the CSR FIFO 105 (return to the pointer position before the start of storage of the packet). Also, OR
FIFO-cont signal F from outside via gate 107
When the CNT is actively received, even if the CSR-abort signal S108 from the classification circuit 108 is actively received via the OR gate 107, the storage of the received packet is not stopped and all are stored. Thus, control by software can be performed by the local processor 40 as in the related art.
【0034】CSR用FIFO105には、CSR10
6に対するアクセスの要求パケットが分別回路108に
より格納される。このCSR用FIFO105へのパケ
ット格納により、CSR106へのアクセスが行われ
る。The CSR FIFO 105 includes a CSR 10
6 is stored by the classification circuit 108. Access to the CSR 106 is performed by storing the packet in the CSR FIFO 105.
【0035】分別回路108は、受信パケットがCSR
用FIFO105に格納すべきCSR宛のパケットであ
るのか、受信用FIFO104に格納すべきコントロー
ル用コマンド等のパケットであるのかを、図4(b)に
示す第3クワドレットのデスティネーション・オフセッ
ト(destination offset)領域により示されるアドレスに
よって判断することができる。したがって、分別回路1
08は、受信パケットの第1から第3クワドレットまで
は、CSR用FIFO105および受信用FIFO10
4の両方に書き込みを行い、CSR宛のパケットである
と判断した場合には、CSR−abort 信号S108をア
クティブで出力する。また、CSR宛ではなく受信用F
IFO104行きのパケットであると判断した場合に
は、CSR−abort 信号S108を出力しない。このと
き、CSR−FIFO105のポインタは確定しない。
なお、分別回路108は、リンクコア101を介したア
シンクロナス通信用パケットの第1クワドレッドにある
トランザクションコードtcode(Transaction code)
およびトランザクションラベルtl(Transaction labe
l) をチェックし、イニシエータであるホストコンピュ
ータからターゲットであるトランザクション・レイヤ回
路に対しての応答パケット(Response Packet) であるか
その他のパケットであるかの分別を行い、応答パケット
のみをトランザクション・レイヤ回路120に入力させ
る。The classification circuit 108 determines whether the received packet is a CSR
A destination offset (destination offset) of the third quadlet shown in FIG. 4B indicates whether the packet is a packet addressed to a CSR to be stored in the FIFO 105 for control or a control command or the like to be stored in the FIFO 104 for reception. ) It can be determined by the address indicated by the area. Therefore, the separation circuit 1
08 is the CSR FIFO 105 and the reception FIFO 10 for the first to third quadlets of the received packet.
4 is written, and if it is determined that the packet is addressed to the CSR, a CSR-abort signal S108 is output as active. In addition, the receiving F
If it is determined that the packet is destined for the IFO 104, the CSR-abort signal S108 is not output. At this time, the pointer of the CSR-FIFO 105 is not determined.
In addition, the classification circuit 108 determines the transaction code tcode (Transaction code) in the first quadred of the asynchronous communication packet via the link core 101.
And transaction label tl (Transaction labe
l) is checked, the host computer as the initiator discriminates whether the packet is a response packet (Response Packet) or another packet from the target transaction layer circuit to the target transaction layer circuit, and only the response packet is determined in the transaction layer. Input to the circuit 120.
【0036】図2は、CSR宛のパケットを受信した場
合の分別回路108によるCSR用FIFO105およ
び受信用FIFO104へのパケットの書き込み動作の
一例を示すタイミングチャートである。FIG. 2 is a timing chart showing an example of an operation of writing a packet to the CSR FIFO 105 and the reception FIFO 104 by the classification circuit 108 when a packet addressed to CSR is received.
【0037】受信データは、書き込み(write) 信号およ
び確認(confirm) 信号によって、受信FIFOに格納さ
れる。書き込み(write) 信号が書き込みポインタを、確
認(confirm) 信号が確認ポインタを制御する。したがっ
て、FIFOへのデータは確認(confirm) 信号によって
確定することになる。The received data is stored in the receive FIFO by a write signal and a confirm signal. The write signal controls the write pointer and the confirm signal controls the confirmation pointer. Therefore, the data to the FIFO will be determined by the confirm signal.
【0038】図2の例では、図2中の(a)に示す”He
ader 3rd" の書き込み時点t1でアクセス先のアドレス
が確定することから、このパケットがCSR宛であると
判断された場合には、確認する時点t3より前t2に、
(d)に示すように、CSR−abort 信号S108がア
クティブのハイレベルに設定される。受信用FIFO1
04では、このCSR−abort 信号S108を受けて、
以降の確認(confirm) 信号を無視して、代わりの書き込
みポインタを前の状態に戻す。In the example of FIG. 2, "He" shown in FIG.
Since the address of the access destination is determined at the writing time t1 of the ader 3rd ", if it is determined that this packet is addressed to CSR, at t2 before the checking time t3,
As shown in (d), the CSR-abort signal S108 is set to the active high level. FIFO1 for reception
In 04, upon receiving this CSR-abort signal S108,
Ignore the subsequent confirm signal and return the alternate write pointer to its previous state.
【0039】リゾルバ109は、IEEE1394シリ
アルインタフェースバスBSを伝送されてきたセルフI
Dパケットを解析し、CR110に格納する。また、エ
ラーチェック、ノード数のカウント等の機能も有する。The resolver 109 is connected to the self-I which has been transmitted through the IEEE 1394 serial interface bus BS.
The D packet is analyzed and stored in the CR 110. It also has functions such as error checking and counting the number of nodes.
【0040】トランザクション・レイヤ回路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 from a computer peripheral device, for example, a hard disk 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. After sending the request packet, the retry function
When the busy * Ack code is returned, this function retransmits the corresponding 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.
【0041】このトランザクション・レイヤ回路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.
【0042】トランスポートデータインタフェース回路
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.
【0043】要求パケット生成回路122は、リンク・
レイヤ回路100のCR110からデータ転送起動の指
示を受けると、送信(書き込み)の場合、SBP−2規
格に従ってトランスポートデータインタフェース回路1
21を介して得た図示しないハードディスクに記録され
たコンピュータデータをパケットに分けられるように1
個以上のデータに分け、トランザクションラベルtl
(=a)を指定した1394ヘッダを付加して要求用F
IFO124に格納する。また、受信(読み出し)の場
合には、SBP−2規格に従って、指定されたアドレ
ス、データ長分の1394ブロック読み出し要求コマン
ド(Block read Request Command)を1個以上のパケット
にして要求用FIFO124に格納する。The request packet generation circuit 122 has a link
Upon receiving an instruction to start data transfer from the CR 110 of the layer circuit 100, in the case of transmission (writing), 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
Divided into at least data and the transaction label tl
(= A) is added to the request F
It is stored in the IFO 124. In the case of reception (reading), according to the SBP-2 standard, a 1394 block read request command (Block read Request Command) corresponding to the specified address and data length is stored in the request FIFO 124 as one or more packets. I do.
【0044】応答パケットデコード回路123は、受信
時に応答用FIFO125に格納されたデータを読み出
し、1394ヘッダを取り除いて、データを所定のタイ
ミングでトランスポートデータインタフェース回路12
1を介してHDDコントローラ30に出力する。The response packet decode 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.
【0045】要求用FIFO124は、送信(書き込
み)時にはパケット化された送信データが格納され、受
信(読み出し)の場合には、1394ブロック読み出し
要求コマンドが格納される。The request FIFO 124 stores packetized transmission data when transmitting (writing), and stores a 1394 block read request command when receiving (reading).
【0046】応答用FIFO125は、受信(読み出
し)の場合には、ホストコンピュータ側から1394シ
リアルバスBSを伝送されてきた受信データが格納され
る。In the case of reception (reading), the response FIFO 125 stores reception data transmitted from the host computer via the 1394 serial bus BS.
【0047】トランザクションコントローラ126は、
送信時に要求用FIFO124に格納されたパケット化
された送信データ、および受信時に要求用FIFO12
4に格納された1394ブロック読み出し要求コマンド
(要求パケット)のリンク・レイヤコア回路100のリ
ンクコア101への出力制御を行う。また、送信時に、
リンク・レイヤ回路100の分別回路108からの応答
パケットを受けて、そのリトライコードrcodeをC
R110に書き込み、受信時には分別回路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 108 of the link layer circuit 100, the retry code rcode is set to C
The data is written into R110, and at the time of reception, the response packet from the classification circuit 105 is stored in the response FIFO 125.
【0048】次に、上記構成における動作について、分
別回路108の分別およびFIFOへのパケットの格納
動作を中心に説明する。Next, the operation of the above configuration will be described focusing on the classification of the classification circuit 108 and the operation of storing the packet in the FIFO.
【0049】たとえばホストコンピュータから1394
シリアルバスBSを転送されてきたSBP−2規格に基
づいたパケットデータがフィジカル・レイヤ回路20、
リンク・レイヤ回路100のリンクコア101を介して
分別回路108に入力される。For example, when a 1394
The packet data based on the SBP-2 standard transferred through the serial bus BS is transmitted to the physical layer circuit 20,
The data is input to the classification circuit 108 via the link core 101 of the link layer circuit 100.
【0050】分別回路108では、受信パケットを受け
てホストコンピュータからターゲットであるトランザク
ション・レイヤ回路に対しての応答パケット(Response
Packet) であるか、受信パケットがCSR用FIFO1
05に格納すべきCSR宛のパケットであるのか、受信
用FIFO104に格納すべきコントロール用コマンド
等のパケットであるのかが判断される。このとき、ま
ず、アシンクロナス通信用パケットの第1クワドレッド
にあるトランザクションコードtcode(Transaction
code)およびトランザクションラベルtl(Transaction
label) がチェックされ、応答パケットではないと判断
された場合には、第3クワドレットのデスティネーショ
ン・オフセット(destination offset)領域により示され
るアドレスによって受信パケットがCSR用FIFO1
05に格納すべきCSR宛のパケットであるのか、受信
用FIFO104に格納すべきコントロール用コマンド
等のパケットであるのかが判断される。The classification circuit 108 receives the received packet and receives a response packet (Response) from the host computer to the target transaction layer circuit.
Packet) or the received packet is a FIFO1 for CSR.
It is determined whether the received packet is a packet addressed to a CSR to be stored in the receiving FIFO 05 or a packet such as a control command to be stored in the receiving FIFO 104. At this time, first, the transaction code tcode (Transaction (Transaction) in the first quadred of the asynchronous communication packet is used.
code) and transaction label tl (Transaction
label) is checked, and if it is determined that the received packet is not a response packet, the received packet is converted to the CSR FIFO 1 by the address indicated by the destination offset area of the third quadlet.
It is determined whether the received packet is a packet addressed to a CSR to be stored in the receiving FIFO 05 or a packet such as a control command to be stored in the receiving FIFO 104.
【0051】この分別動作時には、分別回路108によ
って、受信パケットの第1から第3クワドレットまで
が、CSR用FIFO105および受信用FIFO10
4の両方に書き込まれる。そして、分別回路108にお
いて、CSR宛であると判断された場合には、CSR−
abort 信号S108がアクティブでORゲート107を
介して、受信用FIFO104に出力される。At the time of this sorting operation, the sorting circuit 108 converts the first to third quadlets of the received packet into the CSR FIFO 105 and the reception FIFO 10.
4 is written to both. If the classification circuit 108 determines that the data is addressed to the CSR, the CSR-
The abort signal S108 is active and output to the receiving FIFO 104 via the OR gate 107.
【0052】受信用FIFO104では、分別回路10
8からのCSR−abort 信号S108をORゲート10
7を介してアクティブで受けると、たとえば3クワドレ
ット程度まで格納した受信パケットは、他の受信用FI
FO、すなわちCSR用FIFO105に格納すべきも
のとして、ライト(write) ポインタが当該パケットの格
納開始前のポインタ位置に戻される。In the receiving FIFO 104, the classification circuit 10
The CSR-abort signal S108 from the OR gate 10
7, the received packet stored up to about 3 quadlets, for example, is received by another receiving FI.
As what is to be stored in the FO, that is, in the CSR FIFO 105, the write pointer is returned to the pointer position before the start of storing the packet.
【0053】そして、CSR用FIFO105には、C
SR宛パケットが引き続き書き込まれ、自動的にCSR
へのアクセス、たとえば書き込みが行われる。The CSR FIFO 105 includes C
The packet to the SR is written continuously and automatically
, For example, writing is performed.
【0054】一方、分別回路108において、受信パケ
ットがCSR宛ではなく、受信用FIFO104に格納
すべきコントロール用コマンド等のパケットであると判
断された場合には、分別回路108からはCSR−abor
t 信号S108は出力されず、このとき、CSR−FI
FO105のポインタは確定しない。そして、受信用F
IFO104には、受信パケットが引き続き書き込まれ
る。On the other hand, if the classification circuit 108 determines that the received packet is not addressed to the CSR but is a packet such as a control command to be stored in the reception FIFO 104, the classification circuit 108 outputs a CSR-abor
t signal S108 is not output, and at this time, CSR-FI
The pointer of the FO 105 is not fixed. And the receiving F
The received packet is continuously written in the IFO 104.
【0055】受信用FIFO104に格納されたORB
(Operation Request Block) 等の受信データは、CPU
インタフェース回路102を介してローカルプロセッサ
40に入力される。ローカルプロセッサ40では、CP
Uインタフェース回路102を介してORBの内容に従
ってCR110のトランザクション・レイヤ回路用レジ
スタの初期化が行われる。これにより、トランザクショ
ン・レイヤ回路120が起動される。ORB stored in reception FIFO 104
The received data such as (Operation Request Block)
The data is input to the local processor 40 via the interface circuit 102. In the local processor 40, the CP
The register for the transaction layer circuit of the CR 110 is initialized through the U interface circuit 102 according to the contents of the ORB. As a result, the transaction layer circuit 120 is activated.
【0056】起動されたトランザクション・レイヤ回路
120では、要求パケット生成回路122において、ト
ランスポートインタフェース回路121を介してHDD
コントローラ30に対してデータの要求が始められる。
要求に応じて、トランスポートインタフェース回路12
1を介して送られてきが送信データは、要求パケット生
成回路122においてSBP−2規格に従ってトランザ
クションラベルtl(=a)等が指定された1394ヘ
ッダが付加されて自動的に要求用FIFO124に格納
される。In the activated transaction layer circuit 120, the request packet generation circuit 122 sends the request to the HDD via the transport interface circuit 121.
A request for data from the controller 30 is started.
On request, the transport interface circuit 12
The transmission data transmitted through the request packet 1 is automatically stored in the request FIFO 124 with the 1394 header in which the transaction label tl (= a) or the like is specified in the request packet generation circuit 122 in accordance with the SBP-2 standard. You.
【0057】要求用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.
【0058】送信後、ホストコンピュータから読み出し
要求パケットに対するAckコードと、指定されたデー
タ長分のデータを含んだ読み出し応答パケット(Read R
esponse Packet) が送られてきて、フィジカル・レイヤ
回路20、リンク・レイヤ回路100のリンクコア10
1を介して分別回路108に入力される。After transmission, an Ack code for a read request packet from the host computer and a read response packet (Read R) including data of a 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 108 through the line 1.
【0059】分別回路108では、受信パケットのトラ
ンザクションコードtcodeおよびトランザクション
ラベルtlのチェックが行われ、ホストコンピュータか
らターゲットであるトランザクション・レイヤ回路に対
しての応答パケット(Response Packet) であると判別さ
れると、その応答パケットがトランザクション・レイヤ
回路120のトランザクションコントローラ126に入
力される。In the classification circuit 108, 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.
【0060】トランザクションコントローラ126で
は、分別回路108からの応答パケットが応答用FIF
O125に格納される。応答用FIFO125に格納さ
れたデータは、応答パケットデコード回路123によっ
て読み出され、1394ヘッダが取り除かれて、所定の
タイミングでトランスポートデータインタフェース回路
121を介してHDDコントローラ30に出力される。
以上の動作が繰り返されて、コンピュータデータのスト
レージデバイス(ハードディスク)への書き込み(受
信)動作が行われる。In the transaction controller 126, the response packet from the classification circuit 108 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.
【0061】以上説明したように、本第1の実施形態に
よれば、リンク・トランザクション集積回路10のリン
ク・レイヤ回路100にCSR106を設けるととも
に、CSR用FIFOを設け、さらに受信パケットがC
SR用FIFO105に格納すべきCSR宛のパケット
であるのか、受信用FIFO104に格納すべきコント
ロール用コマンド等のパケットであるのかを、第3クワ
ドレットのデスティネーション・オフセット(destinati
on offset)領域により示されるアドレスによって判断
し、受信パケットの第1から第3クワドレットまでは、
CSR用FIFO105および受信用FIFO104の
両方に書き込みを行い、CSR宛のパケットであると判
断した場合には、受信用FIF104に書き込みポイン
タを前の状態に戻させるCSR−abort 信号S108を
出力する分別回路108を設けたので、制御系パケット
を効率良く、しかも高速に処理することができるシリア
ルインタフェース回路を実現できる利点がある。As described above, according to the first embodiment, the CSR 106 is provided in the link layer circuit 100 of the link transaction integrated circuit 10, the CSR FIFO is provided, and the received packet is
Whether the packet is addressed to a CSR to be stored in the SR FIFO 105 or a control command packet to be stored in the reception FIFO 104 is determined by a destination offset (destinati) of the third quadlet.
on offset) area, the first to third quadlets of the received packet are
A discriminating circuit that writes data to both the CSR FIFO 105 and the reception FIFO 104 and outputs a CSR-abort signal S108 that causes the reception FIFO 104 to return the write pointer to the previous state when it is determined that the packet is addressed to the CSR. Because of the provision of 108, there is an advantage that a serial interface circuit that can process control packets efficiently and at high speed can be realized.
【0062】また、外部からのFIFO−cont信号FC
NTをアクティブで受けると、分別回路108からのC
SR−abort 信号S108をORゲート107を介して
アクティブで受けたとしても、受信パケットの格納を停
止せずにすべて格納するようにしたので、ローカルプロ
セッサ40により従来のようにソフトウェアによる制御
が可能である。Further, an external FIFO-cont signal FC
When NT is actively received, C from the classification circuit 108 is received.
Even if the SR-abort signal S108 is actively received via the OR gate 107, the received packets are all stored without stopping the storage, so that the local processor 40 can perform software control by the local processor 40 in the conventional manner. is there.
【0063】また、分別回路108において、リンクコ
ア101を介したアシンクロナス通信用パケットの第1
クワドレッドにあるトランザクションコードtcode
(Transaction code)およびトランザクションラベルtl
(Transaction label) をチェックし、イニシエータであ
るホストコンピュータからターゲットであるトランザク
ション・レイヤ回路に対しての応答パケット(Response
Packet) であるかその他のパケットであるかの分別を行
い、応答パケットのみをトランザクション・レイヤ回路
120に入力させるようにしたので、たとえばトランザ
クション・レイヤ回路120側で致命的なエラーがおき
てデータの読み出し/書き込み動作が止まってしまった
としても、データの次の入力されてくるコマンドの読み
出しができなることがなく、データの読み出し/書き込
みの状況にかかわりなくコマンドの受信を円滑に行うこ
とができる利点がある。In the classification circuit 108, the first packet of the asynchronous communication packet via the link core 101 is transmitted.
Transaction code tcode in Quadred
(Transaction code) and transaction label tl
Check the (Transaction label) and send a response packet (Response) from the host computer as the initiator to the target transaction layer circuit.
Packet) or another packet, and only the response packet is input to the transaction layer circuit 120. For example, a fatal error occurs on the transaction layer circuit 120 side and the data Even if the read / write operation is stopped, it is not possible to read the next input command of the data, and the command can be smoothly received regardless of the data read / write state. There are advantages.
【0064】第2実施形態 図3は、本発明に係るIEEE1394シリアルインタ
フェース回路の第2の実施形態を示すブロック構成図で
ある。 Second Embodiment FIG. 3 is a block diagram showing a second embodiment of the IEEE 1394 serial interface circuit according to the present invention.
【0065】本第2の実施形態では、FIFO−cont信
号FCNTを外部から受けるのではなく、ローカルプロ
セッサ40からCPUインタフェース回路102を介し
てCR110に制御情報としてセットし、これをFIF
O−cont信号FCNTとして受信用FIFO104の制
御系に与えるようにしたことにある。In the second embodiment, instead of receiving the FIFO-cont signal FCNT from the outside, the local processor 40 sets the control information in the CR 110 via the CPU interface circuit 102 as the control information, and sets this as the FIFO information.
The O-cont signal FCNT is provided to the control system of the receiving FIFO 104.
【0066】本第2の実施形態によれば、上述した第1
の実施形態の効果と同様の効果を得ることができる。According to the second embodiment, the first
The same effect as that of the embodiment can be obtained.
【0067】[0067]
【発明の効果】以上説明したように、本発明によれば、
制御系パケットを効率良く、しかも高速に処理すること
ができる利点がある。As described above, according to the present invention,
There is an advantage that control system packets can be processed efficiently and at high speed.
【0068】また、本発明によれば、第2の記憶手段に
対して、外部からの制御信号として、あるいは制御回路
によって内部レジスタに設定された制御情報として与え
ることにより、制御回路により制御およびステータスレ
ジスタへのアクセスをソフトウェアでの処理が可能とな
る。Further, according to the present invention, by providing the second storage means as a control signal from the outside or as control information set in an internal register by the control circuit, control and status by the control circuit are performed. Access to the register can be processed by software.
【図1】本発明に係るIEEE1394シリアルインタ
フェース回路の第1の実施形態を示すブロック構成図で
ある。FIG. 1 is a block diagram showing a first embodiment of an IEEE 1394 serial interface circuit according to the present invention.
【図2】CSR宛のパケットを受信した場合の分別回路
によるCSR用FIFOおよび受信用FIFOへのパケ
ットの書き込み動作の一例を示すタイミングチャートで
ある。FIG. 2 is a timing chart illustrating an example of an operation of writing a packet to a CSR FIFO and a reception FIFO by a classification circuit when a packet addressed to a CSR is received;
【図3】本発明に係るIEEE1394シリアルインタ
フェース回路の第2の実施形態を示すブロック構成図で
ある。FIG. 3 is a block diagram showing a second embodiment of the IEEE 1394 serial interface circuit according to the present invention.
【図4】IEEE1394規格のアシンクロナス転送を
説明するための図である。FIG. 4 is a diagram for explaining asynchronous transfer of the IEEE 1394 standard.
10…リンク/トランザクションレイヤ集積回路、20
…フィジカル・レイヤ回路、30…HDDコントロー
ラ、40…ローカルプロセッサ、100,100a…リ
ンク・レイヤ回路、101…リンクコア、102…CP
Uインタフェース回路、103…アシンクロナス送信用
FIFO、104…アシンクロナス受信用FIFO、1
05…CSR用FIFO、106…CSR、107…O
Rゲート、108…分別回路、109…リゾルバ、11
0…コントロールレジスタ、120…トランザクション
・レイヤ回路、121…トランスポートデータインタフ
ェース回路、121…要求パケット生成回路、123…
応答パケットデコード回路、124…要求用FIFO、
125…応答用FIFO、126…トランザクションコ
ントローラ。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 ... CSR FIFO, 106 ... CSR, 107 ... O
R gate, 108: classification circuit, 109: resolver, 11
0: control register, 120: transaction layer circuit, 121: transport data interface circuit, 121: request packet generation circuit, 123:
Response packet decoding circuit, 124 ... FIFO for request,
125 ... Response FIFO, 126 ... Transaction controller.
Claims (12)
たパケットを受信するシリアルインタフェース回路であ
って、 制御およびステータス用レジスタと、 上記レジスタへのアクセスを要求する要求パケットが格
納される第1の記憶手段と、 制御用パケットが格納される第2の記憶手段と、 上記レジスタまたは上記第2の記憶手段に格納された制
御用パケットの内容に応じた処理を行う制御回路とを有
するシリアルインタフェース回路。1. A serial interface circuit for receiving a packet transferred on a serial interface bus, comprising: a control and status register; and first storage means for storing a request packet for requesting access to the register. A serial interface circuit comprising: a second storage unit in which a control packet is stored; and a control circuit that performs a process according to the content of the control packet stored in the register or the second storage unit.
た供給先情報が付加されているパケットを受信するシリ
アルインタフェース回路であって、 制御およびステータス用レジスタと、 上記レジスタへのアクセスを要求する要求パケットが格
納される第1の記憶手段と、 制御用パケットが格納される第2の記憶手段と、 受信パケットを受けて、上記供給先情報から受信パケッ
トが上記要求パケットであると判断した場合には当該要
求パケットを上記第1の記憶手段に書き込ませ、上記制
御用パケットであると判断した場合には当該制御用パケ
ットを上記第2の記憶手段に書き込ませる分別回路と、 上記レジスタまたは上記第2の記憶手段に格納された制
御パケットの内容に応じた処理を行う制御回路とを有す
るシリアルインタフェース回路。2. A serial interface circuit for receiving a packet added with supply destination information transferred through a serial interface bus, wherein a control and status register and a request packet for requesting access to the register are stored. A first storage unit for storing the control packet, a second storage unit for storing the control packet, and a request when the received packet is determined to be the request packet from the supply destination information. A classification circuit for writing a packet to the first storage means and writing the control packet to the second storage means when it is determined that the control packet is the control packet; and the register or the second storage means Serial interface circuit having a control circuit for performing processing according to the contents of the control packet stored in the means
情報を判別するまで、受信パケットを上記第1および第
2の記憶手段に書き込ませ、判別の結果、受信パケット
が上記要求パケットである場合には、上記第2の記憶手
段のパケットの書き込みを停止させる請求項2記載のシ
リアルインタフェース回路。3. The discriminating circuit causes the received packet to be written into the first and second storage means until the destination information of the received packet is determined, and as a result of the determination, the received packet is the request packet. 3. The serial interface circuit according to claim 2, wherein writing of the packet in said second storage means is stopped.
書き込みを停止させるとともに、書き込みポインタを当
該書き込みの前の状態に戻させる請求項3記載のシリア
ルインタフェース回路。4. The serial interface circuit according to claim 3, wherein said sorting circuit stops writing in said second storage means and returns a write pointer to a state before said writing.
ットであり、上記供給先情報は、デスティネーション・
オフセット(destination offset)領域に設定されている
情報である請求項2記載のシリアルインタフェース回
路。5. The receiving packet is an asynchronous packet, and the destination information is a destination packet.
3. The serial interface circuit according to claim 2, wherein the information is information set in a destination offset area.
ットであり、上記供給先情報は、デスティネーション・
オフセット領域に設定されている情報である請求項4記
載のシリアルインタフェース回路。6. The received packet is an asynchronous packet, and the destination information is a destination packet.
5. The serial interface circuit according to claim 4, wherein the information is information set in an offset area.
ると、上記分別回路の書き込み停止指示にかかわらずパ
ケットの書き込みを行う請求項3記載のシリアルインタ
フェース回路。7. The serial interface circuit according to claim 3, wherein said second storage means, upon receiving a control signal, writes a packet regardless of a write stop instruction of said sorting circuit.
ると、上記分別回路の書き込みポインタの変更指示にか
かわらずパケットの書き込みを行う請求項4記載のシリ
アルインタフェース回路。8. The serial interface circuit according to claim 4, wherein said second storage means, upon receiving a control signal, writes a packet irrespective of an instruction to change a write pointer of said sorting circuit.
号である請求項7記載のシリアルインタフェース回路。9. The serial interface circuit according to claim 7, wherein said control signal is a signal input from the outside.
信号である請求項8記載のシリアルインタフェース回
路。10. The serial interface circuit according to claim 8, wherein said control signal is a signal inputted from outside.
部レジスタを有し、 上記第2の記憶手段は、上記内部レジスタに制御情報が
設定されている場合に上記分別回路の書き込み停止指示
にかかわらずパケットの書き込みを行う請求項7記載の
シリアルインタフェース回路。11. An internal register capable of setting control information from a control circuit, wherein the second storage means, when the control information is set in the internal register, in response to a write stop instruction of the sorting circuit. 8. The serial interface circuit according to claim 7, wherein packet writing is performed.
部レジスタを有し、上記第2の記憶手段は、上記内部レ
ジスタに制御情報が設定されている場合に上記分別回路
の書き込みポインタの変更指示にかかわらずパケットの
書き込みを行う請求項8記載のシリアルインタフェース
回路。12. An internal register capable of setting control information from a control circuit, wherein the second storage means instructs a change of a write pointer of the classification circuit when the control information is set in the internal register. 9. The serial interface circuit according to claim 8, wherein packet writing is performed irrespective of the condition.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10115692A JPH11308301A (en) | 1998-04-24 | 1998-04-24 | Serial interface circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10115692A JPH11308301A (en) | 1998-04-24 | 1998-04-24 | Serial interface circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH11308301A true JPH11308301A (en) | 1999-11-05 |
Family
ID=14668889
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10115692A Pending JPH11308301A (en) | 1998-04-24 | 1998-04-24 | Serial interface circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH11308301A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100363913C (en) * | 2004-03-09 | 2008-01-23 | 精工爱普生株式会社 | Data transmission control device and electronic equipment |
-
1998
- 1998-04-24 JP JP10115692A patent/JPH11308301A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100363913C (en) * | 2004-03-09 | 2008-01-23 | 精工爱普生株式会社 | Data transmission control device and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1049019B1 (en) | Data transfer controller and electronic device | |
| KR19990087389A (en) | Asynchronous data pipes for automatically managing asynchronous data delivery between application devices and bus structures | |
| JP3584789B2 (en) | Data transfer control device and electronic equipment | |
| US7430618B2 (en) | Data transfer control device and electronic equipment | |
| JP3733699B2 (en) | Serial interface circuit | |
| JP3785747B2 (en) | Serial interface circuit and signal processing method thereof | |
| US7164689B2 (en) | Multi-initiator control unit and method | |
| US6578095B1 (en) | Data transfer control device for transferring data among a plurality of nodes and electronic equipment | |
| JP3539287B2 (en) | Data transfer control device and electronic equipment | |
| JPH1117710A (en) | Serial interface circuit | |
| JPH11308301A (en) | Serial interface circuit | |
| JPH11308300A (en) | Serial interface circuit | |
| US6834316B1 (en) | Data transfer controller and electronic device | |
| JPH1117775A (en) | Serial interface circuit | |
| JP3837843B2 (en) | Serial interface circuit | |
| JPH1117773A (en) | Serial interface circuit | |
| JPH1117767A (en) | Serial interface circuit | |
| JPH1117774A (en) | Serial interface circuit | |
| JP4062829B2 (en) | Serial interface circuit | |
| JP4582180B2 (en) | Data transmission equipment | |
| JP2000115176A (en) | Serial interface circuit | |
| JP2003023471A (en) | Packet transmission / reception processing circuit | |
| JP2005018800A (en) | Multi-initiator control apparatus and method | |
| JP2002244991A (en) | Multi-initiator control device and method |