JP2988879B2 - Bus converter - Google Patents

Bus converter

Info

Publication number
JP2988879B2
JP2988879B2 JP8315849A JP31584996A JP2988879B2 JP 2988879 B2 JP2988879 B2 JP 2988879B2 JP 8315849 A JP8315849 A JP 8315849A JP 31584996 A JP31584996 A JP 31584996A JP 2988879 B2 JP2988879 B2 JP 2988879B2
Authority
JP
Japan
Prior art keywords
bus
data
transfer
signal
output
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.)
Expired - Fee Related
Application number
JP8315849A
Other languages
Japanese (ja)
Other versions
JPH10161972A (en
Inventor
伸治 牛上
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.)
AI OO DEETA KIKI KK
Original Assignee
AI OO DEETA KIKI KK
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=18070328&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JP2988879(B2) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by AI OO DEETA KIKI KK filed Critical AI OO DEETA KIKI KK
Priority to JP8315849A priority Critical patent/JP2988879B2/en
Publication of JPH10161972A publication Critical patent/JPH10161972A/en
Application granted granted Critical
Publication of JP2988879B2 publication Critical patent/JP2988879B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、接続するバスイ
ンタフェースの異なる2つの装置間でデータを転送させ
るバス変換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bus converter for transferring data between two devices having different bus interfaces.

【0002】[0002]

【従来の技術】従来より、パーソナルコンピュータの機
能を拡張するものとしてフロッピィディスクドライブ、
ハードディスクドライブ、CD−ROMドライブ等の周
辺機器がある。多くの周辺機器は、パーソナルコンピュ
ータとバスで接続し使用するようになっている。最近で
は、標準化されたバスの種類は多く、ATA−2(AT At
tachment-2) またはSCSI(Small Computer System I
nterface) といった所が広く普及している。なお、AT
A−2のバスには、IDE(Integrated Drive Electron
ics)またはATAPI(AT Attachment Packet Interfac
e)のインタフェースを備えた周辺機器を接続して使用で
きる。
2. Description of the Related Art Conventionally, a floppy disk drive,
There are peripheral devices such as a hard disk drive and a CD-ROM drive. Many peripheral devices are connected to and used by a personal computer via a bus. Recently, there have been many standardized bus types, and ATA-2 (AT At
tachment-2) or SCSI (Small Computer System I
nterface) is widely used. Note that AT
The A-2 bus has IDE (Integrated Drive Electron)
ics) or ATAPI (AT Attachment Packet Interface)
e) Peripheral equipment equipped with the interface of the above can be connected and used.

【0003】ここで、ATA−2バスとSCSIバスと
を比較してみると、以下に示すような相違点がある。 1つのATA−2バスに接続できる周辺機器は2台で
あり、1つのSCSIバスに接続できる周辺機器は7台
である。このため、パーソナルコンピュータに複数の周
辺機器を接続する場合にはSCSIインタフェースの方
が適している。 IDEインタフェースの方がSCSIインタフェース
に比べてPCのシステムバスに近い仕様なため回路が簡
単である。このため、ATA−2バスに接続する周辺機
器のほうが安価である。 ATA−2バスでは周辺機器を接続するケーブルが最
大46cmであり、SCSIバスではケーブルの総延長
が最大6mである。このため、パーソナルコンピュータ
の外付け用の周辺機器としてはSCSIインタフェース
の方が適している。
[0003] When comparing the ATA-2 bus and the SCSI bus, there are the following differences. Two peripheral devices can be connected to one ATA-2 bus, and seven peripheral devices can be connected to one SCSI bus. Therefore, when connecting a plurality of peripheral devices to a personal computer, the SCSI interface is more suitable. The IDE interface has a simpler circuit because it has a specification closer to the PC system bus than the SCSI interface. For this reason, peripherals connected to the ATA-2 bus are less expensive. In the ATA-2 bus, the cable connecting peripheral devices is up to 46 cm, and in the SCSI bus, the total length of the cable is up to 6 m. Therefore, the SCSI interface is more suitable as an external peripheral device for a personal computer.

【0004】[0004]

【発明が解決しようとする課題】上述したような相違点
から、ユーザは周辺機器を購入する場合、周辺機器の購
入にかかる費用やこの周辺機器を接続したシステムの使
用環境等を考慮し、ATA−2バスで周辺機器を接続す
るか、SCSIバスで周辺機器を接続するかを選択して
いた。しかしながら、新たに購入した周辺機器を追加し
て取り付け、使用環境等が変化したときに、これまでA
TA−2バスに接続していた周辺機器をSCSIバスに
接続して使用するように変更したい場合や、逆にSCS
Iバスに接続していた周辺機器をATA−2バスに接続
して使用するように変更したい場合がある。ところが、
周辺機器に設けられているインタフェースが異なるので
このような接続変更はできなかった。
From the above-described differences, when purchasing a peripheral device, the user considers the cost of purchasing the peripheral device and the use environment of the system to which the peripheral device is connected, and considers the ATA. In this case, the user has to select whether to connect a peripheral device with the -2 bus or a peripheral device with the SCSI bus. However, when a newly purchased peripheral device is additionally installed and the usage environment changes,
If you want to change the peripheral device connected to the TA-2 bus to be used by connecting to the SCSI bus,
There may be a case where a user wants to change the peripheral device connected to the I bus to the ATA-2 bus for use. However,
Such a connection change could not be made because the interfaces provided in the peripheral device were different.

【0005】また、最近ではコストの安価なIDEイン
タフェースの周辺機器が主流となって量産されており、
コストがさらに安価になっている。一方、SCSIイン
タフェースの周辺機器は生産数が減少している。このた
め、IDEインタフェースの周辺機器とSCSIインタ
フェースの周辺機器との価格差がさらに大きくなってい
る。そこで、最近では、IDEインタフェースを備えた
周辺機器をSCSIバスに接続して使用できるようにす
るバス変換装置の要求が高まっている。
[0005] Recently, peripheral devices for IDE interfaces, which are inexpensive, have become mainstream and have been mass-produced.
Costs are even lower. On the other hand, the number of peripheral devices of the SCSI interface is decreasing. For this reason, the price difference between the peripheral device of the IDE interface and the peripheral device of the SCSI interface is further increased. Therefore, recently, there has been an increasing demand for a bus converter that enables peripheral devices having an IDE interface to be used by connecting them to a SCSI bus.

【0006】しかしながら、これまでに提案されている
バス変換装置は、一方のバスに接続されている機器(デ
ータの転送側)から転送データを全て一旦メモリに取り
込み、その後、この記憶したデータを他方のバスに接続
されている機器(データの受信側)に転送するというも
のであり、データの転送にかかる時間が長いという問題
があった。
However, the bus converters proposed so far temporarily take in all the transfer data from a device (the data transfer side) connected to one of the buses, and then transfer the stored data to the other. However, there is a problem that the time required for data transfer is long.

【0007】この発明の目的は、規格の異なるバスに接
続された装置間でのデータの入出力を高速に行えるバス
変換装置を提供することにある。
An object of the present invention is to provide a bus converter capable of inputting and outputting data between devices connected to buses of different standards at high speed.

【0008】[0008]

【課題を解決するための手段】この発明にかかるバス変
換装置は、規格の異なる2つのバスに対してそれぞれ接
続される2つのインタフェースと、上記2つのバスにつ
いて、入力側とするバスと出力側とするバスの切り替え
を行う入出力バス切替手段と、 上記入出力バス切替手段
入力側としたバスから入力された転送データをFIF
Oに書き込むデータ書き込み手段と、前記FIFOに書
き込まれた転送データを上記入出力バス切替手段が出力
側としたバスに出力するデータ出力手段と起動時に、
上記バスを介して接続されている装置に対して、該装置
が接続されているバスの規格で規定されている最も遅い
速度でアクセスして該装置がサポートしている上限のデ
ータ転送速度を獲得する転送速度獲得手段と、 上記転送
速度獲得手段で獲得した上限のデータ転送速度をバスに
接続されている装置に対するアクセス速度として設定す
るアクセス速度設定手段と、を備えている。また、一方
のバスから入力されたコマンドを他方のバスの規格に適
合するコマンドに変換するコマンド変換手段と、上記
マンド変換手段で変換したコマンドを他方のバスに出力
するコマンド出力手段と、を備えている。
Means for Solving the Problems] bus converting apparatus of the present invention, the two interfaces are connected to two buses with different standards, One of the above two buses
Between the input and output buses
And input and output bus switching means for performing, the input and output bus switching means
FIF transfer data but input from bus that the input side
And data writing means for writing the O, and data output means for outputting transfer data written in the FIFO to the bus to the output bus switching means has an output side, at startup,
For a device connected via the bus, the device
Is the slowest specified in the standard of the bus to which it is connected
A transfer rate acquiring means for acquiring the data transfer rate of the upper limit to which the device supports and access speed, the transfer
Transfer the upper limit data transfer speed acquired by the speed acquisition means to the bus
Set as the access speed for the connected device
Access speed setting means. One side
A command converting means for converting the input from the bus command compatible command to the other bus standards, and command output means for outputting a command converted by the co <br/> command conversion means to the other bus , Is provided.

【0009】さらに、記バスの1つはSCSIバスで
あり、もう1つのバスはATA−2バスである
[0009] In addition, one of the previous SL bus is a SCSI bus, another bus is ATA-2 bus.

【0010】図11は、本発明にかかるバス変換装置の
機能を示すブロック図である。100、101は、規格
の異なるバスに接続される2つのインタフェースであ
る。102は、一方のインタフェースにおける入出力を
制御する第1の制御部であり、103は、他方のインタ
フェースにおける入出力を制御する第2の制御部であ
る。104は、入力された制御信号を、入力側と反対の
バス規格に適合した制御信号に変換する制御信号変換部
である。105は、入力側とした一方のバスから入力さ
れたデータを記憶し、この記憶したデータを出力側とし
た他方のバスに出力する直接転送部である。この直接転
送部105にFIFOが設けられている。この構成のバ
ス変換装置では、一方のインタフェースを介して入力さ
れたデータを直接転送部105に一時的に記憶させる処
理と、直接転送部105に一時的に記憶させたデータを
他方のバスに出力する処理とを同期させることなく独立
して行うことができる。このため、一方のインタフェー
スから入力されて直接転送部105に一時的に記憶した
データを順次他方のインタフェースから出力することが
できる。よって、データの転送にかかる時間が大幅に短
縮される。また、ス変換装置は、起動時(すなわち、
電源オン時)にバスに接続されている装置に対して、接
続されているバスの規格で規定されている最も遅い速度
でアクセスして該装置がサポートしている上限のデータ
転送速度を獲得すると、ここで獲得した上限の転送速度
をこれ以降の該装置に対するアクセス速度として設定す
る。すなわち、データの転送をバスに接続されている装
置がサポートしている上限のデータ転送速度で行うの
で、データの転送が最も効率的に行える。しかも、バス
に接続されている装置がサポートしている上限のデータ
転送速度を獲得するときには、該装置が接続されている
バスの規格で規定されている最も遅い速度でアクセスす
るようにしているので、該装置に対して無駄なアクセス
を行うこともない。 さらに、インタフェース100、1
01および直接転送部105(FIFO)を介して入出
力される転送データの転送方向については切り替えるこ
とができる。すなわち、双方向でデータの転送が行え
る。
FIG. 11 is a block diagram showing the functions of the bus converter according to the present invention. 100 and 101 are two interfaces connected to buses of different standards. Reference numeral 102 denotes a first control unit that controls input / output in one interface, and reference numeral 103 denotes a second control unit that controls input / output in the other interface. A control signal conversion unit 104 converts the input control signal into a control signal conforming to a bus standard opposite to the input side. Reference numeral 105 denotes a direct transfer unit that stores data input from one of the buses on the input side and outputs the stored data to the other bus on the output side. The direct transfer unit 105 is provided with a FIFO. In the bus converter having this configuration, a process of temporarily storing data input via one interface in the direct transfer unit 105 and outputting the data temporarily stored in the direct transfer unit 105 to the other bus And can be performed independently without synchronization. Therefore, data input from one interface and temporarily stored in the direct transfer unit 105 can be sequentially output from the other interface. Thus, the time it takes to transfer data Ru is greatly reduced. In addition, bus conversion device, start-up (ie,
The power supply when on) for the device connected to the bus, contact
The slowest speed specified in the following bus standard
The maximum data supported by the device accessed by
If you get the transfer speed, the maximum transfer speed you got here
Is set as a subsequent access speed to the device.
You. That is, data transfer is performed by a device connected to the bus.
At the maximum data rate supported by the device.
Thus, data transfer can be performed most efficiently. Moreover, the bus
Upper limit data supported by the device connected to
When you get the transfer speed, the device is connected
Access at the slowest speed specified by the bus standard
Useless access to the device.
Also do not do. Further, the interfaces 100, 1
01 and via direct transfer unit 105 (FIFO)
The transfer direction of the transferred transfer data can be switched.
Can be. That is, data can be transferred in both directions.
You.

【0011】[0011]

【発明の実施の形態】図1は、この発明の実施形態であ
るバス変換装置を適用したシステムの構成を示す図であ
る。1は、パーソナルコンピュータであり、イニシエー
タとして動作する。パーソナルコンピュータ1には、周
辺機器(ターゲット)として動作する複数のSCSI機
器2がSCSIバスで接続されている。また、パーソナ
ルコンピュータ1には、SCSIバスでこの発明の実施
形態のバス変換装置3も接続されている。4は、IDE
インタフェースを備えたIDE機器であり、バス変換装
置3とATA−2バスを介して接続されている。このシ
ステムにおいて、パーソナルコンピュータ1はバス変換
装置3およびIDE機器4を1つのターゲットとして取
り扱う。なお、イニシエータとは入出力動作を起動する
装置のことであり、ターゲットとは起動された入出力動
作を実行する装置のことである。図1に示すシステムに
おいて、パーソナルコンピュータ1とSCSI機器2と
の間におけるデータの転送は、公知のSCSIの規格に
基づいて行われる。
FIG. 1 is a diagram showing the configuration of a system to which a bus converter according to an embodiment of the present invention is applied. Reference numeral 1 denotes a personal computer, which operates as an initiator. A plurality of SCSI devices 2 operating as peripheral devices (targets) are connected to the personal computer 1 via a SCSI bus. The personal computer 1 is also connected to the bus converter 3 according to the embodiment of the present invention via a SCSI bus. 4 is IDE
It is an IDE device provided with an interface, and is connected to the bus converter 3 via the ATA-2 bus. In this system, the personal computer 1 handles the bus converter 3 and the IDE device 4 as one target. Note that the initiator is a device that starts an input / output operation, and the target is a device that executes the started input / output operation. In the system shown in FIG. 1, data transfer between the personal computer 1 and the SCSI device 2 is performed based on a known SCSI standard.

【0012】以下、詳細にこの発明の実施形態であるバ
ス変換装置3の動作について説明する。図2は、この発
明の実施形態であるバス変換装置の構成を示すブロック
図である。なお、この図では図11に示したインタフェ
ース100、101、第1の制御部102、第2の制御
部103、制御信号変換部104、直接転送部105を
構成する部分をそれぞれ破線で囲み、同一の符号を付し
ている。11はCPUであり、12はCPU11で実行
するプログラムを記憶したROMである。CPU11に
は、プログラムの実行に必要なワークエリアとして使用
するRAM11aを内蔵している。なお、RAM11a
はCPU11に内蔵されていなくてもよい(CPU11
に対して外付けであってもよい)。13は、SCSI機
器としてのID番号を設定するID設定部である。14
はATA−2バスに接続するATA−2コネクタであ
り、15はSCSIバスに接続するSCSIコネクタで
ある。16は、IDE機器4との転送モードを設定する
PIOモード設定部である。17は、PIOモード設定
部16に設定されたモードのパルス信号を生成するパル
ス生成部である。18は、パルス生成部17で生成され
たパルス信号をIOWまたはIORとしてATA−2バ
スに出力するI/O切替部である。19は、データの転
送方向(パーソナルコンピュータ1からIDE機器4、
または、IDE機器4からパーソナルコンピュータ1)
を設定する転送方向設定部である。20は、パルス生成
部17の動作を停止させるIDE停止部である。21
は、IDE機器4のI/Oレジスタを選択するアドレス
発生部である。22は、データの直接転送を設定する直
接転送設定部である。23は、転送したデータ数をカウ
ントする転送データ数カウンタである。24は、IDE
機器4からCPU11でエミュレーションする情報の取
り込みや、IDE機器4に対してCPU11でエミュレ
ーションした情報の出力を行うIDE入出力制御部であ
る。25は、同期転送におけるSCSIオフセット値を
セットするSCSIオフセット部である。26は、同期
転送におけるREQ信号の周期を設定するREQ周期設
定部である。27は、同期転送、非同期転送を設定する
転送モード設定部である。28は、SCSIバスからC
PU11でエミュレーションする情報の取り込みや、S
CSIバスに対してCPU11でエミュレーションした
情報の出力を行うSCSI入出力制御部である。29
は、SCSIバス上の制御信号の取り込みや、SCSI
バスへの制御信号の出力を行うSCSI制御信号入出力
部である。30は、SCSIバス上のデータの取り込み
や、SCSIバス上へのデータの出力を停止させるSC
SI停止回路である。31は、データの直接転送時にR
EQ信号を発生させるREQ発生回路である。なお、デ
ータの直接転送時でないときはSCSI制御信号入出力
部29でREQ信号を発生させる。32は、データを取
り込むべきバスをSCSIバス、ATA−2バスで切り
替える入力バス切替部である。33は、データを出力す
るバスをSCSIバス、ATA−2バスで切り替える出
力バス切替部である。34は、SCSIバスまたはAT
A−2バスから取り込んだデータを一時的に記憶するF
IFOである。35はFIFO34にデータを書き込む
アドレスを指定するWアドレス部であり、36はFIF
O34にデータを読み出すアドレスを指定するRアドレ
ス部である。37は、Wアドレス部35とRアドレス部
36で指定されているアドレスを比較して、SCSI停
止信号やIDE停止信号を出力するフラグ回路である。
38はWアドレス部35に書き込みクロックを与えるW
クロック切替回路であり、39はRアドレス部36に読
み出しクロックを与えるRクロック切替回路である。4
0は、REQ信号とACK信号の差をカウントするオフ
セットカウンタである。41は、オフセットカウンタ4
0のカウント値とSCSIオフセット部25にセットさ
れたオフセット値とを比較する比較回路である。42は
データの転送が完了したかどうかを判定する終了検出回
路である。
Hereinafter, the operation of the bus converter 3 according to the embodiment of the present invention will be described in detail. FIG. 2 is a block diagram showing the configuration of the bus converter according to the embodiment of the present invention. In this figure, the parts constituting the interfaces 100 and 101, the first control unit 102, the second control unit 103, the control signal conversion unit 104, and the direct transfer unit 105 shown in FIG. Are given. Reference numeral 11 denotes a CPU, and reference numeral 12 denotes a ROM that stores a program to be executed by the CPU 11. The CPU 11 has a built-in RAM 11a used as a work area necessary for executing the program. Note that the RAM 11a
May not be built in the CPU 11 (the CPU 11
May be attached externally). An ID setting unit 13 sets an ID number as a SCSI device. 14
Is an ATA-2 connector connected to the ATA-2 bus, and 15 is a SCSI connector connected to the SCSI bus. A PIO mode setting unit 16 sets a transfer mode with the IDE device 4. Reference numeral 17 denotes a pulse generation unit that generates a pulse signal of the mode set in the PIO mode setting unit 16. Reference numeral 18 denotes an I / O switching unit that outputs the pulse signal generated by the pulse generation unit 17 to the ATA-2 bus as IOW or IOR. 19 is a data transfer direction (from the personal computer 1 to the IDE device 4,
Or, from the IDE device 4 to the personal computer 1)
Is a transfer direction setting unit for setting the transfer direction. Reference numeral 20 denotes an IDE stop unit that stops the operation of the pulse generation unit 17. 21
Is an address generator for selecting an I / O register of the IDE device 4. Reference numeral 22 denotes a direct transfer setting unit for setting direct data transfer. Reference numeral 23 denotes a transfer data number counter for counting the number of transferred data. 24 is IDE
An IDE input / output control unit that takes in information emulated by the CPU 11 from the device 4 and outputs information emulated by the CPU 11 to the IDE device 4. Reference numeral 25 denotes a SCSI offset unit for setting a SCSI offset value in the synchronous transfer. Reference numeral 26 denotes an REQ cycle setting unit that sets the cycle of the REQ signal in the synchronous transfer. Reference numeral 27 denotes a transfer mode setting unit for setting synchronous transfer and asynchronous transfer. 28 is C from the SCSI bus
Importing information to be emulated by PU11, S
A SCSI input / output control unit that outputs information emulated by the CPU 11 to the CSI bus. 29
Is to capture control signals on the SCSI bus,
This is a SCSI control signal input / output unit that outputs a control signal to the bus. An SC 30 stops capturing data on the SCSI bus or outputting data on the SCSI bus.
This is an SI stop circuit. 31 is R when data is directly transferred.
This is a REQ generation circuit that generates an EQ signal. When not directly transferring data, the SCSI control signal input / output unit 29 generates a REQ signal. Reference numeral 32 denotes an input bus switching unit that switches a bus to which data is to be taken between a SCSI bus and an ATA-2 bus. Reference numeral 33 denotes an output bus switching unit that switches a data output bus between a SCSI bus and an ATA-2 bus. 34 is a SCSI bus or AT
A-2 F for temporarily storing data fetched from the bus
IFO. 35 is a W address part for designating an address for writing data to the FIFO 34, and 36 is a FIFO address part.
This is an R address portion for specifying an address from which data is read in O34. Reference numeral 37 denotes a flag circuit that compares addresses specified by the W address section 35 and the R address section 36 and outputs a SCSI stop signal or an IDE stop signal.
38 is a W for giving a write clock to the W address section 35;
A clock switching circuit 39 is an R clock switching circuit that supplies a read clock to the R address unit 36. 4
0 is an offset counter for counting the difference between the REQ signal and the ACK signal. 41 is an offset counter 4
This is a comparison circuit that compares the count value of 0 with the offset value set in the SCSI offset unit 25. An end detection circuit 42 determines whether or not the data transfer has been completed.

【0013】SCSIバスは、その使用状態によって以
下に示す8つのフェーズに区切られる。また、同時に異
なるフェーズが生じることはない。 バスフリーフェーズ(BUS FREE PHAS
E) SCSIバスがいずれの装置にも使用されていないフェ
ーズである。 アービトレーションフェーズ(ARBITRATIO
N PHASE) SCSIバスを使用する装置を決めるフェーズである。 セレクションフェーズ(SELECTION PHA
SE) 入出力動作を開始させるターゲットを選択するフェーズ
である。 リセレクションフェーズ(RESELECTION
PHASE) イニシエータから以前に開始された入出力動作を中断し
ていたターゲットがイニシエータに再接続するフェーズ
である。 コマンドフェーズ(COMMAND PHASE) ターゲットがイニシエータにコマンドを要求するフェー
ズである。 データフェーズ(DATA PHASE) ターゲットがイニシエータにデータの授受を要求するフ
ェーズである。 ステータスフェーズ(STATUS PHASE) ターゲットがイニシエータにステータス情報の受取を要
求するフェーズである。 メッセージフェーズ(MESSAGE PHASE) ターゲットがイニシエータにメッセージの授受を要求す
るフェーズである。
The SCSI bus is divided into the following eight phases depending on the state of use. Also, different phases do not occur at the same time. Bus Free Phase (BUS FREE PHAS)
E) The phase in which the SCSI bus is not used for any device. Arbitration phase (ARBITRATIO
N PHASE) This is a phase for determining a device that uses the SCSI bus. Selection PHA
SE) This is a phase for selecting a target for starting the input / output operation. Reselection phase (Reselection
PHASE) This is a phase in which a target that has interrupted an input / output operation previously started from the initiator reconnects to the initiator. Command phase (COMMAND PHASE) This is a phase in which the target requests a command from the initiator. Data phase (DATA PHASE) This is a phase in which the target requests the initiator to exchange data. Status phase (STATUS PHASE) This is a phase in which the target requests the initiator to receive status information. Message phase (MESSAGE PHASE) This is a phase in which the target requests the initiator to send and receive a message.

【0014】上記した〜をまとめて情報転送フェー
ズ(information transfer ph
ase)と言う。上記したフェーズは、図3に示すよう
に遷移する。また、SCSIにおける制御信号として
は、BSY(BUSY)、SEL(SELECT)、C
/D(CONTROL/DATA)、I/O(IN/O
UT)、MSG(MESSAGE)、REQ(REQU
EST)、ACK(ACKNOWLEDGE)、RST
(RESET)、ATN(ATTENTION)があ
る。図4に各フェーズにおいて発生する制御信号(RS
Tを除く)と制御信号を出力する装置(信号源)を示
す。また、SCSIバスに接続されている全ての装置
(イニシエータおよびターゲット)には、ID番号が設
定されている。
The above-mentioned items (1) to (4) are collectively described as an information transfer phase.
ase). The above-described phase transitions as shown in FIG. The control signals in the SCSI include BSY (BUSY), SEL (SELECT), and C
/ D (CONTROL / DATA), I / O (IN / O
UT), MSG (MESSAGE), REQ (REQU)
EST), ACK (ACKNOWLEDGE), RST
(RESET) and ATN (ATTENTION). FIG. 4 shows a control signal (RS) generated in each phase.
T) and a device (signal source) for outputting a control signal. Further, ID numbers are set for all devices (initiators and targets) connected to the SCSI bus.

【0015】一方、ATA−2バスには、SCSIバス
のようにフェーズという区切りはない。IDE機器4で
は、外部の装置との通信を複数のI/Oレジスタを経由
して行う。I/Oレジスタの種類としては、データの転
送に使用するデータレジスタ、転送するデータ数を記憶
するセクタカウントレジスタ、転送するデータのアドレ
スまたは転送されてくるデータを記憶するアドレスを記
憶するセクタナンバレジスタ等がある。また、制御信号
としては、データ線に載っているデータを選択したI/
Oレジスタに書き込ませるライトイネーブル信号(IO
W)や、選択したI/Oレジスタに記憶されているデー
タをデータ線に出力させるリードイネーブル信号(IO
R)等がある。なお、SCSIでは1度に1バイトのデ
ータしか転送できないが、IDEでは2バイトのデータ
を転送することができる。
On the other hand, the ATA-2 bus does not have a phase partition unlike the SCSI bus. The IDE device 4 performs communication with an external device via a plurality of I / O registers. The types of I / O registers include a data register used for data transfer, a sector count register for storing the number of data to be transferred, a sector number register for storing an address of data to be transferred or an address for storing data to be transferred. Etc. In addition, as a control signal, I / O which selects data on the data line is selected.
Write enable signal (IO
W) and a read enable signal (IO) for outputting the data stored in the selected I / O register to the data line.
R) and the like. Note that SCSI can transfer only 1-byte data at a time, but IDE can transfer 2-byte data.

【0016】バス変換装置3は、電源オン時にCPU1
1がATA−2バスで接続されているIDE機器4に対
してIDENTIFY DEVICEコマンドを発行す
る。このコマンドは、IDEで規定されているものでI
DE機器4のパラメタ情報を読み出すときに発行するも
のである。このとき、CPU11はデータの転送速度を
最も遅いモード0でアクセスする。したがって、バス変
換装置3とIDE機器4との通信は確実に行われる。バ
ス変換装置3がこの時獲得するパラメタ情報には、接続
されているIDE機器4のサポートしているデータ転送
モードが含まれている。そこで、バス変換装置3は、P
IOモード設定部16にこの転送モードを設定する。し
たがって、バス変換装置3とIDE機器4との通信は、
これ以降この転送モードで行われるようになる。すなわ
ち、バス変換装置3とIDE機器4とは、上限の転送モ
ードで通信を行うことになる。なお、この実施形態では
転送モード設定部27には、非同期転送を示す0を設定
しているものとする。また、転送モードが非同期転送に
設定されている時、SCSIオフセット部25に設定さ
れているオフセット値は1である。
The bus converter 3 is connected to the CPU 1 when the power is turned on.
1 issues an IDENTIFY DEVICE command to the IDE device 4 connected by the ATA-2 bus. This command is specified by IDE and
It is issued when the parameter information of the DE device 4 is read. At this time, the CPU 11 accesses in the mode 0 with the lowest data transfer speed. Therefore, communication between the bus converter 3 and the IDE device 4 is reliably performed. The parameter information acquired by the bus converter 3 at this time includes a data transfer mode supported by the connected IDE device 4. Therefore, the bus converter 3 sets P
This transfer mode is set in the IO mode setting section 16. Therefore, communication between the bus converter 3 and the IDE device 4 is as follows.
Thereafter, the transfer is performed in this transfer mode. That is, the bus converter 3 and the IDE device 4 perform communication in the upper limit transfer mode. In this embodiment, it is assumed that 0 indicating the asynchronous transfer is set in the transfer mode setting unit 27. When the transfer mode is set to asynchronous transfer, the offset value set in the SCSI offset unit 25 is 1.

【0017】ここで、パーソナルコンピュータ1からI
DE機器4へデータを転送する処理について説明する。
パーソナルコンピュータ1は、SCSIバス上にBSY
およびSELの2つの制御信号がともに出力されていな
いかどうかによって、SCSIバスがバスフリーフェー
ズであるかどうかを判断する。ここで、SCSIバスが
バスフリーフェーズでなければ処理を中止する。SCS
Iバスがバスフリーフェーズであると、アービトレーシ
ョンフェーズに進み、BSYをローレベルとするのと同
時にデータライン上に自分のIDを出力する。SCSI
の規格ではバスに接続されている各装置にデータ線を1
本ずつ割り当てている。具体的には、ID番号がn(n
は0〜7の数)の装置にデータ線Dnを割り当ててい
る。例えば、ID番号が7の装置にはデータ線D7を割
り当てている。自分のID番号の出力は、自分に割り当
てられているデータ線に信号を出力することによって行
う。このとき、BSYを出力した装置が複数台あると、
これらの複数の装置からID番号が出力され、これらの
装置がSCSIバスの使用権を競合する。この場合に
は、最も優先度の高い(ID番号が大きい)装置がSC
SIバスの使用権を得ることになる。その他の装置は、
出力している信号(BSY、ID番号)をおとして処理
を中止する。
Here, the personal computers 1 to I
A process of transferring data to the DE device 4 will be described.
The personal computer 1 has BSY on the SCSI bus.
It is determined whether or not the SCSI bus is in the bus free phase based on whether or not both control signals SEL and SEL are output. Here, if the SCSI bus is not in the bus free phase, the processing is stopped. SCS
If the I bus is in the bus free phase, the process proceeds to the arbitration phase, in which BSY is set to low level and at the same time, its own ID is output on the data line. SCSI
According to the standard, one data line is connected to each device connected to the bus.
Books are assigned one by one. Specifically, the ID number is n (n
Is a number from 0 to 7). For example, the data line D7 is assigned to the device having the ID number 7. The output of the own ID number is performed by outputting a signal to the data line assigned to the user. At this time, if there are multiple devices that output BSY,
The ID numbers are output from the plurality of devices, and these devices compete for the right to use the SCSI bus. In this case, the device with the highest priority (higher ID number) is the SC
The right to use the SI bus is obtained. Other devices are
The processing is stopped by skipping the output signal (BSY, ID number).

【0018】ここでは、パーソナルコンピュータ1にS
CSIバスの使用権が与えられたものとする。これで、
アービトレーションフェーズが終了し、セレクションフ
ェーズに進む。パーソナルコンピュータ1は、セレクシ
ョンフェーズに進むと、SEL信号を出力した後にBS
Y信号をおとす。そして、データの転送相手としてバス
変換装置3に割り当てられているデータ線に信号を出力
する。なお、バス変換装置3のID番号はID設定部1
3で設定されている。このとき、パーソナルコンピュー
タ1は自分に割り当てられているデータ線にも信号を出
力している。SCSIバスに接続されている装置は、S
EL信号が出力されていることから、現在がセレクショ
ンンフェーズであることを認識する。バス変換装置3
は、自分に割り当てられているデータ線に信号が出力さ
れたことで、データの転送相手として選ばれたと認識
し、SCSI制御信号入出力部29からSCSIバス上
にBSY信号を出力する。パーソナルコンピュータ1
は、BSY信号が出力されたことを知ると、SEL信号
をおとし、セレクションフェーズを終了し、コマンドフ
ェーズに進む。
Here, the personal computer 1
It is assumed that the right to use the CSI bus has been granted. with this,
The arbitration phase ends, and the process proceeds to the selection phase. When the personal computer 1 proceeds to the selection phase, the personal computer 1 outputs the SEL signal and then outputs the BS signal.
Turn off the Y signal. Then, a signal is output to a data line assigned to the bus converter 3 as a data transfer partner. Note that the ID number of the bus converter 3 is the ID setting unit 1
3 is set. At this time, the personal computer 1 also outputs a signal to the data line assigned to itself. The device connected to the SCSI bus is S
Since the EL signal is output, it is recognized that the present is the selection phase. Bus converter 3
Recognizes that it has been selected as a data transfer partner by outputting a signal to the data line assigned to itself, and outputs a BSY signal from the SCSI control signal input / output unit 29 onto the SCSI bus. Personal computer 1
Knows that the BSY signal has been output, turns off the SEL signal, ends the selection phase, and proceeds to the command phase.

