JP2000267993A - Dma controller - Google Patents

Dma controller

Info

Publication number
JP2000267993A
JP2000267993A JP11073181A JP7318199A JP2000267993A JP 2000267993 A JP2000267993 A JP 2000267993A JP 11073181 A JP11073181 A JP 11073181A JP 7318199 A JP7318199 A JP 7318199A JP 2000267993 A JP2000267993 A JP 2000267993A
Authority
JP
Japan
Prior art keywords
bus
access
dma
unit
priority
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
JP11073181A
Other languages
Japanese (ja)
Other versions
JP3985085B2 (en
Inventor
Kenichi Morita
賢一 守田
Takeshi Minami
猛 南
Kazunori Shionoya
和則 塩野谷
Nobuo Kamei
伸雄 亀井
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.)
Minolta Co Ltd
Original Assignee
Minolta Co 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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP07318199A priority Critical patent/JP3985085B2/en
Priority to US09/521,196 priority patent/US6615291B1/en
Publication of JP2000267993A publication Critical patent/JP2000267993A/en
Application granted granted Critical
Publication of JP3985085B2 publication Critical patent/JP3985085B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a DMA controller by which access to a shared bus by a CPU is secured by detecting an operating state of a device and changing the contents of mediation control of a bus according to its detected result. SOLUTION: The operating states of DMA control parts 1 to 3 are detected based on DMA processing signals dma 1 to 3 by a device monitoring part 208 in this DMA controller. And a priority order table is selected by a priority order table selecting part 218 according to the detected results of the device monitoring part 208. Thus, the mediation control of the bus is performed according to the priority order table according to the operating states of the DMA control parts 1 to 3 at a bus mediating part 206. Thereby, exclusive holding of the bus 5 by the DMA control part 1 to 3 is prevented and required access time is secured for the CPU 14 as well.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、直接メモリアクセ
ス制御(以下、「DMA制御」ともいう)に関する。さ
らに詳細には、共有バスに接続された複数のデバイスの
動作状況の如何にかかわらず、特定のデバイスにより共
有バスが占有され、共有バスにアクセスできないデバイ
スが発生するのを防止したDMA制御装置に関するもの
である。例えば、複写機のように、CPUと他のデバイ
ス(スキャナ、プリンタ等)とでバスを共用する機器に
用いて好適なものである。
The present invention relates to direct memory access control (hereinafter, also referred to as "DMA control"). More specifically, the present invention relates to a DMA control device that prevents a device occupying a shared bus and preventing access to the shared bus, regardless of the operating status of a plurality of devices connected to the shared bus. Things. For example, it is suitable for use in a device such as a copying machine that shares a bus between a CPU and another device (scanner, printer, etc.).

【0002】[0002]

【従来の技術】従来のDMA制御装置では、複数のデバ
イスからバスアクセスのリクエストがあった場合に、バ
スアクセスを調停するためのバス調停部を備えるものが
知られている。そのシステムの一例を図11に示す。図
11に示すシステムは、基本的に、メモリ107と、各
DMA制御部101,102,103、およびアクセス
制御部104とを有し、DMA制御部101〜103、
およびアクセス制御部104が共用のバス105を介し
てメモリ107にアクセスするものである。そして、各
DMA制御部101〜103、およびアクセス制御部1
04からバス105へのアクセスを調停するバス調停部
106が設けられている。また、DMA制御部101に
はプリンタ装置111が接続され、DMA制御部102
にはスキャナ装置112が接続され、DMA制御部10
3にはハードディスク113が接続され、アクセス制御
部104にはCPU114が接続されている。
2. Description of the Related Art A known DMA control device includes a bus arbitration unit for arbitrating a bus access when a plurality of devices request a bus access. FIG. 11 shows an example of the system. The system shown in FIG. 11 basically includes a memory 107, DMA control units 101, 102, and 103, and an access control unit 104.
And the access control unit 104 accesses the memory 107 via the shared bus 105. Then, each of the DMA control units 101 to 103 and the access control unit 1
A bus arbitration unit 106 that arbitrates the access from 04 to the bus 105 is provided. Further, a printer device 111 is connected to the DMA control unit 101, and the DMA control unit 102
Is connected to the scanner device 112 and the DMA control unit 10
A hard disk 113 is connected to 3, and a CPU 114 is connected to the access control unit 104.

【0003】このシステムは次のように動作する。この
動作について図12を参照して説明する。例えば、DM
A制御部101においてバス105へのアクセスが必要
になると、DMA制御部101はバス調停部106に対
しリクエスト信号req1を出力する。このリクエスト信号
req1に対してバス調停部106は、可能ならばバス使用
許可信号ack1を返信する。この許可信号ack1がアクティ
ブである期間中、DMA制御部101を介してプリンタ
装置111がバス105にアクセスできるのである。他
の制御部(デバイス)でも同様である。
[0003] This system operates as follows. This operation will be described with reference to FIG. For example, DM
When the A control unit 101 needs to access the bus 105, the DMA control unit 101 outputs a request signal req1 to the bus arbitration unit 106. This request signal
In response to req1, the bus arbitration unit 106 returns a bus use permission signal ack1 if possible. While the permission signal ack1 is active, the printer device 111 can access the bus 105 via the DMA control unit 101. The same applies to other control units (devices).

【0004】ここで、複数の制御部からリクエストが同
時にあった場合には、バス調停部106は所定の優先順
位にしたがってバス使用許可信号を返信するようになっ
ている。優先順位の一例を図13に示す。この優先順位
の場合、バス調停部106に対してリクエスト信号req
1,req2,req3,req4が同時に出力されたときには、バス調
停部106は、最も優先順位が高いバス使用許可信号ac
k1のみを返信する。これにより、DMA制御部101が
他の制御部102〜104よりも優先してバス105に
アクセスする。同様に、リクエスト信号req2,req3,req4
が同時に出力されたときには、バス調停部106はその
中で最も優先順位の高いバス使用許可信号ack2のみを返
信する。このため、DMA制御部102が他の制御部1
03,104よりも優先してバス105にアクセスす
る。
Here, when there are requests from a plurality of control units at the same time, the bus arbitration unit 106 returns a bus use permission signal according to a predetermined priority. FIG. 13 shows an example of the priority order. In the case of this priority, the request signal req is sent to the bus arbitration unit 106.
When 1, req2, req3, and req4 are simultaneously output, the bus arbitration unit 106 sets the bus use permission signal ac having the highest priority.
Reply only k1. Accordingly, the DMA control unit 101 accesses the bus 105 with priority over the other control units 102 to 104. Similarly, request signals req2, req3, req4
Are simultaneously output, the bus arbitration unit 106 returns only the bus use permission signal ack2 having the highest priority among them. For this reason, the DMA control unit 102
The access to the bus 105 takes precedence over the access to the buses 03 and 104.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記し
た従来のDMA制御装置100では、バス調停部106
において常に図13に示す優先順位のみにしたがってバ
ス調停制御が行われるため、DMA制御部101〜10
3、およびアクセス制御部104からのリクエスト信号
req1,req2,req3,req4が一時期に集中してバス調停部1
06に対して出力されると、優先順位の低いアクセス制
御部104(CPU114)がバス105にアクセスで
きないおそれがあった。かかる場合にはCPU114が
バス105にアクセスできずにシステムのプログラムが
停止してしまうという問題があった。
However, in the above-described conventional DMA controller 100, the bus arbitration unit 106
, The bus arbitration control is always performed only according to the priority shown in FIG.
3, and a request signal from the access control unit 104
req1, req2, req3, req4 concentrated at one time, bus arbitration unit 1
When the access control unit 104 outputs the request to the bus 06, the access control unit 104 (CPU 114) having a low priority may not be able to access the bus 105. In such a case, there is a problem that the system program stops because the CPU 114 cannot access the bus 105.

