JPH0644193A - I/o register access system - Google Patents

I/o register access system

Info

Publication number
JPH0644193A
JPH0644193A JP21867592A JP21867592A JPH0644193A JP H0644193 A JPH0644193 A JP H0644193A JP 21867592 A JP21867592 A JP 21867592A JP 21867592 A JP21867592 A JP 21867592A JP H0644193 A JPH0644193 A JP H0644193A
Authority
JP
Japan
Prior art keywords
register
access
main processor
write
control device
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
Application number
JP21867592A
Other languages
Japanese (ja)
Inventor
Shinji Furuno
慎治 古野
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP21867592A priority Critical patent/JPH0644193A/en
Publication of JPH0644193A publication Critical patent/JPH0644193A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the access time of a register by means of a main processor. CONSTITUTION:A two-port register 12 which can be accessed from both main processor 20 and CPU 11 is prepaired and a writing end status is prepaired inside the two-port register 12. The writing end status is set by CPU 11 when writing ends. Then, it is cleared when the main processor 20 writes data in the two-port register 12. When the main processor 20 performs writing access to the two-port register 12, arrangement is executed by an interrupting signal so as to inform CPU 11 of it. CPU 11 can judge to which address access is performed by detecting the writing end status by an interruption processing. At the time of reading access from the main processor 20 to the two-port register 12, no information is given to CPU 11.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、情報処理システムのフ
ァームウェアにより制御されるI/O装置におけるI/
Oレジスタアクセス方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to I / O in an I / O device controlled by firmware of an information processing system.
The present invention relates to an O register access method.

【0002】[0002]

【従来の技術】従来、情報処理システムのI/O装置と
しては、DMA制御装置、磁気ディスク装置、プリンタ
等の各種の装置がある。このようなI/O装置は、内蔵
されたファームウェアにより制御される。そして、ファ
ームウェアとメインプロセッサとのデータのやりとり
は、内蔵されたレジスタを介して行なわれる。この場
合、メインプロセッサによるI/O装置のレジスタのア
クセスに対しては、ファームウェアによる処理が終了す
るまで応答を待たされるようになっていた。
2. Description of the Related Art Conventionally, as an I / O device of an information processing system, there are various devices such as a DMA controller, a magnetic disk device and a printer. Such an I / O device is controlled by built-in firmware. Data is exchanged between the firmware and the main processor via a built-in register. In this case, with respect to the access to the register of the I / O device by the main processor, the response is kept waiting until the processing by the firmware is completed.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述し
た従来の技術には、次のような問題があった。即ち、上
述した方式では、メインプロセッサは、I/O装置のレ
ジスタへのアクセスごとにファームウェアの処理を待た
なければならないので、処理時間が増大するという問題
があった。本発明は、以上の点に着目してなされたもの
で、レジスタのアクセス時間を短縮し、コストパフォー
マンスの優れたI/Oレジスタアクセス方式を提供する
ことを目的とするものである。
However, the above-mentioned conventional technique has the following problems. That is, in the above-described method, the main processor has to wait for the processing of the firmware each time the register of the I / O device is accessed, which causes a problem that the processing time increases. The present invention has been made in view of the above points, and it is an object of the present invention to provide an I / O register access method that shortens register access time and is excellent in cost performance.

【0004】[0004]