【0019】図5は、コマンドフェーズにおけるバス変
換装置のコマンド受取処理を示すフローチャートであ
る。バス変換装置3は、SCSI制御信号入出力部29
でSCSIバス上におけるC/D信号を出力し(n
1)、その後SCSIバスにREQ信号を出力する(n
2)。パーソナルコンピュータ1は、バス変換装置3が
REQ信号を出力したことを検出すると、データ線に転
送するコマンドコードを載せるとともに、ACK信号を
出力する。バス変換装置3は、ACK信号が出力された
ことを知ると(n3)、データ線に載せられているコマ
ンドコードをSCSI入出力制御部28に取り込むとと
もにREQ信号をおとす(n4、n5)。パーソナルコ
ンピュータ1は、REQ信号がおとされたことを知る
と、データ線に載せたコマンドをおとすとともに、AC
K信号をおとす。これにより、パーソナルコンピュータ
1は、バス変換装置3に1バイトのコマンドコードを転
送したこととなる。ここで、SCSI規格では、コマン
ドは6〜12バイトのコマンドコードで構成されてい
る。したがって、上記した処理ではコマンドの一部しか
転送されていない。バス変換装置3は、ACK信号がお
とされると(n6)、コマンドの転送が完了しているか
どうかを判断し(n7)、コマンドの転送が完了してい
なければn3に戻る。なお、バス変換装置3では、最初
に転送されてきた1バイト目の情報から全体で何バイト
のコマンドであるかを判断できる。このように、コマン
ドの転送は1バイトずつ繰り返し行われる。
FIG. 5 is a flowchart showing a command receiving process of the bus converter in the command phase. The bus converter 3 includes a SCSI control signal input / output unit 29
Outputs a C / D signal on the SCSI bus (n
1) and then output a REQ signal to the SCSI bus (n
2). When detecting that the bus converter 3 has output the REQ signal, the personal computer 1 outputs a command code to be transferred to the data line and outputs an ACK signal. When the bus converter 3 knows that the ACK signal has been output (n3), it takes in the command code on the data line into the SCSI input / output control unit 28 and turns off the REQ signal (n4, n5). When the personal computer 1 learns that the REQ signal has been released, the personal computer 1 releases the command placed on the data line and outputs the AC signal.
Turn off the K signal. As a result, the personal computer 1 has transferred the one-byte command code to the bus converter 3. Here, in the SCSI standard, a command is composed of a command code of 6 to 12 bytes. Therefore, in the above-described processing, only a part of the command is transferred. When the ACK signal is depressed (n6), the bus converter 3 determines whether or not the command transfer has been completed (n7), and returns to n3 if the command transfer has not been completed. The bus converter 3 can determine the total number of bytes of the command from the information of the first byte transmitted first. As described above, the transfer of the command is repeatedly performed one byte at a time.

【0020】バス変換装置3は、コマンドの受取が完了
すると、この受け取ったコマンドをエミレーションして
IDE機器4に転送する。図6は、バス変換装置からI
DE機器へのコマンドの転送を示すフローチャートであ
る。バス変換装置3は、パーソナルコンピュータ1から
転送されてきたコマンドを、ATA−2バスの規格に適
合するコマンドにエミレーションする(n11)。そし
て、このエミレーションしたコマンドを1バイトずつI
DE機器4に転送する。上記したように、IDE機器4
は、外部の装置との通信を複数のI/Oレジスタを経由
して行う。アドレス発生部21は、転送するコマンドの
内容に応じてI/Oレジスタを指定するアドレスを設定
する(n12)。つぎにデータ線の下位8ビットに転送
するコマンドを載せ(n13)、I/O切替部18がパ
ルス生成部17で生成されたパルス信号をIOW信号と
してATA−2バスに出力させる(n14)。例えば、
データ線にエミレーションしたコマンドの一部として転
送するデータ数(セクタ数)を載せるとともに、アドレ
ス発生部21でIDE機器4に設けられているセクタカ
ウントレジスタを指定するアドレスを発生させ、IOW
信号をATA−2バスに出力する。また、データ線にエ
ミレーションしたコマンドの一部である転送するデータ
を記憶する先頭アドレスを載せる場合には、アドレス発
生部21でセクタナンバレジスタを指定するアドレスを
発生させ、IOW信号をATA−2バスに出力する。そ
して、バス変換装置3は、エミレーションしたコマンド
の転送が完了したかどうかを確認し(n15)、コマン
ドの転送が完了していなければn12に戻り上記処理を
繰り返す。n15でコマンドの転送が完了したことを確
認すると処理を終了する。なお、IOW信号は、PIO
モード設定部16に設定されているモードに基づく周波
数で周期的に発生させられる。したがって、実際には、
CPU11がIOW信号のパルス間隔に対応してデータ
線に転送するコマンドを載せるとともに、アドレス発生
部21に該当するI/Oレジスタを指定するアドレスを
発生させている。
When the reception of the command is completed, the bus converter 3 emulates the received command and transfers it to the IDE device 4. FIG. 6 shows that the bus converter
It is a flow chart which shows transfer of a command to DE equipment. The bus converter 3 emulates the command transferred from the personal computer 1 into a command conforming to the ATA-2 bus standard (n11). Then, this emulated command is transferred by 1 byte I
The data is transferred to the DE device 4. As described above, the IDE device 4
Performs communication with an external device via a plurality of I / O registers. The address generator 21 sets an address for specifying the I / O register according to the content of the command to be transferred (n12). Next, a command to transfer to the lower 8 bits of the data line is placed (n13), and the I / O switching unit 18 outputs the pulse signal generated by the pulse generation unit 17 to the ATA-2 bus as an IOW signal (n14). For example,
The number of data (the number of sectors) to be transferred as a part of the emulated command is placed on the data line, and an address for designating a sector count register provided in the IDE device 4 is generated by the address generation unit 21, and the IOW is generated.
Output the signal to the ATA-2 bus. When a head address for storing data to be transferred, which is a part of the emulated command, is placed on the data line, an address for designating a sector number register is generated by the address generation unit 21 and the IOW signal is transmitted to the ATA-2. Output to the bus. Then, the bus converter 3 confirms whether or not the transfer of the emulated command has been completed (n15), and if the transfer of the command has not been completed, returns to n12 and repeats the above processing. When it is confirmed at step n15 that the transfer of the command has been completed, the process ends. Note that the IOW signal is
It is generated periodically at a frequency based on the mode set in the mode setting section 16. So, in practice,
The CPU 11 places a command to be transferred to the data line in accordance with the pulse interval of the IOW signal, and generates an address for designating a corresponding I / O register in the address generator 21.

【0021】なお、IDE機器4は、IOW信号が入力
されたときに、データ線に載せられている情報をアドレ
ス設定部21で指定されたI/Oレジスタに書き込む。
そして、このI/Oレジスタに書き込んだ情報を取り込
んで処理することになる。このように、バス変換装置3
は、パーソナルコンピュータ1から送られてきたコマン
ドを、エミレーションしてIDE機器4に転送する。
When the IOW signal is input, the IDE device 4 writes the information on the data line into the I / O register specified by the address setting unit 21.
Then, the information written in the I / O register is fetched and processed. Thus, the bus converter 3
Emulates the command sent from the personal computer 1 and transfers it to the IDE device 4.

【0022】バス変換装置3は、上記の処理を完了する
と、C/Dをハイレベルにもどす。これによりSCSI
バスは、コマンドフェーズを完了し、データアウトフェ
ーズに進む。データアウトフェーズに進むと、バス変換
装置3は、データを転送するための設定を行う。転送方
向設定部19にパーソナルコンピュータ1からIDE機
器4への転送を示す0を設定する。また、転送データ数
カウンタ23に転送するデータ数をセットする。Wアド
レス部35およびRアドレス部36を初期値0にセット
する。Wクロック切替回路38はパーソナルコンピュー
タ1から転送されてくるACK信号を出力信号とする切
替を行う。Rクロック切替回路39はパルス生成回路1
7で生成されたパルス信号を出力とする切替を行う。ア
ドレス発生部21のアドレスをデータレジスタのアドレ
スに設定する。オフセットカウンタ40のカウント値を
リセット(0)する。入力データ切替部32はSCSI
コネクタ15から入力されるデータを出力して、FIF
O34に入力する切替を行う。出力データ切替部33は
FIFO34から読みだしたデータをATA−2コネク
タ14のデータ線に出力する切替を行う。
When the above processing is completed, the bus converter 3 returns the C / D to the high level. This allows SCSI
The bus completes the command phase and proceeds to the data out phase. When proceeding to the data out phase, the bus converter 3 performs settings for transferring data. In the transfer direction setting unit 19, 0 indicating transfer from the personal computer 1 to the IDE device 4 is set. Further, the number of data to be transferred is set in the transfer data number counter 23. The W address section 35 and the R address section 36 are set to the initial value 0. The W clock switching circuit 38 performs switching using the ACK signal transferred from the personal computer 1 as an output signal. The R clock switching circuit 39 is a pulse generation circuit 1
Switching is performed so that the pulse signal generated in step 7 is output. The address of the address generator 21 is set to the address of the data register. The count value of the offset counter 40 is reset (0). The input data switching unit 32 is SCSI
Outputs the data input from the connector 15 and outputs
Switching to input to O34 is performed. The output data switching unit 33 performs switching to output the data read from the FIFO 34 to the data line of the ATA-2 connector 14.

【0023】バス変換装置3は、以上の設定が完了する
と、パーソナルコンピュータ1からのデータの取り込み
処理と、IDE機器4に対するデータの出力処理を同期
させることなく独立して行う。図7は、このデータの転
送処理を示すタイムチャートである。なお、図は8バイ
トのデータの転送を示している。また、FIFO34の
容量は4バイトである。上記したように、SCSIバス
では一度に転送できるデータは1バイトであるが、AT
A−2バスでは一度に転送できるデータは2バイトであ
る。フラグ回路37は、IDE機器4に転送されていな
いデータでFIFO34が一杯であるときにSCSI停
止信号を出力し、FIFO34にIDE機器4に転送し
ていないデータが1バイト以下であるときにIDE停止
信号を出力する。
When the above setting is completed, the bus conversion device 3 independently performs a process of fetching data from the personal computer 1 and a process of outputting data to the IDE device 4 without synchronizing. FIG. 7 is a time chart showing the data transfer processing. The figure shows the transfer of 8-byte data. The capacity of the FIFO 34 is 4 bytes. As described above, the data that can be transferred at a time on the SCSI bus is one byte,
In the A-2 bus, data that can be transferred at one time is 2 bytes. The flag circuit 37 outputs a SCSI stop signal when the FIFO 34 is full of data not transferred to the IDE device 4, and stops the IDE when the data not transferred to the IDE device 4 is 1 byte or less. Output a signal.

