JPH0342756A - Command processor - Google Patents
Command processorInfo
- Publication number
- JPH0342756A JPH0342756A JP17856189A JP17856189A JPH0342756A JP H0342756 A JPH0342756 A JP H0342756A JP 17856189 A JP17856189 A JP 17856189A JP 17856189 A JP17856189 A JP 17856189A JP H0342756 A JPH0342756 A JP H0342756A
- Authority
- JP
- Japan
- Prior art keywords
- command
- status
- queue
- error
- execution unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 239000000284 extract Substances 0.000 claims description 5
- 238000000034 method Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 2
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明はコマンド処理装置に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a command processing device.
r従来の技術〕
従来、この種のコマンド処理装置は上位プロセッサから
非同期に発行されたコマンドを順次格納するコマンドキ
ューと、コマンドキューから周期的にコマンドを取り出
し実行しステータスを返送するコマンド実行部と、コマ
ンド実行部からのステータスを順次格納するステータス
キー−とから構成され、上位プロセッサから発行された
コマンドはコマンドキューに格納された分だけコマンド
実行部からのステータスに拘らずコマンド実行部にて実
行している。rPrior art] Conventionally, this type of command processing device has a command queue that sequentially stores commands issued asynchronously from a higher-level processor, and a command execution unit that periodically extracts commands from the command queue, executes them, and returns a status. , and a status key that sequentially stores the status from the command execution unit, and the commands issued from the upper processor are executed by the command execution unit as many as are stored in the command queue, regardless of the status from the command execution unit. are doing.
上述した従来のコマンド処理装置においては、コマンド
キューに格納されているコマンドがコマンド実行部から
の報告に拘らず周期的にコマンド実行部にて実行される
ため、−旦コマント実行部がエラー中のステータスがコ
マンド実行部よシ返送されてもコマンドキューに格納さ
れた分だけコマンド実行部に渡され、その分だけコマン
ド実行部がエラー中のステータスがコマンド実行部より
返送される問題がある。In the conventional command processing device described above, the commands stored in the command queue are periodically executed by the command execution unit regardless of the reports from the command execution unit. Even if the status is returned from the command execution unit, only the amount stored in the command queue is passed to the command execution unit, and there is a problem in that the command execution unit returns a status indicating that the command execution unit is in error.
(問題点を解決するための手段〕
本発明ハコマント処理装置は上位プロセッサが発行する
コマンドを処理しステータスの返送を行うコマンド処理
装置において;前記上位プロセッサから非同期に発行さ
れたコマンドを順次格納するコマンドキューと:前記コ
マンドキューから周期的にコマンドを取り出し実行する
か廃棄するか廃棄中か廃棄解除かの判別を行うコマンド
判別部と;前記コマンド判別部で実行することを判別さ
れたコマンドを実行し報告を返送するコマンド実行部と
;前記コマンド実行部からのステータスによシ前記コマ
ンド実行部がエラー中か否かの判別を行い、前記コマン
ド実行部がエラー中の場合、前記コマンド判別部へコマ
ンド廃棄の指示をするステータス判別部と:前記ステー
タス判別部で判別後のステータスを順次格納するステー
タスキー−とを備える。(Means for Solving the Problems) The Hacomant processing device of the present invention is a command processing device that processes commands issued by a higher-level processor and returns status; a command determining unit that periodically extracts a command from the command queue and determines whether to execute, discard, discard, or release the command; and execute a command determined to be executed by the command determining unit. a command execution unit that returns a report; determines whether or not the command execution unit is in error based on the status from the command execution unit; if the command execution unit is in error, sends a command to the command determination unit; It is provided with a status determining section that instructs discarding, and a status key that sequentially stores the status determined by the status determining section.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
本発明の一実施例を示す第1図を参照すると、上位プロ
セッサ9とコマンド処理装置8との間がプロセッサバス
10で接続され、コマンド処理装置8ば4個のコマンド
6を格納できるコマンドキ、−1,!:、コマンドキュ
ー1からコマンド6を取り出しコマンド6が廃棄中解除
を示すコマンドか否か及びコマンド廃棄か実行かを判別
するコマンド判別部4と、コマンド6を実行しステータ
ス7を返送するコマンド実行部3と、コマンド実行部3
からのステータス7によりコマンド実行部3がエラー中
か否かの判別を行ないコマンド実行部3がエラー中の場
合コマンド判別部4ヘコマンド廃棄の指示をするステー
タス判別部5と、ステータス判別部5で判別後のステー
タス7を4個順次格納するステータスキュー2とから構
成される。Referring to FIG. 1 showing an embodiment of the present invention, a host processor 9 and a command processing device 8 are connected by a processor bus 10, and the command processing device 8 has a command key capable of storing four commands 6. 1,! :, a command discriminating unit 4 which extracts command 6 from command queue 1 and determines whether command 6 is a command indicating cancellation of discarding and whether to discard or execute the command; and a command execution unit which executes command 6 and returns status 7. 3 and command execution unit 3
The status determination unit 5 determines whether or not the command execution unit 3 is in error based on the status 7 from the command execution unit 3 and instructs the command determination unit 4 to discard the command if the command execution unit 3 is in error. and a status queue 2 that sequentially stores four subsequent statuses 7.
第2図は同実施例におけるコマンド6及びステータス7
のフォーマットを示し、コマンド6はコマンドコード1
バイト、コマンド廃棄中解除フラグ1バイト及び情報部
6バイトの計8バイトで構成される。ステータス7はス
テータスコード1バイト、コマンド実行部3がエラー中
を示すフラグ1バイト、情報部6バイトの計8バイトで
構成される。Figure 2 shows command 6 and status 7 in the same example.
The format of command 6 is command code 1.
It consists of a total of 8 bytes: 1 byte, 1 byte for the command discard/release flag, and 6 bytes for the information section. The status 7 consists of 1 byte of status code, 1 byte of flag indicating that the command execution unit 3 is in error, and 6 bytes of information part, 8 bytes in total.
続いて、第1図及び第2図を参照して動作を説明すると
、コマンド実行部3が正常時には順次コマンドキュー1
のコマンド6は実行され、ステータス7がステータスキ
ュー2を介して報告される。Next, to explain the operation with reference to FIGS. 1 and 2, when the command execution unit 3 is normal, the command queue 1 is sequentially
command 6 is executed and status 7 is reported via status queue 2.
ここで、コマンド6をコマンド実行部3で実行時、エラ
ー状態となりステータス7のフラグが’01〃紺と返送
されたとすると、ステータス判別部5にてコマンド実行
部3がエラー中と判別され、コマンド判別部3ヘコマン
ド廃棄の指示が伝えられ、ステータス7はステータスキ
ュー2へ格納される。Here, when command 6 is executed by the command execution unit 3, an error state occurs and the flag of status 7 is returned as '01 dark blue.The status determination unit 5 determines that the command execution unit 3 is in error, and the command An instruction to discard the command is transmitted to the discriminator 3, and the status 7 is stored in the status queue 2.
次のコマンド6がコマンドキュー1から取り出さ一
れてコマンド判別部4で判別され、コマンド廃棄の指示
が出されていることでコマンド6はコマンド実行部3へ
渡されず廃棄される。上位プロセッサ9がエラー中のス
テータスを読み取りコマンド発行を中止する1でコマン
ド6はコマンド判別部4で廃棄される。次に、上位プロ
セッサ9がコマンド6の廃棄中解除フラグをu01〃と
してコマンドを発行し、コマンドキュー1から取り出さ
れると、コマンド判別部4でコマンド廃采中解除フラグ
−Q I I/を読み取り、コマンド廃棄の指示が解除
され、再びコマンド実行部3ヘコマンド6が渡される。The next command 6 is taken out from the command queue 1 and discriminated by the command discriminator 4, and since an instruction to discard the command has been issued, the command 6 is not passed to the command execution unit 3 and is discarded. The command 6 is discarded by the command discriminator 4 when the upper processor 9 reads the error status and stops issuing the command. Next, the upper processor 9 issues a command with the discard status release flag of command 6 as u01, and when the command is taken out from the command queue 1, the command discriminator 4 reads the command discard status release flag -Q I I/. The instruction to discard the command is canceled, and the command 6 is passed to the command execution unit 3 again.
以上説明したように本発明によれば、コマンドキューか
ら周期的にコマンドを取り出してコマンド実行部がエラ
ー中でコマンド廃棄か実行するか廃棄中か廃棄解除かの
判別を行うコマンド判別部と、コマンド実行部からのス
テータスがコマンド実行部がエラー中か否かの判別を行
々いコマンド実行部がエラー中の場合コマンド判別部ヘ
コマン−
ド廃棄の指示をするステータス判別部とを設けることに
より、−度コマント実行部がエラー状態になった場合、
上位プロセッサへのエラー中ステータスが何度もあがる
ことなく、既にコマンドキューに格納されているコマン
ドを廃棄できる。As described above, according to the present invention, there is provided a command determining unit that periodically extracts a command from a command queue and determines whether the command execution unit discards or executes the command in an error state, discards the command, or cancels discarding the command; By providing a status determination section that determines whether or not the command execution section is in error based on the status from the execution section, and instructs the command determination section to discard the command if the command execution section is in error. If the command execution section enters an error state,
Commands already stored in the command queue can be discarded without causing the error status to be sent to the upper processor many times.
第1図は本発明の一実施例を示す構成図、第2図は同実
施例におけるコマンド及びステータスのフォーマットを
示す図である。
1・・・・・・コマンドキュー 2・・・・・・ステー
タスキュ3・・・・・・コマンド実行部、4・・・・・
・コマンド判別部、5・・・・・・ステータス判別部、
6・・・・・・コマンド、7・・・・・・ステータス、
8・・・・・・コマンド処理装置、9・・・・・・上位
フロセッサ、10・・・・・・プロセッサバス。FIG. 1 is a configuration diagram showing one embodiment of the present invention, and FIG. 2 is a diagram showing the format of commands and status in the same embodiment. 1...Command queue 2...Status queue 3...Command execution part, 4...
・Command discrimination section, 5...Status discrimination section,
6...Command, 7...Status,
8...Command processing device, 9...Upper processor, 10...Processor bus.
Claims (1)
の返送を行うコマンド処理装置において;前記上位プロ
セッサから非同期に発行されたコマンドを順次格納する
コマンドキューと;前記コマンドキューから周期的にコ
マンドを取り出し実行するか廃棄するか廃棄中か廃棄解
除かの判別を行うコマンド判別部と;前記コマンド判別
部で実行することを判別されたコマンドを実行し報告を
返送するコマンド実行部と;前記コマンド実行部からの
ステータスにより前記コマンド実行部がエラー中か否か
の判別を行い、前記コマンド実行部がエラー中の場合、
前記コマンド判別部へコマンド廃棄の指示をするステー
タス判別部と;前記ステータス判別部で判別後のステー
タスを順次格納するステータスキューとを備えることを
特徴とするコマンド処理装置。A command processing device that processes commands issued by an upper processor and returns status; a command queue that sequentially stores commands issued asynchronously from the upper processor; and a command queue that periodically extracts and executes commands from the command queue. a command determination unit that determines whether to discard, be discarded, or cancel discard; a command execution unit that executes a command determined to be executed by the command determination unit and returns a report; and a status from the command execution unit. to determine whether or not the command execution unit is in error, and if the command execution unit is in error,
A command processing device comprising: a status determining unit that instructs the command determining unit to discard a command; and a status queue that sequentially stores statuses determined by the status determining unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP17856189A JPH0342756A (en) | 1989-07-10 | 1989-07-10 | Command processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP17856189A JPH0342756A (en) | 1989-07-10 | 1989-07-10 | Command processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0342756A true JPH0342756A (en) | 1991-02-22 |
Family
ID=16050637
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP17856189A Pending JPH0342756A (en) | 1989-07-10 | 1989-07-10 | Command processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0342756A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9591112B2 (en) | 2002-12-31 | 2017-03-07 | Google Technology Holdings LLC | Command queuing for multimedia storage devices |
-
1989
- 1989-07-10 JP JP17856189A patent/JPH0342756A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9591112B2 (en) | 2002-12-31 | 2017-03-07 | Google Technology Holdings LLC | Command queuing for multimedia storage devices |
US9614944B2 (en) | 2002-12-31 | 2017-04-04 | Google Technology Holdings LLC | Command queuing for multimedia storage devices |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS6230465B2 (en) | ||
JPH0342756A (en) | Command processor | |
JP2546386B2 (en) | Redundant device | |
JPS57113152A (en) | Dumping processing system | |
JP2735523B2 (en) | Procedure / step processing method | |
JP2856589B2 (en) | Interrupt distribution method | |
JPH1091567A (en) | Input/output interface extension device | |
JPH0451847B2 (en) | ||
JPS6159536A (en) | Electronic computer system having interruption discriminating device | |
JP2615921B2 (en) | Input / output control method in operating system | |
JPS5971555A (en) | Performance monitoring system | |
JPH04124754A (en) | Communication message buffer controller | |
JPH02294865A (en) | Inter-processor communication control system | |
JPH04131954A (en) | Peripheral device | |
JPS62239237A (en) | Data flow type information processor | |
JPH02310732A (en) | Interruption control system | |
JPH0619512A (en) | Method for exclusive control among pc programming devices | |
JPH02271437A (en) | Task running time measuring system | |
JPS62204351A (en) | Deadlock releasing system | |
JPH0789327B2 (en) | Information processing system | |
JPS63257041A (en) | Diagnosing system for system of real time os | |
JPS58144267A (en) | I/o device | |
JPH10172083A (en) | Alarm collecting method and alarm collecting system for executing the method | |
JPH0546402A (en) | Inter-program mutual call system | |
JPH01154258A (en) | Malfunction detecting device using watchdog timer |