【課題を解決するための手段】本発明のI/Oレジスタ
アクセス方式は、I/O装置をメインプロセッサにより
レジスタアクセスで制御する場合において、前記メイン
プロセッサと前記I/O装置の制御装置との双方よりア
クセス可能な2ポートレジスタを用意し、当該レジスタ
へのリードアクセス時には、前記制御装置への報告は行
なわずに、当該レジスタよりデータを読み出し、当該レ
ジスタへのライトアクセス時には、当該レジスタへデー
タを書き込み、この書き込みの終了でライトアクセスを
終了させ、当該ライトアクセスの前記制御装置への報告
は割込み信号で行なう一方、前記レジスタの中に書き込
み終了ステータスを用意し、前記制御装置により書き込
み終了時に当該書き込み終了ステータスをセットし、前
記メインプロセッサが前記レジスタに書き込む場合に当
該書き込み終了ステータスをクリアし、前記制御装置の
割込み処理で当該書き込み終了ステータスを検知するこ
とで、前記I/O装置のどのアドレスへアクセスが来た
かを判定可能とすることを特徴とするものである。
According to the I / O register access method of the present invention, when an I / O device is controlled by register access by a main processor, the main processor and the control device of the I / O device are connected to each other. A two-port register accessible from both sides is prepared, data is read from the register without reporting to the control unit at the time of read access to the register, and data is read from the register at the time of write access to the register. The write access is ended at the end of this writing, and the write access is reported to the control device by an interrupt signal, while a write end status is prepared in the register and when the write is completed by the control device. The write end status is set, and the main process Makes it possible to determine which address of the I / O device has been accessed by clearing the write end status when writing to the register and detecting the write end status by the interrupt processing of the control device. It is characterized by that.

【0005】[0005]

【作用】本発明のI/Oレジスタアクセス方式において
は、メインプロセッサとファームウェアの両方よりアク
セスできる2ポートレジスタにより、メインプロセッサ
とファームウェアとの間でデータのやりとりを行なう。
メインプロセッサから2ポートレジスタへのリードアク
セス時にはファームウェアへの報告は行なわない。一
方、メインプロセッサから2ポートメモリへのライトア
クセス時には1レベルの割込み信号でまとめて、ファー
ムウェアに報告する。この際、2ポートレジスタの中に
書き込み終了ステータスを用意し、ファームウェアによ
り書き込み終了時に書き込み終了ステータスをセットす
る。そして、メインプロセッサがレジスタに書き込む場
合に書き込み終了ステータスをクリアする。このよう
に、ファームウェアの割込み処理で書き込み終了ステー
タスを検知することで、どのアドレスへアクセスが来た
かを判定することができる。
In the I / O register access method of the present invention, data is exchanged between the main processor and the firmware by the 2-port register which can be accessed by both the main processor and the firmware.
No report is made to the firmware when a read access is made from the main processor to the 2-port register. On the other hand, at the time of write access from the main processor to the 2-port memory, the interrupt signal of 1 level is collected and reported to the firmware. At this time, the write end status is prepared in the 2-port register, and the write end status is set by the firmware at the end of the write. Then, when the main processor writes to the register, the write end status is cleared. As described above, by detecting the write end status in the interrupt processing of the firmware, it is possible to determine which address has been accessed.

【0006】[0006]

【実施例】以下、本発明の実施例を図面を参照して詳細
に説明する。図1は、本発明のI/Oレジスタアクセス
方式の一実施例のブロック図である。図示のI/O装置
10は、システムバスでメインプロセッサ20に接続さ
れている。I/O装置10は、CPU11と、2ポート
レジスタ12と、割込み制御回路13と、アドレスデコ
ーダ14とから成る。CPU11は、ファームウェアの
実行を行なう。2ポートレジスタ12は、メインプロセ
ッサ20とファームウェアを実行するCPU11の両方
からアクセスできる。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the I / O register access system of the present invention. The illustrated I / O device 10 is connected to the main processor 20 via a system bus. The I / O device 10 includes a CPU 11, a 2-port register 12, an interrupt control circuit 13, and an address decoder 14. The CPU 11 executes the firmware. The 2-port register 12 can be accessed by both the main processor 20 and the CPU 11 that executes firmware.