【0024】データの直接転送が開始される前は、バス
変換装置3にパーソナルコンピュータ1から送られてき
ているデータはない。したがって、フラグ回路37はI
DE停止信号を出力している。IDE停止信号は、ID
E停止回路20に入力されている。IDE停止回路20
は、パルス生成回路17の動作を停止させており、IO
W信号がATA−2コネクタ14から出力されない。ま
た、フラグ回路37からは、SCSI停止信号が出力さ
れていない。バス変換装置3は、終了検出回路42が転
送終了信号をローにし、データの転送処理を開始する。
REQ発生回路31から出力されるREQ信号は、SC
SIコネクタ15から出力されてパーソナルコンピュー
タ1で受信される。
Before the start of the direct data transfer, no data has been sent from the personal computer 1 to the bus converter 3. Therefore, the flag circuit 37
A DE stop signal is output. The IDE stop signal is ID
It is input to the E stop circuit 20. IDE stop circuit 20
Stops the operation of the pulse generation circuit 17, and IO
The W signal is not output from the ATA-2 connector 14. Further, no SCSI stop signal is output from the flag circuit 37. In the bus converter 3, the end detection circuit 42 sets the transfer end signal to low, and starts the data transfer processing.
The REQ signal output from the REQ generation circuit 31 is SC
The data is output from the SI connector 15 and received by the personal computer 1.

【0025】REQ信号を受信したパーソナルコンピュ
ータ1は、データ線に1バイトのデータを載せるととも
に、ACK信号を制御線に載せてバス変換装置3に送信
する。バス変換装置3では、この受信したACK信号が
Wクロック切替回路38を経由してWアドレス部35に
入力される。Wアドレス部35は、設定されているアド
レスを1インクリメントするとともに、FIFO34に
書き込み信号を与える。FIFO34は、書き込み信号
が入力されると、Wアドレス部35で指定されているア
ドレス(インクリメントされたアドレス)に入力データ
切替部32を経由して入力されているパーソナルコンピ
ュータ1から転送されてきたデータを書き込む。また、
パーソナルコンピュータ1から転送されてきたACK信
号は、REQ発生回路31に入力されており、REQ発
生回路31はACK信号の入力によってREQ信号をお
とす。一方、パーソナルコンピュータ1は、バス変換装
置3でREQ信号がおとされると、ACK信号をおと
す。これにより、パーソナルコンピュータ1からバス変
換装置3へ1バイトのデータの転送が完了したことにな
る。さらに、転送データ数カウンタ23では、パーソナ
ルコンピュータ1から入力されるACK信号でカウント
値を1ディクリメントする。REQ発生部31は、転送
データ数カウンタ23のカウント値が0であるかどうか
を確認し、0でなければパーソナルコンピュータ1から
転送されてきていないデータが残っていると判断する。
そして、上記したようにREQ発生部31で再びREQ
信号を発生させ、パーソナルコンピュータ1から1バイ
トのデータを取り込む。この処理を繰り返して、転送デ
ータ数カウンタ23のカウント値が0となると、パーソ
ナルコンピュータ1からデータを全て取り込んだと判断
し、SCSI停止回路30に停止信号を入力する。これ
により、REQ発生部31が動作を停止する。なお、転
送データ数カウンタ23のカウント値が0でない場合で
あっても、Rアドレス部36のアドレスとWアドレス部
35のアドレスが一致すると、フラグ回路37からSC
SI停止回路30に停止信号が入力され、REQ発生部
31が動作を停止する。これは、FIFO34に書き込
まれただけで、IDE機器4に転送されていないデータ
の上に新たなデータを書き込むことを防止するためであ
る。なお、Rアドレス部36およびWアドレス部35に
初期値を設定したとき(データの転送を開始するとき)
に、Rアドレス部36のアドレスとWアドレス部35の
アドレスが一致するが、このときにはSCSI停止信号
を出力しない構成としている。
The personal computer 1 that has received the REQ signal puts 1-byte data on the data line and sends an ACK signal to the bus converter 3 on the control line. In the bus converter 3, the received ACK signal is input to the W address unit 35 via the W clock switching circuit 38. The W address unit 35 increments the set address by one and supplies a write signal to the FIFO 34. When the write signal is input, the FIFO 34 transfers the data transferred from the personal computer 1 input via the input data switching unit 32 to the address (incremented address) specified by the W address unit 35. Write. Also,
The ACK signal transferred from the personal computer 1 is input to the REQ generating circuit 31, and the REQ generating circuit 31 turns off the REQ signal by inputting the ACK signal. On the other hand, when the REQ signal is turned off by the bus converter 3, the personal computer 1 turns off the ACK signal. Thus, the transfer of 1-byte data from the personal computer 1 to the bus converter 3 is completed. Further, the transfer data number counter 23 decrements the count value by one with an ACK signal input from the personal computer 1. The REQ generating unit 31 checks whether or not the count value of the transfer data number counter 23 is 0, and if not, determines that data not transferred from the personal computer 1 remains.
Then, as described above, the REQ generating unit 31 again sets REQ.
A signal is generated, and 1-byte data is taken in from the personal computer 1. This process is repeated, and when the count value of the transfer data number counter 23 becomes 0, it is determined that all the data has been fetched from the personal computer 1, and a stop signal is input to the SCSI stop circuit 30. As a result, the REQ generator 31 stops operating. Even if the count value of the transfer data number counter 23 is not 0, if the address of the R address section 36 matches the address of the W address section 35, the flag circuit 37 outputs
A stop signal is input to the SI stop circuit 30, and the REQ generator 31 stops operating. This is to prevent new data from being written on data that has only been written to the FIFO 34 and has not been transferred to the IDE device 4. When initial values are set in the R address section 36 and the W address section 35 (when data transfer is started)
At this time, the address of the R address section 36 and the address of the W address section 35 match, but at this time, no SCSI stop signal is output.

【0026】上記した処理で、パーソナルコンピュータ
1から転送されてきたデータがFIFO34に書き込ま
れ、Wアドレス部35のアドレスがRアドレス部36の
アドレスよりも2以上大きくなると、フラグ回路37が
IDE停止信号の出力を停止する。これにより、パルス
生成回路17が動作を開始し、PIOモード設定部16
で設定されているモードに応じたパルス信号を出力す
る。このパルス信号はRクロック切替部39を経由して
Rアドレス部36に入力されている。Rアドレス部36
は、設定されているアドレスを1インクリメントし、こ
のアドレスのデータを下位8ビットのデータ線に載せ
る。さらに、Rアドレス部36はアドレスを1インクリ
メントし、このアドレスのデータを上位8ビットに載せ
る。出力データ切替回路33は、この16ビットのデー
タをATA−2コネクタ14からIDEバスのデータ線
に出力する。また、パルス生成部17で生成されたパル
ス信号がI/O切替部を経由し、IOW信号としてAT
A−2バスに出力される。IDE機器4は、IOW信号
をトリガとしてアドレス設定部21で設定されているア
ドレスのデータレジスタにデータ線に載せられている1
6ビットのデータを書き込む。このデータレジスタに書
き込んだデータは、最終的にIDE機器4が内部に取り
込んで処理する。上記した処理によって、パーソナルコ
ンピュータ1から送られてきてFIFO34に書き込ん
だデータが2バイトずつIDE機器4に転送されること
になる。このように、バス変換装置3はパーソナルコン
ピュータ1から送られてきたデータをFIFO34に記
憶していると、これを順次IDE機器4に転送するよう
にしている。すなわち、パーソナルコンピュータ1から
送られてきたデータをFIFO34に記憶させる処理
と、FIFO34に記憶しているデータをIDE機器4
に転送するという処理とを同期させることなく独立して
行わせている。本明細書では、これらの2つの処理を同
期させることなく独立して行うことを直接転送と読んで
いる。
In the above-described processing, the data transferred from the personal computer 1 is written into the FIFO 34, and when the address of the W address section 35 becomes larger than the address of the R address section 36 by two or more, the flag circuit 37 outputs the IDE stop signal. Stop output of As a result, the pulse generation circuit 17 starts operating, and the PIO mode setting section 16
Outputs a pulse signal according to the mode set in. This pulse signal is input to the R address unit 36 via the R clock switching unit 39. R address section 36
Increments the set address by one, and places the data of this address on the lower eight-bit data line. Further, the R address section 36 increments the address by one and places the data of this address in the upper 8 bits. The output data switching circuit 33 outputs the 16-bit data from the ATA-2 connector 14 to a data line of the IDE bus. Also, the pulse signal generated by the pulse generation unit 17 passes through the I / O switching unit, and is converted into an AT signal as an AT signal.
Output to A-2 bus. The IDE device 4 uses the IOW signal as a trigger to set the data register of the address set by the address setting unit 21 on the data line.
Write 6-bit data. The data written in the data register is finally taken into the IDE device 4 for processing. By the above-described processing, the data sent from the personal computer 1 and written in the FIFO 34 is transferred to the IDE device 4 two bytes at a time. As described above, when the data transmitted from the personal computer 1 is stored in the FIFO 34, the bus converter 3 sequentially transfers the data to the IDE device 4. That is, a process of storing data sent from the personal computer 1 in the FIFO 34 and a process of storing the data stored in the FIFO 34 in the IDE device 4.
Is performed independently without synchronization. In the present specification, performing these two processes independently without synchronizing is referred to as direct transfer.

【0027】パーソナルコンピュータ1から転送されて
きたデータが全てIDE機器4へ転送されるとデータの
転送が終了する。データ転送の終了は、終了検出部42
で判定される。終了検出部42は、転送データ数カウン
タ23が0で、Rアドレス部36のアドレスとWアドレ
ス部35のアドレスが一致し、且つオフセットカウンタ
40のカウント値が0であるときにデータの転送が終了
したと判定し、データ転送終了信号をハイにする。
When all the data transferred from the personal computer 1 has been transferred to the IDE device 4, the data transfer ends. The end of the data transfer is determined by the end detection unit 42.
Is determined. The end detecting unit 42 ends the data transfer when the transfer data number counter 23 is 0, the address of the R address unit 36 matches the address of the W address unit 35, and the count value of the offset counter 40 is 0. It is determined that the data transfer has been completed, and the data transfer end signal is set high.

【0028】データアウトフェーズを終了すると、パー
ソナルコンピュータ1はステータスフェーズやメッセー
ジフェーズに進み、データの転送中にエラーが発生しな
かったかどうかや、エラーが発生していた場合にはどの
ようなエラーが発生したのかを確認する。そして、バス
フリーフェーズに戻る。
Upon completion of the data out phase, the personal computer 1 proceeds to the status phase or the message phase, and determines whether or not an error has occurred during data transfer, and what kind of error has occurred if an error has occurred. Check whether it has occurred. Then, the process returns to the bus free phase.