【0006】そこで、本発明は上記した問題点を解決す
るためになされたものであり、デバイスの動作状況を検
出し、その結果検出に応じてバス調停制御の内容を変更
することにより、CPUによる共有バスへのアクセスを
確保することができるDMA制御装置を提供することを
課題とする。
Accordingly, the present invention has been made to solve the above-described problem, and detects the operation state of a device, and changes the content of bus arbitration control according to the result of detection. It is an object of the present invention to provide a DMA control device capable of securing access to a shared bus.

【0007】[0007]

【課題を解決するための手段】上記問題点を解決するた
め本発明に係るDMA制御装置によれば、CPUと、メ
モリと、前記CPUおよび前記メモリが接続された共有
バスと、前記共有バスに接続されるとともに前記メモリ
にアクセスする複数のデバイスと、前記各デバイスの動
作状況を検出するデバイスモニタ手段と、前記デバイス
モニタ手段の検出結果に基づいて前記CPUおよび前記
各デバイスによる前記共有バスへのアクセスを調停する
バス調停手段と、を有する。
According to the present invention, there is provided a DMA control apparatus, comprising: a CPU; a memory; a shared bus to which the CPU and the memory are connected; A plurality of devices connected to and accessing the memory, device monitoring means for detecting an operation state of each device, and a connection to the shared bus by the CPU and each device based on a detection result of the device monitoring means. Bus arbitration means for arbitrating access.

【0008】このDMA制御装置では、デバイスモニタ
手段により、共有バスに接続されたデバイスの動作状況
が検出される。そして、バス調停手段によって、デバイ
スモニタ手段の検出結果に基づき各デバイスおよびCP
Uのリクエストに対して、共有バスの使用許可の調停が
行われる。これにより、デバイスの動作状況に応じて適
切に各デバイスおよびCPUによる共有バスへのアクセ
スが調停される。従って、複数のデバイスからリクエス
トが一時期に集中した場合に、優先順位の高いデバイス
による共有バスの独占が防止され、優先順位の低いCP
Uにも必要なアクセス時間が確保される。なお、デバイ
スの動作状況とは、各デバイスによる共有バスへのアク
セス状態(アクセスしているか否か)を示すものであ
る。
In this DMA control device, the operating status of the device connected to the shared bus is detected by the device monitoring means. Then, the bus arbitration unit controls each device and CP based on the detection result of the device monitoring unit.
In response to U's request, arbitration of permission to use the shared bus is performed. Thereby, access to the shared bus by each device and the CPU is appropriately arbitrated according to the operation state of the device. Therefore, when requests from a plurality of devices are concentrated at one time, monopolization of the shared bus by devices with higher priority is prevented, and CPs with lower priority are prevented.
The necessary access time is also secured for U. The operation status of a device indicates an access state of each device to the shared bus (whether or not the device is accessing the shared bus).

【0009】また、本発明に係るDMA制御装置におい
て、前記CPUおよび前記各デバイスの優先順位を記録
した複数の異なる優先順位テーブルと、前記デバイスモ
ニタ手段の検出結果に基づいて前記優先順位テーブルの
うち1つを選択する優先順位テーブル選択手段とを有
し、前記バス調停手段は、前記優先順位テーブル選択手
段により選択された優先順位テーブルに従い前記CPU
および前記各デバイスによる前記共有バスへのアクセス
を調停する。
Further, in the DMA control device according to the present invention, a plurality of different priority tables recording the priorities of the CPU and the respective devices, and the priority table based on a detection result of the device monitor means. And a priority table selecting means for selecting one of the CPUs, wherein the bus arbitration means operates according to the priority table selected by the priority table selecting means.
And arbitrating access to the shared bus by each of the devices.

【0010】このDMA制御装置でも、デバイスモニタ
手段により、各デバイスの動作状況が検出される。そし
て、優先順位テーブル選択手段により、デバイスモニタ
手段の検出結果に基づいて複数の異なる優先順位テーブ
ルのうち1つが選択される。その後、選択された優先順
位テーブルに従い各デバイスおよびCPUのリクエスト
に対して、共有バスの使用許可の調停が行われる。これ
により、デバイスの動作状況に応じて適切に各デバイス
およびCPUによる共有バスへのアクセスが調停され
る。従って、複数のデバイスからリクエストが一時期に
集中した場合に、優先順位の高いデバイスによる共有バ
スの独占が防止され、優先順位の低いCPUにも必要な
アクセス時間が確保される。なお、複数の異なる優先順
位テーブルにおいては、必ずCPUの順位が異なってい
ることが必要である。
In this DMA control device, the operation status of each device is detected by the device monitor. Then, one of a plurality of different priority tables is selected by the priority table selection unit based on the detection result of the device monitoring unit. Thereafter, arbitration of the use permission of the shared bus is performed for each device and CPU request according to the selected priority order table. Thereby, access to the shared bus by each device and the CPU is appropriately arbitrated according to the operation state of the device. Therefore, when requests from a plurality of devices are concentrated at one time, monopolization of the shared bus by devices with higher priority is prevented, and necessary access time is ensured even for CPUs with lower priority. Note that in a plurality of different priority order tables, it is necessary that the order of CPUs is always different.

【0011】また、本発明に係るDMA制御装置におい
て、前記各デバイスによる前記共有バスへの最低アクセ
ス時間を記録した複数の異なるアクセス間隔テーブル
と、前記デバイスモニタ手段の検出結果に基づいて前記
アクセス間隔テーブルのうち1つを選択するアクセス間
隔テーブル選択手段と、前記アクセス間隔テーブル選択
手段により選択されたアクセス間隔テーブルに従い前記
各デバイスによる前記共有バスへのアクセスの許否を決
定するアクセス許否決定手段とを有し、前記バス調停手
段は、前記アクセス許否決定手段の決定に従い前記CP
Uおよび前記各デバイスによる前記共有バスへのアクセ
スを調停する。
Further, in the DMA control device according to the present invention, the plurality of different access interval tables recording the minimum access time of each device to the shared bus, and the access interval based on the detection result of the device monitor means. Access interval table selecting means for selecting one of the tables, and access permission / rejection determining means for determining whether or not each device is allowed to access the shared bus according to the access interval table selected by the access interval table selecting means. The bus arbitration means, according to the determination of the access permission / denial determination means,
U and arbitrate access to the shared bus by each device.

【0012】このDMA制御装置でも、デバイスモニタ
手段により、各デバイスの動作状況が検出されている。
そして、アクセス間隔テーブル選択手段により、デバイ
スモニタ手段の検出結果に基づいて複数の異なるアクセ
ス間隔テーブルのうち1つが選択される。さらに、アク
セス許否決定手段により、アクセス間隔テーブル選択手
段で選択されたアクセス間隔テーブルに従い各デバイス
による共有バスへのアクセスの許否が決定される。その
後、アクセス許否決定手段の決定に従い各デバイスおよ
びCPUのリクエストに対して、共有バスの使用許可の
調停が行われる。これにより、デバイスの動作状況に応
じて適切に各デバイスおよびCPUによる共有バスへの
アクセスが調停される。従って、複数のデバイスからリ
クエストが一時期に集中した場合に、優先順位の高いデ
バイスによる共有バスの独占が防止され、優先順位の低
いCPUにも必要なアクセス時間が確保される。なお、
アクセス間隔テーブルに、CPUによる共有バスへの最
低アクセス間隔を含めてもよい。
In this DMA control device, the operation status of each device is detected by the device monitor.
Then, one of a plurality of different access interval tables is selected by the access interval table selecting means based on the detection result of the device monitoring means. Further, the access permission / rejection determining means determines whether or not each device is allowed to access the shared bus according to the access interval table selected by the access interval table selecting means. After that, arbitration of the use permission of the shared bus is performed for each device and CPU request according to the determination of the access permission / refusal determining means. Thereby, access to the shared bus by each device and the CPU is appropriately arbitrated according to the operation state of the device. Therefore, when requests from a plurality of devices are concentrated at one time, monopolization of the shared bus by devices with higher priority is prevented, and necessary access time is ensured even for CPUs with lower priority. In addition,
The access interval table may include the minimum access interval to the shared bus by the CPU.

【0013】[0013]

【発明の実施の形態】以下、本発明のDMA制御装置を
具体化した実施の形態について図面に基づいて詳細に説
明する。本実施の形態は、複写機におけるCPUおよび
各種周辺デバイスによるバスへのアクセスを制御するD
MA制御装置である。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of a DMA controller according to the present invention; In the present embodiment, a D which controls access to a bus by a CPU and various peripheral devices in a copying machine is described.
It is an MA control device.

【0014】(第1の実施の形態)まず、第1の実施の
形態について説明する。このDMA制御装置200は、
図1に示すように、メモリ7と、各DMA制御部1,
2,3、およびアクセス制御部4と、デバイスモニタ部
208とを有し、DMA制御部1〜3、およびアクセス
制御部4が共用のバス5を介してメモリ7にアクセスす
るものである。そして、デバイスモニタ部208の検出
結果に応じて各DMA制御部1〜3、およびアクセス制
御部4からバス5へのアクセスを調停するバス調停部2
06が設けられている。
(First Embodiment) First, a first embodiment will be described. This DMA control device 200
As shown in FIG. 1, the memory 7 and each DMA control unit 1
DMA control units 1 to 3 and the access control unit 4 access the memory 7 via the shared bus 5. The bus arbitration unit 2 arbitrates access from the access control unit 4 to the bus 5 according to the detection result of the device monitor unit 208.
06 is provided.

【0015】また、DMA制御部1にはプリンタ装置1
1が接続され、DMA制御部2にはスキャナ装置12が
接続され、DMA制御部3にはハードディスク13が接
続され、アクセス制御部4にはCPU14が接続されて
いる。CPU14は、このシステムを含めた複写機全体
の制御を統括するものである。なお、プリンタ装置1
1、スキャナ装置12、およびハードディスク13はそ
れぞれDMA制御部1,2、および3によりCPU14
を介さずメモリ7に直接アクセス(DMA)できるよう
になっている。また、各DMA制御部1〜3のアクセス
状況を検出するデバイスモニタ部208が備わってい
る。
The DMA controller 1 includes a printer 1
1, a scanner device 12 is connected to the DMA control unit 2, a hard disk 13 is connected to the DMA control unit 3, and a CPU 14 is connected to the access control unit 4. The CPU 14 controls the control of the entire copying machine including this system. The printer 1
1, the scanner device 12, and the hard disk 13 are respectively controlled by the DMA control units 1, 2, and 3 by the CPU 14;
, The memory 7 can be directly accessed (DMA) without going through. Further, a device monitor unit 208 for detecting the access status of each of the DMA control units 1 to 3 is provided.

【0016】バス調停部206は、図2に示すように、
各DMA制御部1〜3、およびアクセス制御部4からそ
れぞれリクエスト信号req1,req2,req3,req4が出力され
ると、各DMA制御部1〜3、およびアクセス制御部4
に対して適宜バス使用許可信号ack1,ack2,ack3,ack4を
返信するものである。これらのバス使用許可信号がアク
ティブである期間中だけ、バス使用許可信号が返信され
た制御部がバス5にアクセスできる。このときバス5に
アクセスしている制御部は、DMA処理信号dmaをデバ
イスモニタ部208に発するようになっている。そし
て、バス調停部206は、図3に示すように、DMA制
御部1〜3の動作状況に応じてバス調停制御を行うため
の優先順位テーブルを選択しリクエスト信号req1〜4を
処理する優先順位テーブル選択部218と、バス使用許
可信号ack1〜4を送出するバス応答制御部17とを備え
る。
The bus arbitration unit 206, as shown in FIG.
When the request signals req1, req2, req3, and req4 are output from the DMA control units 1 to 3 and the access control unit 4, respectively, the DMA control units 1 to 3 and the access control unit 4
Ack1, ack2, ack3, ack4 as appropriate. The control unit to which the bus use permission signal is returned can access the bus 5 only during the period when these bus use permission signals are active. At this time, the control unit accessing the bus 5 issues a DMA processing signal dma to the device monitor unit 208. Then, as shown in FIG. 3, the bus arbitration unit 206 selects a priority order table for performing bus arbitration control according to the operation status of the DMA control units 1 to 3, and processes the request signals req1 to 4 in priority order. It has a table selection unit 218 and a bus response control unit 17 that sends out bus use permission signals ack1 to ack4.

【0017】優先順位テーブル選択部218は、予め格
納されている複数(本実施の形態では2つ)の優先順位
テーブルのうち1つを、後述するデバイスモニタ部20
8の検出結果に応じて選択するものである。この優先順
位テーブルの選択は、図4に示す選択テーブルTcrに
基づき行われる。例えば、プリンタ装置11(DMA制
御部1)が動作中である場合には、優先順位テーブル選
択部218では第2優先順位テーブルTr2が選択され
る。なお、優先順位テーブル選択部218に格納されて
いる優先順位テーブルは、図5に示すものが格納されて
いる。すなわち、第1優先順位テーブルTr1として
は、従来のDMA制御装置100で用いられている優先
順位テーブル(優先順位は上から順に、DMA制御部
1、DMA制御部2、DMA制御部3、アクセス制御部
4となっている)と同じものが格納されている。また、
第2優先順位テーブルTr2としては、優先順位が上か
ら順にDMA制御部1、DMA制御部2、アクセス制御
部4、DMA制御部3となっているものが格納されてい
る。
The priority table selection unit 218 stores one of a plurality of (two in this embodiment) priority tables stored in advance in the device monitor unit 20 described later.
8 according to the detection result. The selection of the priority table is performed based on the selection table Tcr shown in FIG. For example, when the printer device 11 (DMA control unit 1) is operating, the priority table selection unit 218 selects the second priority table Tr2. The priority table stored in the priority table selection unit 218 is the one shown in FIG. That is, as the first priority table Tr1, the priority tables used in the conventional DMA control device 100 (the priority order is DMA control unit 1, DMA control unit 2, DMA control unit 3, access control 4) is stored. Also,
As the second priority table Tr2, those having the DMA control unit 1, the DMA control unit 2, the access control unit 4, and the DMA control unit 3 in order of priority from the top are stored.

【0018】バス応答制御部17は、優先順位テーブル
選択部218により選択された優先順位テーブルに従い
バス使用許可が付与された制御部に対し、バス使用許可
信号を送出するものである。
The bus response control section 17 sends a bus use permission signal to the control section to which the bus use permission has been given in accordance with the priority table selected by the priority table selection section 218.