【0007】割込み制御回路13は、アドレスデコーダ
14からの割込み要求に従い、CPU11に割込み信号
を出力する。アドレスデコーダ14は、メインプロセッ
サ20から2ポートレジスタ12へのアクセスのアドレ
スをデコードし、割込み制御回路13へ割込み要求を出
力する。次に、上述したシステムの動作を説明する。ま
ず、メインプロセッサ20よりレジスタをリードする場
合には、メインプロセッサ20から要求したアドレスに
対応する2ポートレジスタ12の該当する領域よりデー
タを返し、割込みは発生させない。I/O装置10のフ
ァーム処理の必要のないレジスタ領域へライトする場合
には、要求したアドレスに対応する2ポートレジスタ1
2の領域へ書き込み、割込みは発生させない。
The interrupt control circuit 13 outputs an interrupt signal to the CPU 11 in response to an interrupt request from the address decoder 14. The address decoder 14 decodes the address of access from the main processor 20 to the 2-port register 12, and outputs an interrupt request to the interrupt control circuit 13. Next, the operation of the above system will be described. First, when a register is read from the main processor 20, data is returned from the corresponding area of the 2-port register 12 corresponding to the address requested by the main processor 20, and no interrupt is generated. When writing to a register area of the I / O device 10 that does not require firmware processing, the 2-port register 1 corresponding to the requested address is written.
Write to area 2 and do not generate an interrupt.

【0008】I/O装置10のファーム処理の必要のあ
るレジスタへライトする場合には、要求したアドレスに
対応する2ポートレジスタ12のレジスタへ書き込み、
更に、アドレスデコーダ14より割込み制御回路13へ
割込み要求を報告する。これにより、割込み制御回路1
3は、CPU11へ割込みを報告する。図2は、ファー
ムウェアの割込み処理を説明するフローチャートであ
る。CPU11は、まず、割込みの種別の判定によりど
の割込みが発生したかを読み出す(ステップS1)。そ
して、2ポートレジスタ12の割込みに相当する領域の
レジスタをリードして(ステップS2)終了ステータス
がセットされていないレジスタを捜す(ステップS
3)。その後、そのレジスタの指定される機能の処理を
受け付け(ステップS4)、終了ステータスをセットす
る(ステップS5)。このとき、メインプロセッサ20
は、処理の終了を確認する必要のあるときには、終了ス
テータスがセットされているかどうかを判定することに
より確認できる。
When writing to the register of the I / O device 10 which requires firmware processing, write to the register of the 2-port register 12 corresponding to the requested address,
Further, the address decoder 14 reports an interrupt request to the interrupt control circuit 13. As a result, the interrupt control circuit 1
3 reports an interrupt to the CPU 11. FIG. 2 is a flowchart for explaining the interrupt processing of the firmware. The CPU 11 first reads which interrupt has occurred by judging the type of interrupt (step S1). Then, the register in the area corresponding to the interrupt of the 2-port register 12 is read (step S2), and the register for which the end status is not set is searched (step S).
3). Then, the processing of the designated function of the register is accepted (step S4), and the end status is set (step S5). At this time, the main processor 20
When it is necessary to confirm the end of processing, it can be confirmed by determining whether or not the end status is set.

【0009】図3は、DMA転送を行なうI/O装置の
レジスタの割当の例を示す図である。図示のように、D
MAのアドレス/転送カウント/転送モードのようなデ
ータとして使われるレジスタへの書き込みではファーム
の割込みは発生させない。また、DMA起動/バッファ
クリア/割込みクリアなどファームの処理を要求するレ
ジスタへの書き込みについては、機能種別毎に割込みレ
ベルをまとめてファームウェアへの割込みを発生させ
る。図4は、割込みを発生させるレジスタのビットフィ
ールド例を示す図である。図示の例では、MSBに終了
フラグを配置する。そして、このフラグによりファーム
の起動、処理の終了確認ができ、制御フィールドにより
処理の種類を指定できる。
FIG. 3 is a diagram showing an example of register allocation of an I / O device for performing DMA transfer. As shown, D
Writing to a register used as data such as MA address / transfer count / transfer mode does not generate a firmware interrupt. When writing to a register that requests firmware processing such as DMA activation / buffer clear / interrupt clear, interrupt levels are grouped for each function type and an interrupt to the firmware is generated. FIG. 4 is a diagram showing an example of a bit field of a register for generating an interrupt. In the illustrated example, the end flag is placed in the MSB. Then, the flag can be used to confirm the start-up of the firmware and the end of processing, and the type of processing can be specified by the control field.