【0029】上記した実施形態では、SCSIバス上に
おけるデータの転送を非同期転送としたが、この実施形
態では同期転送として説明する。バスフリーフェーズか
らコマンドフェーズの完了までは上記した実施形態と同
じであるので、ここでは説明を省略する。但し、メッセ
ージフェーズにおいて、パーソナルコンピュータ1とバ
ス変換装置3との間でメッセージの交換が行われてい
る。このメッセージの交換は、SCSIで言うSDTR
(Synchrouous Data Transfe
r Request)と呼ばれるもので、データの転送
を同期モードで行うことを事前にきめておく処理であ
る。この処理では、オフセット値、および、転送周期が
セットされる。同期転送とは、簡単に言うとターゲット
がイニシエータからのACKを待つことなく複数のRE
Qを先だしできる転送方式である。また、イニシエータ
は、ターゲットから送られてきたREQと同数のACK
を出力する。但し、先だしすることのできるREQの数
は設定されているオフセット以下であり、また、連続し
てREQを出力するときには設定された転送周期で出力
しなければならない。この転送方法では、ターゲットが
イニシエータからのACKを待つことなくREQが出力
できるので、信号の伝達による遅延時間を短縮すること
ができる。したがって、データの転送にかかる時間が短
縮できるという利点がある。例えば、上記した非同期転
送では、1バイトの転送に要する時間は、バス変換装置
3からのREQがパーソナルコンピュータ1に到達する
までの時間T1と、パーソナルコンピュータ1からのA
CKがバス変換装置3に到達するまでの時間T2と、バ
ス変換装置3がREQを落としたことがパーソナルコン
ピュータ1に伝わるまでの時間T3と、パーソナルコン
ピュータ1がACKをおとしたことがバス変換装置3に
伝わるまでの時間T4が必要である。しかし、同期転送
であれば、1バイトの転送には、バス変換装置3からの
REQがパーソナルコンピュータ1に到達するまでの時
間T1と、パーソナルコンピュータ1からのACKがバ
ス変換装置3に到達するまでの時間T2だけしかかから
ない。すなわち、データ1バイトの転送に制御信号がバ
スを2往復していたものが、1往復になる。
In the above-described embodiment, the data transfer on the SCSI bus is asynchronous transfer. However, in this embodiment, the transfer will be described as synchronous transfer. The process from the bus free phase to the completion of the command phase is the same as that of the above-described embodiment, and the description is omitted here. However, in the message phase, messages are exchanged between the personal computer 1 and the bus converter 3. This message exchange is based on the SDTR
(Synchronous Data Transfer
r Request), which is a process in which data transfer in the synchronous mode is determined in advance. In this process, an offset value and a transfer cycle are set. Synchronous transfer simply means that a target transmits multiple REs without waiting for an ACK from the initiator.
This is a transfer method that can advance Q. In addition, the initiator has the same number of ACKs as the REQ sent from the target.
Is output. However, the number of REQs that can be read is less than or equal to the set offset, and when REQs are output continuously, they must be output at the set transfer cycle. In this transfer method, since the target can output the REQ without waiting for the ACK from the initiator, the delay time due to signal transmission can be reduced. Therefore, there is an advantage that the time required for data transfer can be reduced. For example, in the above-described asynchronous transfer, the time required for 1-byte transfer is the time T1 until the REQ from the bus converter 3 reaches the personal computer 1, and the time A from the personal computer 1
Time T2 until CK arrives at the bus converter 3, time T3 until the bus converter 3 drops the REQ to the personal computer 1, and bus conversion when the personal computer 1 drops ACK. A time T4 for transmitting to the device 3 is required. However, in the case of the synchronous transfer, the transfer of one byte includes the time T1 until the REQ from the bus converter 3 reaches the personal computer 1 and the time T1 until the ACK from the personal computer 1 reaches the bus converter 3. It only takes time T2. In other words, the transfer of one byte of data from the control signal to and from the bus made two round trips becomes one round trip.

【0030】図8は、同期転送時のデータアウトフェー
ズ時のタイムチャートである。この例ではオフセットを
2としている。また、上記実施形態と同様に、図では転
送データ数8バイト、FIFOの容量を4バイトとして
いる。データの直接転送が開始される前は、非同期転送
の場合と同様に、フラグ回路37はIDE停止信号を出
力し、パルス生成回路17を停止させ、ATA−2コネ
クタ14からIOW信号が出力されないようにしてい
る。また、終了検出回路42が転送終了信号をローにす
ると、REQ発生回路31がREQ信号を出力する。こ
こで出力するREQ信号は転送周期設定部26に設定さ
れている周期のパルス信号である。オフセットカウンタ
40は、REQ発生回路31から出力されるパルスが入
力されたときにカウント値を1インクリメントし、パー
ソナルコンピュータ1からSCSIバスを介してACK
信号が入力されたときにカウント値を1ディクリメント
する。比較回路41は、オフセットカウンタ40のカウ
ント値とオフセット設定部25に設定されているオフセ
ット値を比較し、一致していればSCSI停止回路30
にSCSI停止信号を入力する。SCSI停止信号が入
力されたSCSI停止回路30は、REQ発生回路31
の動作を停止させる。このようにしているのは、設定さ
れているオフセット値よりも多くのREQ信号が先だし
されることを防止するためである。
FIG. 8 is a time chart in the data out phase at the time of synchronous transfer. In this example, the offset is 2. As in the above embodiment, the number of transfer data is 8 bytes and the capacity of the FIFO is 4 bytes in the figure. Before the direct transfer of data is started, the flag circuit 37 outputs the IDE stop signal, stops the pulse generation circuit 17 and stops the ATA-2 connector 14 from outputting the IOW signal as in the case of the asynchronous transfer. I have to. When the end detecting circuit 42 sets the transfer end signal to low, the REQ generating circuit 31 outputs a REQ signal. The REQ signal output here is a pulse signal of the cycle set in the transfer cycle setting unit 26. The offset counter 40 increments the count value by one when a pulse output from the REQ generation circuit 31 is input, and sends an ACK from the personal computer 1 via the SCSI bus.
When a signal is input, the count value is decremented by one. The comparison circuit 41 compares the count value of the offset counter 40 with the offset value set in the offset setting unit 25, and if they match, the SCSI stop circuit 30
Input a SCSI stop signal. The SCSI halt circuit 30 to which the SCSI halt signal is input becomes the REQ generation circuit 31
Stop the operation of. This is to prevent more REQ signals from being set ahead of the set offset value.

【0031】バス変換装置3は、パーソナルコンピュー
タ1からACKを受けると、上記した非同期の転送と同
じく、データ線に載せれている1バイトのデータをFI
FO34に書き込む。なお、REQ発生回路31は、こ
のACK信号を待ってREQ信号をおとすのではなく、
転送周期設定部26に設定されている転送周期で発生さ
せられている。また、先だししたREQ信号の数が設定
されているオフセットと同じになるとSCSI停止回路
30にSCSI停止信号が入力され、REQ発生回路3
1が動作を停止させられる。
Upon receiving the ACK from the personal computer 1, the bus converter 3 converts the 1-byte data on the data line into the FI, as in the asynchronous transfer described above.
Write to FO34. Note that the REQ generation circuit 31 does not wait for this ACK signal and turns off the REQ signal.
It is generated at the transfer cycle set in the transfer cycle setting unit 26. When the number of REQ signals is equal to the set offset, a SCSI stop signal is input to the SCSI stop circuit 30, and the REQ generation circuit 3
1 is deactivated.

【0032】また、FIFO34に書き込まれたデータ
をATA−2バスを介してIDE機器4に転送する処理
および、データの転送の終了を検出する処理は、上記し
た非同期の転送時と同じ処理である。データの転送が完
了すると、終了検出回路42が転送終了信号をハイにす
る。
The process of transferring the data written in the FIFO 34 to the IDE device 4 via the ATA-2 bus and the process of detecting the end of the data transfer are the same processes as the above-described asynchronous transfer. . When the data transfer is completed, the end detection circuit 42 sets the transfer end signal to high.

【0033】つぎに、データの転送方向がIDE機器4
からパーソナルコンピュータ1への転送である場合につ
いて説明する。この場合もバスフリーフェーズからコマ
ンドフェーズまでの処理は、上記した2つの実施形態と
同じであるので説明を省略する。但し、パーソナルコン
ピュータ1とバス変換装置3との間で通信されるコマン
ドの内容は異なる。転送方式を非同期として以下この実
施形態の説明を行う。データアウトフェーズに進むと、
バス変換装置3は、データを転送するための設定を行
う。転送方向設定部19にIDE機器4からパーソナル
コンピュータ1への転送を示す1を設定する。また、転
送データ数カウンタ23に転送するデータ数をセットす
る。Wアドレス部35およびRアドレス部36を初期値
0にセットする。Wクロック切替回路38の出力として
REQ発生部31から出力されるREQ信号とする切替
を行う。Wクロック切替回路38の出力としてパルス生
成回路17で生成されたパルス信号とする切替を行う。
アドレス発生部21のアドレスをデータレジスタを指定
するアドレスにセットする。オフセットカウンタ40の
カウント値をリセットする。入力データ切替部32はA
TA−2コネクタ14から入力されるデータをFIFO
34に入力する切替を行う。出力データ切替部33はF
IFO34から読みだしたデータをSCSIコネクタ1
5のデータ線に出力する切替を行う。
Next, if the data transfer direction is the IDE device 4
A case where the transfer is from the personal computer 1 to the personal computer 1 will be described. Also in this case, the processing from the bus free phase to the command phase is the same as that of the above-described two embodiments, and thus the description is omitted. However, the contents of the commands communicated between the personal computer 1 and the bus converter 3 are different. This embodiment will be described below with the transfer method being asynchronous. Proceeding to the data out phase,
The bus converter 3 makes settings for transferring data. The transfer direction setting unit 19 sets 1 indicating transfer from the IDE device 4 to the personal computer 1. Further, the number of data to be transferred is set in the transfer data number counter 23. The W address section 35 and the R address section 36 are set to the initial value 0. The REQ signal output from the REQ generator 31 is switched as the output of the W clock switching circuit 38. The output of the W clock switching circuit 38 is switched to a pulse signal generated by the pulse generation circuit 17.
The address of the address generator 21 is set to an address that specifies a data register. The count value of the offset counter 40 is reset. The input data switching unit 32 is A
Data input from TA-2 connector 14 is FIFO
Switching to input to 34 is performed. The output data switching unit 33 is F
The data read from the IFO 34 is transferred to the SCSI connector 1
Switching to output to the data line No. 5 is performed.

