JPH05143520A - Dma transfer system - Google Patents

Dma transfer system

Info

Publication number
JPH05143520A
JPH05143520A JP30297691A JP30297691A JPH05143520A JP H05143520 A JPH05143520 A JP H05143520A JP 30297691 A JP30297691 A JP 30297691A JP 30297691 A JP30297691 A JP 30297691A JP H05143520 A JPH05143520 A JP H05143520A
Authority
JP
Japan
Prior art keywords
data
memory
transfer
dma
port
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
Application number
JP30297691A
Other languages
Japanese (ja)
Inventor
Hiroyuki Hoshino
裕之 星野
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.)
NEC Ibaraki Ltd
Original Assignee
NEC Ibaraki 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 NEC Ibaraki Ltd filed Critical NEC Ibaraki Ltd
Priority to JP30297691A priority Critical patent/JPH05143520A/en
Publication of JPH05143520A publication Critical patent/JPH05143520A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To improve transfer efficiency by temporarily interrupting transfer when a data error occurs during DMS transfer and restarting the correction of data so as to avoid necessity for re-executing DMA transfer from the first. CONSTITUTION:A memory address register 13 stores an address for the memory 3 during DMA transfer. When an error flip-flop 12 is by set by the detection of the data error by a parity checker 11, a DMA signal 51 for a microprocessor 1 is interrupted, a gate 15 is closed and also the data error is reported to a DMA controller 2 and an I/O port 4 to temporarily interrupt DMA transfer. The microprocessor 1 confirms the DMA signal and a TC signal and knows data error occurrence to start a compensation processing. At the time of transfer from the memory to I/O port, the memory address register reads out data from the memory 3. At the time of transfer from the I/O port to the memory 3, data is read from a data register 19 to be written in the memory 3 based on an address register 18.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はDMA転送方式に関し、
時にデータエラー処理機能を有するDMA転送方式に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DMA transfer system,
The present invention relates to a DMA transfer method which sometimes has a data error processing function.

【0002】[0002]

【従来の技術】従来のDMA転送は、データ転送中にデ
ータエラーを検出すると、DMA転送の処理を中断し、
マイクロプロセッサが、再度DMA転送の為の初期化を
行い、その後にDMA転送により初めからデータ転送を
やり直していた。
2. Description of the Related Art In conventional DMA transfer, when a data error is detected during data transfer, the DMA transfer process is interrupted,
The microprocessor again performs initialization for DMA transfer, and then repeats data transfer from the beginning by DMA transfer.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のDMA
転送では、転送中にデータエラーを検出するとデータ転
送処理を中断していたため、転送データのデータエラー
検出が最終部になるほど、再転送処理を行なう場合に転
送効率が悪くなるというような問題点があった。
DISCLOSURE OF THE INVENTION Conventional DMA described above
In the transfer, if a data error is detected during the transfer, the data transfer process is interrupted. Therefore, the transfer efficiency is deteriorated when the retransfer process is performed as the data error detection of the transfer data reaches the final part. there were.

【0004】[0004]

【課題を解決するための手段】本発明のDMA転送方式
は、DMA転送中に、メモリに送出されるアドレスを保
持するメモリアドレスレジスタと、DMA転送中にデー
タエラーが検出されるとセットされ、データエラーの補
正処理が終了した時にリセットされるエラーフリップフ
ロップと、前記メモリアドレスレジスタの出力とCPU
のアドレスバスとを切換えるためのマルチプレクサとを
有し、また、I/Oポート内に、メモリからI/Oポー
トへのデータ転送時には、データを格納すべきアドレス
を保持するアドレスレジスタおよびI/Oポートからメ
モリへのデータ転送時には、メモリへ転送したデータを
保持するデータレジスタを設け、データエラーが発生し
た時に、DMA転送を一時中断して、データの修正を行
なった後に再開することを特徴とする。
According to the DMA transfer method of the present invention, a memory address register for holding an address sent to a memory is set during a DMA transfer, and a data error is set when a data error is detected during the DMA transfer. An error flip-flop that is reset when the data error correction process is completed, the output of the memory address register, and the CPU
And a multiplexer for switching the address bus of the I / O port, and in the I / O port, an address register and an I / O for holding an address to store data at the time of data transfer from the memory to the I / O port. When data is transferred from the port to the memory, a data register for holding the data transferred to the memory is provided, and when a data error occurs, the DMA transfer is temporarily suspended, the data is corrected, and then restarted. To do.