【0019】また、デバイスモニタ部208は、各DM
A制御部1〜3が発するDMA処理信号dma1〜3に基づ
きDMA制御部1〜3の動作状況を検出するものであ
る。ここで、DMA制御部1〜3の動作状況とは、バス
5へアクセスしているDMA制御部の組み合わせのこと
を意味する。この動作状況の検出は、各DMA制御部が
発するDMA処理信号がアクティブである期間中は、そ
のDMA制御部が動作している、つまりバス5にアクセ
スしてDMA処理を行っているものと判断することによ
り行われる。具体的に、デバイスモニタ部208で検出
される動作状況には、図4に示すような4つのパターン
がある。すなわち、(1)プリンタ装置11とスキャナ
装置12とが動作中である場合、(2)プリンタ装置1
1が動作中である場合、(3)スキャナ装置12が動作
中である場合、および(4)前記(1)〜(3)以外の
場合の4パターンである。
Also, the device monitor unit 208
The operation status of the DMA control units 1 to 3 is detected based on the DMA processing signals dma1 to dma3 issued by the A control units 1 to 3. Here, the operation status of the DMA control units 1 to 3 means a combination of the DMA control units accessing the bus 5. The detection of this operating state is determined during the period in which the DMA processing signal generated by each DMA control unit is active, that the DMA control unit is operating, that is, it is accessing the bus 5 and performing the DMA processing. It is done by doing. Specifically, the operation status detected by the device monitor unit 208 has four patterns as shown in FIG. That is, (1) when the printer device 11 and the scanner device 12 are operating, (2) the printer device 1
1 is operating, (3) the scanner device 12 is operating, and (4) four patterns other than the above (1) to (3).

【0020】続いて、上記のように構成されたDMA制
御装置200の動作について、図6に示すフローチャー
トを用いて説明する。このフローチャートは、バス調停
部206におけるバス調停制御ルーチンを示したもので
ある。まず、S1において、デバイスモニタ部208に
より、DMA制御部1〜3の動作状況が検出される。つ
まり、各DMA制御部1〜3が発するDMA処理信号dm
a1〜3の状態(アクティブ/インアクティブ)から各D
MA制御部1〜3のそれぞれの動作状態が判断される。
Next, the operation of the DMA control device 200 configured as described above will be described with reference to the flowchart shown in FIG. This flowchart shows a bus arbitration control routine in the bus arbitration unit 206. First, in S1, the operation state of the DMA control units 1 to 3 is detected by the device monitor unit 208. That is, the DMA processing signal dm generated by each of the DMA control units 1 to 3
From each state of a1 to 3 (active / inactive)
The operation state of each of MA control units 1 to 3 is determined.

【0021】次いでS2において、デバイスモニタ部2
08検出結果により、優先順位テーブル選択部218で
選択テーブルTcr(図4参照)に基づき、バス調停制
御を行うための優先順位テーブルが選択される。そして
S3において、リクエスト信号が発生しているか否かが
判断される。このとき、リクエスト信号が発生している
場合には(S3:YES)、S4の処理に進む。一方、
リクエスト信号が発生していない場合には(S3:N
O)、S1に戻りS1〜S3の処理を繰り返す。
Next, in S2, the device monitor 2
08, the priority table selection unit 218 selects a priority table for performing bus arbitration control based on the selection table Tcr (see FIG. 4). Then, in S3, it is determined whether or not a request signal has been generated. At this time, if a request signal has been generated (S3: YES), the process proceeds to S4. on the other hand,
If no request signal has been generated (S3: N
O), returning to S1, and repeating the processing of S1 to S3.

【0022】S3でリクエスト信号が発生しておりS4
へ進むと、S4では、優先順位テーブル選択部218で
選択された優先順位テーブルに従いバス調停制御が実行
される。その結果、S5において、バス使用許可信号を
付与する制御部が選択される。そうすると、S6におい
て、バス応答制御部17によってS5で選択された制御
部に対してバス使用許可信号が送出される。これによ
り、バス使用許可信号を受信した制御部がバス5にアク
セスする。以後、S1〜S6の処理を繰り返す。
When a request signal is generated in S3 and S4
In S4, the bus arbitration control is executed in S4 according to the priority table selected by the priority table selection unit 218. As a result, in S5, the control unit that gives the bus use permission signal is selected. Then, in S6, the bus response control unit 17 sends a bus use permission signal to the control unit selected in S5. Thereby, the control unit that has received the bus use permission signal accesses the bus 5. Thereafter, the processing of S1 to S6 is repeated.

【0023】このように、バス調停部206において、
DMA制御部1〜3の動作状況に応じてバス調停制御に
使用する優先順位テーブルが選択され、そして、その優
先順位テーブルに従い各制御部1〜4のリクエスト信号
req1〜4に対するバス5へのアクセスが調停される。つ
まり、DMA制御部1〜3の動作状況に応じた適切なバ
ス調停制御が行われる。
As described above, in the bus arbitration unit 206,
A priority table to be used for bus arbitration control is selected according to the operation status of the DMA controllers 1 to 3, and the request signals of the respective controllers 1 to 4 are selected according to the priority table.
Access to the bus 5 for the reqs 1 to 4 is arbitrated. That is, appropriate bus arbitration control is performed according to the operation status of the DMA control units 1 to 3.

【0024】以上、詳細に説明したように第1の実施の
形態に係るDMA制御装置200によれば、デバイスモ
ニタ部208により、DMA処理信号dma1〜3に基づき
DMA制御部1〜3の動作状態が検出される。そして、
デバイスモニタ部208の検出結果に応じて優先順位テ
ーブル選択部218により優先順位テーブルが選択され
る。これにより、DMA制御部1〜3の動作状況に応じ
た優先順位テーブルに従いバス調停制御が行われる。従
って、DMA制御部1〜3によるバス5の独占が防止さ
れ、CPU14にも必要なアクセス時間が確保される。
よって、システムプログラムが停止するような事態は確
実に回避される。
As described above in detail, according to the DMA control apparatus 200 according to the first embodiment, the device monitor section 208 operates the DMA control sections 1 to 3 based on the DMA processing signals dma1 to dma3. Is detected. And
The priority order table is selected by the priority order table selection unit 218 according to the detection result of the device monitor unit 208. Thus, the bus arbitration control is performed according to the priority order table according to the operation status of the DMA control units 1 to 3. Therefore, monopolization of the bus 5 by the DMA control units 1 to 3 is prevented, and a necessary access time is secured for the CPU 14 as well.
Therefore, a situation in which the system program stops is reliably avoided.

【0025】(第2の実施の形態)次に、第2の実施の
形態について説明する。第2の実施の形態に係るDMA
制御装置は、第1の実施の形態に係るDMA制御装置2
00と基本的にほぼ同じ構成のものであるが、図7に示
すように、バス調停部256にアクセス間隔テーブル選
択部268を備えるものである。すなわち、このアクセ
ス間隔テーブル選択部268により、各DMA制御部1
〜3のリクエスト信号req1〜3の受付の遅延が実行され
るようになっている。そこで、第2の実施の形態では、
第1の実施の形態と同じところについての説明は省略
し、アクセス間隔テーブル選択部268を中心に異なる
ところについて説明する。なお、第1の実施の形態と同
じ構成のものについては、同一符号を付するものとす
る。
(Second Embodiment) Next, a second embodiment will be described. DMA according to the second embodiment
The control device is a DMA control device 2 according to the first embodiment.
Although the configuration is basically the same as that of 00, the bus arbitration unit 256 includes an access interval table selection unit 268 as shown in FIG. That is, the access interval table selector 268 allows each DMA controller 1
The reception of the request signals req1 to req3 is delayed. Therefore, in the second embodiment,
A description of the same parts as in the first embodiment will be omitted, and different points will be described centering on the access interval table selection unit 268. It is to be noted that the same components as those in the first embodiment are denoted by the same reference numerals.