【0034】バス変換装置3は、以上の設定を完了する
と、パーソナルコンピュータ1へのデータの転送処理
と、IDE機器4からのデータの取り込み処理とを同期
させることなく独立して行う。図9は、このデータの転
送処理を示すタイムチャートである。なお、図は上記し
た実施形態と同様に、転送するデータ数が8バイト、F
IFO34の容量が4バイトである。上記したように、
SCSIバスでは一度に転送できるデータは1バイトで
あるが、ATA−2バスでは一度に転送できるデータは
2バイトである。このため、フラグ回路37は、FIF
O34の空き容量が1バイト以下であるときIDE停止
信号を出力し、パーソナルコンピュータ1に転送してい
ないデータがFIFO34に無いときSCSI停止信号
を出力する。
When the above setting is completed, the bus converter 3 performs the data transfer process to the personal computer 1 and the data fetch process from the IDE device 4 independently without synchronizing. FIG. 9 is a time chart showing the data transfer processing. It should be noted that the figure shows a case where the number of data to be transferred is 8 bytes and F
The capacity of the IFO 34 is 4 bytes. As mentioned above,
On the SCSI bus, data that can be transferred at one time is one byte, while on the ATA-2 bus, data that can be transferred at one time is two bytes. For this reason, the flag circuit 37
When the free space of O34 is 1 byte or less, an IDE stop signal is output, and when there is no data not transferred to the personal computer 1 in the FIFO 34, a SCSI stop signal is output.

【0035】データの直接転送が開始される前は、バス
変換装置3にパーソナルコンピュータ1から転送されて
きたデータはない。したがって、フラグ回路37はSC
SI停止信号を出力している。このSCSI停止信号
は、SCSI停止回路30に入力されている。SCSI
停止回路30は、REQ発生部31を停止させ、SCS
Iコネクタ15からREQ信号が出力されないようにし
ている。終了検出回路42が、転送終了信号をローに
し、以下の処理が開始される。パルス生成回路17で発
生したパルス信号がI/O切替部18を経由してIOR
信号としてATA−2バスに出力される。
Before the direct transfer of data is started, no data has been transferred from the personal computer 1 to the bus converter 3. Therefore, the flag circuit 37
Outputs SI stop signal. This SCSI stop signal is input to the SCSI stop circuit 30. SCSI
The stop circuit 30 stops the REQ generator 31 and sets the SCS
The REQ signal is not output from the I connector 15. The end detection circuit 42 sets the transfer end signal to low, and the following processing is started. The pulse signal generated by the pulse generation circuit 17 is transmitted to the IOR
It is output to the ATA-2 bus as a signal.

【0036】IDE機器4は、IOR信号を受信する
と、データレジスタに記憶している2バイトのデータを
ATA−2バスのデータ線に出力する。バス変換装置3
では、IDE機器4から送られてきた2バイトのデータ
をFIFO34に書き込む。このとき、IOR信号はW
クロック切替回路38を経由してWアドレス部35に入
力されている。Wアドレス部35は、アドレスを1イン
クリメントするとともに、送られてきた2バイトのデー
タの下位8ビットをFIFO34のインクリメントした
アドレスに書き込む。そして、Wアドレス部35は、ア
ドレスをさらに1インクリメントするとともに、この転
送されてきたデータの上位8ビットをFIFO34のこ
のアドレスに書き込む。
Upon receiving the IOR signal, the IDE device 4 outputs the 2-byte data stored in the data register to the data line of the ATA-2 bus. Bus converter 3
Then, the 2-byte data sent from the IDE device 4 is written into the FIFO 34. At this time, the IOR signal is W
It is input to the W address unit 35 via the clock switching circuit 38. The W address unit 35 increments the address by 1 and writes the lower 8 bits of the transmitted 2-byte data to the incremented address of the FIFO 34. Then, the W address unit 35 further increments the address by one and writes the upper 8 bits of the transferred data to this address of the FIFO 34.

【0037】また、このIOR信号で転送データ数カウ
ンタ23をディクリメントし、カウント値が0でなけれ
ば、再びIOR信号を出力してIDE機器4から2バイ
トのデータを取り込む。ここで、上記した実施形態と異
なり、2バイトのデータが転送されてくるため、転送デ
ータ数カウンタ23ではカウント値を2ディクリメント
する。なお、IDE機器4は、IOR信号が入力される
前にデータレジスタに先頭アドレスのデータをデータレ
ジスタに書き込んでおり、IOR信号が入力されるとデ
ータレジスタのデータを出力した後、データレジスタの
データを次のアドレスのデータに更新する。したがっ
て、IOR信号が入力される毎に、2バイトずつデータ
を転送することができる。
Further, the transfer data number counter 23 is decremented by the IOR signal, and if the count value is not 0, the IOR signal is output again to take in 2-byte data from the IDE device 4. Here, unlike the above embodiment, since 2-byte data is transferred, the transfer data number counter 23 decrements the count value by two. The IDE device 4 writes the data of the first address in the data register before the IOR signal is input, and outputs the data in the data register when the IOR signal is input, and then outputs the data in the data register. Is updated to the data at the next address. Therefore, every time the IOR signal is input, data can be transferred by two bytes.

【0038】バス変換装置3では、比較回路41からの
SCSI停止信号がなくなると、REQ発生部31が動
作を開始する。REQ発生部31はREQ信号を出力す
ると、このREQ信号がRクロック切替回路39を経由
してRアドレス部36に入力される。Rアドレス部36
は、アドレスを1インクリメントし、このアドレスに記
憶されている1バイトのデータをSCSIバスのデータ
に載せ出力する。パーソナルコンピュータ1は、バス変
換装置3からREQ信号を受信すると、このときデータ
線に載せられている1バイトのデータを取り込む。そし
て、パーソナルコンピュータ1はSCSIバス上にAC
K信号を出力する。バス変換装置3ではACK信号を受
信すると、REQ信号をおとすとともに、データ線に載
せていた信号もおとす。そして、パーソナルコンピュー
タ1に転送していないデータがFIFO34に記憶され
ていれば、上記したようにREQ信号ととともに、1バ
イトのデータをパーソナルコンピュータ1に転送する。
なお、パーソナルコンピュータ1に転送していないデー
タがFIFO34に記憶されているかどうかは、上記し
たように、Wアドレス部35とRアドレス部36に設定
されているアドレスを比較することによって判断され
る。終了検出回路42は、データ転送が終了したと判断
すると、転送終了信号をハイにする。
In the bus converter 3, when the SCSI stop signal from the comparison circuit 41 disappears, the REQ generator 31 starts operating. When the REQ generating unit 31 outputs the REQ signal, the REQ signal is input to the R address unit 36 via the R clock switching circuit 39. R address section 36
Increments the address by 1, and puts the 1-byte data stored at this address on the data of the SCSI bus and outputs it. When the personal computer 1 receives the REQ signal from the bus converter 3, the personal computer 1 fetches one byte of data placed on the data line at this time. The personal computer 1 has an AC bus on the SCSI bus.
Outputs K signal. Upon receiving the ACK signal, the bus converter 3 releases the REQ signal and also releases the signal carried on the data line. If data that has not been transferred to the personal computer 1 is stored in the FIFO 34, 1-byte data is transferred to the personal computer 1 together with the REQ signal as described above.
Whether data not transferred to the personal computer 1 is stored in the FIFO 34 is determined by comparing the addresses set in the W address portion 35 and the R address portion 36 as described above. When the end detection circuit 42 determines that the data transfer is completed, it sets the transfer end signal to high.

【0039】このように、IDE機器4から、2バイト
ずつバス変換装置3にデータが転送され、1バイトずつ
このデータがパーソナルコンピュータ1に転送される。
また、IDE機器4から、バス変換装置3にデータを転
送する処理と、バス変換装置3からパーソナルコンピュ
ータ1にデータを転送する処理とを同期させることなく
互いに独立して行う直接転送方式を採用しているので、
データの転送速度を向上させることができる。
As described above, data is transferred from the IDE device 4 to the bus converter 3 in units of 2 bytes, and this data is transferred to the personal computer 1 in units of 1 byte.
In addition, a direct transfer method is employed in which the process of transferring data from the IDE device 4 to the bus converter 3 and the process of transferring data from the bus converter 3 to the personal computer 1 are performed independently of each other without synchronization. So
The data transfer speed can be improved.

【0040】次に、同期転送モードにおけるデータイン
フェーズの処理について説明する。バスフリーフェーズ
からコマンドフェーズが完了するまでの処理は、上記し
た実施形態と同じである。また、この処理におけるタイ
ムチャートを図10に示す。この例もオフセット値を2
としている。また、転送するデータ数は8バイトで、F
IFO34の容量は4バイトである。データの直接転送
が開始される前は、非同期転送の場合と同様に、フラグ
回路37はSCSI停止信号を出力し、REQ発生回路
31を停止させ、SCSIコネクタ15からREQ信号
が出力されないようにしている。また、IDE機器4か
ら転送データを取り込む処理も同じである。異なる点
は、FIFO34に記憶されたデータをSCSIバスに
出力する点である。上述したように、同期転送では、タ
ーゲットはイニシエータからのACKを待つことなくR
EQ信号を先だしすることができる。このとき、データ
インフェーズでは、バス変換装置3がREQ信号を出力
するとともに、データ線に転送するデータを載せて出力
する。パーソナルコンピュータ1では、REQ信号を受
けると、データ線に載せられている1バイトのデータを
取り込み、ACKを返すだけである。これは、REQ発
生部31で発生させたREQ信号と同数のACK信号が
パーソナルコンピュータ1から返ってきたかどうかを確
認するためである。なお、同期転送において、REQ信
号と同数のACK信号が返ってこない場合は、データの
転送時に何らかのエラーが発生したと考えられる。
Next, the processing of the data in phase in the synchronous transfer mode will be described. Processing from the bus free phase to the completion of the command phase is the same as in the above-described embodiment. FIG. 10 shows a time chart in this processing. In this example, the offset value is 2
And The number of data to be transferred is 8 bytes and F
The capacity of the IFO 34 is 4 bytes. Before the direct transfer of data is started, the flag circuit 37 outputs the SCSI stop signal, stops the REQ generating circuit 31 and stops the REQ signal from being output from the SCSI connector 15 as in the case of the asynchronous transfer. I have. Further, the process of capturing the transfer data from the IDE device 4 is the same. The difference is that the data stored in the FIFO 34 is output to the SCSI bus. As described above, in the synchronous transfer, the target does not wait for an ACK from the initiator,
The EQ signal can be preempted. At this time, in the data-in phase, the bus converter 3 outputs the REQ signal, and also outputs the data to be transferred onto the data line. When the personal computer 1 receives the REQ signal, it only takes in one byte of data placed on the data line and returns an ACK. This is for confirming whether or not the same number of ACK signals as the REQ signals generated by the REQ generator 31 have been returned from the personal computer 1. In the case where the same number of ACK signals as the REQ signal are not returned in the synchronous transfer, it is considered that some error has occurred during data transfer.

【0041】上記した実施形態では、ATA−2バスを
介してバス変換装置3とIDE機器4とを接続した例で
説明したが、IDE機器4の代わりにATAPI機器を
接続することもできる。ATAPI規格のインタフェー
スとIDE規格のインタフェースとはハード的には同じ
であり、ソフトの仕様が異なるだけであるため、IDE
機器4の代わりにATAPI機器を接続してもなんら問
題なく使用することができる。また、バス変換装置3と
IDE機器4とを1つのケースに収納するようにしても
よい。この場合、ケースにATA−2コネクタとSCS
Iコネクタを2つ設けておけば、SCSI、ATA−2
のどちらのバスであっても接続することができる。した
がって、周辺機器の接続バスを変更して使用することも
できる。また、本実施形態のバス変換装置を用いること
で、IDE機器をATA−2バス、SCSIバスのどち
らに接続しても使用することができる。また、安価なI
DE機器4にこのバス変換装置3を取り付けることによ
り、SCSI機器として動作させることができ、安価な
SCSI機器を提供することができるようになる。さら
に、上記した実施形態では、SCSIバスとATA−2
バスとの間の変換を行うバス変換装置3で説明を行った
が、これに限定されることはなく本願発明は、規格の異
なる2つのバス間の変換を行うバス変換装置に適用する
ことができる。
In the above embodiment, the bus converter 3 and the IDE device 4 are connected via the ATA-2 bus. However, an ATAPI device may be connected instead of the IDE device 4. Since the interface of the ATAPI standard and the interface of the IDE standard are the same in terms of hardware and differ only in the software specifications,
Even if an ATAPI device is connected instead of the device 4, it can be used without any problem. Further, the bus converter 3 and the IDE device 4 may be housed in one case. In this case, the case has an ATA-2 connector and an SCS
If two I connectors are provided, SCSI, ATA-2
Either bus can be connected. Therefore, the connection bus of the peripheral device can be changed and used. Further, by using the bus converter of the present embodiment, the IDE device can be used regardless of whether it is connected to the ATA-2 bus or the SCSI bus. In addition, cheap I
By attaching the bus converter 3 to the DE device 4, the device can be operated as a SCSI device, and an inexpensive SCSI device can be provided. Further, in the above embodiment, the SCSI bus and the ATA-2
Although the description has been given of the bus converter 3 for performing conversion between buses, the present invention is not limited to this, and the present invention can be applied to a bus converter for performing conversion between two buses having different standards. it can.

【0042】[0042]

【発明の効果】以上のように、本発明のバス変換装置で
は、一方のバスから入力されたデータをFIFOに記憶
させ、また、FIFOに記憶されたデータを他方のバス
に出力するようにしたため、バス変換装置へのデータの
入力と、バス変換装置からのデータの出力とを同期させ
ることなく独立して実行することができる。このため、
データの転送にかかる時間を大幅に短縮できるという効
果を奏する。また、動時には出力側のバスに接続され
ている装置に対してバスの規格で規定されている最も遅
い速度でアクセスしているので、該装置がサポートして
いる上限のデータ転送速度を1回のアクセスで確実に獲
得できる。そして、これ以降の該装置に対するアクセス
速度をここで獲得した上限の転送速度行うようにしたの
で、データの転送についても最も効率的に行える。 さら
に、FIFO介して入出力されるデータの転送方向が切
り替えられるので、データの転送が双方向で行える。
As described above, in the bus converter of the present invention, the data input from one bus is stored in the FIFO, and the data stored in the FIFO is output to the other bus. The input of data to the bus converter and the output of data from the bus converter can be executed independently without synchronization. For this reason,
This has the effect of significantly reducing the time required for data transfer. Further, at the time of startup slowest specified in the bus standard for the device connected to the output side bus
Access speed, the maximum data transfer rate supported by the device can be reliably acquired in a single access.
Can be obtained. And subsequent access to the device
The speed is now set to the upper limit transfer speed I got here
Thus, data transfer can be performed most efficiently. Further
The transfer direction of data input / output via FIFO is switched
The data transfer can be performed in both directions.

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

【図1】この発明の実施形態であるバス変換装置を用い
たシステムの構成を示す図である。
FIG. 1 is a diagram showing a configuration of a system using a bus converter according to an embodiment of the present invention.

【図2】この発明の実施形態であるバス変換装置の構成
を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of a bus converter according to an embodiment of the present invention.

【図3】SCSIバスのフェーズの遷移を示す図であ
る。
FIG. 3 is a diagram showing transition of phases of a SCSI bus.

【図4】各フェーズにおける、制御信号とその制御信号
の発生源を示す図である。
FIG. 4 is a diagram illustrating a control signal and a source of the control signal in each phase.

【図5】コマンドフェーズにおけるバス変換装置のコマ
ンド受取処理を示すフローチャートである。
FIG. 5 is a flowchart showing a command receiving process of the bus conversion device in a command phase.

【図6】コマンドフェーズにおけるバス変換装置のコマ
ンド転送処理を示すフローチャートである。
FIG. 6 is a flowchart showing a command transfer process of the bus conversion device in a command phase.

【図7】非同期転送におけるパーソナルコンピュータか
らIDE機器へのデータ転送時のタイミングチャートで
ある。
FIG. 7 is a timing chart when data is transferred from a personal computer to an IDE device in asynchronous transfer.

【図8】同期転送におけるパーソナルコンピュータから
IDE機器へのデータ転送時のタイミングチャートであ
る。
FIG. 8 is a timing chart at the time of data transfer from a personal computer to an IDE device in synchronous transfer.

【図9】非同期転送におけるIDE機器からパーソナル
コンピュータへのデータ転送時のタイミングチャートで
ある。
FIG. 9 is a timing chart at the time of data transfer from an IDE device to a personal computer in asynchronous transfer.

【図10】同期転送におけるIDE機器からパーソナル
コンピュータへのデータ転送時のタイミングチャートで
ある。
FIG. 10 is a timing chart at the time of data transfer from an IDE device to a personal computer in synchronous transfer.

【図11】この発明にかかるバス変換装置の機能を示す
ブロック図である。
FIG. 11 is a block diagram illustrating functions of a bus conversion device according to the present invention.

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

1−パーソナルコンピュータ 3−バス変換装置 4−IDE機器 34−FIFO 100、101−インタフェース 102−第1の制御部 103−第2の制御部 104−制御信号変換部 105−直接転送部 Reference Signs List 1-Personal computer 3-Bus converter 4-IDE device 34-FIFO 100, 101-Interface 102-First controller 103-Second controller 104-Control signal converter 105-Direct transfer unit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 13/36 310 G06F 13/36 320 G06F 13/14 330 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 6 , DB name) G06F 13/36 310 G06F 13/36 320 G06F 13/14 330

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 規格の異なる2つのバスに対してそれぞ
れ接続される2つのインタフェースと、上記2つのバスについて、入力側とするバスと出力側と
するバスの切り替えを行う入出力バス切替手段と、 上記入出力バス切替手段が 入力側としたバスから入力さ
れた転送データをFIFOに書き込むデータ書き込み手
段と、 前記FIFOに書き込まれた転送データを上記入出力バ
ス切替手段が出力側としたバスに出力するデータ出力手
段と 起動時に、上記バスを介して接続されている装置に対し
て、該装置が接続されているバスの規格で規定されてい
る最も遅い速度でアクセスして該装置がサポートしてい
る上限のデータ転送速度を獲得する転送速度獲得手段
と、 上記転送速度獲得手段で獲得した上限のデータ転送速度
をバスに接続されている装置に対するアクセス速度とし
て設定するアクセス速度設定手段と、を備えた バス変換
装置。
1. Two interfaces respectively connected to two buses having different standards, and a bus as an input side and an output side with respect to the two buses.
And output bus switching means for switching bus, a data writing means for writing the transfer data input from the bus to the output bus switching means has the input side to the FIFO, the transfer data written in the FIFO Above input / output bus
And data output means for scan switching means outputs the bus that the output side, at startup, to devices connected via the bus
Is specified in the standard of the bus to which the device is connected.
Transfer speed acquisition means for accessing at the slowest speed to obtain an upper limit data transfer speed supported by the device
And the upper limit data transfer speed obtained by the above transfer speed obtaining means.
Is the access speed to the device connected to the bus.
A bus conversion device comprising:
【請求項2】 一方のバスから入力されたコマンドを他
方のバスの規格に適合するコマンドに変換するコマンド
変換手段と、 上記コマンド変換手段で変換したコマンドを他方のバス
に出力するコマンド出力手段と、を備えた請求項1に記
載のバス変換装置。
2. A method according to claim 1, wherein a command input from one bus is transmitted to another bus.
To convert to a command that conforms to the standard of the other bus
Conversion means, and the command converted by the command conversion means
And a command output means for outputting the command to the
On-board bus converter.
【請求項3】 前記バスの1つはSCSIバスであり、
もう1つのバスはATA−2バスである請求項1または
2に記載のバス変換装置。
3. The method of claim 1, wherein one of said buses is a SCSI bus.
2. The method of claim 1, wherein the other bus is an ATA-2 bus.
3. The bus converter according to 2.
JP8315849A 1996-11-27 1996-11-27 Bus converter Expired - Fee Related JP2988879B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8315849A JP2988879B2 (en) 1996-11-27 1996-11-27 Bus converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8315849A JP2988879B2 (en) 1996-11-27 1996-11-27 Bus converter

Publications (2)

Publication Number Publication Date
JPH10161972A JPH10161972A (en) 1998-06-19
JP2988879B2 true JP2988879B2 (en) 1999-12-13

Family

ID=18070328

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8315849A Expired - Fee Related JP2988879B2 (en) 1996-11-27 1996-11-27 Bus converter

Country Status (1)

Country Link
JP (1) JP2988879B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002183081A (en) * 2000-12-01 2002-06-28 Ge Medical Systems Global Technology Co Llc Method/device mediating data transfer and data processing system
WO2010070727A1 (en) * 2008-12-16 2010-06-24 富士通株式会社 Virtual tape device, and program and method for copying virtual tape data
JP5527512B2 (en) 2009-09-28 2014-06-18 ソニー株式会社 Bus protocol conversion device and bus protocol conversion method

Also Published As

Publication number Publication date
JPH10161972A (en) 1998-06-19

Similar Documents

Publication Publication Date Title
EP1389760B1 (en) Data transfer control system, program and data transfer control method
JPS6252345B2 (en)
JPS589450B2 (en) Communication multiplexing device
JPH1083375A (en) Scsi system
US4695944A (en) Computer system comprising a data, address and control signal bus which comprises a left bus and a right bus
JPS6258028B2 (en)
JPS63106060A (en) Fast mutual connector for digital data processing system
JP2541767B2 (en) Smart bus control unit
US4897779A (en) Method and apparatus for optimizing inter-processor instruction transfers
KR100579203B1 (en) Streamlining ata device initialization
US5796963A (en) System and method for converting VXI bus cycles to PCI burst cycles
US8458367B2 (en) Method and device for handling SMBus messages
JP2988879B2 (en) Bus converter
JPH03196225A (en) Programmable interrupt controller
US6230216B1 (en) Method for eliminating dual address cycles in a peripheral component interconnect environment
JP3768561B2 (en) Multiprocessor system
JP2000076178A (en) Automatic control for burst mode data transfer by communication link between devices operated in block mode
JP2003208399A (en) Data processing apparatus
JPS6035698B2 (en) data processing system
WO2000045268A2 (en) Memory mapping
US6883042B1 (en) Method and structure for automatic SCSI command delivery using the packetized SCSI protocol
TW502171B (en) Data transmitting system
JP4485064B2 (en) Computer system bus architecture and related methods
CN117354381A (en) Protocol conversion method and image acquisition system
CN115729863A (en) Data transmission method, device, electronic equipment and medium

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071008

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081008

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101008

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101008

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111008

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111008

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141008

Year of fee payment: 15

LAPS Cancellation because of no payment of annual fees