【0005】[0005]

【実施例】次に、本発明について図面を参照して説明す
る。図1は本発明の一実施例のブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the present invention.

【0006】図1において、1はマイクロプロセッサ,
2はDMAコントローラ,3はメモリ,4はI/Oポー
ト,100はアドレスバス,200はデータバス,11
はデータベース200上のデータエラーを検出するパリ
ティチェッカー,12はパリティチェッカー11により
データエラーが検出された時にセットされ、データエラ
ーの補正処理後にリセットされるエラーフリップフロッ
プ,13はDMA転送中のメモリに対するアドレスを保
持するメモリアドレスレジスタ,14はメモリアドレス
レジスタ13の出力とマイクロプロセッサ1のアドレス
バスとを切換えるためのマルチプレクサ,15はDMA
コントローラ2から出力されるアドレスバスの制御をす
るゲート,16,17はANDゲート,18はメモリ3
からI/Oポート4への転送時にデータを格納すべきア
ドレスを保持するアドレスレジスタ,19はI/Oポー
ト4からメモリ3への転送時にメモリ3へ転送したデー
タを保持するデータレジスタである。
In FIG. 1, 1 is a microprocessor,
2 is a DMA controller, 3 is a memory, 4 is an I / O port, 100 is an address bus, 200 is a data bus, 11
Is a parity checker for detecting a data error on the database 200, 12 is an error flip-flop that is set when the parity checker 11 detects a data error, and is reset after the data error correction processing, and 13 is for a memory during DMA transfer. A memory address register for holding an address, 14 is a multiplexer for switching the output of the memory address register 13 and the address bus of the microprocessor 1, and 15 is a DMA.
Gates for controlling the address bus output from the controller 2, 16 and 17 are AND gates, 18 is a memory 3
From the I / O port 4 to the I / O port 4, an address register for holding an address to store the data, and 19 is a data register for holding the data transferred to the memory 3 at the time of the transfer from the I / O port 4 to the memory 3.

【0007】また、51はDMA転送中を示すDMA信
号,52はDMA転送時の転送方向を示すEXT信号,
53はDMA転送の終了を示すTC信号,54はエラー
フリップフロップ12の出力でDMA転送中にデータエ
ラーが発生したことを示すERR信号,55はマイクロ
プロセッサ1がメモリ3に対しリードまたはライトする
時に出力されるMMAC信号,56はデータエラーの補
正処理が終了した時にエラーフリップフロップ12をリ
セットするためのRST信号である。
Reference numeral 51 is a DMA signal indicating that the DMA transfer is in progress, 52 is an EXT signal indicating the transfer direction during the DMA transfer,
53 is a TC signal indicating the end of the DMA transfer, 54 is an output of the error flip-flop 12, and an ERR signal indicating that a data error has occurred during the DMA transfer, and 55 is when the microprocessor 1 reads from or writes to the memory 3. The output MMAC signal 56 is an RST signal for resetting the error flip-flop 12 when the data error correction processing is completed.

【0008】通常のDMA転送処理は、マイクロプロセ
ッサ1によりDMAコントローラ2が初期設定されると
開始される。この時、DMA信号51はアクティブにな
り、DMA転送中であることをマイクロプロセッサ1に
知らせると共に、DMA転送の転送方向を示す信号であ
るEXT信号52も送出される。
A normal DMA transfer process is started when the microprocessor 1 initializes the DMA controller 2. At this time, the DMA signal 51 becomes active to inform the microprocessor 1 that the DMA transfer is in progress, and the EXT signal 52 which is a signal indicating the transfer direction of the DMA transfer is also sent out.