【0010】尚、上述した実施例においては、DMA制
御装置の場合について説明したが、本発明は磁気ディス
ク装置等の入出力装置及びプリンタ等の出力装置等の各
種のI/O装置10にも適用できる。即ち、DMAによ
らずにプログラム制御によりメインプロセッサ20自身
が入出力制御を行なう場合である。
In the above-described embodiment, the case of the DMA control device has been described, but the present invention is applicable to various I / O devices 10 such as an input / output device such as a magnetic disk device and an output device such as a printer. Applicable. That is, this is a case where the main processor 20 itself controls input / output by program control without using DMA.

【0011】[0011]

【発明の効果】以上説明したように、本発明のI/Oレ
ジスタアクセス方式によれば、書き込み終了ステータス
を持つ2ポートレジスタを用意し、メインプロセッサか
らのライトアクセスは書き込み終了ステータスを使って
行ない、リードアクセスは無条件に行なうようにしたの
で、少量のハードウェアによって、I/O装置のレジス
タへのアクセスを、RAMのアクセスサイクル時間内に
終了させることができ、ファームウェアの処理中にメイ
ンプロセッサは並列に別の処理を行なうことができる。
従って、低コストでシステムの処理性能を向上させるこ
とができる。
As described above, according to the I / O register access method of the present invention, a 2-port register having a write end status is prepared, and write access from the main processor is performed using the write end status. Since the read access is performed unconditionally, the access to the register of the I / O device can be completed within the access cycle time of the RAM with a small amount of hardware, and the main processor can be processed during the firmware processing. Can perform other processing in parallel.
Therefore, the processing performance of the system can be improved at low cost.

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

【図1】本発明のI/Oレジスタアクセス方式の一実施
例のブロック図である。
FIG. 1 is a block diagram of an embodiment of an I / O register access system according to the present invention.

【図2】ファームウェアの割込み処理を説明するフロー
チャートである。
FIG. 2 is a flowchart illustrating firmware interrupt processing.

【図3】I/O装置のレジスタの割当の例を示す図であ
る。
FIG. 3 is a diagram showing an example of register allocation of an I / O device.

【図4】レジスタのビットフィールド例を示す図であ
る。
FIG. 4 is a diagram showing an example of a bit field of a register.

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

10 I/O装置 11 CPU 12 2ポートレジスタ 13 割込み制御回路 14 アドレスデコーダ 20 メインプロセッサ 10 I / O device 11 CPU 12 2 port register 13 interrupt control circuit 14 address decoder 20 main processor

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 I/O装置をメインプロセッサによりレ
ジスタアクセスで制御する場合において、 前記メインプロセッサと前記I/O装置の制御装置との
双方よりアクセス可能な2ポートレジスタを用意し、 当該レジスタへのリードアクセス時には、前記制御装置
への報告は行なわずに、当該レジスタよりデータを読み
出し、 当該レジスタへのライトアクセス時には、当該レジスタ
へデータを書き込み、この書き込みの終了でライトアク
セスを終了させ、 当該ライトアクセスの前記制御装置への報告は割込み信
号で行なう一方、 前記レジスタの中に書き込み終了ステータスを用意し、 前記制御装置により書き込み終了時に当該書き込み終了
ステータスをセットし、前記メインプロセッサが前記レ
ジスタに書き込む場合に当該書き込み終了ステータスを
クリアし、 前記制御装置の割込み処理で当該書き込み終了ステータ
スを検知することで、前記I/O装置のどのアドレスへ
アクセスが来たかを判定可能とすることを特徴とするI
/Oレジスタアクセス方式。
1. When a main processor controls an I / O device by register access, a two-port register accessible by both the main processor and the control device of the I / O device is prepared, and the register is accessed. At the time of the read access, the data is read from the register without reporting to the control device, at the time of the write access to the register, the data is written to the register, and the write access is ended at the end of the writing. While the write access is reported to the control device by an interrupt signal, a write end status is prepared in the register, and the write end status is set by the control device at the end of writing, and the main processor sets the register in the register. When writing, end the writing It is possible to determine which address of the I / O device has been accessed by clearing the status and detecting the write end status in the interrupt process of the control device.
/ O register access method.
【請求項2】 前記レジスタのアドレス領域毎に複数の
アドレスへのアクセスを1つずつの割込みレベルにまと
めて前記制御装置に報告し、前記レジスタのアクセスに
アドレス領域分の数の割込みレベルを割り当てることを
特徴とする請求項1記載のI/Oレジスタアクセス方
式。
2. The access to a plurality of addresses for each address area of the register is collectively reported to the control device as one interrupt level, and the access level of the register is assigned to the access of the register. 2. The I / O register access method according to claim 1, wherein
【請求項3】 前記レジスタの特定のアドレス領域以外
のアドレスへのアクセスでは前記制御装置への報告は行
なわず、当該特定のアドレス領域へのアクセスでは前記
制御装置への報告を割込み信号により行なうことを特徴
とする請求項1又は2記載のI/Oレジスタアクセス方
式。
3. The access to an address other than a specific address area of the register does not report to the control device, and the access to the specific address area reports to the control device by an interrupt signal. 3. The I / O register access method according to claim 1, wherein
JP21867592A 1992-07-24 1992-07-24 I/o register access system Pending JPH0644193A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21867592A JPH0644193A (en) 1992-07-24 1992-07-24 I/o register access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21867592A JPH0644193A (en) 1992-07-24 1992-07-24 I/o register access system

