JPH11143814A - Dma controller - Google Patents
Dma controllerInfo
- Publication number
- JPH11143814A JPH11143814A JP9327012A JP32701297A JPH11143814A JP H11143814 A JPH11143814 A JP H11143814A JP 9327012 A JP9327012 A JP 9327012A JP 32701297 A JP32701297 A JP 32701297A JP H11143814 A JPH11143814 A JP H11143814A
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- access
- time
- controller
- storage 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
Links
Landscapes
- Bus Control (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、CPU(Central
Processing Unit)を介さずに、2つの記憶装置の間で
直接的にデータを転送するダイレクト・メモリ・アクセ
ス(Direct Memory Access:DMA)を制御するDMA
コントローラに関し、特に、シングル・アドレス・モー
ドでデータを転送している場合に発生した異常状態から
復旧する機能を有するDMAコントローラに関する。The present invention relates to a CPU (Central
DMA for controlling direct memory access (DMA) for directly transferring data between two storage devices without going through a processing unit
The present invention relates to a controller, and more particularly, to a DMA controller having a function of recovering from an abnormal state that occurs when data is transferred in a single address mode.
【0002】[0002]
【従来の技術】従来から、コンピュータ・システムで
は、記憶装置同士の間でデータ転送を効率的に行うべ
く、ダイレクト・メモリ・アクセスが、広く用いられて
いる。DMAは、その記憶装置のタイプによって、2種
類に大別される。1つは、デュアル・アドレス・モード
であり、他の一つは、シングル・アドレス・モードであ
る。前者のデュアル・アドレス・モードでは、主に、2
つのRAM(Random AccessMemory)等のメモリ同士の
間でデータを転送する。後者のシングル・アドレス・モ
ードでは、主に、メモリと、ハード・ディスク等の記憶
媒体との間でデータを転送する。2. Description of the Related Art Conventionally, direct memory access has been widely used in computer systems in order to efficiently transfer data between storage devices. DMA is roughly classified into two types according to the type of the storage device. One is a dual address mode and the other is a single address mode. In the former dual address mode, 2
Data is transferred between memories such as one RAM (Random Access Memory). In the latter single address mode, data is mainly transferred between a memory and a storage medium such as a hard disk.
【0003】図6は、シングル・モード・アドレスによ
るダイレクト・メモリ・アクセスを実行するための、従
来のDMAコントローラ及びその周辺の回路を示すブロ
ック図である。シングル・アドレス・モードにおいて、
メモリ400とハード・ディスク500との間でデータ
転送をする場合、CPU600は、メインバス800を
使用する権利をデータ転送を行うための回路、即ち、D
MAコントローラ100へ委譲する。データ転送の処理
中に、DMAコントローラ100、外部バスコントロー
ラ200、I/Oコントローラ300の回路の1つに障
害が発生した場合でも、その権利をCPU600へ返還
する必要がある。そこで、CPU600は、メモリ40
0またはハード・ディスク500へのアクセスを開始す
る時に、所定の監視時間を計数するタイマーを起動す
る。そして、CPU600は、その所定時間内にアクセ
スが完了しないときには、異常が発生したとみなして、
異常事態から復旧するための処理、即ち、データ転送に
関係する回路をリセットし、メインバスの使用権を取り
戻す。FIG. 6 is a block diagram showing a conventional DMA controller and its peripheral circuits for executing direct memory access using a single mode address. In single address mode,
When data is transferred between the memory 400 and the hard disk 500, the CPU 600 sets a right to use the main bus 800 as a circuit for performing data transfer, that is, D
Delegate to MA controller 100. Even if a failure occurs in one of the circuits of the DMA controller 100, the external bus controller 200, and the I / O controller 300 during the data transfer process, it is necessary to return the right to the CPU 600. Therefore, the CPU 600
When starting the access to 0 or the hard disk 500, a timer for counting a predetermined monitoring time is started. When the access is not completed within the predetermined time, the CPU 600 determines that an abnormality has occurred, and
The processing for recovering from the abnormal situation, that is, resetting the circuits related to the data transfer, regains the right to use the main bus.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、従来の
DMAコントローラでは、アクセスの対象である記憶装
置がどのような種類であるかに拘わらず、監視時間を一
律に設定する。即ち、監視時間は、メモリへのアクセス
を監視するためにも、また、ハード・ディスクへのアク
セスを監視するためにも用いることができるようにする
べく、アクセス時間が長い(動作速度が遅い)ハード・
ディスクへのアクセスの所要時間を基準にして定められ
ている。これにより、メモリへのアクセスでは、異常状
態を検出するまでに、必要以上の時間を費やしてしまう
という問題があった。また、各回路に異常が発生したか
否かの監視、並びに、異常事態になった場合における各
回路のリセットという負荷をCPU600に課してい
る。そのために、本来であればCPUが関与しないで済
むはずであるダイレクト・メモリ・アクセスであるにも
拘わらず、CPU600が大きな役割を担わなければな
らないという問題があった。However, in the conventional DMA controller, the monitoring time is set uniformly regardless of the type of storage device to be accessed. That is, the monitoring time is long (the operation speed is slow) so that the monitoring time can be used for monitoring access to the memory and also for monitoring access to the hard disk. hard·
It is determined based on the time required for accessing the disk. As a result, there is a problem in accessing the memory that it takes more time than necessary to detect an abnormal state. In addition, a load is imposed on the CPU 600 to monitor whether an abnormality has occurred in each circuit and to reset each circuit when an abnormality occurs. For this reason, there is a problem that the CPU 600 has to play a large role in spite of direct memory access which normally should not involve the CPU.
【0005】[0005]
【課題を解決するための手段】上述した課題を解決する
ために、本発明に係るDMAコントローラは、以下の構
成を採用する。 〈構成1〉アクセス時間を異にする第1の記憶装置と第
2の記憶装置との間でのデータ転送を、上記第1の記憶
装置へアクセスする第1の転送制御装置と上記第2の記
憶装置へアクセスする第2の転送制御装置とを用いて制
御するDMAコントローラであって、上記第1の記憶装
置へのアクセスに要する時間よりも長い第1の監視時
間、及び、上記第2の記憶装置へのアクセスに要する時
間よりも長い第2の監視時間を記憶しておく監視時間記
憶回路と、上記第1の記憶装置へのアクセスまたは上記
第2へのアクセスを実行する場合に、アクセスの開始時
から実質的に経過した経過時間を計測する経過時間計測
回路と、上記第1の記憶装置へのアクセスまたは上記第
2の記憶装置へのアクセスを実行する場合における上記
経過時間が、上記実行中のアクセスに対応する上記第1
の監視時間または上記第2の監視時間に達したことを検
出する比較回路と、上記比較回路によって起動され、上
記第1の転送制御装置及び第2の転送制御装置をリセッ
トするリセット回路を有することを特徴とするDMAコ
ントローラ。In order to solve the above-mentioned problems, a DMA controller according to the present invention employs the following configuration. <Structure 1> Data transfer between the first storage device and the second storage device having different access times is performed by the first transfer control device for accessing the first storage device and the second transfer device. A DMA controller for controlling using a second transfer control device that accesses a storage device, wherein the first monitoring time is longer than a time required for accessing the first storage device, and the second controller A monitoring time storage circuit for storing a second monitoring time longer than a time required for access to the storage device, and an access when executing access to the first storage device or access to the second storage device An elapsed time measurement circuit for measuring an elapsed time substantially elapsed from the start of the operation, and the elapsed time when executing access to the first storage device or access to the second storage device, Real The first corresponding to the access in the
And a reset circuit that is activated by the comparison circuit and resets the first transfer control device and the second transfer control device. A DMA controller.
【0006】〈構成2〉構成1のDMAコントローラで
あって、さらに、上記検出が、上記第1の監視時間また
は上記第2の監視時間に関するかを判別するエラー判別
回路を有しており、上記リセット回路が、上記エラー判
別回路によって判別された転送制御装置のみをリセット
することを特徴とするDMAコントローラ。<Structure 2> The DMA controller according to Structure 1, further comprising an error determining circuit for determining whether the detection is related to the first monitoring time or the second monitoring time. A DMA controller, wherein a reset circuit resets only the transfer control device determined by the error determination circuit.
【0007】〈構成3〉構成1のDMAコントローラで
あって、さらに、上記リセット回路の動作の許否を設定
するリセット禁止回路を有することを特徴とするDMA
コントローラ。<Structure 3> The DMA controller according to Structure 1, further comprising a reset prohibition circuit for setting permission / prohibition of the operation of the reset circuit.
controller.
【0008】[0008]
【発明の実施の形態】以下、本発明のDMAコントロー
ラの実施の形態について、図面を参照しつつ説明する。
実施の形態の説明に先立ち、従来のDMAコントローラ
との差異を明確にする観点から、従来のDMAコントロ
ーラについて説明する。Embodiments of a DMA controller according to the present invention will be described below with reference to the drawings.
Prior to the description of the embodiment, a conventional DMA controller will be described from the viewpoint of clarifying the difference from the conventional DMA controller.
【0009】図7は、DMAコントローラの構成を示す
ブロック図である。以下、シングル・アドレス・モード
でのデータ転送について説明する。図7に示すように、
DMAコントローラ100は、転送設定レジスタ100
A、読出し開始アドレス・カウンタ100B、カウンタ
制御回路100C、転送データ数レジスタ100Dから
構成される。FIG. 7 is a block diagram showing the configuration of the DMA controller. Hereinafter, data transfer in the single address mode will be described. As shown in FIG.
The DMA controller 100 includes a transfer setting register 100
A, a read start address counter 100B, a counter control circuit 100C, and a transfer data number register 100D.
【0010】図8は、データ転送の動作を示すフローチ
ャートである。以下、図6に示したメモリ400からハ
ード・ディスク500へデータ転送することを想定す
る。FIG. 8 is a flowchart showing the data transfer operation. Hereinafter, it is assumed that data is transferred from the memory 400 to the hard disk 500 shown in FIG.
【0011】ステップS100: CPU600は、シ
ングル・アドレス・モードである旨、及び、メモリ40
0とハード・ディスク500との間でのDMA転送であ
る旨を転送設定レジスタ100Aに設定する。また、C
PU100は、メモリ400の読出し開始アドレスを、
読出し開始アドレス・カウンタ100Bに設定すると共
に、転送すべきデータの個数(以下、「転送データ
数」)を、データ数レジスタ100Dに設定する。ここ
では、読出し開始アドレスとして、3000hがセット
され、かつ、転送データ数として、56hがセットされ
たことを想定する。これらの設定により、以後、メイン
バス800を使用する権利は、CPU600からDMA
コントローラ100へ移る。さらに、DMAコントロー
ラ100は、外部バスコントローラ200及びI/Oコ
ントローラ300に、DMA転送を開始する旨を通知す
る。 ステップS110: DMAコントローラ100は、読
出し開始アドレス100Bにセットされた読出し開始ア
ドレス3000hを外部バスコントローラ200に渡
す。Step S100: The CPU 600 confirms that it is in the single address mode,
The transfer setting register 100A is set to indicate that the transfer is a DMA transfer between 0 and the hard disk 500. Also, C
The PU 100 sets the read start address of the memory 400 to:
The value is set in the read start address counter 100B, and the number of data to be transferred (hereinafter, referred to as "the number of data to be transferred") is set in the data number register 100D. Here, it is assumed that 3000h is set as the read start address and 56h is set as the number of transfer data. By these settings, the right to use the main bus 800 is granted from the CPU 600 to the DMA
Move to controller 100. Further, the DMA controller 100 notifies the external bus controller 200 and the I / O controller 300 that the DMA transfer is to be started. Step S110: The DMA controller 100 passes the read start address 3000h set in the read start address 100B to the external bus controller 200.
【0012】ステップS120: 外部バスコントロー
ラ200は、その読出し開始アドレスに対応するデータ
をメモリ400から読み出す。ここでは、データ12h
が読み出されたことを想定する。この読出しのタイミン
グと同時に、カウンタ制御回路100Cは、読出し開始
アドレスカウンタ100B内のアドレスを、3001h
にカウント・アップする。 ステップS130: I/Oコントローラ300は、デ
ータの転送を要求するデータ転送要求信号REQをDM
Aコントローラ100へ出力する。Step S120: The external bus controller 200 reads data corresponding to the read start address from the memory 400. Here, data 12h
It is assumed that has been read. At the same time as this read timing, the counter control circuit 100C sets the address in the read start address counter 100B to 3001h.
Count up to Step S130: The I / O controller 300 sends a data transfer request signal REQ for requesting data transfer to the DM
Output to A controller 100.
【0013】ステップS140: データ転送要求信号
REQに応答して、DMAコントローラ100は、外部
バスコントローラ200が読み出したデータ12hをI
/Oコントローラ300に出力する。I/Oコントロー
ラ200は、そのデータ12hをハード・ディスク50
0に書き込む。 ステップS150: I/Oコントローラ200は、D
MAコントローラ100へ、データ転送の正常受信を示
すデータ受信完了信号ACKを返送する。これにより、
アドレス3000hに対応するデータ12hの転送が完
了する。Step S140: In response to the data transfer request signal REQ, the DMA controller 100 converts the data 12h read by the external bus controller 200 into I
Output to the / O controller 300. The I / O controller 200 stores the data 12h in the hard disk 50
Write to 0. Step S150: The I / O controller 200
A data reception completion signal ACK indicating normal reception of data transfer is returned to the MA controller 100. This allows
The transfer of the data 12h corresponding to the address 3000h is completed.
【0014】ステップS160: 上記のステップを繰
り返すことにより、56h個のデータの転送を完了する
と、DMAコントローラ100は、割込みコントローラ
700に、全てのデータの転送が完了したことを表す割
込み信号INTを通知する。 ステップS170: 割込み信号INTに応答して、割
込みコントローラ700は、CPU600に同旨を通知
し、CPU600は、メインバス800を使用する権利
を取り戻す。Step S160: When the transfer of 56h data is completed by repeating the above steps, the DMA controller 100 notifies the interrupt controller 700 of an interrupt signal INT indicating that the transfer of all data has been completed. I do. Step S170: In response to the interrupt signal INT, the interrupt controller 700 notifies the CPU 600 of the fact, and the CPU 600 regains the right to use the main bus 800.
【0015】上述したように、データの転送中には、メ
インバス800を使用する権利が、CPU600から離
れる。万が一、データ転送に障害が発生してしまうと、
データ転送が完了せず、その結果、メインバス800を
使用する権利が、CPU600へ返還されないという事
態が起こる虞れがある。そこで、メモリやハード・ディ
スクへのアクセス中に異常が発生したか否かを知得する
必要がある。そのために、CPU600は、 それらの
記憶装置へのアクセスに要する時間よりも長い所定の監
視時間(以下、単に「監視時間」という。)内にそのア
クセスが完了したか否かを監視するために機能するタイ
マー600Aを、 記憶装置へのアクセスを開始すると
きに起動する。以下、この監視の動作について説明す
る。As described above, the right to use the main bus 800 is separated from the CPU 600 during data transfer. Should data transfer fail,
Data transfer may not be completed, and as a result, a situation may occur in which the right to use the main bus 800 is not returned to the CPU 600. Therefore, it is necessary to know whether or not an abnormality has occurred while accessing the memory or the hard disk. Therefore, the CPU 600 has a function for monitoring whether or not the access has been completed within a predetermined monitoring time (hereinafter, simply referred to as “monitoring time”) longer than the time required for accessing the storage devices. The timer 600A is activated when starting access to the storage device. Hereinafter, the operation of this monitoring will be described.
【0016】図9は、データ転送を監視する動作を示す
タイムチャートである。図9に示すように、まず、DM
Aコントローラ100は、メモリ400の読出しアドレ
ス及びその読出しアドレスが有効であることを示すスト
ローブ信号STBを出力する。このストローブ信号ST
Bが出力された直後に、CPU600は、タイマー60
0Aを起動する。起動後には、タイマー600Aは、カ
ウント・アップを続ける。FIG. 9 is a time chart showing an operation of monitoring data transfer. As shown in FIG.
A controller 100 outputs a read address of memory 400 and a strobe signal STB indicating that the read address is valid. This strobe signal ST
Immediately after B is output, the CPU 600
Start 0A. After the activation, the timer 600A continues counting up.
【0017】これらのアドレス信号ADRS及びストロ
ーブ信号STBに基づき、外部バスコントローラ200
は、そのアドレスADRSに対応するデータDATA
を、メモリ400から読み出そうとする。外部バスコン
トローラ200は、そのデータDATAを正常に読み出
すことができた場合には、メモリ400へのアクセスを
正常に終了したことを示すアクセス応答信号RDYを割
込みコントローラ700へ出力する。CPU600は、
割込みコントローラ700からこのアクセス応答信号R
DYを受信することより、タイマー600Aのカウント
・アップを中止し、カウント値をクリア、即ち、0にす
る。Based on these address signal ADRS and strobe signal STB, external bus controller 200
Is the data DATA corresponding to the address ADRS.
Is read from the memory 400. When the data DATA can be read normally, the external bus controller 200 outputs to the interrupt controller 700 an access response signal RDY indicating that the access to the memory 400 has been normally completed. The CPU 600
The access response signal R from the interrupt controller 700
By receiving DY, the timer 600A stops counting up and clears the count value, that is, sets the count value to zero.
【0018】万が一、外部バスコントローラ200がメ
モリ400へのアクセスに失敗し、アクセス応答信号R
DYを出力することができないと、タイマー600Aは
監視時間に達する。その場合には、CPU600は、D
MAコントローラ100の動作を中止させるための動作
中止信号ABTをDMAコントローラ100へ出力した
後、メインバス800等の状態を確認してから、リセッ
ト信号RSTを使って、DMAコントローラ100、外
部バスコントローラ200、I/Oコントローラ300
等のコントローラをリセットする。リセットされると、
各コントローラは、それぞれ内部レジスタ等を初期化
し、再び、データ転送を実行することが可能となる。In the unlikely event that the external bus controller 200 fails to access the memory 400, the access response signal R
If DY cannot be output, the timer 600A reaches the monitoring time. In that case, the CPU 600
After outputting an operation stop signal ABT for stopping the operation of the MA controller 100 to the DMA controller 100, the state of the main bus 800 and the like is checked, and then the DMA controller 100 and the external bus controller 200 are reset by using the reset signal RST. , I / O controller 300
Reset the controller. When reset,
Each controller initializes an internal register and the like, and can execute data transfer again.
【0019】このように、従来のDMAコントローラ
は、アクセスの対象に拘わらず監視時間を一義的に定め
ており、また、監視時間の計数はCPUによって実行さ
れていた。したがって、上述したように、異常状態を検
出するまでに必要以上に時間を費やしてしまう、CPU
の負荷が大きくなってしまう等の問題があった。As described above, in the conventional DMA controller, the monitoring time is uniquely determined regardless of the access target, and the monitoring time is counted by the CPU. Therefore, as described above, the CPU spends more time than necessary before detecting an abnormal state.
There is a problem that the load on the device increases.
【0020】そこで、本発明のDMAコントローラの具
体例は、以下のように構成され、かつ、動作する。以
下、本発明のDMAコントローラの実施の形態につい
て、図面を参照しつつ説明する。Therefore, a specific example of the DMA controller according to the present invention is configured and operates as follows. Hereinafter, embodiments of a DMA controller according to the present invention will be described with reference to the drawings.
【0021】《具体例1》 〈具体例1の構成〉図1は、具体例1のDMAコントロ
ーラの構成を示すブロック図である。以下の説明では、
具体例のDMAコントローラの周辺回路は、従来の周辺
回路の参照番号を用いて参照する。具体例1のDMAコ
ントローラ1は、転送設定レジスタ1A、読出し開始ア
ドレスカウンタ1B、カウンタ制御回路1C、転送デー
タ数レジスタ1D、経過時間計測回路1E、監視時間記
憶回路1F、比較回路1G、外部リセット回路1H、I
/Oリセット回路1Jから構成される。Embodiment 1 <Configuration of Embodiment 1> FIG. 1 is a block diagram showing the configuration of a DMA controller according to Embodiment 1. In the following description,
The peripheral circuits of the DMA controller in the specific example are referred to using the reference numbers of the conventional peripheral circuits. The DMA controller 1 of the specific example 1 includes a transfer setting register 1A, a read start address counter 1B, a counter control circuit 1C, a transfer data number register 1D, an elapsed time measurement circuit 1E, a monitoring time storage circuit 1F, a comparison circuit 1G, and an external reset circuit. 1H, I
/ O reset circuit 1J.
【0022】転送設定レジスタ1A、読出し開始アドレ
スカウンタ1B、カウンタ制御回路1C、及び、転送デ
ータ数レジスタ1Dの構成及び動作は、それぞれ、図7
で説明した従来の転送設定レジスタ100A、読出し開
始アドレスカウンタ100B、カウンタ制御回路100
C、及び、転送データ数レジスタ100Dの構成及び動
作と同じである。The configuration and operation of the transfer setting register 1A, read start address counter 1B, counter control circuit 1C, and transfer data number register 1D are shown in FIG.
The transfer setting register 100A, read start address counter 100B, counter control circuit 100
C and the configuration and operation of the transfer data number register 100D.
【0023】経過時間計測回路1Eは、記憶装置へのア
クセスの開始時に、カウンタ制御回路1Cによって、経
過時間の計測を開始することを許可される回路である。
監視時間記憶回路1Fは、記憶装置へのアクセスに要す
る時間よりも長い時間を監視時間として記憶する回路で
ある。比較回路1Gは、経過時間計測回路1Eによって
計測される経過時間と、監視時間記憶回路1Fに記憶さ
れている監視時間とを比較し、経過時間が監視時間を超
えたときには、割込みコントローラ700へ割込み要求
信号INTを出力すると共に、外部リセット回路1H及
びI/Oリセット回路1Jを起動する回路である。比較
回路1Gによって起動されると、外部リセット回路1H
及びI/Oリセット回路1Jは、それぞれ、外部バスコ
ントローラ200及びI/Oコントローラ300をリセ
ットする回路である。The elapsed time measuring circuit 1E is a circuit that is permitted to start measuring the elapsed time by the counter control circuit 1C when the access to the storage device is started.
The monitoring time storage circuit 1F is a circuit that stores a time longer than a time required for accessing the storage device as a monitoring time. The comparison circuit 1G compares the elapsed time measured by the elapsed time measurement circuit 1E with the monitoring time stored in the monitoring time storage circuit 1F, and interrupts the interrupt controller 700 when the elapsed time exceeds the monitoring time. This circuit outputs the request signal INT and activates the external reset circuit 1H and the I / O reset circuit 1J. When activated by the comparison circuit 1G, the external reset circuit 1H
The I / O reset circuit 1J is a circuit for resetting the external bus controller 200 and the I / O controller 300, respectively.
【0024】ここで、監視時間記憶回路1Fの構成につ
いて説明する。監視時間記憶回路1Fは、監視時間を記
憶する監視時間レジスタ1F−a、シフトレジスタ1F
−b、マルチプレクサ1F−cからなる。監視時間レジ
スタ1F−aには、ハードディスク500へのアクセス
を監視するための監視時間が設定される。ハードディス
ク500のアクセス時間は、メモリ5のアクセス時間よ
りも長い。従って、この監視時間は、メモリ400を監
視するための監視時間として用いるには長過ぎる。そこ
で、ハードディスク500へアクセスする場合には、こ
の監視時間をそのまま用いるが、メモリ400へのアク
セスの場合には、この監視時間をそのまま用いずに、シ
フトレジスタ1F−bを使って2分の1、4分の1等に
短縮した後に用いる。元の監視時間(以下、「ハード・
ディスク用監視時間」という。)が用いられるか、ある
いは、2分の1等に短縮した監視時間(以下、「メモリ
用監視時間」という。)が用いられるかは、アクセスす
る対象がメモリ400であるか、あるいは、ハードディ
スク500であるかに依存する。そこで、アクセスする
対象に関する信号を元に、マルチプレクサ1F−cでい
ずれかの監視時間を選択する。Here, the configuration of the monitoring time storage circuit 1F will be described. The monitoring time storage circuit 1F includes a monitoring time register 1F-a for storing a monitoring time, a shift register 1F
-B, the multiplexer 1F-c. A monitoring time for monitoring access to the hard disk 500 is set in the monitoring time register 1F-a. The access time of the hard disk 500 is longer than the access time of the memory 5. Therefore, this monitoring time is too long to be used as a monitoring time for monitoring the memory 400. Therefore, when accessing the hard disk 500, the monitoring time is used as it is, but when accessing the memory 400, the monitoring time is not used as it is, and the shift register 1F-b is used instead of using the monitoring time. Use after shortening to 1/4 etc. Original monitoring time (hereinafter referred to as “hard
Disk monitoring time. " ) Or a monitoring time shortened by half (hereinafter referred to as “memory monitoring time”) is used depending on whether the access target is the memory 400 or the hard disk 500. It depends on whether Therefore, one of the monitoring times is selected by the multiplexer 1F-c based on the signal regarding the access target.
【0025】〈具体例1の動作〉以下、具体例1のDM
Aコントローラ1の動作について、図2及び図3に沿っ
て説明する。なお、メモリ400からハードディスク5
00へのデータ転送を想定する。<Operation of Embodiment 1> Hereinafter, the DM of Embodiment 1 will be described.
The operation of the A controller 1 will be described with reference to FIGS. It should be noted that the hard disk 5
Assume data transfer to 00.
【0026】〈転送の前半〉 ステップS10: CPU600は、DMAコントロー
ラ1内の転送設定レジスタ1Aに、シングルアドレスモ
ード、及び、メモリ400からハードディスク500へ
のDMA転送の旨を設定する。また、CPU600は、
メモリ400の読出し開始アドレスを読出し開始アドレ
スカウンタ1Bに設定し、かつ、監視時間を監視時間記
憶回路1Fに設定する。なお、DMAコントローラ1
は、外部バスコントローラ200及びI/Oバスコント
ローラ300にDMA転送の開始を通知する。これ以
後、メインバス800の使用権は、CPU600からD
MAコントローラ1へ移譲される。<First half of transfer> Step S10: The CPU 600 sets the single address mode and the effect of the DMA transfer from the memory 400 to the hard disk 500 in the transfer setting register 1A in the DMA controller 1. In addition, the CPU 600
The read start address of the memory 400 is set in the read start address counter 1B, and the monitoring time is set in the monitoring time storage circuit 1F. The DMA controller 1
Notifies the external bus controller 200 and the I / O bus controller 300 of the start of the DMA transfer. Thereafter, the right to use the main bus 800 is
Transferred to MA controller 1.
【0027】ステップS11: 図3に示すように、D
MAコントローラ1は、読出し開始アドレスカウンタ1
Bに設定された読出しアドレスADRSを外部バスコン
トローラ200を介してメモリ400へ出力すると同時
に、その出力したアドレスADRSが有効であることを
示すストローブ信号STBを有効にする。 ステップS12: DMAコントローラ1は、読出しア
ドレスADRSとストローブ信号STBを出力すると、
直ちに、経過時間計測回路1Eを起動する。これ以後、
経過時間計測回路1Eは、クロックCLKに同期して、
即ち、クロック信号の立ち上がりエッジ、あるいは、立
ち下がりエッジ毎に、カウント・アップする。Step S11: As shown in FIG.
The MA controller 1 has a read start address counter 1
The read address ADRS set to B is output to the memory 400 via the external bus controller 200, and at the same time, the strobe signal STB indicating that the output address ADRS is valid is made valid. Step S12: When the DMA controller 1 outputs the read address ADRS and the strobe signal STB,
Immediately, the elapsed time measurement circuit 1E is started. After this,
The elapsed time measuring circuit 1E synchronizes with the clock CLK,
That is, the counting is performed at every rising edge or falling edge of the clock signal.
【0028】ステップS13: 外部バスコントローラ
200は、メモリ400からのデータの読出しを終える
と、メモリ400へのアクセスの完了を示すアクセス応
答信号RDYをDMAコントローラ1へ出力する。 ステップS14: DMAコントローラ1では、メモリ
用の監視時間が終了する前に、アクセス応答信号RDY
を受信すると、カウンタ制御回路1Cが、経過時間計測
回路1Eをクリアする。これにより、経過時間計測回路
1Eは、メモリ用の監視時間に達しないので、比較回路
1Gは、外部リセット回路1H及びI/Oリセット回路
1Jを起動しない。このクリアの動作と同時に、DMA
コントローラ1は、外部バスコントローラ200から読
出したデータを受け取る。Step S13: After finishing reading data from the memory 400, the external bus controller 200 outputs an access response signal RDY indicating completion of access to the memory 400 to the DMA controller 1. Step S14: The DMA controller 1 sets the access response signal RDY before the end of the monitoring time for the memory.
Is received, the counter control circuit 1C clears the elapsed time measurement circuit 1E. As a result, the elapsed time measurement circuit 1E does not reach the monitoring time for the memory, so that the comparison circuit 1G does not activate the external reset circuit 1H and the I / O reset circuit 1J. At the same time as this clear operation, the DMA
Controller 1 receives data read from external bus controller 200.
【0029】ステップS15: DMAコントローラ1
が、メモリ用監視時間が終了するまでに、アクセス応答
信号RDYを受信しないときには、経過時間計測回路1
Eは、メモリ用監視時間に達する。これを検出すると、
比較回路1Gは、外部リセット回路1H、及び、I/O
リセット回路1Jを起動すると共に、割込みコントロー
ラ700へ、タイムアウト、即ち、メモリ用監視時間が
満了した旨を表す割込み要求信号INTを出力する。Step S15: DMA controller 1
However, when the access response signal RDY is not received before the memory monitoring time ends, the elapsed time measurement circuit 1
E reaches the monitoring time for the memory. When this is detected,
The comparison circuit 1G includes an external reset circuit 1H and an I / O
In addition to activating the reset circuit 1J, the reset circuit 1J outputs to the interrupt controller 700 a timeout, that is, an interrupt request signal INT indicating that the memory monitoring time has expired.
【0030】ステップS16: 外部リセット回路1H
及びI/Oリセット回路1Jは、それぞれ、外部バスコ
ントローラ200及びI/Oバスコントローラ300を
リセットする。 ステップS17: 割り込み要求信号INTの受信、及
び、外部リセット回路1H並びにI/Oリセット回路1
Jのリセットにより、CPU600は、メインバスを使
用する権利を取り戻す。Step S16: External reset circuit 1H
The I / O reset circuit 1J resets the external bus controller 200 and the I / O bus controller 300, respectively. Step S17: Reception of the interrupt request signal INT, the external reset circuit 1H and the I / O reset circuit 1
By resetting J, CPU 600 regains the right to use the main bus.
【0031】〈転送の後半〉 ステップS18: 読出しデータを受け取ると、DMA
コントローラ1は、再びストローブ信号STBを有効に
し、経過時間計測回路1Eを起動する。以後、経過時間
計測回路1Eは、クロックCLKに同期してカウント・
アップを続ける。 ステップS19: I/Oコントローラ300からのデ
ータ転送要求信号REQに応答して、DMAコントロー
ラ1は、読出しデータをI/Oコントローラ300へ出
力し、さらに、I/Oコントローラ300は、ハード・
ディスク500にそのデータを書き込む。 ステップS20: I/Oコントローラ300は、ハー
ド・ディスク500へのアクセスの完了を示すアクセス
応答信号RDYをDMAコントローラ1へ出力する。<Second half of transfer> Step S18: When read data is received, DMA
The controller 1 makes the strobe signal STB valid again and activates the elapsed time measuring circuit 1E. Thereafter, the elapsed time measurement circuit 1E counts and synchronizes with the clock CLK.
Continue up. Step S19: In response to the data transfer request signal REQ from the I / O controller 300, the DMA controller 1 outputs read data to the I / O controller 300. Further, the I / O controller 300
The data is written to the disk 500. Step S20: The I / O controller 300 outputs an access response signal RDY indicating completion of access to the hard disk 500 to the DMA controller 1.
【0032】ステップS21: DMAコントローラ1
が、ハード・ディスク用監視時間が終了する前に、アク
セス応答信号RDYを受信すると、カウンタ制御回路1
Cは、経過時間計測回路1Eをクリアする。これによ
り、経過時間計測回路1Eは、ハード・ディスク用監視
時間に達しないので、比較回路1Gは、外部リセット回
路1H、及び、I/Oリセット回路1Jを起動しない。 ステップS22: DMAコントローラ1が、ハード・
ディスク用監視時間が終了するまでに、アクセス応答信
号RDYを受信しないときには、経過時間計測回路1E
は、監視時間に達する。これを検出すると、比較回路1
Gは、外部リセット回路1H、及び、I/Oリセット回
路1Jを起動すると共に、割込みコントローラ700
へ、タイムアウト、即ち、ハード・ディスク用監視時間
が満了した旨を表す割込み要求信号INTを出力する。Step S21: DMA controller 1
Receives the access response signal RDY before the end of the hard disk monitoring time, the counter control circuit 1
C clears the elapsed time measurement circuit 1E. As a result, the elapsed time measurement circuit 1E does not reach the hard disk monitoring time, so the comparison circuit 1G does not activate the external reset circuit 1H and the I / O reset circuit 1J. Step S22: The DMA controller 1
If the access response signal RDY is not received before the disk monitoring time ends, the elapsed time measuring circuit 1E
Reaches the monitoring time. When this is detected, the comparison circuit 1
G activates the external reset circuit 1H and the I / O reset circuit 1J, and the interrupt controller 700
, An interrupt request signal INT indicating that the hard disk monitoring time has expired is output.
【0033】ステップS23: 外部リセット回路1
H、及び、I/Oリセット回路1Jは、それぞれ、外部
バスコントローラ200、及び、I/Oバスコントロー
ラ300をリセットする。 ステップS24: 割込み要求信号INTの受信、及
び、外部リセット回路1H並びにI/Oリセット回路1
Jによるリセットにより、CPU600は、メインバス
800を使用する権利を取り戻す。Step S23: External reset circuit 1
H and the I / O reset circuit 1J reset the external bus controller 200 and the I / O bus controller 300, respectively. Step S24: Receiving the interrupt request signal INT, the external reset circuit 1H and the I / O reset circuit 1
By the reset by J, the CPU 600 regains the right to use the main bus 800.
【0034】〈具体例1の効果〉上述したように、具体
例1のDMAコントローラは、アクセスする対象に対応
して、監視時間を設定する、即ち、メモリ用監視時間、
並びに、ハード・ディスク用監視時間を設定する。これ
により、従来の場合と異なり、メモリへのアクセスを監
視するのに、ハード・ディスクへのアクセスを監視する
のと同じように長い時間、待つ必要がなくなる。この結
果、万が一、メモリへのアクセスにおいて異常が生じた
場合であっても、従来の場合よりも早期にメインバスを
使用する権利をCPUへ返還することが可能となる。さ
らに、従来の場合と異なり、外部リセット回路及びI/
Oリセット回路をリセットするための信号は、CPUに
よって出力されるのではなく、DMAコントローラによ
って出力される。この結果、CPUの負荷を軽減するこ
とができる。<Effects of Embodiment 1> As described above, the DMA controller of Embodiment 1 sets a monitoring time corresponding to an access target, that is, a memory monitoring time,
Also, a monitoring time for the hard disk is set. This eliminates the need to wait for as long a time as monitoring the access to the memory, as in the case of monitoring the access to the hard disk, unlike the conventional case. As a result, even if an error occurs in accessing the memory, the right to use the main bus can be returned to the CPU earlier than in the conventional case. Further, unlike the conventional case, the external reset circuit and the I / O
The signal for resetting the O reset circuit is output not by the CPU but by the DMA controller. As a result, the load on the CPU can be reduced.
【0035】なお、本発明のDMAコントローラは、ア
クセス時間を異にする様々な記憶装置同士の間でのデー
タ転送に適用することができる。経過時間計測回路は、
第1の転送制御装置または第2の転送制御装置によるア
クセスの所要時間を計測する機能を有していれば足り、
その構成は、ソフトウェアによってもハードウェアによ
っても実現することができる。監視時間記憶回路は、メ
モリ用監視時間及びハードウェア用監視時間を各々、格
納しておくことも可能である。The DMA controller of the present invention can be applied to data transfer between various storage devices having different access times. The elapsed time measurement circuit
It is only necessary to have a function of measuring the time required for access by the first transfer control device or the second transfer control device,
The configuration can be realized by software or hardware. The monitoring time storage circuit can store the monitoring time for the memory and the monitoring time for the hardware, respectively.
【0036】《具体例2》以下、具体例2のDMAコン
トローラについて説明する。具体例2のDMAコントロ
ーラの主な特徴点は、異常を生じた回路が、メモリであ
るか、あるいは、ハード・ディスクであるかを切り分
け、異常を生じた回路のみをリセットすることである。<< Specific Example 2 >> Hereinafter, a DMA controller of a specific example 2 will be described. The main feature of the DMA controller of the specific example 2 is that the circuit in which the abnormality has occurred is a memory or a hard disk, and only the circuit in which the abnormality has occurred is reset.
【0037】図4は、具体例2のDMAコントローラの
構成を示すブロック図である。具体例2のDMAコント
ローラの主要な構成は、具体例1のDMAコントローラ
の構成と同じである。以下、その特徴的な回路を中心に
説明する。FIG. 4 is a block diagram showing the configuration of the DMA controller according to the second embodiment. The main configuration of the DMA controller of the specific example 2 is the same as the configuration of the DMA controller of the specific example 1. Hereinafter, the characteristic circuit will be mainly described.
【0038】〈具体例2の構成〉具体例2のDMAコン
トローラは、具体例1のDMAコントローラにエラー判
別回路1Kを追加されている。このエラー判別回路1K
は、読出し・書込み信号R/W、ストローブ信号ST
B、及び、データ転送要求信号REQを入力される。エ
ラー判別回路1Kは、これらの信号を元に、メモリ40
0及びハード・ディスク500のいずれに現在アクセス
しているか、そのアクセスは読出し及び書込みのいずれ
であるか、並びに、そのアクセス中に異常が発生したか
否かを判断する。<Configuration of Specific Example 2> In the DMA controller of specific example 2, an error determination circuit 1K is added to the DMA controller of specific example 1. This error determination circuit 1K
Are read / write signal R / W, strobe signal ST
B and the data transfer request signal REQ. The error discriminating circuit 1K, based on these signals,
0 and the hard disk 500 are currently accessed, whether the access is read or write, and whether an error has occurred during the access.
【0039】〈具体例2の動作〉以下、具体例1の場合
と同様に、メモリ400からハード・ディスク500へ
DMA転送することを想定して説明する。メモリ400
へアクセスしている場合に、メモリ用監視時間内にアク
セス応答信号RDYが入力されない場合には、比較回路
1Gは、割込み要求信号INTをCPU600へ出力す
る。一方で、エラー判別回路1Kは、アクセス応答信号
RDYが無いこと、及び、読出し・書込み信号R/Wが
読出しを表していることに基づき、メモリ400からの
読出し動作に異常が発生したと判断する。この判断に基
づき、エラー判別回路1Kは、外部リセット回路1Hの
みを起動し、I/Oリセット回路1Jを起動しない。こ
れにより、外部リセット回路1Hは、外部バスコントロ
ーラ200をリセットする。<Operation of Specific Example 2> Hereinafter, as in the case of Specific Example 1, description will be made assuming that DMA transfer is performed from the memory 400 to the hard disk 500. Memory 400
When the access response signal RDY is not input within the monitoring time for the memory when the access is made, the comparison circuit 1G outputs the interrupt request signal INT to the CPU 600. On the other hand, error determination circuit 1K determines that an error has occurred in the read operation from memory 400 based on the absence of access response signal RDY and the fact that read / write signal R / W indicates a read. . Based on this determination, the error determination circuit 1K activates only the external reset circuit 1H and does not activate the I / O reset circuit 1J. As a result, the external reset circuit 1H resets the external bus controller 200.
【0040】上記の場合とは異なり、ハード・ディスク
500へのアクセス中に、ハード・ディスク用監視時間
内にアクセス応答信号RDYが入力されない場合には、
比較回路1Gは、割込み要求信号INTをCPU600
へ出力する。一方で、エラー判別回路1Kは、データ転
送要求信号REQが無いこと、及び、読出し・書込み信
号R/Wが書込みを表していることに基づき、ハード・
ディスク500への書込み動作に異常が発生したと判断
する。この判断に基づき、エラー判別回路1Kは、I/
Oリセット回路1Jのみを起動し、外部リセット回路1
Hを起動しない。この結果、I/Oリセット回路1J
は、I/Oコントローラ300をリセットする。Unlike the above case, if the access response signal RDY is not input within the hard disk monitoring time while accessing the hard disk 500,
The comparison circuit 1G outputs the interrupt request signal INT to the CPU 600
Output to On the other hand, based on the absence of the data transfer request signal REQ, and the fact that the read / write signal R / W indicates writing,
It is determined that an error has occurred in the write operation to the disk 500. Based on this determination, the error determination circuit 1K
Only the O reset circuit 1J is activated and the external reset circuit 1
Do not start H. As a result, the I / O reset circuit 1J
Resets the I / O controller 300.
【0041】〈具体例2の効果〉上述したように、具体
例2のDMAコントローラは、動作中に異常を発生した
回路のみをリセットする。これにより、リセットをする
必要が無い回路をリセットしないので、リセット動作の
ための電力を無駄に消費することを回避することができ
る。<Effects of the Second Embodiment> As described above, the DMA controller of the second embodiment resets only a circuit in which an abnormality has occurred during operation. As a result, since a circuit that does not need to be reset is not reset, it is possible to avoid wasting power for the reset operation.
【0042】なお、エラー検出回路に入力される信号
は、アクセスする対象がいずれの転送制御装置であるか
を判別するのに役立つ信号であれば、そのような信号で
代用することが可能である。It should be noted that a signal input to the error detection circuit can be substituted with such a signal as long as it is a signal useful for determining which transfer control device is to be accessed. .
【0043】《具体例3》以下、具体例3のDMAコン
トローラについて説明する。具体例3のDMAコントロ
ーラの主な特徴点は、リセット禁止レジスタによって、
外部リセット回路1H及びI/Oリセット回路1Jの動
作を禁止することである。図5は、具体例3のDMAコ
ントローラの構成を示すブロック図である。具体例3の
DMAコントローラの構成は、具体例1及び具体例2の
DMAコントローラの構成と概ね同じである。以下、そ
の特徴的な構成を中心に説明する。<< Specific Example 3 >> The DMA controller of the specific example 3 will be described below. The main feature of the DMA controller of the specific example 3 is that the reset inhibit register
This is to inhibit the operation of the external reset circuit 1H and the I / O reset circuit 1J. FIG. 5 is a block diagram illustrating the configuration of the DMA controller according to the third embodiment. The configuration of the DMA controller of the specific example 3 is substantially the same as the configuration of the DMA controllers of the specific examples 1 and 2. Hereinafter, the characteristic configuration will be mainly described.
【0044】〈具体例3の構成〉具体例3のDMAコン
トローラは、具体例1のDMAコントローラにリセット
禁止回路1Lを追加されている。このリセット禁止回路
1Lは、DMA転送の開始時に、CPU600によっ
て、外部リセット回路1H、及び、I/Oリセット回路
1Jの動作を許可するか禁止するかを設定される。その
設定に応じて、監視時間が経過した時に、外部リセット
回路1H、及び、I/Oリセット回路1Jは、従来の動
作、即ち、CPU600に割込み要求信号INTのみを
通知する動作、または、本発明の動作、即ち、割込み要
求信号INTを通知する動作及び外部バスコントローラ
200またはI/Oコントローラ300をリセットする
動作を実施する。<Configuration of Specific Example 3> In the DMA controller of specific example 3, a reset prohibition circuit 1L is added to the DMA controller of specific example 1. This reset prohibition circuit 1L is set by the CPU 600 to permit or prohibit the operation of the external reset circuit 1H and the I / O reset circuit 1J at the start of the DMA transfer. According to the setting, when the monitoring time has elapsed, the external reset circuit 1H and the I / O reset circuit 1J perform the conventional operation, that is, the operation of notifying the CPU 600 of only the interrupt request signal INT, or the present invention. , Ie, the operation of notifying the interrupt request signal INT and the operation of resetting the external bus controller 200 or the I / O controller 300.
【0045】〈具体例3の動作〉リセット禁止回路1L
が、外部リセット回路1H及びI/Oリセット回路1J
の動作を許可するように設定された場合には、リセット
禁止回路1Lは、比較回路1Gが外部リセット回路1H
及びI/Oリセット回路1Jを起動することを許可す
る。従って、計測している経過時間が監視時間を経過す
ると、上述したように、比較回路1Gは、割込み要求信
号INTをCPUへ出力すると共に、外部リセット回路
1H、及び、I/Oリセット回路1Jを起動する。これ
により、外部バスコントローラ200及びI/Oコント
ローラ300は、リセットされる。<Operation of Specific Example 3> Reset Prohibition Circuit 1L
Are the external reset circuit 1H and the I / O reset circuit 1J
Is set to permit the operation of the external reset circuit 1H, the reset inhibit circuit 1L
And activating the I / O reset circuit 1J. Therefore, when the measured elapsed time exceeds the monitoring time, as described above, the comparison circuit 1G outputs the interrupt request signal INT to the CPU, and simultaneously outputs the external reset circuit 1H and the I / O reset circuit 1J. to start. As a result, the external bus controller 200 and the I / O controller 300 are reset.
【0046】一方、リセット禁止回路1Lが、外部リセ
ット回路1H及びI/Oリセット回路1Jの動作を禁止
するように設定された場合には、リセット禁止回路1L
は、比較回路1Gが外部リセット回路1H及びI/Oリ
セット回路1Jを起動することを禁止する。従って、計
測している経過時間が監視時間を経過すると、従来と同
様に、比較回路1Gは、外部リセット回路1H及びI/
Oリセット回路1Jを起動することなく、割込み要求信
号INTをCPU600へ出力する。これにより、CP
U600は、メモリ400またはハード・ディスク50
0に異常が発生したことを知得し、外部リセット回路1
H及びI/Oリセット回路1Jをリセットする。On the other hand, when the reset inhibit circuit 1L is set to inhibit the operation of the external reset circuit 1H and the I / O reset circuit 1J, the reset inhibit circuit 1L
Prohibits the comparison circuit 1G from activating the external reset circuit 1H and the I / O reset circuit 1J. Therefore, when the elapsed time that has been measured exceeds the monitoring time, the comparison circuit 1G outputs the external reset circuit 1H and the I / O
An interrupt request signal INT is output to the CPU 600 without activating the O reset circuit 1J. Thereby, the CP
U600 is either memory 400 or hard disk 50
0, the external reset circuit 1
H and the I / O reset circuit 1J are reset.
【0047】〈具体例3の効果〉上述したように、具体
例3のDMAコントローラは、具体例1または具体例2
の動作と、従来の動作とを選択することができる。これ
により、異常が発生した場合における復旧処理、即ち、
リセットの動作を、CPU側に委ねることとDMAコン
トローラ側に委ねることを切り換えることができる。<Effect of Specific Example 3> As described above, the DMA controller of the specific example 3 is different from the specific example 1 or the specific example 2.
And the conventional operation can be selected. As a result, a recovery process when an abnormality occurs, that is,
It is possible to switch between leaving the reset operation to the CPU side and leaving it to the DMA controller side.
【0048】なお、リセット禁止回路は、リセット回路
の許否を設定することができれば足りるので、例えば、
許否を設定するための信号を保持するレジスタやディッ
プスイッチ等で構成することが可能である。The reset prohibition circuit only needs to be able to set the permission or rejection of the reset circuit.
It is possible to use a register or a DIP switch for holding a signal for setting permission / denial.
【図1】具体例1のDMAコントローラの構成を示すブ
ロック図である。FIG. 1 is a block diagram illustrating a configuration of a DMA controller according to a first embodiment.
【図2】具体例1のDMA転送の動作フローチャートで
ある。FIG. 2 is an operation flowchart of a DMA transfer of a specific example 1;
【図3】具体例1のデータ転送の監視動作を示すタイム
チャートである。FIG. 3 is a time chart illustrating a data transfer monitoring operation of a specific example 1;
【図4】具体例2のDMAコントローラの構成を示すブ
ロック図である。FIG. 4 is a block diagram illustrating a configuration of a DMA controller according to a specific example 2.
【図5】具体例3のDMAコントローラの構成を示すブ
ロック図である。FIG. 5 is a block diagram illustrating a configuration of a DMA controller according to a third embodiment;
【図6】従来のDMAコントローラの回路の構成を示す
ブロック図である。FIG. 6 is a block diagram showing a circuit configuration of a conventional DMA controller.
【図7】従来のDMAコントローラの構成を示すブロッ
ク図である。FIG. 7 is a block diagram showing a configuration of a conventional DMA controller.
【図8】従来のDMA転送の動作フローチャートであ
る。FIG. 8 is an operation flowchart of a conventional DMA transfer.
【図9】従来のデータ転送の監視動作を示すタイムチャ
ートである。FIG. 9 is a time chart showing a conventional data transfer monitoring operation.
1E 経過時間計測回路 1F 監視時間記憶回路 1G 比較回路 1H 外部リセット回路 1J I/Oリセット回路 1E Elapsed time measurement circuit 1F Monitoring time storage circuit 1G Comparison circuit 1H External reset circuit 1J I / O reset circuit
Claims (3)
と第2の記憶装置との間でのデータ転送を、前記第1の
記憶装置へアクセスする第1の転送制御装置と前記第2
の記憶装置へアクセスする第2の転送制御装置とを用い
て制御するDMAコントローラであって、 前記第1の記憶装置へのアクセスに要する時間よりも長
い第1の監視時間、及び、前記第2の記憶装置へのアク
セスに要する時間よりも長い第2の監視時間を記憶して
おく監視時間記憶回路と、 前記第1の記憶装置へのアクセスまたは前記第2へのア
クセスを実行する場合に、アクセスの開始時から実質的
に経過した経過時間を計測する経過時間計測回路と、 前記第1の記憶装置へのアクセスまたは前記第2の記憶
装置へのアクセスを実行する場合における前記経過時間
が、前記実行中のアクセスに対応する前記第1の監視時
間または前記第2の監視時間に達したことを検出する比
較回路と、 前記比較回路によって起動され、前記第1の転送制御装
置及び第2の転送制御装置をリセットするリセット回路
を有することを特徴とするDMAコントローラ。1. A data transfer between a first storage device and a second storage device having different access times is performed by a first transfer control device that accesses the first storage device and a second transfer device that accesses the first storage device.
A second transfer control device that accesses the first storage device, wherein the first transfer time is longer than the time required to access the first storage device; A monitoring time storage circuit for storing a second monitoring time longer than a time required for accessing the storage device; and performing access to the first storage device or access to the second storage device. An elapsed time measuring circuit that measures an elapsed time substantially elapsed from the start of the access, and the elapsed time when executing access to the first storage device or access to the second storage device, A comparison circuit for detecting that the first monitoring time or the second monitoring time corresponding to the access being executed has been reached; and a first transfer activated by the comparison circuit and the first transfer A DMA controller comprising a reset circuit for resetting a control device and a second transfer control device.
って、 さらに、前記検出が、前記第1の監視時間または前記第
2の監視時間に関するかを判別するエラー判別回路を有
しており、 前記リセット回路が、前記エラー判別回路によって判別
された転送制御装置のみをリセットすることを特徴とす
るDMAコントローラ。2. The DMA controller according to claim 1, further comprising an error determination circuit that determines whether the detection is related to the first monitoring time or the second monitoring time. A DMA controller, wherein a reset circuit resets only the transfer control device determined by the error determination circuit.
って、 さらに、前記リセット回路の動作の許否を設定するリセ
ット禁止回路を有することを特徴とするDMAコントロ
ーラ。3. The DMA controller according to claim 1, further comprising a reset prohibition circuit for setting whether or not the reset circuit operates.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9327012A JPH11143814A (en) | 1997-11-12 | 1997-11-12 | Dma controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9327012A JPH11143814A (en) | 1997-11-12 | 1997-11-12 | Dma controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH11143814A true JPH11143814A (en) | 1999-05-28 |
Family
ID=18194336
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9327012A Pending JPH11143814A (en) | 1997-11-12 | 1997-11-12 | Dma controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH11143814A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010140361A (en) * | 2008-12-12 | 2010-06-24 | Fujitsu Microelectronics Ltd | Computer system and abnormality detection circuit |
-
1997
- 1997-11-12 JP JP9327012A patent/JPH11143814A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010140361A (en) * | 2008-12-12 | 2010-06-24 | Fujitsu Microelectronics Ltd | Computer system and abnormality detection circuit |
| US8700835B2 (en) | 2008-12-12 | 2014-04-15 | Fujitsu Semiconductor Limited | Computer system and abnormality detection circuit |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5822265A (en) | DRAM controller with background refresh | |
| JPH11143814A (en) | Dma controller | |
| US7080198B1 (en) | Method for snooping RAID 1 write transactions by a storage device | |
| US11860804B2 (en) | Direct memory access (DMA) controller, electronic device using the DMA controller and method of operating the DMA controller | |
| JPH06324957A (en) | Bus monitoring device | |
| JP2837893B2 (en) | Microcomputer device | |
| JPS60183657A (en) | Common bus failure detection method | |
| JP4587000B2 (en) | Chip select circuit | |
| JP6992295B2 (en) | Electronic device | |
| JP2626616B2 (en) | Peripheral control device | |
| JP4499909B2 (en) | Multiplexed storage controller | |
| JP4062478B2 (en) | Device access method | |
| JP2004348719A (en) | Microcomputer | |
| JPH06175973A (en) | Bus arbitration circuit | |
| JP3236459B2 (en) | Error handling device in common bus data transfer | |
| US20050138472A1 (en) | System and method for transferring information in a computer system | |
| JPH01286070A (en) | Data processing system | |
| JP2005070993A (en) | Device having transfer mode abnormality detection function, storage control device, and interface module for same | |
| WO2008062508A1 (en) | Multiprocessor system | |
| JP2001167049A (en) | Bus arbitration device | |
| JP2825589B2 (en) | Bus control method | |
| JPH02105241A (en) | Memory fault detection circuit | |
| JPH02150942A (en) | Bus abnormality detecting circuit | |
| JPH0644201A (en) | Monitor device for computer system using shared memory | |
| JP2010003268A (en) | Slave device |