【0009】DMA転送中にDMAコントローラ2から
アドレスバス100を経由し、メモリ3に対するアドレ
スが送出されるたびに、このアドレスはメモリアドレス
レジスタ13に格納される。また、転送データであるデ
ータバス200上のデータは、パリティチェッカー11
によりデータエラーの監視が常時行われている。初期設
定時の転送レングス分だけ転送を終了すると、RC信号
53がDMAコントローラ2からマイクロプロセッサ1
に送出される。
Each time an address for the memory 3 is sent from the DMA controller 2 via the address bus 100 during the DMA transfer, this address is stored in the memory address register 13. Further, the data on the data bus 200 which is the transfer data is the parity checker 11
Constantly monitors for data errors. When the transfer is completed by the transfer length at the time of initialization, the RC signal 53 is transferred from the DMA controller 2 to the microprocessor 1.
Sent to.

【0010】ここで、DMA転送中にデータエラーを検
出したときの処理方法について述べる。
Here, a processing method when a data error is detected during DMA transfer will be described.

【0011】パリティチェッカー11によりデータエラ
ーが検出されると、エラーフリップフロップ12がセッ
トされる。エラーフリップフロップ12の出力信号であ
るERR信号54により、ゲート15が閉じられ、また
ANDゲート17に入力されることにより、DMA信号
51はマイクロプロセッサ1への入力が閉ざされる。
When the parity checker 11 detects a data error, the error flip-flop 12 is set. The gate 15 is closed by the ERR signal 54 which is the output signal of the error flip-flop 12, and the DMA signal 51 is closed to the microprocessor 1 by being input to the AND gate 17.

【0012】ERR信号54は、同時に、DMAコント
ローラ2とI/Oポート4へも入力され、DMA転送中
にデータエラーが発生したことを知らせると、DMAコ
ントローラ2はDMA転送を一時中断する。I/Oポー
ト4はERR54信号が入力するとメモリ3からI/O
ポート4への転送中であった場合は、データエラー発生
時にデータを格納すべきであったアドレスをアドレスレ
ジスタ18に一時保持しておく。またI/Oポート4か
らメモリ3への転送中であった場合はデータエラー発生
時にメモリ3へ転送したデータをデータレジスタ19に
一時保持しておく。
At the same time, the ERR signal 54 is also input to the DMA controller 2 and the I / O port 4, and when it is notified that a data error has occurred during the DMA transfer, the DMA controller 2 suspends the DMA transfer. I / O port 4 receives I / O from memory 3 when ERR54 signal is input.
When the data is being transferred to the port 4, the address that should have stored the data when the data error occurs is temporarily held in the address register 18. If data is being transferred from the I / O port 4 to the memory 3, the data transferred to the memory 3 is temporarily held in the data register 19 when a data error occurs.

【0013】マイクロプロセッサ1はANDゲート17
の出力がインアクティブ、かつTC53信号もインアク
ティブであることを確認すると、DMA転送中にデータ
エラーが発生したことを知り、EXT信号52を確認し
て、事前のDMA転送の転送方向を知り、データの補正
処理を開始する。
The microprocessor 1 has an AND gate 17
If it is confirmed that the output of is inactive and the TC53 signal is also inactive, it is known that a data error has occurred during the DMA transfer, the EXT signal 52 is confirmed, the transfer direction of the previous DMA transfer is known, Start the data correction process.

【0014】まず、メモリからI/Oポート4への転送
方向であった場合には、マイクロプロセッサ1はエラー
したデータを再度メモリ3から入手するためにメモリ3
リード要求を示すMMAC信号55をアクティブにし、
ANDゲート16に入力すると、ANDゲート16の出
力によりマルチプレクサ14を切換え、データエラー発
生時のアドレスであるメモリアドレスレジスタ13内の
アドレスをアドレスバス100上に送出し、メモリ3へ
伝える。
First, when the transfer direction is from the memory to the I / O port 4, the microprocessor 1 acquires the erroneous data from the memory 3 again in order to obtain the error data from the memory 3.
Activate the MMAC signal 55 indicating a read request,
When input to the AND gate 16, the multiplexer 14 is switched by the output of the AND gate 16 and the address in the memory address register 13 which is the address when the data error occurs is sent to the address bus 100 and transmitted to the memory 3.

【0015】これにより、エラー発生時のデータをマイ
クロプロセッサ1は入手する。次に、入手したデータを
I/Oポート4へ送出するためにMMAC信号55をイ
ンアクティブにすると、マルチプレクサ14が切換えら
れ、マイクロプロセッサ1はI/Oポート4に対し、ア
ドレスとメモリ3より入手したデータを送出する。
As a result, the microprocessor 1 obtains the data when the error occurs. Next, when the MMAC signal 55 is made inactive to send the obtained data to the I / O port 4, the multiplexer 14 is switched, and the microprocessor 1 obtains the I / O port 4 from the address and the memory 3. Sent data.

【0016】その後、マイクロプロセッサ1はRST信
号56をセットし、エラーフリップフロップ12をリセ
ットすることにより、データの補正処理が完了したこと
を知らせ、DMA転送の一時中断を回避し、再開するよ
うDMAコントローラ2に報告する。
Thereafter, the microprocessor 1 sets the RST signal 56 and resets the error flip-flop 12 to notify that the correction processing of the data is completed, avoid the temporary interruption of the DMA transfer, and restart the DMA transfer. Report to controller 2.

【0017】また、I/Oポート4からメモリ3への転
送方向であった場合には、マイクロプロセッサ1はエラ
ーしたデータを再度I/Oポート4内のデータレジスタ
19より入手する。次に、入手したデータをメモリ3へ
送出するためにメモリライト要求を示すMMAC信号5
5をアクティブにし、ANDゲート16に入力すると、
ANDゲート16の出力によりマルチプレクサ14を切
換え、データエラー発生時のアドレスであるメモリアド
レスレジスタ13内のアドレスをアドレスバス100を
経由しメモリ3へ伝えると共に、先にI/Oポート4よ
り入手したデータをメモリ3へ書き込む。
When the transfer direction is from the I / O port 4 to the memory 3, the microprocessor 1 obtains the error data from the data register 19 in the I / O port 4 again. Next, an MMAC signal 5 indicating a memory write request for transmitting the obtained data to the memory 3
When 5 is activated and input to AND gate 16,
The multiplexer 14 is switched by the output of the AND gate 16, and the address in the memory address register 13 which is the address when the data error occurs is transmitted to the memory 3 via the address bus 100 and the data previously obtained from the I / O port 4 is transmitted. Is written in the memory 3.

【0018】その後、マイクロプロセッサ1はRST信
号56をセットし、エラーフリップフロップ12をリセ
ットすることにより、データの補正処理が完了したこと
を知らせ、DMA転送の一時中断を回避し再開するよう
DMAコントローラ2へ報告する。
Thereafter, the microprocessor 1 sets the RST signal 56 and resets the error flip-flop 12 to notify that the correction processing of the data is completed, and avoids the temporary interruption of the DMA transfer and restarts the DMA controller. Report to 2.

【0019】[0019]

【発明の効果】以上説明したように、本発明は、DMA
転送中にデータエラーが発生した場合には、データ転送
を中止することなく、一時中断して、データの補正処理
を行った後にDMA転送を再開することにより、データ
転送効率を向上出来るという効果がある。
As described above, according to the present invention, the DMA
When a data error occurs during the transfer, the data transfer efficiency can be improved by temporarily suspending the data transfer, restarting the DMA transfer after performing the correction processing of the data, without stopping the data transfer. is there.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

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

1 マイクロプロセッサ 2 DMAコントローラ 3 メモリ 4 I/Oポート 11 パリティチェッカー 12 エラーフリップフロップ 13 メモリアドレスレジスタ 14 マルチプレクサ 15 ゲート 16 ANDゲート 17 ANDゲート 18 アドレスレジスタ 19 データレジスタ 1 Microprocessor 2 DMA Controller 3 Memory 4 I / O Port 11 Parity Checker 12 Error Flip Flop 13 Memory Address Register 14 Multiplexer 15 Gate 16 AND Gate 17 AND Gate 18 Address Register 19 Data Register

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 DMA転送中に、メモリに送出されるア
ドレスを保持するメモリアドレスレジスタと、 DMA転送中にデータエラーが検出されるとセットさ
れ、データエラーの補正処理が終了した時にリセットさ
れるエラーフリップフロップと、 前記メモリアドレスレジスタの出力とCPUのアドレス
バスとを切換えるためのマルチプレクサとを有し、 また、I/Oポート内に、メモリからI/Oポートへの
データ転送時には、データを格納すべきアドレスを保持
するアドレスレジスタおよびI/Oポートからメモリへ
のデータ転送時には、メモリへ転送したデータを保持す
るデータレジスタを設け、 データエラーが発生した時に、DMA転送を一時中断し
て、データの修正を行なった後に再開することを特徴と
するDMA転送方式。
1. A memory address register that holds an address to be sent to a memory during a DMA transfer, and is set when a data error is detected during the DMA transfer, and is reset when a data error correction process is completed. It has an error flip-flop, a multiplexer for switching the output of the memory address register and the address bus of the CPU, and stores data in the I / O port at the time of data transfer from the memory to the I / O port. An address register that holds the address to be stored and a data register that holds the data transferred to the memory at the time of data transfer from the I / O port to the memory are provided, and when a data error occurs, the DMA transfer is temporarily suspended, A DMA transfer method characterized by restarting after correcting data.
JP30297691A 1991-11-19 1991-11-19 Dma transfer system Withdrawn JPH05143520A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30297691A JPH05143520A (en) 1991-11-19 1991-11-19 Dma transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30297691A JPH05143520A (en) 1991-11-19 1991-11-19 Dma transfer system

Publications (1)

Publication Number Publication Date
JPH05143520A true JPH05143520A (en) 1993-06-11

Family

ID=17915432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30297691A Withdrawn JPH05143520A (en) 1991-11-19 1991-11-19 Dma transfer system

Country Status (1)

Country Link
JP (1) JPH05143520A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011516978A (en) * 2008-04-01 2011-05-26 アップル インコーポレイテッド Central DMA with arbitrary processing function
US8566485B2 (en) 2005-09-29 2013-10-22 Apple Inc. Data transformation during direct memory access

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8566485B2 (en) 2005-09-29 2013-10-22 Apple Inc. Data transformation during direct memory access
JP2011516978A (en) * 2008-04-01 2011-05-26 アップル インコーポレイテッド Central DMA with arbitrary processing function

Similar Documents

Publication Publication Date Title
US10372199B2 (en) Apparatus for managing power and running and booting an inter-processor communication link between independently operable processors
JP5347414B2 (en) Synchronization control device, information processing device, and synchronization management method
JPS63111545A (en) Microprocessor for debug
JPH05143520A (en) Dma transfer system
JPS6128141B2 (en)
JP2871171B2 (en) Microcomputer
JPH08329026A (en) Dual processor system
JPH03139735A (en) Fault processing system for information processor
JP2679440B2 (en) Information processing device
JP2000172575A (en) Memory backup system
JPH07287694A (en) Multiplex processing system and memory synchronous control method
JPH0635880A (en) Microprocessor
JP2004062619A (en) Pci bus controller, and image communication device and digital copier having the same
JPH04239355A (en) Electronic disk device
JPS6126090B2 (en)
JP3329155B2 (en) Information processing device
JPH03270334A (en) Reception controller in start-stop synchronizing communication
JPH1083357A (en) Data storage control method and its device
JPH03105539A (en) Information processor
JPS6030976B2 (en) Advance control type information processing device
JPH03265950A (en) 1-bit error processing system for control storage
JPH08272752A (en) Parallel processor
JPH05108491A (en) Information processor
JPS62130444A (en) Memory access controller
JPH04211841A (en) Duplex processor

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: 19990204