Publications (1)

Publication Number Publication Date
JPH0644193A true JPH0644193A (en) 1994-02-18

Family

ID=16723663

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21867592A Pending JPH0644193A (en) 1992-07-24 1992-07-24 I/o register access system

Country Status (1)

Country Link
JP (1) JPH0644193A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008299425A (en) * 2007-05-29 2008-12-11 Toshiba Corp Data transfer device and data transfer method
JP2010117872A (en) * 2008-11-13 2010-05-27 Sony Corp Interrupt detection device and information processing system
GB2536658A (en) * 2015-03-24 2016-09-28 Imagination Tech Ltd Controlling data flow between processors in a processing system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008299425A (en) * 2007-05-29 2008-12-11 Toshiba Corp Data transfer device and data transfer method
JP2010117872A (en) * 2008-11-13 2010-05-27 Sony Corp Interrupt detection device and information processing system
GB2536658A (en) * 2015-03-24 2016-09-28 Imagination Tech Ltd Controlling data flow between processors in a processing system
GB2536658B (en) * 2015-03-24 2017-03-22 Imagination Tech Ltd Controlling data flow between processors in a processing system
US10387155B2 (en) 2015-03-24 2019-08-20 Imagination Technologies Limited Controlling register bank access between program and dedicated processors in a processing system

Similar Documents

Publication Publication Date Title
JPH0332818B2 (en)
US20050256998A1 (en) Bus bridge device
JPH0644193A (en) I/o register access system
US6349370B1 (en) Multiple bus shared memory parallel processor and processing method
JPH0551933B2 (en)
KR0145932B1 (en) Dma controller in high speed computer system
JPH11184761A (en) Read modify write control system
KR970002400B1 (en) Control scheme of interrupt go and done in a multiprocessor interrupt requester
JP2002278753A (en) Data processing system
JPH1011387A (en) Information processor
EP1193606B1 (en) Apparatus and method for a host port interface unit in a digital signal processing unit
JP2954006B2 (en) Emulation device and emulation method
JP2507634B2 (en) Information processing device
JPH06266630A (en) Input/output controller with trace function
US20030120862A1 (en) Controlling method of storage apparatus, and storage apparatus, disk array device, and disk controller used in the method thereof
JPH02307123A (en) Computer
KR100336743B1 (en) Processing circuit for data
JP3036590B2 (en) External device control circuit
JPH05143718A (en) Image processor
JPS6049465A (en) Data transfer method between microcomputers
JPH07114479A (en) Interruption control system
KR19990058631A (en) DM Controller
JPH0293971A (en) Memory access circuit
JPH0546460A (en) Instruction processing system
JPH0479022B2 (en)