JPH04286043A - Command check device - Google Patents
Command check deviceInfo
- Publication number
- JPH04286043A JPH04286043A JP3051026A JP5102691A JPH04286043A JP H04286043 A JPH04286043 A JP H04286043A JP 3051026 A JP3051026 A JP 3051026A JP 5102691 A JP5102691 A JP 5102691A JP H04286043 A JPH04286043 A JP H04286043A
- Authority
- JP
- Japan
- Prior art keywords
- command
- icm
- cpu
- buffer
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 239000003999 initiator Substances 0.000 claims description 12
- 238000001514 detection method Methods 0.000 abstract 2
- 238000010586 diagram Methods 0.000 description 4
- 230000002093 peripheral effect Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は、コンピュータの周辺機
器を接続するときに使用されるプロトコルコントローラ
におけるコマンドチェック装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a command check device in a protocol controller used when connecting peripheral devices of a computer.
【0002】0002
【従来の技術】プロトコルコントローラは、コンピュー
タの周辺機器を接続するときに使用されている。このよ
うに周辺機器を接続した場合、機器の間で命令(コマン
ド)の伝送が行われている。このようにコマンドの伝送
を行う場合、コマンドのチェックが必要である。2. Description of the Related Art Protocol controllers are used to connect computer peripherals. When peripheral devices are connected in this way, instructions (commands) are transmitted between the devices. When transmitting commands in this way, it is necessary to check the commands.
【0003】従来のコマンドチェックは、SCSI(S
mall Computer System I
nterface)プロトコルコントローラが、この機
能を備えていなかったので、CPUのプログラムで行っ
ていた。[0003] Conventional command checking is based on SCSI (SCSI)
mall computer system I
Since the protocol controller (interface) did not have this function, it was performed using a CPU program.
【0004】図2は、従来のコマンドチェックの方法を
実現するためのシステムを示すブロック図である。図2
において、ターゲットTには中央演算処理装置(CPU
)1及びSCSIプロトコルコントローラ2を備えてい
る。CPU1は、プログラムを内蔵しており、このプロ
グラムを実行する。このCPU1は、SCSIプロトコ
ルコントローラ2に接続されている。SCSIプロトコ
ルコントローラ2にはバッファ3が設けられている。
また、SCSIプロトコルコントローラ2は、SCSI
4を介してイニイエータ5につながっている。FIG. 2 is a block diagram showing a system for implementing a conventional command check method. Figure 2
, the target T has a central processing unit (CPU).
) 1 and a SCSI protocol controller 2. The CPU 1 has a built-in program and executes this program. This CPU 1 is connected to a SCSI protocol controller 2. The SCSI protocol controller 2 is provided with a buffer 3. In addition, the SCSI protocol controller 2
It is connected to the initiator 5 via 4.
【0005】このように構成されたシステムでは、SC
SIプロトコルコントローラ2がイニシエータ5からコ
マンドを受け取ってバッファ3に格納したとき、CPU
1のプログラムが当該コマンドの予約領域のビットをチ
ェックし、前記ビットに“1”があれば転送フェーズを
ステータスフェーズに切り換え、エラーを示すステータ
スを転送し、かつコマンド終了を示すメッセージを転送
していた。[0005] In a system configured in this way, the SC
When the SI protocol controller 2 receives a command from the initiator 5 and stores it in the buffer 3, the CPU
Program No. 1 checks the bit in the reserved area of the command, and if the bit is "1", switches the transfer phase to the status phase, transfers the status indicating an error, and transfers a message indicating the end of the command. Ta.
【0006】[0006]
【発明が解決しようとする課題】しかしながら、上記従
来のコマンドチェック方法では、CPUのプログラムで
チェックを行っているので、処理時間が長くなるという
欠点があり、かつプログラムにコマンドチェックルーチ
ンを組み込まなければならず開発期間が長くなり、プロ
グラム容量が増えるという欠点もあった。[Problems to be Solved by the Invention] However, in the conventional command check method described above, since the check is performed by a CPU program, there is a drawback that the processing time becomes long, and a command check routine must be incorporated into the program. However, it also had the drawbacks of lengthening the development period and increasing program capacity.
【0007】そこで、本発明の目的は、コマンドチェッ
クの処理時間を短縮化できるコマンドチェック装置を提
供することにある。SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a command check device that can shorten command check processing time.
【0008】[0008]
【課題を解決するための手段】本発明は、プロトコル制
御を行うプロトコルコントローラ、及び所定の処理を行
う中央処理装置を含むターゲットと、このターゲットに
インターフェースを介して接続されたイニシエータから
なる装置において、上記中央処理装置からの指令により
あらかじめ各コマンドの予約領域のビットパターンを書
き込めるメモリと、上記イニシエータからのコマンドを
格納するバッファと、このバッファの内容と上記メモリ
の内容を比較する比較手段とを備え、この比較手段は受
け取ったコマンドの予約領域のビットに所定論理値があ
るときに、エラーを示すステータスを出力するものであ
る。[Means for Solving the Problems] The present invention provides an apparatus comprising a target including a protocol controller that performs protocol control and a central processing unit that performs predetermined processing, and an initiator connected to this target via an interface. It includes a memory into which a bit pattern of a reserved area for each command can be written in advance according to a command from the central processing unit, a buffer for storing the command from the initiator, and a comparison means for comparing the contents of this buffer with the contents of the memory. This comparison means outputs a status indicating an error when a bit in the reserved area of the received command has a predetermined logical value.
【0009】[0009]
【作用】中央処理装置は、プログラムによりターゲット
のメモリに、あらかじめコマンドごとの予約領域のビッ
トパターンを書き込んでおくか、あるいはメモリをリー
ドオンリメモリで構成し、製造時にコマンドごとの予約
領域のビットパターンを書き込んでおく。ついで、ター
ゲットがイニシエータからコマンドを受け取り、バッフ
ァに当該コマンドを格納する。ついで、このバッファの
内容を先頭から読み出し、また内蔵メモリの内容を先頭
バイトからデータを読み出して、それらデータを比較手
段に入力する。比較手段は、上記各データ内に所定の論
理値があったときに、エラー信号を出力する。[Operation] The central processing unit writes the bit pattern of the reserved area for each command into the target memory in advance by a program, or configures the memory as a read-only memory, and the bit pattern of the reserved area for each command at the time of manufacturing. Write it down. The target then receives the command from the initiator and stores the command in a buffer. Next, the contents of this buffer are read from the beginning, and the contents of the built-in memory are read from the first byte, and these data are input to the comparing means. The comparison means outputs an error signal when a predetermined logical value is found in each of the data.
【0010】ここで、エラー信号が出力されたときは、
転送フェーズをステータスフェーズに切り換え、エラー
を示すステータスをイニシエータに転送し、その後転送
フェーズをメッセージフェーズに切り換え、メッセージ
を転送する。かつ、エラー信号が発生したことを、中央
処理装置に報告する。[0010] Here, when an error signal is output,
The transfer phase is switched to the status phase, a status indicating an error is transferred to the initiator, and then the transfer phase is switched to the message phase and the message is transferred. Also, the occurrence of an error signal is reported to the central processing unit.
【0011】[0011]
【実施例】以下、本発明を図示の実施例に基づいて説明
する。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be explained below based on the illustrated embodiments.
【0012】図1は、本発明のコマンドチェック装置の
実施例を含むシステムのブロック図である。 図1に
おいて、ターゲット10は、SCSI20を介してイニ
シエータ30に接続されている。ターゲット10は、プ
ログラム内蔵のCPU11と、SCSIプロトコルコン
トローラ12とから構成されている。CPU11には、
SCSIプロトコルコントローラ12が接続されている
。
このSCSIプロトコルコントローラ12には、SCS
I20が接続されている。SCSIプロトコルコントロ
ーラ12は、バッファ13と、ステータス/メッセージ
転送回路14と、メモリ15と、アドレス切換え回路1
6と、アドレス発生回路17と、クロック発生回路18
と、1バイト分(8個)のアンド回路19とを備えてい
る。FIG. 1 is a block diagram of a system including an embodiment of the command check device of the present invention. In FIG. 1, target 10 is connected to initiator 30 via SCSI 20. In FIG. The target 10 includes a CPU 11 with a built-in program and a SCSI protocol controller 12. The CPU 11 has
A SCSI protocol controller 12 is connected. This SCSI protocol controller 12 includes SCSI
I20 is connected. The SCSI protocol controller 12 includes a buffer 13, a status/message transfer circuit 14, a memory 15, and an address switching circuit 1.
6, address generation circuit 17, and clock generation circuit 18
and AND circuits 19 for 1 byte (8 pieces).
【0013】このように構成された実施例の動作を説明
する。CPU11は、プログラムに従って動作し、アド
レス切換え回路16をCPU11側にし、かつCPU1
1からのアドレスに従って、メモリ15にあらかじめコ
マンドごとの予約領域のビットパターンを書き込んでお
く。SCSIプロトコルコントローラ12がイニシエー
タ30からコマンドを受け取ってバッファ13に格納し
たとき、バッファ13に格納されたコマンドの1バイト
目がアドレス発生回路17に供給される。アドレス発生
回路7は、1バイト目を基に最初アドレスを発生して出
力する。アドレス切換え回路16は、既にアドレス発生
回路17側に切り換わっており、アドレス発生回路17
からのアドレスを出力する。このとき、バッファ13と
メモリ15とから、それぞれ1バイト分のデータがアン
ド回路19に向けて出力される。この2個のデータはア
ンド回路19においてアンドがとられ、それらのデータ
のうち1ビットでも“1”があれば出力信号“1”が出
力され、これがエラー信号としてCPU11及びステー
タス/メッセージ転送回路14に出力される。なお、ク
ロック発生回路18から出力されるクロックは、受け取
ったコマンドの各バイトをチェックするため、バッファ
13とアドレス発生回路17にアドレスインクリメント
のためのタイミングを供給する。The operation of the embodiment configured as described above will be explained. The CPU 11 operates according to the program, sets the address switching circuit 16 to the CPU 11 side, and sets the address switching circuit 16 to the CPU 11 side.
A bit pattern of a reserved area for each command is written in the memory 15 in advance according to the addresses starting from 1. When the SCSI protocol controller 12 receives a command from the initiator 30 and stores it in the buffer 13, the first byte of the command stored in the buffer 13 is supplied to the address generation circuit 17. The address generation circuit 7 first generates and outputs an address based on the first byte. The address switching circuit 16 has already been switched to the address generation circuit 17 side, and the address generation circuit 17 has already been switched to the address generation circuit 17 side.
Outputs the address from. At this time, one byte worth of data is each output from the buffer 13 and the memory 15 to the AND circuit 19. These two pieces of data are ANDed in the AND circuit 19, and if even one bit of the data is “1”, an output signal “1” is output, which is sent to the CPU 11 and the status/message transfer circuit 14 as an error signal. is output to. Note that the clock output from the clock generation circuit 18 supplies timing for address increment to the buffer 13 and the address generation circuit 17 in order to check each byte of the received command.
【0014】そして、エラーの時は、ステータス/メッ
セージ転送回路14は、フェーズをステータスフェーズ
に切り換え、エラーを示すステータスをイニシエータ3
0に転送し、その後転送フェーズをメッセージフェーズ
に切り換え、メッセージを転送する。When an error occurs, the status/message transfer circuit 14 switches the phase to the status phase and transfers the status indicating the error to the initiator 3.
0, then switch the transfer phase to the message phase and transfer the message.
【0015】上記実施例によれば、バッファ13からの
データ及びメモリ15からのデータをアンド回路19で
アンドをとり、その内の一ビットでも“1”があればエ
ラーとするようにしてコマンドチェックを行うので、処
理時間が短くなってコマンドのスループットが上昇する
ことになる。また、CPU11に内蔵するプログラムに
コマンドチェックルーチンを組み込む必要がなくなるの
で、プログラムの開発期間を短縮でき、しかもプログラ
ム容量を減少させることができる。その結果、CPUの
負荷が軽くなるので、CPUを他の処理に割り当てるこ
とができる。According to the above embodiment, the data from the buffer 13 and the data from the memory 15 are ANDed by the AND circuit 19, and if even one bit of them is "1", it is determined as an error, and the command is checked. This reduces processing time and increases command throughput. Further, since there is no need to incorporate a command check routine into the program built into the CPU 11, the program development period can be shortened, and the program capacity can also be reduced. As a result, the load on the CPU is reduced, so the CPU can be allocated to other processing.
【0016】[0016]
【発明の効果】上記実施例により明らかなように、本発
明によると、回路によりコマンドチェックを行うので、
処理時間が短くなり、かつコマンドのスループットが上
昇するという利点がある。[Effects of the Invention] As is clear from the above embodiments, according to the present invention, command checking is performed by a circuit, so that
This has the advantage of shortening processing time and increasing command throughput.
【0017】また、本発明によれば、プログラムにコマ
ンドチェックルーチンを組み込む必要がなくなるので、
開発期間を短縮でき、プログラム容量を減少できる。Furthermore, according to the present invention, there is no need to incorporate a command check routine into a program.
The development period can be shortened and the program capacity can be reduced.
【0018】さらに、本発明によれば、結果的にCPU
の負荷が軽くなるので、CPUをその他の処理に割り当
てることができる。Furthermore, according to the present invention, as a result, the CPU
Since the load on the CPU is reduced, the CPU can be allocated to other processing.
【図1】図1は、本発明の一実施例におるコマンドチェ
ック装置を示すブロック図FIG. 1 is a block diagram showing a command check device according to an embodiment of the present invention.
【図2】図2は、従来装置を示すブロック図[Fig. 2] Fig. 2 is a block diagram showing a conventional device.
10 ターゲット
11 CPU
12 SCSIプロトコルコントローラ13 バッ
ファ
14 ステータス/メッセージ転送回路15 メモ
リ
16 アドレス切換え回路
17 アドレス発生回路
18 クロック発生回路
19 アンド回路
20 SCSI
30 イニシエータ10 target 11 CPU 12 SCSI protocol controller 13 buffer 14 status/message transfer circuit 15 memory 16 address switching circuit 17 address generation circuit 18 clock generation circuit 19 AND circuit 20 SCSI 30 initiator
Claims (1)
トローラ、及び所定の処理を行う中央処理装置を含むタ
ーゲットと、このターゲットにインターフェースを介し
て接続されたイニシエータからなる装置において、上記
中央処理装置からの指令によりあらかじめ各コマンドの
予約領域のビットパターンを書き込めるメモリと、上記
イニシエータからのコマンドを格納するバッファと、こ
のバッファの内容と上記メモリの内容を比較する比較手
段とを備え、この比較手段は受け取ったコマンドの予約
領域のビットに所定論理値があるときに、エラーを示す
ステータスを出力するコマンドチェック装置。Claim 1: A device comprising a target including a protocol controller that performs protocol control and a central processing unit that performs predetermined processing, and an initiator connected to this target via an interface, in accordance with instructions from the central processing unit. It is equipped with a memory into which a bit pattern of a reserved area for each command can be written in advance, a buffer for storing the command from the initiator, and a comparison means for comparing the contents of this buffer with the contents of the memory. A command check device that outputs a status indicating an error when a bit in a reserved area has a predetermined logical value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3051026A JP2924232B2 (en) | 1991-03-15 | 1991-03-15 | Command check device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3051026A JP2924232B2 (en) | 1991-03-15 | 1991-03-15 | Command check device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH04286043A true JPH04286043A (en) | 1992-10-12 |
JP2924232B2 JP2924232B2 (en) | 1999-07-26 |
Family
ID=12875299
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3051026A Expired - Fee Related JP2924232B2 (en) | 1991-03-15 | 1991-03-15 | Command check device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2924232B2 (en) |
-
1991
- 1991-03-15 JP JP3051026A patent/JP2924232B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2924232B2 (en) | 1999-07-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5680592A (en) | System using a plurality of state machines for translating commands intended for legacy bus devices to commands for local bus devices | |
KR900015008A (en) | Data processor | |
JPH04286043A (en) | Command check device | |
KR19980065464A (en) | Timing Mode Selector According to Direct Memory Access Transmission Method | |
US6629262B1 (en) | Multiplexed storage controlling device | |
KR890016475A (en) | Direct Memory Access Control | |
JPH0628307A (en) | Bus controller | |
JP2004046891A (en) | Data processing system, data processor, external device, and data transmission method | |
JPH0962313A (en) | Flexible input and output module and programmable controller | |
JPS61127026A (en) | Optical disk controller | |
JPH05173876A (en) | Extended memory board | |
KR100225531B1 (en) | Apparatus for interfacing between peripheral processor and device in the switching system | |
JP2747154B2 (en) | I / O processor | |
JPH0675653A (en) | Computer redundancy control system | |
JPS58121443A (en) | Communication controller | |
JPH02245959A (en) | Data transfer system of input/output controller | |
JPS59136832A (en) | Data transfer system | |
JPH04315234A (en) | Memory system | |
JPH06175929A (en) | Duplex main storage device | |
JPH01158554A (en) | Data processing system providing dma device | |
JPS62187956A (en) | Dma control system | |
JPH05165731A (en) | Duplex storage device | |
JPH02146641A (en) | Memory device | |
JPH10326155A (en) | Time slot generation device and its action confirming method | |
JP2000181810A (en) | Peripheral control processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |