JPH0449457A - Direct memory access transfer control device - Google Patents

Direct memory access transfer control device

Info

Publication number
JPH0449457A
JPH0449457A JP16018190A JP16018190A JPH0449457A JP H0449457 A JPH0449457 A JP H0449457A JP 16018190 A JP16018190 A JP 16018190A JP 16018190 A JP16018190 A JP 16018190A JP H0449457 A JPH0449457 A JP H0449457A
Authority
JP
Japan
Prior art keywords
dma
bus
transfer
direct memory
cycle
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.)
Granted
Application number
JP16018190A
Other languages
Japanese (ja)
Other versions
JP3205992B2 (en
Inventor
Ichirou Kouzono
香園 一郎
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 Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP16018190A priority Critical patent/JP3205992B2/en
Publication of JPH0449457A publication Critical patent/JPH0449457A/en
Application granted granted Critical
Publication of JP3205992B2 publication Critical patent/JP3205992B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To obtain a DMA transfer control device by a simple hardware by controlling the execution cycle of direct memory access (DMA) in accordance with the specific status detection of a bus cycle. CONSTITUTION:A bus use allowable signal 45 is supplied to a timing control part 32 as a DMA execution allowable signal 46 through a DMA wait control circuit 33. When the signal 46 is activated and aquires bus using right, DMA transfer to a channel outputting the DMA request of the highest priority order out of plural DMA requests is started. Under the control of the timing control part 32 and a register selecting circuit 39, the contents of an address register 34 in an executing channel are read out in each transfer to form and output a DMA address. Data transfer is executed in accordance with a previously specified operation format. Consequently, a specific hardware such as a buffer register is not required for a register for storing various parameters.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はダイレクト・メモリ・アクセス(以下、DMA
と云う)方式によってメモリと周辺装置との間でデータ
の高速転送を行うための制御装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention is directed to direct memory access (hereinafter referred to as DMA).
The present invention relates to a control device for performing high-speed data transfer between a memory and a peripheral device using a method called .

〔従来の技術〕[Conventional technology]

ダイレクト メモリ アクセス方式は、高速度のデータ
転送方式の一つとして従来から広く採用されており、D
MA転送を行うための制御装置は情報処理システムに不
可欠なものとなっている。
The direct memory access method has been widely used as a high-speed data transfer method, and
A control device for performing MA transfer has become an essential part of an information processing system.

第5図は従来のDMA転送制御装置を含む情報処理シス
テムの一例を示すブロック構成図である。DMA転送制
御装置4は、周辺装置6からDMA要求信号8を受信し
てから動作を開始しDMA転送の開始によってDMA応
答信号9を周辺装置6に送信する。DMA転送には、メ
モリ5内の指定されたアドレスのデータを読み出してデ
ータ入出力バス21を経由して周辺装置6へ転送する場
合と、周辺装置6からバス2]を経由してデータをメモ
リ5内の指定されたアドレスへ転送して書き込む場合な
どがあり、いずれの場合でもデータ転送を終了すると周
辺装置6に対してDMA終了信号10を供給する。DM
A転送制御装置4は、DMA要求信号8を受け付けると
中央処理装置(以下、CP tJと云う)1のバス制御
回路2に、バスの使用要求信号11を発信する。バス制
御回路2では、演算処理回路3、リフレッシュ制御装置
7などからのバスの使用要求を調停し、DMA転送要求
よりも優先順位の高い要求がない場合に、バスの使用許
可信号12を返信してDMA転送制御装置4にアドレス
バス20およびデータ入出力バス21の使用を許可する
。DMA転送制御装置4はバスの使用権が得られると、
アドレスバス20、データ入出力バス21を介してデー
タ転送を連続して実行する。これらのバス使用権の調停
は実際のバス・サイクルに先だって行われる。また、D
MA転送制御装置4は、複数の転送経路(以下、チャネ
ルと云う)を備えており、要求元に応じたチャネルを選
択し、実行する。各チャネルには、制御情報として、転
送先のアドレス、転送元のアドレス、転送回数などが割
付けられている。これらのチャネルも実際のバス・サイ
クルに先だって選択される。
FIG. 5 is a block diagram showing an example of an information processing system including a conventional DMA transfer control device. The DMA transfer control device 4 starts operation after receiving a DMA request signal 8 from the peripheral device 6, and transmits a DMA response signal 9 to the peripheral device 6 upon starting the DMA transfer. DMA transfer involves reading data at a specified address in the memory 5 and transferring it to the peripheral device 6 via the data input/output bus 21, and transferring data from the peripheral device 6 to the memory via the bus 2. In some cases, the DMA end signal 10 is transferred to a specified address within the DMA 5 and written therein, and in either case, when the data transfer is completed, a DMA end signal 10 is supplied to the peripheral device 6. DM
When the A transfer control device 4 receives the DMA request signal 8, it sends a bus use request signal 11 to the bus control circuit 2 of the central processing unit (hereinafter referred to as CP tJ) 1. The bus control circuit 2 arbitrates bus use requests from the arithmetic processing circuit 3, refresh control device 7, etc., and returns a bus use permission signal 12 if there is no request with higher priority than the DMA transfer request. DMA transfer control device 4 is permitted to use address bus 20 and data input/output bus 21. When the DMA transfer control device 4 obtains the right to use the bus,
Data transfer is performed continuously via an address bus 20 and a data input/output bus 21. Arbitration of these bus rights takes place prior to the actual bus cycle. Also, D
The MA transfer control device 4 is equipped with a plurality of transfer paths (hereinafter referred to as channels), and selects and executes a channel according to the request source. Each channel is assigned control information such as a transfer destination address, a transfer source address, and the number of transfers. These channels are also selected prior to the actual bus cycle.

〔発明か解決しようとする課題〕[Invention or problem to be solved]

このように従来のDMA転送制御装置では、実際のバス
・サイクルに先だってバスの使用権の切り替えおよび対
応チャネルの選択が行われる。このため、DMA実行サ
イクル直前のバス・サイクルで各チャネルの制御情報例
えば転送先アドレスや転送元アドレスの変更のためにア
クセス命令によるバスサイクルが発生していると、DM
Aによるチャネルの指定とアクセス命令による指定とが
一時的に競合し、異なるものが同時に指定される状態が
発生して不都合となる場合がある。従って、DMAチャ
ネルに関するプログラムを行うときは、DMAの実行サ
イクルが発生しないことを検知しながら行うか、または
転送動作を禁止してから行い、プログラムの途中でDM
A要求を受け付けないようにする必要があった。また、
各チャネルの制御情報を一時保持しておくなめにDMA
の実行サイクル中には直接使用されないバッファ・レジ
スタなどの特別なハードウェアを必要としていた。
As described above, in the conventional DMA transfer control device, the right to use the bus is switched and the corresponding channel is selected prior to the actual bus cycle. Therefore, if a bus cycle due to an access command occurs to change the control information of each channel, such as the transfer destination address or transfer source address, in the bus cycle immediately before the DMA execution cycle, the DMA
There may be a temporary conflict between the channel designation by A and the designation by the access command, causing a situation in which different channels are designated at the same time, resulting in an inconvenience. Therefore, when executing a program related to a DMA channel, do so while detecting that no DMA execution cycle will occur, or after prohibiting transfer operations, and then perform a DMA channel program in the middle of the program.
It was necessary to prevent requests from being accepted. Also,
DMA to temporarily hold control information for each channel
required special hardware such as buffer registers that were not used directly during the execution cycle.

なお、従来のDMA転送制御装置では、−旦バスの使用
権を得た後はそれを放棄することなしに連続してDMA
転送を実行していたので、処理速度の低速な周辺装置に
対してはDMAの実行サイクルを引き延ばして転送する
必要があり、DMA転送によってバスを占有する期間が
長期間に及び、バスの使用効率が悪化するという問題も
ある。
In addition, in the conventional DMA transfer control device, once the right to use the bus is obtained, the DMA transfer control device continuously performs DMA transfer without giving up the right to use the bus.
Since the transfer was being executed, it was necessary to extend the DMA execution cycle and transfer the data to a peripheral device with a slow processing speed, and the bus was occupied by the DMA transfer for a long period of time, reducing the efficiency of bus usage. There is also the problem that it gets worse.

本発明の目的は、バスの使用許可中のDMAの実行サイ
クルを制御できる機能を簡単なハードウェアで実現した
DMA転送制御装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a DMA transfer control device that implements a function of controlling DMA execution cycles while bus use is permitted using simple hardware.

本発明の他の目的は、CPtJにおける処理負担を大幅
に軽減でき、用途に応じて最適設計が可能なりMA転送
制御装置を提供することにある。
Another object of the present invention is to provide an MA transfer control device that can significantly reduce the processing load on CPtJ and that can be designed optimally depending on the application.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のDMA転送制御装置は、バスを使用権を得な後
のDMA転送制御において、DMAの実行サイクルをバ
ス・サイクルの特定状態の検出に応じて制御することを
特徴とする。
The DMA transfer control device of the present invention is characterized in that, in DMA transfer control after obtaining the right to use the bus, the DMA execution cycle is controlled in accordance with the detection of a specific state of the bus cycle.

本発明のダイレクト・メモリ・アクセス転送制御装置は
、DMA制御の各種パラメータを記憶する記憶手段と、
各種パラメータを用いてDMA転送を実行する転送制御
回路と、有効なりMA転送要求を受け付はバスの使用要
求信号を発生する手段と、バス・サイクルの特定の状態
を検出する検吊手段と、バスの使用要求に応答したバス
の使用許可信号を受け付ける手段とを備える。
The direct memory access transfer control device of the present invention includes a storage means for storing various parameters for DMA control;
a transfer control circuit that executes DMA transfer using various parameters; means that receives a valid MA transfer request and generates a bus use request signal; and suspension means that detects a specific state of a bus cycle; and means for receiving a bus use permission signal in response to a bus use request.

本発明においてはバスの使用許可信号とハス・ザイクル
の状態検出とにもと−)いて転送制御回路において転送
→ノーイクルの起動制御を行う。
In the present invention, the transfer control circuit performs transfer→no cycle activation control based on the bus use permission signal and the detection of the hash cycle state.

本発明の他の態様においては、ハスの使用許可信号にも
とつくバスの使用許可状態中の複数回のバス・ザイクル
のうちの1−度なげに転送ザイクルを生成する。
In another aspect of the present invention, a transfer cycle is generated at every bus cycle of a plurality of bus cycles during a bus usage permission state based on a bus usage permission signal.

〔実施例〕〔Example〕

次に、本発明をその実施例について、図面を用いて説明
する。
Next, embodiments of the present invention will be described with reference to the drawings.

第1図を参照すると、本発明の一実施例のDMA転送制
御装置は、優先順位の決定と優先順位の決定に基づいた
DMA転送要求の調停とを行う優先順位制御部31と、
内部タイミンクを生成しDMA転送の動作制御を行うタ
イミング制御部32と、各チャネルごとにDMA転送の
対象となるメモリのアドレス(以下、DMAアドレスと
云う)を格納するアドレスレジスタ34と、1回の転送
ごとに実行中のチャネルのアドレスレジスタ34の内容
を更新するアドレス加減算器35と、各チャネルごとの
転送回数を格納するカラン1〜レジスタ36と、1回の
転送ごとに実行中のチャネルのカラン1〜レジスタ36
の内容を減少するガウンl−減算器37と、DMA転送
の動作形態などを制御するDMA制御レジスタ38と、
DMA転送の実行開始を遅延さぜるD M Aウェイ1
へ制御回路33と、CPUによる読み出しまたは書き込
みおよびI) M A転送中に使用するレジスタを選択
するレジスタ選択回路3つと、DMAアドレスを供給す
るI) M Aアドレスライン40と、CI−” Uの
アドレスバス20と、データ入出力ハス21と、各種制
御ライン(22〜23および41〜51用)とを含む。
Referring to FIG. 1, a DMA transfer control device according to an embodiment of the present invention includes a priority control unit 31 that determines priorities and arbitrates DMA transfer requests based on the determined priorities;
A timing control unit 32 that generates internal timing and controls the operation of DMA transfer, an address register 34 that stores the address of the memory to be subjected to DMA transfer for each channel (hereinafter referred to as DMA address), An address adder/subtractor 35 that updates the contents of the address register 34 of the channel being executed for each transfer, a callan 1 to register 36 that stores the number of transfers for each channel, and a callan of the channel being executed for each transfer. 1 to register 36
a DMA control register 38 that controls the operation mode of DMA transfer, etc.;
DMA way 1 that delays the start of DMA transfer execution
A control circuit 33 for reading or writing by the CPU, three register selection circuits for selecting registers to be used during transfer, and an address line 40 for supplying the DMA address, It includes an address bus 20, a data input/output bus 21, and various control lines (for 22-23 and 41-51).

アドレスレジスタ34、カラ1−レジスタ36、および
DMA制御レジスタ38は、いずれもCPUのアドレス
バス20、レジスタ選択回路3つ、制御ライン(レジス
タ選択信号48用)およびデータ入出力ハス21を介し
てCPUと接続されており、CPUは、DMA転送の実
行に先たち、これらのラインを介して、DMA転送の対
象となるメモリの開始アドレスをアドレスレジスタ34
に、転送回数をカウントレジスタ36に、動作制御情報
をDMA制御レジスタ38に、それぞれ格納する。優先
順位制御部31は、周辺装置からのDMA要求信号41
を監視しており、周辺装置から有効なりMA転送要求を
受け付けると、優先順位を決定し、タイミング制御部3
2にDMA要求の発生を知らせる。タイミング制御部3
2は、CPUに代わってDMA転送制御装置かアドレス
バス20、データ入出力バス21(以下、これらを総称
してバスと云う)の制御を行うために、CPUのバス制
御部に対してバスの使用要求信号44を送る。バス制御
部は、ハスの使用権の調停を行い、DMA転送によるバ
スの使用要求により優先順位の高い要求がない場合にバ
スの使用許可信号45を返して来る。バスの使用許可信
号45は、DMAウェイ1へ制御回路33を介して、D
MAの実行許可信号46としてタイミンク制御部32に
供給される。I) M Aの実行許可信号46が活性化
してハスの使用権を獲得すると、DMA要求の中から最
も優先順位の高いチャネルに対して、D M A転送を
開始する。
The address register 34, color 1 register 36, and DMA control register 38 are all connected to the CPU via the CPU's address bus 20, three register selection circuits, a control line (for register selection signal 48), and a data input/output bus 21. , and the CPU stores the start address of the memory subject to DMA transfer in the address register 34 via these lines before executing the DMA transfer.
Then, the number of transfers is stored in the count register 36, and the operation control information is stored in the DMA control register 38, respectively. The priority control unit 31 receives a DMA request signal 41 from a peripheral device.
When a valid MA transfer request is received from a peripheral device, the timing controller 3
2 of the occurrence of a DMA request. Timing control section 3
In order to control the DMA transfer control device, address bus 20, and data input/output bus 21 (hereinafter collectively referred to as the bus) on behalf of the CPU, 2 is a bus control unit for the CPU bus control unit. A use request signal 44 is sent. The bus control unit arbitrates the right to use the bus, and returns a bus use permission signal 45 if there is no request with a higher priority due to a bus use request due to DMA transfer. The bus use permission signal 45 is sent to the DMA way 1 via the control circuit 33.
The MA execution permission signal 46 is supplied to the timing control unit 32. I) When the MA execution permission signal 46 is activated and the right to use the lotus is acquired, DMA transfer is started for the channel with the highest priority among the DMA requests.

DMAの実行ザイクルでは、 り1)タイミング制御部32とレジスタ選択回路39と
の制御によって、1回の転送ごとに実行中のチャネルの
アドレスレジスタ34の内容を読み出し、DMAアドレ
スを生成し、DMAアドレスライン40を介して出力す
る。また、アドレス加減算器35で演算を行い、再びア
ドレスレジスタ34に書き戻ずことによってD M A
アドレスの更新を行う。
In the DMA execution cycle, 1) Under the control of the timing control unit 32 and the register selection circuit 39, the contents of the address register 34 of the channel being executed are read for each transfer, a DMA address is generated, and the DMA address is Output via line 40. Also, the address adder/subtracter 35 performs an operation, and by not writing back to the address register 34 again, the DMA
Update your address.

(2)カウントレジスタ36の内容を読み出し、カウン
ト減算器37で減少さぜ、再びカウントレジスタ36に
書き戻すことによって転送回数を制御する。
(2) The number of transfers is controlled by reading the content of the count register 36, decrementing it with the count subtractor 37, and writing it back to the count register 36.

(3)DMA転送を要求している周辺装置に対して、D
MAの実行ザイクルであることを示すDMA応答信号4
2を返す。
(3) For the peripheral device requesting DMA transfer,
DMA response signal 4 indicating that it is an MA execution cycle
Returns 2.

上記(1)〜(3)を繰り返し、あらかじめ指定された
動作形態に応じてデータ転送を行う。カウントレジスタ
36、カウント減算器37によって所定の転送回数をカ
ウントすると、DMA終了検出信号47を発生する。タ
イミング制御部32では、DMA終了検出信号47を検
知するとDMA終了信号43を活性化し、DMA転送を
要求している周辺装置に対して、DMAによる一連のデ
ータ転送の終了を知らせる。
The above steps (1) to (3) are repeated to perform data transfer according to a prespecified operation mode. When the count register 36 and count subtractor 37 count a predetermined number of transfers, a DMA end detection signal 47 is generated. When the timing control unit 32 detects the DMA end detection signal 47, it activates the DMA end signal 43 and notifies the peripheral device requesting the DMA transfer of the end of a series of data transfers by DMA.

ここで、第2図を用いてDMAウェイト制御回路33に
ついて詳細に説明する。第2図は、DMAウェイト制御
回路33の論理回路図である。本実施例のDMAウェイ
ト制御回路33は、アドレスデコーダ100、オアゲー
ト101、アンドゲート102.103.105、およ
びラッチ回路104を含む。アドレスデコーダ100は
、CPUのアドレスバス20上のアドレスをデコードし
、アドレスレジスタ34、カウントレジスタ36の割付
られているアドレスが出力されたことを検出する。オア
ゲート101は、CPUの読み出し動作中を示す信号2
2と書き込み動作中を示す信号23とを入力として、読
み出しまたは書き込み動作が行われたことを示す信号を
生成する。アンドゲート102は、アドレスデコーダ1
00の出力とオアゲートLotの出力とバスの使用要求
信号44とを入力として、DMA転送によるバスの使用
要求中に、CPUがらアドレスレジスタ34、カウント
レジスタ36に対して読み出しまたは書き込みが行われ
たことを示す信号を生成する。アンドゲート102の出
力は、ラッチ回#1104に入力される。アンドゲート
103は、内部動作の基本クロック信号50とバス・サ
イクルの終了期間信号51とを入力し、バスの使用権の
切り替えタイミングを示す信号を生成する。ラッチ回路
104は、アンドゲート102の出力を入力し、アンド
ゲート103の出力が°。
Here, the DMA weight control circuit 33 will be explained in detail using FIG. 2. FIG. 2 is a logic circuit diagram of the DMA weight control circuit 33. The DMA weight control circuit 33 of this embodiment includes an address decoder 100, an OR gate 101, AND gates 102, 103, and 105, and a latch circuit 104. Address decoder 100 decodes the address on address bus 20 of the CPU and detects that the address assigned to address register 34 and count register 36 has been output. The OR gate 101 receives a signal 2 indicating that the CPU is in a read operation.
2 and a signal 23 indicating that a write operation is in progress, it generates a signal indicating that a read or write operation has been performed. AND gate 102 is address decoder 1
00 output, the output of the OR gate Lot, and the bus use request signal 44 are input, and the CPU reads or writes to the address register 34 and the count register 36 during a bus use request by DMA transfer. Generates a signal indicating. The output of AND gate 102 is input to latch circuit #1104. The AND gate 103 inputs the basic clock signal 50 for internal operation and the end period signal 51 of the bus cycle, and generates a signal indicating the switching timing of the right to use the bus. The latch circuit 104 receives the output of the AND gate 102, and receives the output of the AND gate 103.

1″の期間、すなわちバスの使用権の切り替タイミング
に入力信号の状態を出力する。アンドゲート105は、
ラッチ回路104の出力の反転信号とバスの使用許可信
号45とを入力し、DMAの実行許可信号46を生成す
る。DMA実行許可信号46は、タイミング制御部32
に供給される。
The AND gate 105 outputs the state of the input signal during a period of 1'', that is, at the timing of switching the right to use the bus.
The inverted signal of the output of the latch circuit 104 and the bus use permission signal 45 are input, and a DMA execution permission signal 46 is generated. The DMA execution permission signal 46 is transmitted to the timing control section 32.
is supplied to

次にDMAウェイト制御回路33の動作について、第3
図に示すDMAウェイト制御回路33の動作タイミング
図をも参照して説明する。バス・サイクル(A)におい
て、CPUによるアドレスレジスタ34、またはカウン
トレジスタ36の読み出し、書き込みが行われると、ア
ドレスデコーダ100の出力、オアゲート101の出力
は、共に1°“となる。このとき、DMA転送によるバ
スの使用要求(信号44)が発生しているとアンドゲー
ト102の出力は“°1′″となる。アトゲート102
の出力は、ラッチ回路104に入力され、ラッチ回路1
04の出力は、バス・サイクル(A)のT3からバス・
サイクル(B)のT2tでの期間“1゛′となる。一方
、バスの使用許可信号45は、CPUにより読み出しま
たは書き込みのためのバスサイクルが終了するため、バ
スの使用権の切り替えタイミング、すなわちバス・サイ
クル(A)のT3から11111となる。ラッチ回路1
04の出力は、反転してアンドゲート105に入力され
ており、アンドゲート105の出力、すなわちDMA実
行許可信号46は、バス・サイクル(B)のT3から1
′”となる。DMAの実行許可信号46が°°1°′と
なると、バス・サイクル(C)からDMAの実行サイク
ルが開始する。
Next, regarding the operation of the DMA wait control circuit 33, the third
The explanation will be made with reference to the operation timing diagram of the DMA weight control circuit 33 shown in the figure. In the bus cycle (A), when the CPU reads or writes the address register 34 or the count register 36, the output of the address decoder 100 and the output of the OR gate 101 both become 1°.At this time, the DMA When a request to use the bus due to transfer (signal 44) is generated, the output of the AND gate 102 becomes "°1'".At gate 102
The output of latch circuit 104 is input to latch circuit 104.
The output of 04 is the bus signal from T3 of bus cycle (A).
The period at T2t of cycle (B) is "1". On the other hand, the bus use permission signal 45 is determined at the bus use right switching timing, because the bus cycle for reading or writing by the CPU ends. It becomes 11111 from T3 of bus cycle (A).Latch circuit 1
The output of 04 is inverted and input to the AND gate 105, and the output of the AND gate 105, that is, the DMA execution permission signal 46, is input from T3 to 1 of the bus cycle (B).
''. When the DMA execution permission signal 46 becomes °°1°', the DMA execution cycle starts from the bus cycle (C).

このように、本実施例では、DMA転送によるバスの使
用要求中にCPUによるアドレスレジスタ34またはカ
ウントレジスタ36へのアクセスが行われたことを判別
し、アクセスが行われている場合には、バスの使用許可
信号45に対して、1バス・サイクルの間隔を置いてか
らDMAの実行許可信号46を活性化する。このように
CPUのアクセスに引き続いてすぐにDMAの実行サイ
クルが起動されることがないなめ、アドレスレジスタ3
4またはカウントレジスタ36の読み出し、書き込みを
安定した状態で正常に行うことができる。
In this way, in this embodiment, it is determined that the address register 34 or the count register 36 is accessed by the CPU during a request to use the bus due to DMA transfer, and if the access is performed, the bus is After an interval of one bus cycle, the DMA execution permission signal 46 is activated. In this way, the DMA execution cycle is not started immediately following the CPU access, so the address register 3
4 or the count register 36 can be read and written normally in a stable state.

また、本実施例ではアドレスレジスタ34、カラントレ
ジスタ36の読み出し、書き込みに対するウェイト制御
について説明したか、アドレスの割付に制約されること
がなく、DMA制御レジスタ38などについても同様の
制御が容易に実現できることは云うまでもない。
In addition, in this embodiment, wait control for reading and writing of the address register 34 and current register 36 has been explained, and the same control can be easily realized for the DMA control register 38 etc. without being restricted by address allocation. It goes without saying that it can be done.

次に、第4図を参照して本発明の第2の実施例を説明す
る。第4図において第1図の実施例と同等の部分や信号
には同一の番号を用いて示しである。本実施例における
分周回路60は、バスの使用許可信号45と基本クロッ
ク信号50とバスサイクルの終了期間信号51とを入力
し、バス・サイクル周期を4分周する。すなわちバスの
使用許可状態中の4回のバス・サイクルに1度たけ有効
なバス・サイクルを生成する。分周回路60の出力は、
DMAの実行許可信号46としてタイミング制御部32
に供給される。このため、バスの使用が許可されている
状態で、4回のバス サイクルに1バス・サイクルたけ
DMAの実行許可信号46が活性化し、一定間隔でDM
A転送サイクルが周期的に発生する。
Next, a second embodiment of the present invention will be described with reference to FIG. In FIG. 4, parts and signals that are equivalent to those in the embodiment of FIG. 1 are indicated using the same numbers. The frequency dividing circuit 60 in this embodiment receives the bus use permission signal 45, the basic clock signal 50, and the bus cycle end period signal 51, and divides the bus cycle period by four. That is, a valid bus cycle is generated only once in four bus cycles while the bus is in the enabled state. The output of the frequency dividing circuit 60 is
The timing control unit 32 uses the DMA execution permission signal 46 as the DMA execution permission signal 46.
is supplied to Therefore, in a state where the use of the bus is permitted, the DMA execution permission signal 46 is activated for one bus cycle every four bus cycles, and the DMA execution permission signal 46 is activated at regular intervals.
A transfer cycles occur periodically.

以上のように、第2の実施例ではDMA転送によるバス
の使用か許可されている期間の4回のハス・サイクルに
1回だけDMA転送のためのバス・サイクルが発生ずる
。従って、処理の低速な周辺装置に対して、最適な速度
で無理なく転送できる。なお、本実施例では、4分周に
ついて説明したが、分周比に制約されることなく他の分
周でも実現できることは云うまでもない。
As described above, in the second embodiment, a bus cycle for DMA transfer occurs only once every four hash cycles during the period in which use of the bus for DMA transfer is permitted. Therefore, it is possible to easily transfer data at an optimal speed to a peripheral device with slow processing speed. In this embodiment, frequency division by four has been described, but it goes without saying that other frequency divisions can be implemented without being restricted by the frequency division ratio.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によればバスの使用権を得
た後のDMA転送制御において、DMAの実行サイクル
をバス・サイクルの特定の状態検出に応して制御するこ
とによって次のような効果かある。
As explained above, according to the present invention, in DMA transfer control after obtaining the right to use the bus, the following is achieved by controlling the DMA execution cycle in accordance with the detection of a specific state of the bus cycle. It's effective.

(1)DMAチャネルに関するプログラムを行う場合に
、DMAの実行サイクルの発生を検知しなから行ったり
DMA転送動作を禁止したりする必要かないため、ソフ
トウェア処理の負担を大幅に軽減し、装置全体の性能を
著しく向上できる。
(1) When programming a DMA channel, there is no need to detect the occurrence of a DMA execution cycle or to prohibit DMA transfer operations, which greatly reduces the burden on software processing and improves overall device performance. Performance can be significantly improved.

(2)DMA転送制御の各種パラメータを記憶するレジ
スタにバッファ・レジスタなとの特別なハードウェアを
必要としないなめ、ハードウェアの削減、および最適設
計がてきる。
(2) Since special hardware such as a buffer register is not required for registers that store various parameters for DMA transfer control, hardware can be reduced and optimal design can be achieved.

(3)処理速度の低速な周辺装置に対しても、ハスの使
用効率を悪化することなく、最適な速度で無理なく転送
できるなめトータルのデータ処理を最適化できる。
(3) Even for peripheral devices with low processing speeds, the total data processing can be optimized so that data can be transferred easily at the optimum speed without deteriorating the efficiency of use of the lotus.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明のDMA転送制御装置の一実施例のブロ
ック構成図、第2図は第1図の実施例におけるDMAウ
ェイト制御回路の論理回路図、第3図は第2図のDMA
ウェイト制御回路の動作タイミング図、第4図は本発明
の他の実施例を示すブロック構成図、第5図は従来のD
MA転送制御装置を含む情報処理システムのブロック構
成図である。 1・・・CPU、2・・・バス制御回路、3・・・演算
処理回路、4・・・DMA転送制御装置、5・・・メモ
リ、6・・・周辺装置、7・・・リフレッシュ制御装置
、84]・・・DMA要求信号、9,42・・・DMA
応答信号、10,4.3・・・DMA終了信号、11.
.1444・・・バスの使用要求信号、12.45・・
・バスの使用許可信号、13.40・・・DMAアドレ
スライン、]5・・・リフレッシュアドレスライン、2
0・・・アドレスバス、2]・・・デ°−タ入出力バス
、22・・・読み出し動作中を示す信号、23・・・書
き込み動作中を示す信号、31・・・優先順位制御部、
32・・・タイミンク゛制御部、33・・・DMAウェ
イト制御回路、34・・・アドレスレジスタ、35・・
・アトレジ加減算器、36・・・カウントレジスタ、3
7・・・カウント減算器、38・・DMA制御レジスタ
、39・・・レジスタ選択回路、46・・・DMA実行
許可信号、47・・・I)MA終了検出信号、48・・
・レジスタ選択信号、4つ・・・動作タイミング信号、
5o・・・基本クロック信号、51・・・バスサイクル
の終了期間信号、60・・・分周回路、100・・・ア
ドレスデコーダ、101・・・オアゲート、102,1
.03105・・・アンドゲート、104・・・ラッチ
回路。
FIG. 1 is a block diagram of an embodiment of the DMA transfer control device of the present invention, FIG. 2 is a logic circuit diagram of a DMA weight control circuit in the embodiment of FIG. 1, and FIG.
FIG. 4 is a block configuration diagram showing another embodiment of the present invention, and FIG. 5 is a diagram of the operation timing of the weight control circuit.
FIG. 1 is a block configuration diagram of an information processing system including an MA transfer control device. DESCRIPTION OF SYMBOLS 1... CPU, 2... Bus control circuit, 3... Arithmetic processing circuit, 4... DMA transfer control device, 5... Memory, 6... Peripheral device, 7... Refresh control device, 84]...DMA request signal, 9,42...DMA
Response signal, 10, 4.3... DMA end signal, 11.
.. 1444... Bus use request signal, 12.45...
・Bus use permission signal, 13.40...DMA address line, ]5...Refresh address line, 2
0...Address bus, 2]...Data input/output bus, 22...Signal indicating that reading operation is in progress, 23...Signal indicating that writing operation is in progress, 31...Priority control section ,
32... Timing control unit, 33... DMA wait control circuit, 34... Address register, 35...
・Atregi adder/subtractor, 36...Count register, 3
7... Count subtractor, 38... DMA control register, 39... Register selection circuit, 46... DMA execution permission signal, 47... I) MA end detection signal, 48...
・Register selection signals, 4...operation timing signals,
5o... Basic clock signal, 51... Bus cycle end period signal, 60... Frequency divider circuit, 100... Address decoder, 101... OR gate, 102,1
.. 03105...AND gate, 104...Latch circuit.

Claims (1)

【特許請求の範囲】 1、メモリ内の指定アドレスのデータをダイレクト・メ
モリ・アクセス方式によって転送するダイレクト・メモ
リ・アクセス転送制御装置において、ダイレクト・メモ
リ・アクセス制御の各種パラメータを記憶する記憶手段
と、前記各種パラメータを用いてダイレクト・メモリ・
アクセス転送を実行する転送制御回路と、有効なダイレ
クト・メモリ・アクセス転送要求を受け付けバスの使用
要求信号を発生する手段と、バス・サイクルの特定の状
態を検出する検出手段と、前記バスの使用要求信号に応
答したバスの使用許可信号を受け付ける手段とを備えた
ことを特徴とするダイレクト・メモリ・アクセス転送制
御装置。 2、前記バスの使用許可信号と前記バス・サイクルの特
定の状態を検出する手段の検出結果とにもとづいて前記
転送制御回路が転送サイクルの起動制御を行うことを特
徴とする請求項1記載のダイレクト・メモリ・アクセス
転送制御装置。 3、前記バスの使用許可信号の生起中に複数回のバス・
サイクルのうち1回の有効なバス・サイクルを生成して
転送サイクルの起動制御を行うことを特徴とする請求項
1記載のダイレクト・メモリ・アクセス転送制御装置。
[Claims] 1. A direct memory access transfer control device that transfers data at a specified address in a memory using a direct memory access method, comprising: a storage means for storing various parameters for direct memory access control; , direct memory using the various parameters mentioned above.
a transfer control circuit for executing access transfer; means for receiving a valid direct memory access transfer request and generating a bus use request signal; detection means for detecting a specific state of a bus cycle; and use of the bus. A direct memory access transfer control device comprising: means for receiving a bus use permission signal in response to a request signal. 2. The transfer control circuit according to claim 1, wherein the transfer control circuit performs activation control of the transfer cycle based on the bus use permission signal and the detection result of the means for detecting a specific state of the bus cycle. Direct memory access transfer controller. 3. Multiple bus accesses during the occurrence of the bus use permission signal.
2. The direct memory access transfer control device according to claim 1, wherein the transfer cycle activation control is performed by generating one valid bus cycle among the cycles.
JP16018190A 1990-06-19 1990-06-19 Direct memory access transfer controller Expired - Fee Related JP3205992B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16018190A JP3205992B2 (en) 1990-06-19 1990-06-19 Direct memory access transfer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16018190A JP3205992B2 (en) 1990-06-19 1990-06-19 Direct memory access transfer controller

Publications (2)

Publication Number Publication Date
JPH0449457A true JPH0449457A (en) 1992-02-18
JP3205992B2 JP3205992B2 (en) 2001-09-04

Family

ID=15709583

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16018190A Expired - Fee Related JP3205992B2 (en) 1990-06-19 1990-06-19 Direct memory access transfer controller

Country Status (1)

Country Link
JP (1) JP3205992B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6105082A (en) * 1997-05-15 2000-08-15 Ricoh Company, Ltd. Data processor used in a data transfer system which includes a detection circuit for detecting whether processor uses bus in a forthcoming cycle
CN114490464A (en) * 2021-12-27 2022-05-13 北京自动化控制设备研究所 Multi-sensor data synchronization and transmission method and magnetoencephalography detector

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6105082A (en) * 1997-05-15 2000-08-15 Ricoh Company, Ltd. Data processor used in a data transfer system which includes a detection circuit for detecting whether processor uses bus in a forthcoming cycle
CN114490464A (en) * 2021-12-27 2022-05-13 北京自动化控制设备研究所 Multi-sensor data synchronization and transmission method and magnetoencephalography detector
CN114490464B (en) * 2021-12-27 2023-10-13 北京自动化控制设备研究所 Multi-sensor data synchronization and transmission method and magnetic brain detector

Also Published As

Publication number Publication date
JP3205992B2 (en) 2001-09-04

Similar Documents

Publication Publication Date Title
JP2569323B2 (en) Coprocessors-Architecture
KR0133236B1 (en) Shared memory system and arbitration method and system
JP7468112B2 (en) INTERFACE CIRCUIT AND METHOD FOR CONTROLLING INTERFACE CIRCUIT - Patent application
US5627968A (en) Data transfer apparatus which allows data to be transferred between data devices without accessing a shared memory
JP2806672B2 (en) Direct memory access transfer controller
JP3205992B2 (en) Direct memory access transfer controller
JP2005293596A (en) Arbitration of data requests
JP2007506174A (en) Integrated circuit having a plurality of communication digital signal processors
JP3743601B2 (en) Information transfer mediation device
JP2001117862A (en) Microcomputer
JP3206013B2 (en) Direct memory access transfer controller
JPH10222979A (en) Information processing device
JPH11175464A (en) Arbitration device and method
JP3201439B2 (en) Direct memory access control circuit
JPH1083373A (en) Programmable controller
JPH02222058A (en) Multiprocessor system
JP3265582B2 (en) Microcomputer
JP2837698B2 (en) Direct memory access controller
JPH0351943A (en) Sharing system for high/low speed bus lines
JP2691560B2 (en) Refresh control method for D-RAM
JPS6028022B2 (en) input/output processing unit
JPH04107634A (en) Memory data bypass control system
JP2004038333A (en) Data transfer system
JPH0333951A (en) Microcomputer system
JP2004213142A (en) Semiconductor integrated circuit device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees