JPH0535652A - Dma controller - Google Patents
Dma controllerInfo
- Publication number
- JPH0535652A JPH0535652A JP3188888A JP18888891A JPH0535652A JP H0535652 A JPH0535652 A JP H0535652A JP 3188888 A JP3188888 A JP 3188888A JP 18888891 A JP18888891 A JP 18888891A JP H0535652 A JPH0535652 A JP H0535652A
- Authority
- JP
- Japan
- Prior art keywords
- data
- dma
- address
- compare
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Landscapes
- Bus Control (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、DMA(ダイレクトメ
モリアクセス)コントローラに関し、特にアドレスとデ
ータの内容を一時記憶することのできる記憶手段と、D
MA元とDMA先のデータをコンペアするコンペア手段
と、DMAのリトライを行うリトライ手段とを有するD
MAコントローラに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DMA (Direct Memory Access) controller, and more particularly to a storage means capable of temporarily storing addresses and data contents, and D
D having compare means for comparing MA source data and DMA destination data and retry means for retrying DMA
Regarding the MA controller.
【0002】[0002]
【従来の技術】従来、DMAコントローラでは、DMA
元とDMA先のデータのコンペアを行っておらず、DM
A転送後の最初のメモリリードにて初めてパリティエラ
ー等を検出している。2. Description of the Related Art Conventionally, in a DMA controller, a DMA
The source and DMA destination data are not compared and DM
A parity error or the like is detected for the first time in the first memory read after the A transfer.
【0003】[0003]
【発明が解決しようとする課題】上述のように、従来の
DMAコントローラでは、データのコンペアを行わない
ため、DMA時のデータエラーの検出を外部回路に依存
しなければならない。この場合、パリティチェック回路
等を用いるとDMA転送を行った後の最初のメモリリー
ドによって初めてデータエラーを検出することになりD
MAリトライを行うことが難しいという問題点がある。As described above, since the conventional DMA controller does not compare the data, the detection of the data error at the time of DMA must depend on the external circuit. In this case, if a parity check circuit or the like is used, a data error will not be detected until the first memory read after the DMA transfer.
There is a problem that it is difficult to perform MA retry.
【0004】また、データエラー時のアドレスを調査す
るためには、他にPKG動作のロギング等を記憶しなけ
ればならず、システムもしくはPKG上の記憶装置にロ
ギング記録用エリアをアサインしなければならないとい
う問題点があった。In addition, in order to investigate the address at the time of data error, logging of PKG operation and the like must be stored, and the logging recording area must be assigned to the system or the storage device on the PKG. There was a problem.
【0005】本発明の目的は容易にDMAリトライを行
うことのできるDMAコントローラを提供することにあ
る。An object of the present invention is to provide a DMA controller that can easily perform a DMA retry.
【0006】本発明の他の目的はデータエラー時のアド
レス調査に当って、ロギング記録用エリアをアサインす
る必要のないDMAコントローラを提供することにあ
る。Another object of the present invention is to provide a DMA controller that does not need to be assigned a logging recording area in address investigation at the time of data error.
【0007】[0007]
【課題を解決するための手段】本発明によるDMAコン
トローラは、DMAで転送するデータを一時格納するた
めの第1の記憶装置と、DMA転送障害が起きた際のア
ドレスを一時格納するための第2の記憶装置と、コント
ロールレジスタに回数の設定された回数を最大回数とし
てリトライを行うリトライ手段とを備えることを特徴と
している。A DMA controller according to the present invention comprises a first storage device for temporarily storing data to be transferred by DMA and a first storage device for temporarily storing an address when a DMA transfer failure occurs. It is characterized by including a second storage device and a retry means for performing a retry with the number of times set in the control register as the maximum number.
【0008】[0008]
【実施例】以下本発明について実施例によって説明す
る。EXAMPLES The present invention will be described below with reference to examples.
【0009】図1を参照して、DMAコントローラ1
は、24bit のアドレス記憶部2、16bit のデータ記
憶部3、アドレス/データインタフェース部4、データ
コンペア部5、コントロールレジスタ6、アドレスカウ
ンタ7と、コンペア用データバッファ8で構成され、ア
ドレスカウンタ7は内部アドレスバス9でアドレス24
bit をアドレス/データインタフェース部4とアドレス
記憶部2に送出している。アドレス/データインタフェ
ース部4は、メモリへのアドレスとデータを送受し、同
時に内部データバス10で、それぞれデータ記憶部3、
データコンペア用バッファ8、コントロールレジスタ6
へデータを送出している。データコンペア部5は、デー
タ記憶部3からきたデータ16bit と、コンペア用デー
タバッファ8からきたデータ16bit とをコンペアし、
コンペアエラーがあった場合データコンペアエラー信号
11を、アドレス記憶部2及びDMAコントロール部1
2に送出する。送出された信号は、それぞれエラーを起
こしたデータをリードした際のアドレスを記憶するため
のタイミングとして、又、次のDMA動作のタイミング
として使用される。Referring to FIG. 1, DMA controller 1
Is composed of a 24-bit address storage unit 2, a 16-bit data storage unit 3, an address / data interface unit 4, a data compare unit 5, a control register 6, an address counter 7, and a compare data buffer 8. The address counter 7 is Address 24 on the internal address bus 9
Bits are sent to the address / data interface unit 4 and the address storage unit 2. The address / data interface unit 4 sends and receives an address and data to and from the memory, and at the same time, the internal data bus 10 allows the data storage unit 3 and the data storage unit 3, respectively.
Data compare buffer 8 and control register 6
Sending data to. The data compare section 5 compares the 16-bit data from the data storage section 3 with the 16-bit data from the compare data buffer 8,
When there is a compare error, the data compare error signal 11 is sent to the address storage unit 2 and the DMA control unit 1.
Send to 2. The transmitted signals are used as the timing for storing the address at the time of reading the data in which the error occurred and also as the timing for the next DMA operation.
【0010】図2には、DMAコントローラ1をもちい
たシステムの構成を示す。ここでは、DMAコントロー
ラ1は、MEMI13からデータを読みだしMEMII1
4へデータを書き出す動作を行う。FIG. 2 shows the configuration of a system using the DMA controller 1. Here, the DMA controller 1 reads the data from the MEMI 13 and outputs the MEMII 1
The operation of writing the data to 4 is performed.
【0011】図3及び図4に、メモリーメモリ転送のタ
イミングを示す。図3はノーマルタイミングを示し、図
4はコンペアタイミングを示す。FIGS. 3 and 4 show the timing of memory memory transfer. FIG. 3 shows normal timing, and FIG. 4 shows compare timing.
【0012】図3及び図4において、CLK15は本D
MAコントローラに入力される基本クロックであり、通
常10クロックで1DMAサイクルを終了する。DAT
A/ADDRESS17は、それぞれコンペアリードア
ドレス21コンペアリードデータ22、リードアドレス
23、リードデータ24、ライトアドレス25、ライト
データ26を出力しそれぞれのアドレスは本DMAコン
トローラの外部でALEを使ってラッチされる。又、A
LE16は、通常サイクルの他にコンペア時にコンペア
リードアドレス21をラッチする場合においても出力さ
れる。In FIGS. 3 and 4, CLK15 is the main D
It is a basic clock input to the MA controller, and normally one clock completes one DMA cycle. DAT
The A / ADDRESS 17 outputs the compare read address 21, the compare read data 22, the read address 23, the read data 24, the write address 25, and the write data 26, respectively, and the respective addresses are latched using ALE outside the DMA controller. . Also, A
The LE 16 is also output when the compare read address 21 is latched at the time of compare in addition to the normal cycle.
【0013】MRD18は、コンペアリードを行う場
合、1DMAサイクル内にコンペアリード時と通常リー
ド時の2回にわけて出力され、コンペアリードのタイミ
ング時においては、CMPRD20が出力され、コンペ
アリードであることが認識できる。When the compare read is performed, the MRD 18 is divided into two outputs, one during the compare read and the other during the normal read, and at the timing of the compare read, the CMPRD 20 is output and the compare read is performed. Can be recognized.
【0014】図5はDMAコントローラ1を用いたシス
テムのデータ遷移図であり、図5−(以後5−のよ
うに記す)でDMAコントローラ1は、MEMI13か
らデータAをリードし、図1のデータ記憶部3にデータ
を記憶した後3−でデータAをMEMII14へライト
する。5−でMEMI13からデータA′をリードし
た後、第一図で示したコンペア用データバッファ8を経
て、データコンペア部5にライトし、同じくデータ記憶
部3からデータコンペア部5にライトされたAとコンペ
アする。FIG. 5 is a data transition diagram of a system using the DMA controller 1. In FIG. 5 (hereinafter referred to as 5-), the DMA controller 1 reads the data A from the MEMI 13, and the data of FIG. After storing the data in the storage unit 3, the data A is written to the MEMII 14 in 3-. After the data A ′ is read from the MEMI 13 at 5-, the data is written to the data compare section 5 through the compare data buffer 8 shown in FIG. Compare with.
【0015】以上の5−〜5−迄が正常コンペアD
MAサイクルである。The above 5 to 5 are normal compare D
The MA cycle.
【0016】次に5−では、MEMI13から次のデ
ータBをリードし、図1に示すデータ記憶部に一時記憶
した後5−でMEMII14へライトする。5−では
5−と同様の動きをするが、この場合コンペアエラー
が起こった為、図1に示すデータコンペアエラー信号1
1を送出し、アドレス記憶部2にエラー時のアドレスを
記憶させ、又、DMAコントロール部12にデータコン
ペアエラー信号11を送出し、DMAコントロール部が
リトライを行わせる。Next, in 5-, the next data B is read from the MEMI 13, temporarily stored in the data storage section shown in FIG. 1, and then written in the MEMII 14 in 5-. In 5-, the same operation as in 5- is performed, but in this case a compare error occurs, so the data compare error signal 1 shown in FIG.
1 is sent, the address at the time of error is stored in the address storage unit 2, the data compare error signal 11 is sent to the DMA control unit 12, and the DMA control unit makes a retry.
【0017】5−〜5−は、リトライ処理で5−
でのコンペアの結果がOKだったため、5−10では、次
のCのデータを読み出している。5−10〜5−15は、一
度リトライ処理を行い5−15のコンペアでエラーがでた
ため、5−16ではシステムダウンしている。この際、コ
ントロールレジスタは、リトライ処理を1回にセットし
てあるとする。5 to 5 are the retry processing 5-
Since the result of the comparison in step 5 was OK, the next C data is read in step 5-10. 5-10 to 5-15 once perform a retry process and an error occurs in the compare of 5-15, so the system is down in 5-16. At this time, the control register is set to retry processing once.
【0018】以上のリトライ処理は、先に述べたデータ
コンペアエラー信号11がDMAコントロール部12入
力された場合、初期設定時にコントロールレジスタ6に
指定した回数だけ行われ、その最後のリトライを行って
もエラーが発生した場合には、そのエラーが発生したア
ドレスを記憶した後本DMAコントローラ1は、機能を
停止する。The above retry processing is performed the number of times specified in the control register 6 at the time of initialization when the data compare error signal 11 described above is input to the DMA control unit 12, and even if the final retry is performed. When an error occurs, the present DMA controller 1 stops its function after storing the address where the error occurred.
【0019】[0019]
【発明の効果】以上説明したように、本発明ではアドレ
スとデータの内容を一時記憶することの出来る記憶手段
を持ち、さらに、DMA先とDMA元のデータコンペア
するコンペア手段を備えているからDMAの即時リトラ
イができるという効果がある。As described above, according to the present invention, the storage means capable of temporarily storing the address and the content of the data is provided, and further the compare means for performing the data comparison of the DMA destination and the DMA source is provided. There is an effect that can be immediately retried.
【図1】本発明によるDMAコントローラを示すブロッ
ク図である。FIG. 1 is a block diagram showing a DMA controller according to the present invention.
【図2】図1に示すDMAコントローラを用いたシステ
ムの構成図である。FIG. 2 is a configuration diagram of a system using the DMA controller shown in FIG.
【図3】図2に示すシステムのタイミング図である。FIG. 3 is a timing diagram of the system shown in FIG.
【図4】図2に示すシステムのタイミング図である。4 is a timing diagram of the system shown in FIG.
【図5】本発明を用いたシステムのデータの遷移図であ
る。FIG. 5 is a data transition diagram of a system using the present invention.
1 DMAコントローラ 2 アドレス記憶部 3 データ記憶部 4 アドレス/データインタフェース部 5 データコンペア部 6 コントロールレジスタ 7 アドレスカウンタ 8 コンペア用データバッファ 9 内部アドレスバス 10 内部データバス 11 データコンペアエラー信号 12 DMAコントロール部 13 MEMI 14 MEMII 15 CLK 16 ALE 17 DATA/ADDRESS 18 MRD 19 MWR 20 CMPRD 1 DMA controller 2 Address storage section 3 data storage 4 Address / data interface section 5 Data compare section 6 Control register 7 address counter Data buffer for 8 compare 9 Internal address bus 10 Internal data bus 11 Data compare error signal 12 DMA control section 13 MEMI 14 MEMII 15 CLK 16 ALE 17 DATA / ADDRESS 18 MRD 19 MWR 20 CMPRD
Claims (3)
コントローラにおいて、DMAで転送されるデータを一
時格納するための記憶手段を備え、DMA転送にてメモ
リからリードし前記記憶手段に一時記憶させたデータと
該データをDMA転送にてメモリにライトしその後直ち
に同一のアドレスでリードしたデータとをコンペアする
コンペア手段を有することを特徴とするDMAコントロ
ーラ。1. A DMA comprising memory memory transfer means.
The controller is provided with a storage unit for temporarily storing data transferred by DMA, and the data read from the memory by the DMA transfer and temporarily stored in the storage unit and the data are written in the memory by the DMA transfer. A DMA controller having a compare means for immediately comparing data read at the same address.
コントローラにおいて、DMAで転送されるデータを一
時格納するための第1の記憶手段を備え、DMA転送に
てメモリからリードし前記第1の記憶手段に一時記憶さ
せたデータと該データをDMA転送にてメモリにライト
しその後直ちに同一のアドレスでリードしたデータとを
コンペアするコンペア手段を備えるとともにコンペアエ
ラー時のデータのアドレスを一時格納する第2の記憶手
段を有し、システムダウンの際、該第2の記憶手段から
アドレス読み出してコンペアエラー時のデータのアドレ
スを知る読出手段を有することを特徴とするDMAコン
トローラ。2. A DMA comprising memory memory transfer means.
The controller includes a first storage unit for temporarily storing data transferred by DMA, the data read from the memory by DMA transfer and temporarily stored in the first storage unit, and the data for DMA transfer. And a second storage means for temporarily storing the address of the data at the time of a compare error, and a compare means for comparing with the data read at the same address immediately thereafter. 2. A DMA controller having read means for reading the address from the second storage means to know the address of the data at the time of a compare error.
コントローラにおいて、DMAで転送されるデータを一
時格納するための記憶手段を有し、DMA転送にてメモ
リからリードし前記記憶装置に一時記憶させたデータ
と、該データをDMA転送にてメモリにライトしその後
直ちに同一のアドレスでリードしたデータとをコンペア
するコンペア手段を有するとともにコンペアエラー時に
予め設定された回数を最大とするリトライを行うリトラ
イ手段を有することを特徴とするDMAコントローラ。3. DMA with memory memory transfer means
The controller has a storage unit for temporarily storing data transferred by DMA, and the data read from the memory by DMA transfer and temporarily stored in the storage device and the data written in the memory by DMA transfer. Then, the DMA controller having a compare means for comparing the data read at the same address immediately after that and a retry means for maximizing a preset number at the time of a compare error.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3188888A JPH0535652A (en) | 1991-07-29 | 1991-07-29 | Dma controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3188888A JPH0535652A (en) | 1991-07-29 | 1991-07-29 | Dma controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0535652A true JPH0535652A (en) | 1993-02-12 |
Family
ID=16231642
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3188888A Withdrawn JPH0535652A (en) | 1991-07-29 | 1991-07-29 | Dma controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0535652A (en) |
-
1991
- 1991-07-29 JP JP3188888A patent/JPH0535652A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5274795A (en) | Peripheral I/O bus and programmable bus interface for computer data acquisition | |
JP2003345669A (en) | System and method for preventing memory access error | |
JPH0535652A (en) | Dma controller | |
US5778196A (en) | Method and device for identifying a bus memory region | |
JP2853555B2 (en) | Storage controller | |
JPH0496840A (en) | Semiconductor file memory device | |
JP2001306411A (en) | Information processor and its method | |
EP0439594B1 (en) | Device for interfacing a main processor bus connected to a main processor to a peripheral bus having a number of peripheral devices connected thereto | |
JP2574821B2 (en) | Direct memory access controller | |
JP2576715Y2 (en) | Output buffer failure detection circuit for application specific IC | |
JPS61211786A (en) | Ic card | |
JP2827520B2 (en) | I / O controller | |
JPS63303448A (en) | Data storing circuit | |
JPS5916067A (en) | Data checking system | |
JPS6218943B2 (en) | ||
JPS62205456A (en) | Memory device | |
JPH0528006A (en) | Microprocessor monitoring circuit | |
JPS5827221A (en) | Data processing device | |
JPH01274260A (en) | Adapter for controlling input/output | |
JPH0540583A (en) | Information processing system | |
JPS63126047A (en) | Memory control system | |
JPH01197860A (en) | Memory fault detecting circuit | |
JPH03110649A (en) | Electronic computer, its address conversion method, and electronic device mounted substrate | |
JPH04350745A (en) | Storage discriminating circuit | |
JPH05181784A (en) | Data transfer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19981008 |