JPH01236341A - Information processor - Google Patents
Information processorInfo
- Publication number
- JPH01236341A JPH01236341A JP63064469A JP6446988A JPH01236341A JP H01236341 A JPH01236341 A JP H01236341A JP 63064469 A JP63064469 A JP 63064469A JP 6446988 A JP6446988 A JP 6446988A JP H01236341 A JPH01236341 A JP H01236341A
- Authority
- JP
- Japan
- Prior art keywords
- dma
- counter
- address
- controller
- bus
- 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
- 230000010365 information processing Effects 0.000 claims description 10
- 230000005856 abnormality Effects 0.000 claims description 5
- 230000002159 abnormal effect Effects 0.000 abstract description 7
- 230000003247 decreasing effect Effects 0.000 abstract 1
- 238000000034 method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
- Bus Control (AREA)
Abstract
Description
【発明の詳細な説明】
1丘立1
本発明は情報処理装置に関し、特にダイレクトメモリア
クセス制御方式(以下DMA制御方式とする)を用いた
情報処理装置においてダイレクトメモリアクセス(以下
DMAとする)によるデータ転送が正しく行われたか否
かをチエツクするエラー検出方法に関する。DETAILED DESCRIPTION OF THE INVENTION 1. The present invention relates to an information processing device, and particularly to an information processing device using a direct memory access control method (hereinafter referred to as DMA control method). The present invention relates to an error detection method for checking whether data transfer has been performed correctly.
良米韮通
従来、この種の情報処理装置においては、DMA制御方
式のデータ転送は以下に示すようにして行われていた。Conventionally, in this type of information processing apparatus, data transfer using the DMA control method has been performed as shown below.
すなわち、中央処理装置はDMAによるデータ転送(以
下DMA転送とする)を行うための主記憶装置上のアド
レス範囲を定め、そのデータ転送のスタートアドレスを
ダイレクトメモリアクセスコントローラ(以下DMAコ
ントローラとする)のアドレスカウンタにセットし、そ
のデータ転送のレングスをDMAコントローラのレング
スカウンタにセットする。That is, the central processing unit determines the address range on the main memory for performing data transfer by DMA (hereinafter referred to as DMA transfer), and sets the start address of the data transfer to the direct memory access controller (hereinafter referred to as DMA controller). Set the address counter, and set the length of the data transfer to the length counter of the DMA controller.
また、中央処理装置は入出力コントローラ(以下IOコ
ントローラとする)に対してD M A k送を開始さ
せるための命令を、場合によってはパラメータも含めて
出力する。Further, the central processing unit outputs a command to the input/output controller (hereinafter referred to as IO controller) to start the DMAk transmission, including parameters as the case may be.
10コントローラは中央処理装置からの命令を受取ると
、DMAコントローラにDMA要求信号を出力し、DM
AコントローラではこのDMA要求信号により、バス調
停回路にバス使用要求を出力する。10 When the controller receives the command from the central processing unit, it outputs a DMA request signal to the DMA controller, and the DM
In response to this DMA request signal, the A controller outputs a bus use request to the bus arbitration circuit.
バス調停回路ではDMAコントローラからのバス使用要
求を受付けると、中央処理装置あるいは他のバス使用要
求との間の優先度にしたがって調停し、バス使用許可信
号をDMAコントローラに出力する。When the bus arbitration circuit receives a bus use request from the DMA controller, it arbitrates with the central processing unit or other bus use requests according to the priority, and outputs a bus use permission signal to the DMA controller.
DMAコントローラはバス調停回路からのバス使用許可
信号を受信すると、アドレスカウンタの内容をアドレス
バス上に出力し、メモリ続出しまたは書込み信号を制御
バス上に出力し、DMA許可信号をIOコントローラに
出力する。When the DMA controller receives a bus use permission signal from the bus arbitration circuit, it outputs the contents of the address counter onto the address bus, outputs a memory access or write signal onto the control bus, and outputs a DMA permission signal to the IO controller. do.
IOコントローラはDMAコントローラからのDMA許
可信号を受取ると、データをデータバス上に出力するか
、もしくはデータバス上の内容をデータレジスタに書込
む。When the IO controller receives a DMA enable signal from the DMA controller, it outputs data onto the data bus or writes the contents on the data bus to the data register.
1回のDMAサイクルが終了する毎に、DMAコントロ
ーラのアドレスカウンタはインクリメントもしくはディ
クリメントされ、レングスカウンタはディクリメントさ
れる。Each time one DMA cycle ends, the address counter of the DMA controller is incremented or decremented, and the length counter is decremented.
上述の処理動作をDMAコントローラのレングスカウン
タの値がゼロになるまで、あるいはIOコントローラか
らDMAコントローラへのDMA要求信号が出力されな
くなるまで継続される。The above processing operation is continued until the value of the length counter of the DMA controller becomes zero or until the DMA request signal is no longer output from the IO controller to the DMA controller.
DMA転送が終了すると、IOコントローラのDMA転
送のレングスが予め知られている場合には、中央処理装
!はそのレングスとスタートアドレスとによって計算さ
れた終了アドレスと、DMAコントローラのアドレスカ
ウンタから読出された値とが一致しているか否かを調べ
、それらの値が一致している場合には正常終了とし、そ
れらの値が不一致の場合には異常終了としていた。When the DMA transfer is completed, if the length of the DMA transfer of the IO controller is known in advance, the central processing unit! checks whether the end address calculated from the length and start address matches the value read from the address counter of the DMA controller, and if the values match, it is considered to have completed normally. , if these values do not match, it is considered to terminate abnormally.
このような従来の情報処理装置におけるDMA制御方式
では、DMA転送が終了したときに、中央処理装置が1
0コントローラのDMA転送のレングスとスタートアド
レスとによって計算された終了アドレスと、DMAコン
トローラのアドレスカウンタから読出された値とが一致
しているか否かを調べて正常終了または異常終了を判断
していたので、IOコントローラのDMA転送のレング
スが予め定まっていない場合には、DMAコントローラ
のアドレスカウンタの誤動作によって主記憶装置上の誤
ったアドレスにデータを転送しても、その誤りを検出す
ることができないという欠点があった。In the DMA control method in such conventional information processing devices, when the DMA transfer is completed, the central processing unit
Normal termination or abnormal termination was determined by checking whether the end address calculated from the DMA transfer length and start address of the 0 controller matches the value read from the address counter of the DMA controller. Therefore, if the length of the DMA transfer of the IO controller is not determined in advance, even if data is transferred to the wrong address on the main storage device due to a malfunction of the address counter of the DMA controller, the error cannot be detected. There was a drawback.
このとき、DMAコントローラのレングスカウンタの値
を続出して計算により終了アドレスを求めようとしても
、そのレングスカウンタが正常に動作しているか否かを
知ることができず、結果的に正常終了か異常終了かを判
断することができなかった。At this time, even if you try to find the end address by calculating the value of the length counter of the DMA controller, it is impossible to know whether the length counter is operating normally or not, and the result is either normal completion or abnormality. I couldn't decide if it was finished or not.
北」しとl助
本発明は上記のような従来のものの欠点を除去すべくな
されたもので、終了アドレスが一義的に定まらないDM
A転送においても正常終了あるいは異常終了を容易に検
出することができる情報処理装置の提供を目的とする。The present invention was made in order to eliminate the drawbacks of the conventional ones as described above, and is aimed at eliminating the disadvantages of the conventional ones as described above.
The present invention aims to provide an information processing device that can easily detect normal termination or abnormal termination even in A transfer.
九肌立亘丞
本発明による情報処理装置は、ダイレクトメモリアクセ
スにより主記憶装置との間でのデータ転送が行われる情
報処理装置であって、前記ダイレクトメモリアクセスが
行われる毎に予め設定された初期値の加減算を行うカウ
ンタと、前記カウンタの値と前記主記憶装置に対する前
記ダイレクトメモリアクセス時のアドレスとを比較する
比較手段とを設け、前記比較手段の比較結果が不一致を
示すときに前記データ転送の異常を通知するようにした
ことを特徴とする。An information processing device according to the present invention is an information processing device in which data is transferred to and from a main storage device by direct memory access, and each time the direct memory access is performed, data is set in advance. A counter that adds or subtracts an initial value; and a comparison unit that compares the value of the counter with the address at the time of the direct memory access to the main storage device, and when the comparison result of the comparison unit indicates a mismatch, the data is A feature of this system is that it notifies you of a transfer abnormality.
X1贋
次に、本発明の一実施例について図面を参照して説明す
る。Next, an embodiment of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例の構成を示すブロック図であ
る6図において、本発明の一実施例による情報処理シス
テムは、中央処理装置1と、主記憶装置2と、DMAコ
ントローラ3と、10コントローラ4と、カウンタ5と
、コンパレータ6と、フリップフロップ7とにより構成
されている。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In FIG. 6, an information processing system according to an embodiment of the present invention includes a central processing unit 1, a main memory 2, a DMA controller 3, , 10 controller 4, counter 5, comparator 6, and flip-flop 7.
中央処理装置1は制御信号線111を介して制御バス1
01と接続され、アドレス信号線112を介してアドレ
スバス102に接続され、データ信号線113を介して
データバス103に接続されている。The central processing unit 1 is connected to the control bus 1 via the control signal line 111.
01, the address bus 102 via the address signal line 112, and the data bus 103 via the data signal line 113.
主記憶袋!2は制御信号線121を介して制御バス10
1に接続され、アドレス信号線122を介してアドレス
バス102と接続され、データ信号線123を介してデ
ータバス103と接続されている。Main memory bag! 2 is connected to the control bus 10 via the control signal line 121.
1, the address bus 102 via an address signal line 122, and the data bus 103 via a data signal line 123.
DMAコントローラ3は制御信号線131を介して制御
バス101と接続され、アドレス信号線132を介して
アドレスバス102と接続され、データ信号線133を
介してデータバス103と接続されている。また、DM
Aコントローラ3はDMA許可信号線134を介してI
Oコントローラ4とカウンタ5とフリップフロップ7と
に接続されている。The DMA controller 3 is connected to the control bus 101 via a control signal line 131, to the address bus 102 via an address signal line 132, and to the data bus 103 via a data signal line 133. Also, DM
The A controller 3 connects I via the DMA permission signal line 134.
It is connected to an O controller 4, a counter 5, and a flip-flop 7.
Toコントローラ4はDMA要求信号線141を介して
DMAコントローラ3に接続され、データ信号線142
を介してデータバス103と接続されている。The To controller 4 is connected to the DMA controller 3 via a DMA request signal line 141 and a data signal line 142.
It is connected to the data bus 103 via.
カウンタ5は制御信号線151を介して制御バス101
に接続され、アドレス信号線152を介してアドレスバ
ス102と接続され、データ信号線153を介してデー
タバス103に接続されている。また、カウンタ5はア
ドレス信号線154を介してコンパレータ6に接続され
ている。The counter 5 is connected to the control bus 101 via a control signal line 151.
It is connected to the address bus 102 via an address signal line 152, and to the data bus 103 via a data signal line 153. Further, the counter 5 is connected to the comparator 6 via an address signal line 154.
コンパレータ6はアドレス信号線161を介してアドレ
スバス102に接続され、比較結果信号線162を介し
てフリップフロップ7に接続されている。Comparator 6 is connected to address bus 102 via address signal line 161 and to flip-flop 7 via comparison result signal line 162.
フリップフロップ7は割込み信号線171を介して中央
処理装置1に接続されている。Flip-flop 7 is connected to central processing unit 1 via interrupt signal line 171.
次に、本発明の一実施例におけるDMA転送の動作につ
いて説明する。Next, the operation of DMA transfer in one embodiment of the present invention will be explained.
中央処理装置1はDMA転送を行うために主記憶装置2
上のアドレス範囲を定め、そのスタートアドレスをアド
レスバス102とアドレス信号線112.132とを介
してDMAコントローラ3のアドレスカウンタ(図示せ
ず)にセットするとともに、そのスタートアドレスをア
ドレスバス102とアドレス信号線112.152とを
介してカウンタ5にもセットする。このとき、中央処理
装置1はデータバス103とデータ信号線113.13
3とを介してDMAコントローラ3のレングスカウンタ
(図示せず)にDMA転送のレングスをセットする。The central processing unit 1 uses the main storage device 2 to perform DMA transfer.
The above address range is determined, and the start address is set in the address counter (not shown) of the DMA controller 3 via the address bus 102 and address signal lines 112 and 132, and the start address is connected to the address bus 102 and the address It is also set in the counter 5 via the signal lines 112 and 152. At this time, the central processing unit 1 connects the data bus 103 and the data signal lines 113.
3, the length of the DMA transfer is set in a length counter (not shown) of the DMA controller 3.
また、中央処理袋!’lはデータバス103とデータ信
号線113,142を介して■0コントローラ4に対し
、DMA転送を開始させるための命令を、場合によって
はパラメータを含めて出力する。Also, central processing bags! 'l outputs a command to start DMA transfer, including parameters as the case may be, to the ■0 controller 4 via the data bus 103 and data signal lines 113 and 142.
10コントローラ4は中央処理装置1からの命令を受取
ると、DMA要求信号線141を介してDMA転送要求
信号をDMAコントローラ3に出力する。Upon receiving the command from the central processing unit 1 , the controller 4 outputs a DMA transfer request signal to the DMA controller 3 via the DMA request signal line 141 .
DMAコントローラ3ではIOコントローラ4からのD
MA要求信号を受信することにより、制御バス101と
制御信号線131とを介してバス使用要求を図示せぬバ
ス調停回路に出力する。In the DMA controller 3, the D from the IO controller 4
By receiving the MA request signal, a bus use request is output to a bus arbitration circuit (not shown) via the control bus 101 and the control signal line 131.
DMAコントローラ3ではバス調停回路において他のバ
ス1吏用要求との間で優先度にしたがって調停されてか
ら送られてくるバス便用許可信号を受信すると、アドレ
ス信号線132を介してアドレスカウンタの内容をアド
レスバス102上に出力し、制御信号線131を介して
メモリ続出しまたは書込み信号を制御バス101に出力
し、DMA許可信号線134を介してDMA許可信号を
IOコントローラ4とカウンタ5とフリップフロップ7
とに夫々出力する。When the DMA controller 3 receives a bus permission signal that has been arbitrated with other bus requests according to priority in the bus arbitration circuit, it sends the bus permission signal to the address counter via the address signal line 132. The contents are outputted onto the address bus 102, a memory readout or write signal is outputted to the control bus 101 via the control signal line 131, and a DMA permission signal is sent to the IO controller 4 and counter 5 via the DMA permission signal line 134. flip flop 7
Output each.
IOコントローラ4はこのDMA許可信号によりDMA
転送を開始し、データ信号線142を介してデータをデ
ータバス103に出力するか、もしくはデータ信号線1
42を介してデータバス103上の内容をデータレジス
タ(図示せず)に書込む。The IO controller 4 uses this DMA permission signal to
Start the transfer and output the data to the data bus 103 via the data signal line 142, or output the data via the data signal line 1
42 to write the contents on data bus 103 to a data register (not shown).
このとき、コンパレータ6はアドレス信号線161を介
して入力されるアドレスバス102上の内容と、アドレ
ス信号線154を介して入力されるカウンタ5の内容と
を比較し、比較結果信号線162を介してその比較結果
をフリップフロップ7に出力する。At this time, the comparator 6 compares the content on the address bus 102 inputted via the address signal line 161 with the content of the counter 5 inputted via the address signal line 154, and outputs the comparison result via the signal line 162. and outputs the comparison result to the flip-flop 7.
上述のようにして1回のDMAサイクルが終了すると、
DMAコントローラ3のアドレスカウンタの内容はイン
クリメントまたはディクリメントされ、レングスカウン
タはディクリメントされる。When one DMA cycle is completed as described above,
The contents of the address counter of the DMA controller 3 are incremented or decremented, and the length counter is decremented.
また、カウンタ5もDMA許可信号線142を介して入
力されたDMA許可信号により、DMAサイクルの終了
時にインクリメントまたはディクリメントされる。Further, the counter 5 is also incremented or decremented at the end of the DMA cycle by the DMA permission signal inputted via the DMA permission signal line 142.
DMAコントローラ3のアドレスカウンタにおけるイン
クリメントまたはディクリメントの切分けはDMAコン
トローラ3に内蔵されているパラメータレジスタの内容
により行われ、カウンタ5におけるインクリメントまた
はディクリメントの切分けも同様にパラメータによって
行われる。The increment or decrement in the address counter of the DMA controller 3 is determined by the contents of a parameter register built in the DMA controller 3, and the increment or decrement in the counter 5 is determined by parameters as well.
上記のような処理動作、すなわちDMA転送が、DMA
コントローラ3のレングスカウンタがゼロになるまで、
あるいはIOコントローラ4からのDMA要求信号が出
力されなくなるまで継続される。The above processing operation, that is, DMA transfer, is
Until the length counter of controller 3 becomes zero,
Alternatively, the process continues until the DMA request signal from the IO controller 4 is no longer output.
フリップフロップ7はDMAサイクルが行われる毎にコ
ンパレータ6からの比較結果を記録しており、この比較
結果が不一致を示すとセットされる。また、フリップフ
ロップ7の内容は割込み信号線171を介して中央処理
装置1に通知され、中央処理装置lではフリップフロッ
プ7からの通知によりDMA転送の異常終了を認識する
ことができる。The flip-flop 7 records the comparison result from the comparator 6 every time a DMA cycle is performed, and is set when the comparison result indicates a mismatch. Further, the contents of the flip-flop 7 are notified to the central processing unit 1 via the interrupt signal line 171, and the central processing unit 1 can recognize the abnormal end of the DMA transfer by the notification from the flip-flop 7.
このように、DMAサイクル中のアドレスバス102上
の内容と、予め設定されたスタートアドレスの値をDM
Aサイクル毎にインクリメントまたはディクリメントす
るカウンタ5の内容とをコンパレータ6で比較し、この
比較結果が不一致を示すときにフリップフロップ7を介
して中央処理装置1にDMA転送の異常を通知するよう
にすることによって、終了アドレスが一義的に定まらな
いDMA転送においてら正常終了あるいは異常終了を容
易に検出することができる。In this way, the contents on the address bus 102 during the DMA cycle and the value of the preset start address are transferred to the DM.
A comparator 6 compares the contents of the counter 5, which is incremented or decremented every A cycle, and when the comparison result shows a mismatch, the central processing unit 1 is notified of an abnormality in the DMA transfer via the flip-flop 7. By doing so, it is possible to easily detect normal termination or abnormal termination in a DMA transfer in which the termination address is not uniquely determined.
九匪Ω左逮
以上説明したように本発明によれば、主記憶装置に対す
るダイレクトメモリアクセス時のアドレスと、ダイレク
トメモリアクセスが行われる毎に予め設定された初期値
の加減算を行うカウンタの値とを比較し、その比較結果
が不一致を示すときにダイレクトメモリアクセスによる
データ転送の異常を通知するようにすることによって、
終了アドレスが一義的に定まらないDMA転送において
も正常終了あるいは異常終了を容易に検出することがで
きるという効果がある。As explained above, according to the present invention, the address at the time of direct memory access to the main storage device and the value of the counter that adds or subtracts a preset initial value each time a direct memory access is performed. , and when the comparison result shows a mismatch, an abnormality in data transfer by direct memory access is notified.
Even in DMA transfer where the end address is not uniquely determined, there is an advantage that normal or abnormal end can be easily detected.
第1図は本発明の一実施例の構成を示すブロック図であ
る。
主要部分の符号の説明
1・・・・・・中央処理装置
2・・・・・・主記憶装置
3・・・・・・ダイレクトメモリアクセス(DMA)コ
ントローラ
4・・・・・・入出力(10)コントローラ5・・・・
・・カウンタ
6・・・・・・コンパレータ
7・・・・・・フリップフロップFIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. Explanation of symbols of main parts 1...Central processing unit 2...Main storage device 3...Direct memory access (DMA) controller 4...Input/output ( 10) Controller 5...
... Counter 6 ... Comparator 7 ... Flip-flop
Claims (1)
間でのデータ転送が行われる情報処理装置であって、前
記ダイレクトメモリアクセスが行われる毎に予め設定さ
れた初期値の加減算を行うカウンタと、前記カウンタの
値と前記主記憶装置に対する前記ダイレクトメモリアク
セス時のアドレスとを比較する比較手段とを設け、前記
比較手段の比較結果が不一致を示すときに前記データ転
送の異常を通知するようにしたことを特徴とする情報処
理装置。(1) An information processing device in which data is transferred to and from a main storage device through direct memory access, comprising: a counter that adds or subtracts a preset initial value each time the direct memory access is performed; Comparing means for comparing the value of the counter and the address at the time of direct memory access to the main storage device is provided, and when the comparison result of the comparing means indicates a mismatch, an abnormality in the data transfer is notified. An information processing device characterized by:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63064469A JPH01236341A (en) | 1988-03-17 | 1988-03-17 | Information processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63064469A JPH01236341A (en) | 1988-03-17 | 1988-03-17 | Information processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH01236341A true JPH01236341A (en) | 1989-09-21 |
Family
ID=13259117
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63064469A Pending JPH01236341A (en) | 1988-03-17 | 1988-03-17 | Information processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH01236341A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6651127B2 (en) * | 1999-06-03 | 2003-11-18 | Micron Technology, Inc. | Method of detecting termination of a bus transfer operation |
-
1988
- 1988-03-17 JP JP63064469A patent/JPH01236341A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6651127B2 (en) * | 1999-06-03 | 2003-11-18 | Micron Technology, Inc. | Method of detecting termination of a bus transfer operation |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0458304B1 (en) | Direct memory access transfer controller and use | |
| JP2708427B2 (en) | Microprocessor | |
| JPH01236341A (en) | Information processor | |
| JPH0744470A (en) | Data bus monitoring device | |
| JP2943926B2 (en) | Error recovery control device | |
| JP2679440B2 (en) | Information processing device | |
| JP2574821B2 (en) | Direct memory access controller | |
| JP2978626B2 (en) | DMA controller | |
| JPH08137785A (en) | DMA controller | |
| JP3236459B2 (en) | Error handling device in common bus data transfer | |
| JPS60250455A (en) | Interruption processing system | |
| JPH04257042A (en) | Diagnostic system for memory | |
| JPH0250244A (en) | Adapter for input and output control | |
| JPH07210471A (en) | Information processing equipment | |
| JPH07182272A (en) | Dma controller circuit | |
| JPH0310360A (en) | Controller for daisy chain system | |
| JPH03158946A (en) | Processor system which permits retry control of data transfer | |
| JPH03105443A (en) | Ram check method | |
| JPS61285558A (en) | Data processor | |
| JPH04152448A (en) | Method and device for conversion of interface | |
| JPS61286956A (en) | Data processor | |
| JPH0581171A (en) | DMA data transfer system in GP-IB | |
| JPS60129866A (en) | Control system of processor | |
| JPH03225458A (en) | DMA control method | |
| JPH0778779B2 (en) | Data transfer controller |