【0026】第2の実施の形態に係るDMA制御装置2
50も、第1の実施の形態と同様、メモリ7と、各DM
A制御部1,2,3、およびアクセス制御部4と、デバ
イスモニタ部208を有し、DMA制御部1〜3、およ
びアクセス制御部4が共用のバス5を介してメモリ7に
アクセスするものである。そして、デバイスモニタ部2
08が検出した各DMA制御部1〜3の動作状況に応じ
て、各DMA制御部1〜3、およびアクセス制御部4か
らバス5へのアクセスを調停するバス調停部206が設
けられている。(図1参照)。
DMA controller 2 according to the second embodiment
Similarly to the first embodiment, the memory 50 and each DM 50
A control units 1, 2, 3, and an access control unit 4, and a device monitor unit 208, wherein the DMA control units 1 to 3 and the access control unit 4 access the memory 7 via the shared bus 5. It is. And the device monitor 2
A bus arbitration unit 206 that arbitrates access to the bus 5 from each of the DMA control units 1 to 3 and the access control unit 4 according to the operation state of each of the DMA control units 1 to 3 detected by the control unit 08 is provided. (See FIG. 1).

【0027】デバイスモニタ部208は、各DMA制御
部1〜3が発するDMA処理信号dma1〜3に基づきDM
A制御部1〜3の動作状況を検出するものである。ま
た、バス調停部256は、アクセス間隔テーブルを選択
するアクセス間隔テーブル選択部268と、リクエスト
信号req1〜4の受付を遅延するアクセス許否決定部26
9と、遅延リクエスト信号dreq1〜4の調停制御を行うた
めの優先順位テーブルTと、バス使用許可信号ack1〜4
を各制御部1〜4へ送出するバス応答制御部17とを備
え、デバイスモニタ部208の検出結果に応じたバス調
停制御を実行するものである。
The device monitor 208 receives the DM processing signals dma1 to dma3 from the DMA controllers 1 to 3,
It detects the operation status of the A control units 1 to 3. The bus arbitration unit 256 includes an access interval table selection unit 268 that selects an access interval table, and an access permission / refusal determination unit 26 that delays reception of request signals req1 to req4.
9, a priority table T for performing arbitration control of the delay request signals dreq1 to dreq4, and bus use permission signals ack1 to ack4.
And a bus response control unit 17 for sending the control signal to each of the control units 1 to 4 to execute the bus arbitration control according to the detection result of the device monitor unit 208.

【0028】ここで、アクセス間隔テーブル選択部26
8は、予め格納されている複数(本実施の形態では2
つ)のアクセス間隔テーブルのうち1つを、デバイスモ
ニタ部208の検出結果に応じて選択するものである。
この優先順位テーブルの選択は、図8に示す選択テーブ
ルTcaに基づいて行われる。例えば、スキャナ装置1
2(DMA制御部2)が動作中である場合には、アクセ
ス間隔テーブル選択部268により、第1アクセス間隔
テーブルTa1が選択される。
Here, the access interval table selection unit 26
8 is a plurality (2 in this embodiment) stored in advance.
One of the access interval tables is selected according to the detection result of the device monitor unit 208.
The selection of the priority table is performed based on the selection table Tca shown in FIG. For example, the scanner device 1
2 (DMA control unit 2) is operating, the access interval table selection unit 268 selects the first access interval table Ta1.

【0029】そして、アクセス間隔テーブル選択部26
8には、図9に示すアクセス間隔テーブルが格納されて
いる。すなわち、第1アクセス間隔テーブルTa1とし
て、最低アクセス間隔時間が、リクエスト信号req1に対
しては2000nsec、リクエスト信号req2に対しては3
000nsec、リクエスト信号req3に対しては5000ns
ecのものが格納されている。また、第2アクセス間隔テ
ーブルTr2として、最低アクセス間隔時間が、リクエ
スト信号req1に対しては2000nsec、リクエスト信号
req2に対しては3000nsec、リクエスト信号req3に対
しては50000nsecのものが格納されている。従っ
て、第2アクセス間隔テーブルTa2が選択されると、
ハードディスク装置13(DMA制御装置3)によるバ
ス5へのアクセス間隔が広くなる(10倍以上にな
る)。また、CPU14(アクセス制御部4)のリクエ
スト信号req4の受付は遅延されない。なお、バス調停制
御を行うための優先順位テーブルTは、従来のDMA制
御装置100に格納されている優先順位テーブルと同じ
ものである(図13参照)。
The access interval table selector 26
8 stores the access interval table shown in FIG. That is, as the first access interval table Ta1, the minimum access interval time is 2000 nsec for the request signal req1 and 3 for the request signal req2.
000nsec, 5000ns for request signal req3
ec is stored. Also, as the second access interval table Tr2, the minimum access interval time is 2000 nsec for the request signal req1,
3000 nsec is stored for req2, and 50,000 nsec is stored for request signal req3. Therefore, when the second access interval table Ta2 is selected,
The access interval to the bus 5 by the hard disk device 13 (DMA control device 3) is widened (10 times or more). In addition, the reception of the request signal req4 by the CPU 14 (the access control unit 4) is not delayed. The priority table T for performing the bus arbitration control is the same as the priority table stored in the conventional DMA controller 100 (see FIG. 13).

【0030】また、アクセス許否決定部269は、アク
セス間隔テーブル選択部268により選択されたアクセ
ス間隔テーブルに従い、各制御部からのリクエスト信号
req1〜4の受付を遅延し、遅延リクエスト信号dreq1〜4
を発するものである。このアクセス許否決定部269に
より、リクエスト信号req1〜4の受付が遅延されるため
各制御部のアクセス間隔が調整される。
The access permission / refusal determining unit 269 is configured to transmit a request signal from each control unit in accordance with the access interval table selected by the access interval table selecting unit 268.
Delay the reception of req1 ~ 4, delayed request signal dreq1 ~ 4
It emits. The access permission / refusal determining unit 269 delays the reception of the request signals req1 to req4, so that the access interval of each control unit is adjusted.

【0031】続いて、上記のように構成されたDMA制
御装置250の動作について、図10に示すフローチャ
ートを用いて説明する。このフローチャートは、バス調
停部256におけるバス調停制御ルーチンを示したもの
である。なお、DMA制御装置250には、各制御部の
アクセス間隔を調整するために、各制御部のリクエスト
の受付の遅延時間(アクセス間隔)をカウントする残り
待ち時間カウンタが備わっている。
Next, the operation of the DMA control device 250 configured as described above will be described with reference to the flowchart shown in FIG. This flowchart shows a bus arbitration control routine in the bus arbitration unit 256. The DMA control device 250 includes a remaining waiting time counter that counts a delay time (access interval) for receiving a request from each control unit in order to adjust an access interval of each control unit.

【0032】まず、S11において、デバイスモニタ部
208により、DMA制御部1〜3の動作状況が検出さ
れる。つまり、各DMA制御部1〜3が発するDMA処
理信号dma1〜3の状態(アクティブ/インアクティブ)
から各DMA制御部1〜3のそれぞれの動作状態の組み
合わせパターンが判断される。
First, in S11, the operation status of the DMA control units 1 to 3 is detected by the device monitor unit 208. That is, the states (active / inactive) of the DMA processing signals dma1 to dma3 generated by each of the DMA controllers 1 to 3
Then, the combination pattern of the operation states of the DMA controllers 1 to 3 is determined.

【0033】次いでS12では、アクセス間隔テーブル
選択部268により、選択テーブルTca(図8参照)
に基づいてアクセス間隔テーブルが選択される。そうす
ると、残り待ち時間カウンタに、選択されたアクセス間
隔テーブルのアクセス間隔の値が書き込まれる。なお、
この残り待ち時間カウンタへの書き込みは、最初のサイ
クルにおける処理のみ行われる。それ以降のサイクルに
おいては、次のようにして処理される。まず、前サイク
ルの処理で選択されたものと同じアクセス間隔テーブル
が選択された場合、つまりアクセス間隔テーブルに変更
がなった場合には、残り待ち時間カウンタの値は変更さ
れない。一方、前サイクルの処理で選択されたものと異
なるアクセス間隔テーブルが選択された場合、つまりア
クセス間隔テーブルが変更になった場合には、残り待ち
時間カウンタにアクセス間隔の時間差が加算される。
Next, in S12, the access interval table selection section 268 causes the selection table Tca (see FIG. 8).
The access interval table is selected based on the. Then, the value of the access interval of the selected access interval table is written to the remaining waiting time counter. In addition,
Writing to the remaining waiting time counter is performed only in the first cycle. In the subsequent cycles, processing is performed as follows. First, when the same access interval table as that selected in the processing of the previous cycle is selected, that is, when the access interval table is changed, the value of the remaining waiting time counter is not changed. On the other hand, when an access interval table different from the one selected in the processing of the previous cycle is selected, that is, when the access interval table is changed, the time difference of the access interval is added to the remaining waiting time counter.

【0034】具体的には、アクセス間隔テーブルがTa
1からTa2に変更された場合には、DMA制御部3
(ハードディスク13)に関する残り待ち時間カウンタ
に「45000(=50000−5000)」が加算さ
れる。逆に、アクセス間隔テーブルがTa2からTa1
に変更された場合には、DMA制御部3(ハードディス
ク13)に関する残り待ち時間カウンタに「−4500
0(=5000−50000)」が加算される。他の制
御部においても同様の処理が行われるが、実際にはアク
セス間隔テーブルTa1とTa2とにおいてデータ値に
変化がないため、残り待ち時間カウンタの値は変化しな
い。
Specifically, if the access interval table is Ta
When the number is changed from 1 to Ta2, the DMA control unit 3
“45000 (= 50000−5000)” is added to the remaining waiting time counter related to (the hard disk 13). Conversely, the access interval table changes from Ta2 to Ta1.
Is changed to "-4500" in the remaining waiting time counter for the DMA control unit 3 (hard disk 13).
0 (= 5000-50000) "is added. The same processing is performed in the other control units, but the value of the remaining waiting time counter does not change because the data value does not actually change in the access interval tables Ta1 and Ta2.

【0035】続いて、S13において、残り待ち時間カ
ウンタが一律に減算される。ただし、残り待ち時間カウ
ンタがゼロになっているものについては減算されない。
そして、S14において、残り待ち時間カウンタがゼロ
になった制御部の許可フラグがONにされる。次いで、S
15において、リクエスト信号が発生しているか否かが
確認される。リクエスト信号が発生している場合には
(S15:YES)、S16の処理に進む。一方、リク
エスト信号が発生していない場合には(S15:N
O)、S11に戻りS11〜S15の処理を繰り返す。
Subsequently, in S13, the remaining waiting time counter is uniformly decremented. However, those for which the remaining waiting time counter is zero are not decremented.
Then, in S14, the permission flag of the control unit in which the remaining waiting time counter has become zero is turned ON. Then, S
At 15, it is checked whether a request signal has been generated. If the request signal has been generated (S15: YES), the process proceeds to S16. On the other hand, if the request signal has not been generated (S15: N
O), returning to S11 and repeating the processing of S11 to S15.

【0036】S15でリクエスト信号が発生しておりS
16へ進むと、S16ではアクセス許否決定部269に
より、リクエスト信号を発している制御部であって、そ
の許可フラグがONになっているものがあるか否かが判断
される。許可フラグがONになっているものがある場合に
は(S16:YES)、S17以降の調停制御が実行さ
れる。一方、該当する許可フラグがすべてOFFの場合に
は(S16:NO)、S11に戻りS11〜S16の処
理を繰り返す。
At S15, a request signal is generated and S
In S16, in S16, the access permission / rejection determination unit 269 determines whether or not there is a control unit that has issued a request signal and whose permission flag is ON. If any of the permission flags is ON (S16: YES), the arbitration control from S17 is executed. On the other hand, when all the corresponding permission flags are OFF (S16: NO), the process returns to S11 and repeats the processes of S11 to S16.

【0037】その後、S17において、優先順位テーブ
ルTが参照される。そして、S18において、この優先
順位テーブルTに従ってバス調停制御が行われ、バス使
用許可を付与する制御部が選択される。そうすると、バ
ス応答制御部17によって、S18で選択された制御部
に対してバス使用許可信号が送出される。これにより、
バス使用許可信号を受信した制御部がバス5にアクセス
する。すると、S20において、バス5にアクセスした
制御部の許可フラグがOFFにされる。また、許可フラグ
がOFFにされた制御部の残り待ち時間カウンタが更新、
つまりアクセス間隔テーブルのデータが書き込まれる。
以後、S11〜S20の処理を繰り返す。
After that, in S17, the priority order table T is referred to. Then, in S18, the bus arbitration control is performed in accordance with the priority order table T, and the control unit that grants the bus use permission is selected. Then, the bus response control unit 17 sends a bus use permission signal to the control unit selected in S18. This allows
The control unit that has received the bus use permission signal accesses the bus 5. Then, in S20, the permission flag of the control unit that has accessed the bus 5 is turned off. In addition, the remaining waiting time counter of the control unit in which the permission flag is turned off is updated,
That is, the data of the access interval table is written.
Thereafter, the processing of S11 to S20 is repeated.

【0038】このように、バス調停部256において、
DMA制御部1〜3の動作状況に応じてDMA制御部1
〜3のリクエスト信号req1〜3の受付の遅延が行われ
る。例えば、プリンタ装置11、スキャナ装置12、お
よびハードデスク装置13のすべてがバス5にアクセス
しておりバス5の占有率が高い場合には、第2アクセス
間隔テーブルTa2によってリクエスト信号の受付の遅
延が行われる。これにより、ハードディスク装置13
(DMA制御部3)からのリクエスト信号req3の受付が
大幅に遅延される。すなわち、アクセス間隔が5000
nsecから50000nsecになるため、ハードディスク装
置13によるバス5へのアクセス間隔が10倍以上に広
くなる。従って、DMA制御部3の優先順位が実質的に
下げられ、アクセス制御部4の優先順位が引き上げられ
る。よって、バス5の占有率が高い場合にも、CPU1
4が確実にバス5にアクセスすることができる。つま
り、DMA制御部1〜3の動作状況に応じた適切なバス
調停制御が行われ、各制御部によるバス5への適切なア
クセス時間が確実に確保される。
As described above, in the bus arbitration unit 256,
DMA controller 1 according to the operation status of DMA controllers 1 to 3
The reception of the request signals req1 to req3 is delayed. For example, when all of the printer device 11, the scanner device 12, and the hard disk device 13 are accessing the bus 5 and the occupancy of the bus 5 is high, the delay of the reception of the request signal is determined by the second access interval table Ta2. Done. Thereby, the hard disk device 13
The reception of the request signal req3 from the (DMA control unit 3) is greatly delayed. That is, the access interval is 5000
Since the time period is changed from nsec to 50000 nsec, the access interval to the bus 5 by the hard disk device 13 is widened ten times or more. Therefore, the priority of the DMA control unit 3 is substantially lowered, and the priority of the access control unit 4 is raised. Therefore, even when the occupancy of the bus 5 is high, the CPU 1
4 can surely access the bus 5. That is, appropriate bus arbitration control according to the operation status of the DMA control units 1 to 3 is performed, and an appropriate access time to the bus 5 by each control unit is reliably secured.

【0039】以上、詳細に説明したように第2の実施の
形態に係るDMA制御装置250によれば、デバイスモ
ニタ部208により、DMA処理信号dma1〜3に基づき
DMA制御部1〜3の動作状態が検出される。すると、
アクセス間隔テーブル選択部268により、デバイスモ
ニタ部208の検出結果に応じたアクセス間隔テーブル
が選択される。次いで、アクセス許否決定部269によ
り、アクセス間隔テーブル選択部268で選択されたア
クセス間隔テーブルに基づき、各制御部のリクエスト信
号req1〜4の受付が遅延される。そして、その受付の遅
延が行われた遅延リクエスト信号dreq1〜4に対し、優先
順位テーブルTに従いバス調停制御が行われる。すなわ
ち、DMA制御部1〜3の動作状態に応じたバス調停制
御が行われるため、DMA制御部1〜3によるバス5の
独占が防止され、CPU14にも必要なアクセス時間が
確保される。よって、システムプログラムが停止するよ
うな事態は確実に回避される。
As described in detail above, according to the DMA control device 250 according to the second embodiment, the device monitor unit 208 controls the operation states of the DMA control units 1 to 3 based on the DMA processing signals dma1 to dma3. Is detected. Then
The access interval table selection unit 268 selects an access interval table according to the detection result of the device monitor unit 208. Next, the access permission / refusal determining unit 269 delays the reception of the request signals req1 to 4 of each control unit based on the access interval table selected by the access interval table selecting unit 268. Then, bus arbitration control is performed on the delayed request signals dreq1 to dreq4 whose reception has been delayed in accordance with the priority order table T. That is, since the bus arbitration control according to the operation state of the DMA control units 1 to 3 is performed, monopolization of the bus 5 by the DMA control units 1 to 3 is prevented, and the necessary access time is also ensured for the CPU 14. Therefore, a situation in which the system program stops is reliably avoided.

【0040】なお、上記実施の形態は単なる例示にすぎ
ず、本発明を何ら限定するものではない。従って本発明
は当然に、その要旨を逸脱しない範囲内で種々の改良、
変形が可能である。上記した第1および第2の実施の形
態として複写機におけるDMA制御装置を例示したが、
これに限らずDMA制御を行うものであればいずれのも
のにも本発明を適用することができる。また、デバイス
モニタ部208を独立して設けているが、もちろんバス
調停部206あるいは256の内部に組み込むことも可
能である。さらに、デバイスモニタ部208では、各D
MA制御部1〜3のDMA処理信号dma1〜3に基づき各
DMA制御部1〜3の動作状況を検出しているが、バス
使用許可信号ack1〜3に基づき各DMA制御部1〜3の
動作状況を検出するようにしても良い。これにより、各
DMA制御部1〜3が出力する信号数を減少させられ
る。また、上記第2に実施の形態においては、優先順位
テーブルを1つしか有していないが、第1の実施の形態
のように、複数の異なる優先順位テーブルを備え、各D
MA制御部1〜3の動作状況に応じてそのうちの1つを
選択するようにしてもよい。
The above embodiment is merely an example, and does not limit the present invention. Therefore, of course, the present invention provides various improvements without departing from the gist thereof.
Deformation is possible. As the first and second embodiments described above, the DMA control device in the copying machine has been exemplified.
The present invention is not limited to this, and the present invention can be applied to any apparatus that performs DMA control. Although the device monitor unit 208 is provided independently, it is of course possible to incorporate the device monitor unit 208 into the bus arbitration unit 206 or 256. Further, in the device monitor unit 208, each D
Although the operation status of each of the DMA control units 1 to 3 is detected based on the DMA processing signals dma1 to 3 of the MA control units 1 to 3, the operation of each of the DMA control units 1 to 3 is performed based on the bus use permission signals ack1 to ack3. The situation may be detected. As a result, the number of signals output from each of the DMA controllers 1 to 3 can be reduced. Further, in the second embodiment, only one priority table is provided. However, as in the first embodiment, a plurality of different priority tables are provided and each D table is provided.
One of them may be selected according to the operation status of the MA control units 1 to 3.

【0041】[0041]

【発明の効果】以上、説明した通り本発明のDMA制御
装置によれば、共有バスに接続された各デバイスの動作
状況が検出され、その検出結果に基づきバス調停制御の
内容が変更される。これにより、デバイスによる共有バ
スの独占が防止され、CPUによる共有バスへのアクセ
スが確実に確保される。
As described above, according to the DMA controller of the present invention, the operation status of each device connected to the shared bus is detected, and the content of the bus arbitration control is changed based on the detection result. This prevents the device from monopolizing the shared bus and ensures the CPU to access the shared bus.

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

【図1】第1の実施の形態に係るDMA制御装置の構成
を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a DMA control device according to a first embodiment.

【図2】図1のバス調停部およびデバイスモニタ部の動
作について説明するための説明図である。
FIG. 2 is an explanatory diagram for explaining operations of a bus arbitration unit and a device monitoring unit of FIG. 1;

【図3】図1のバス調停部の構成を示すブロック図であ
る。
FIG. 3 is a block diagram illustrating a configuration of a bus arbitration unit in FIG. 1;

【図4】優先順位テーブルを選択するための選択テーブ
ルを説明するための説明図である。
FIG. 4 is an explanatory diagram for explaining a selection table for selecting a priority order table;

【図5】優先順位テーブル選択部に格納されている優先
順位テーブルを説明するための説明図である。
FIG. 5 is an explanatory diagram for explaining a priority table stored in a priority table selection unit.

【図6】バス調停部における調停制御ルーチンを示すフ
ローチャートである。
FIG. 6 is a flowchart illustrating an arbitration control routine in a bus arbitration unit.

【図7】第2の実施の形態に係るDMA制御装置におけ
るバス調停部の構成を示すブロック図である。
FIG. 7 is a block diagram illustrating a configuration of a bus arbitration unit in a DMA control device according to a second embodiment.

【図8】アクセス間隔テーブルを選択するための選択テ
ーブルを説明するための説明図である。
FIG. 8 is an explanatory diagram for explaining a selection table for selecting an access interval table.

【図9】アクセス間隔テーブル選択部に格納されている
アクセス間隔テーブルを説明するための説明図である。
FIG. 9 is an explanatory diagram for explaining an access interval table stored in an access interval table selection unit.

【図10】バス調停部における調停制御ルーチンを示す
フローチャートである。
FIG. 10 is a flowchart illustrating an arbitration control routine in a bus arbitration unit.

【図11】従来のDMA制御装置の概略構成を示すブロ
ック図である。
FIG. 11 is a block diagram showing a schematic configuration of a conventional DMA control device.

【図12】従来のバス調停部におけるバス調停制御を説
明するための説明図である。
FIG. 12 is an explanatory diagram for explaining bus arbitration control in a conventional bus arbitration unit.

【図13】従来のバス調停部におけるバス調停制御の優
先順位を説明するための説明図である。
FIG. 13 is an explanatory diagram for explaining priorities of bus arbitration control in a conventional bus arbitration unit.

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

1,2,3 DMA制御部 4 アクセス制御部 5 バス 7 メモリ 8, バスモニタ部 17 バス応答制御部 200,250 DMA制御装置 206,256 バス調停部 208 デバイスモニタ部 218 優先順位テーブル選択部 268 アクセス間隔テーブル選択部 269 アクセス許否決定部 dma DMA処理信号 req リクエスト信号 dreq 遅延リクエスト信号 ack バス使用許可信号 1, 2, 3 DMA control unit 4 access control unit 5 bus 7 memory 8, bus monitor unit 17 bus response control unit 200, 250 DMA controller 206, 256 bus arbitration unit 208 device monitor unit 218 priority table selection unit 268 access Interval table selector 269 access permission / denial determiner dma DMA processing signal req request signal dreq delay request signal ack bus use permission signal

フロントページの続き (72)発明者 塩野谷 和則 大阪府大阪市中央区安土町二丁目3番13号 大阪国際ビル ミノルタ株式会社内 (72)発明者 亀井 伸雄 大阪府大阪市中央区安土町二丁目3番13号 大阪国際ビル ミノルタ株式会社内 Fターム(参考) 5B060 CD00 CD14 KA04 5B061 BA01 BB04 BC02 BC06 DD11Continued on the front page (72) Inventor Kazunori Shionoya 2-3-13 Azuchicho, Chuo-ku, Osaka-shi, Osaka Inside Osaka International Building Minolta Co., Ltd. (72) Inventor Nobuo Kamei 2-chome Azuchi-cho, Chuo-ku, Osaka-shi, Osaka No. 13 Osaka International Building Minolta Co., Ltd. F-term (reference) 5B060 CD00 CD14 KA04 5B061 BA01 BB04 BC02 BC06 DD11

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 CPUと、 メモリと、 前記CPUおよび前記メモリが接続された共有バスと、 前記共有バスに接続されるとともに前記メモリにアクセ
スする複数のデバイスと、 前記各デバイスの動作状況を検出するデバイスモニタ手
段と、 前記デバイスモニタ手段の検出結果に基づいて前記CP
Uおよび前記各デバイスによる前記共有バスへのアクセ
スを調停するバス調停手段と、 を有することを特徴とするDMA制御装置。
1. A CPU, a memory, a shared bus to which the CPU and the memory are connected, a plurality of devices connected to the shared bus and accessing the memory, and an operation status of each device is detected. Device monitoring means, and the CP based on a detection result of the device monitoring means.
And a bus arbitration unit for arbitrating access to the shared bus by the U and each of the devices.
【請求項2】 請求項1に記載するDMA制御装置にお
いて、 前記CPUおよび前記各デバイスの優先順位を記録した
複数の異なる優先順位テーブルと、 前記デバイスモニタ手段の検出結果に基づいて前記優先
順位テーブルのうち1つを選択する優先順位テーブル選
択手段とを有し、 前記バス調停手段は、前記優先順位テーブル選択手段に
より選択された優先順位テーブルに従い前記CPUおよ
び前記各デバイスによる前記共有バスへのアクセスを調
停することを特徴とするDMA制御装置。
2. The DMA control device according to claim 1, wherein a plurality of different priority tables that record the priority of the CPU and each of the devices, and the priority table based on a detection result of the device monitoring unit. And a priority table selecting means for selecting one of the CPUs, wherein the bus arbitration means accesses the shared bus by the CPU and the devices according to the priority table selected by the priority table selecting means. A DMA controller characterized by arbitrating for:
【請求項3】 請求項1または請求項2に記載するDM
A制御装置において、 前記各デバイスによる前記共有バスへの最低アクセス間
隔時間を記録した複数の異なるアクセス間隔テーブル
と、 前記デバイスモニタ手段の検出結果に基づいて前記アク
セス間隔テーブルのうち1つを選択するアクセス間隔テ
ーブル選択手段と、 前記アクセス間隔テーブル選択手段により選択されたア
クセス間隔テーブルに従い前記各デバイスによる前記共
有バスへのアクセスの許否を決定するアクセス許否決定
手段とを有し、 前記バス調停手段は、前記アクセス許否決定手段の決定
に従い前記CPUおよび前記各デバイスによる前記共有
バスへのアクセスを調停することを特徴とするDMA制
御装置。
3. The DM according to claim 1 or 2,
In the A control device, one of the plurality of different access interval tables recording the minimum access interval time of each device to the shared bus and one of the access interval tables based on a detection result of the device monitor unit is selected. Access interval table selecting means; and access permission / rejection determining means for determining whether or not each device is allowed to access the shared bus in accordance with the access interval table selected by the access interval table selecting means. And arbitrating access to the shared bus by the CPU and the devices according to the determination of the access permission / denial determining means.
JP07318199A 1999-03-08 1999-03-18 DMA controller Expired - Fee Related JP3985085B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP07318199A JP3985085B2 (en) 1999-03-18 1999-03-18 DMA controller
US09/521,196 US6615291B1 (en) 1999-03-08 2000-03-07 DMA controller with dynamically variable access priority

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07318199A JP3985085B2 (en) 1999-03-18 1999-03-18 DMA controller

Publications (2)

Publication Number Publication Date
JP2000267993A true JP2000267993A (en) 2000-09-29
JP3985085B2 JP3985085B2 (en) 2007-10-03

Family

ID=13510726

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07318199A Expired - Fee Related JP3985085B2 (en) 1999-03-08 1999-03-18 DMA controller

Country Status (1)

Country Link
JP (1) JP3985085B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100389030B1 (en) * 2001-06-21 2003-06-25 삼성전자주식회사 High speed direct memory access controller with multiple channels
JP2007058276A (en) * 2005-08-22 2007-03-08 Shinsedai Kk Multiprocessor
JP2012208790A (en) * 2011-03-30 2012-10-25 Renesas Electronics Corp Data transfer device
US10366020B2 (en) 2017-09-22 2019-07-30 Kabushiki Kaisha Toshiba Data transfer control device and image forming apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100389030B1 (en) * 2001-06-21 2003-06-25 삼성전자주식회사 High speed direct memory access controller with multiple channels
JP2007058276A (en) * 2005-08-22 2007-03-08 Shinsedai Kk Multiprocessor
JP2012208790A (en) * 2011-03-30 2012-10-25 Renesas Electronics Corp Data transfer device
US10366020B2 (en) 2017-09-22 2019-07-30 Kabushiki Kaisha Toshiba Data transfer control device and image forming apparatus

Also Published As

Publication number Publication date
JP3985085B2 (en) 2007-10-03

Similar Documents

Publication Publication Date Title
US7533206B2 (en) Resource management device
US6976109B2 (en) Multi-level and multi-resolution bus arbitration
US6519666B1 (en) Arbitration scheme for optimal performance
KR100368948B1 (en) Enhanced bus arbiter utilizing variable priority and fairness
JP4715801B2 (en) Memory access control device
AU687627B2 (en) Multiprocessor system bus protocol for optimized accessing of interleaved storage modules
EP0358716A1 (en) Node for servicing interrupt request messages on a pended bus.
JP2004521410A (en) System and method for implementing a multi-level interrupt scheme in a computer system
JP2000267993A (en) Dma controller
US6571306B1 (en) Bus request mechanism for bus master which is parked on a shared bus
JP2007122410A (en) Bus arbitration circuit and method
JP4151362B2 (en) Bus arbitration method, data transfer device, and bus arbitration method
JPH1125036A (en) Arbitration system and method for arbitorating access
JPH03150654A (en) Preference control system for processor having cash
JP2000132505A (en) Bus access method and device therefor, and device and system using the bus access method and device
JP2000276436A (en) Dma control device
JP2000250853A (en) Bus arbitration controller
JP2000276437A (en) Dma controller
KR100605867B1 (en) Bus arbitration method and bus arbitration having a dynamic priority order arbitration function
JP2887476B2 (en) Memory controller
JP2000259550A (en) Dma controller
JPH0830549A (en) Bus control device
JP2005004563A (en) Dma transfer controller
JP2006277363A (en) Information transfer system, and image forming device
JPH10334042A (en) Bus arbitration control device method therefor, and recording medium recorded with bus arbitration control program

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20050614

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20050621

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051214

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060117

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060316

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060808

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061003

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20061109

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070227

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070425

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070612

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070625

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100720

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110720

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120720

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130720

Year of fee payment: 6

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees