JP4024005B2 - DMA controller device - Google Patents
DMA controller device Download PDFInfo
- Publication number
- JP4024005B2 JP4024005B2 JP2001071686A JP2001071686A JP4024005B2 JP 4024005 B2 JP4024005 B2 JP 4024005B2 JP 2001071686 A JP2001071686 A JP 2001071686A JP 2001071686 A JP2001071686 A JP 2001071686A JP 4024005 B2 JP4024005 B2 JP 4024005B2
- Authority
- JP
- Japan
- Prior art keywords
- memory
- dma
- circuit
- priority
- access
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Bus Control (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、DMAからバスを通して共通のメモリデバイスにアクセスするDMAコントローラ装置に関する。
【0002】
【従来の技術】
コントローラ装置には多くのDMAが内蔵されており、これらDMAからバスを通して共通のメモリデバイスにアクセスするよう回路形成されている。そのためアクセス時にバスに競合が生じ、これを調停するためにメモリアービタが設けられている。このメモリアービタは、メモリアクセスを調停し、順次メモリにアクセス可能にする。
近年、メモリデバイスの動作速度がシステムのパフォーマンスを左右するようになり高速メモリデバイスの開発が進んでいる。メモリデバイスのアクセス速度が高速になると、システムパフォーマンスはDMAにつながるインターフェース(I/F)回路の速度に左右されることになり、従って、メモリデバイスの高速化に伴いインターフェース(I/F)回路の速度も追随して高速化されている。
【0003】
【発明が解決しようとする課題】
しかしながら、複数のインターフェース(I/F)回路が接続されたシステムでは、各DMAはメモリアービタにより優先度が決められメモリアクセスが行われるため、優先度の低いDMAに接続されたインターフェース(I/F)回路は、複数のDMAのメモリアクセス要求が競合した場合、インターフェース(I/F)回路が高速化してもシステムパフォーマンスの向上に殆ど役に立たないという問題があった。
【0004】
本発明は、このような問題に鑑みてなされたもので、高速化したインターフェース(I/F)回路に接続されている優先度の低いDMAが、他のインターフェース(I/F)回路に接続されているDMAと競合した場合においても、当該システムのパフォーマンスの劣化が生じないようにするものである。
【0005】
【課題を解決するための手段】
請求項1の発明は、共通のメモリにアクセスし、該メモリアクセスの優先度が予め決められた複数のDMAと、該DMAのメモリアクセス要求の競合を前記優先度に従って調停するメモリアービタと、前記DMAの各々に接続されるインターフェース回路とを備え、前記DMAの複数のメモリアクセス要求が競合したときは前記優先度順に前記メモリにアクセスさせるDMAコントローラ装置において、前記優先度が最も低いDMAのメモリアクセス要求の競合数を計測する手段と、該競合数が予め定められた所定の数以上であり、かつ優先度が最も低いDMAに接続されているインターフェース回路がその他のDMAに接続されているインターフェース回路より高速化されているときは、前記優先度が最も低いDMAのメモリアクセスデータのバースト長を、連続するメモリアドレスのデータの範囲で長くして、該DMAのメモリコマンド数を減らす手段を備えたことにより、前記優先度が最も低いDMAに接続されたインターフェース回路の高速化によるパフォーマンス向上を行なうことを特徴とするDMAコントローラ装置である。
【0009】
【発明の実施の形態】
以下、本発明の実施形態について説明する。
図1は、本発明が適用されるDMAコントローラ装置の要部ブロック図であり、図示しない各デバイスからのデータ転送要求によりI/F1回路31〜I/F3回路33は、それぞれDMA1回路41〜DMA3回路43に要求を出す。各DMA回路41〜43はそれぞれメモリアービタ回路1にバスの競合の調停を要求する。
メモリアービタ回路1は、予め決められたDMA1>DMA2>DMA3の優先度で要求を受け付け、更にメモリインターフェース(I/F)回路2に外部メモリ3へのアクセス要求を出す。メモリインターフェース(I/F)回路2は、決められた優先度に従って外部メモリ3にコマンドを発行し該メモリ3にアクセスする。
【0010】
図2〜図4は、アクセスデータとアクセス時間の関係を示すタイミングチャートであり、図中、CLKはメモリアクセスクロック、ICLKはI/F用クロックを示す。
また、DMA1、DMA2及びDMA3のそれぞれCは、メモリコマンドであり、それによってDMA1回路41がメモリアクセスするデータはDat1-1、Dat1-2、DMA2回路42がメモリアクセスするデータはDat2-1、Dat2-2、及びDMA3回路43がメモリアクセスするデータは、Dat3-1、Dat3-2である。
更に、CMD1、CMD2及びCMD3は、それぞれインターフェース(I/F)回路31用、インターフェース(I/F)回路32用及びインターフェース(I/F)回路33用のメモリコマンドであり、それによってインターフェース(I/F)回路31にアクセスするデータは、Data1-1、Data1-2、インターフェース(I/F)回路32にアクセスするデータは、Data2-1、Data2-2、インターフェース(I/F)回路33にアクセスするデータはData3-1、Data3-2である。
メモリアービタは、DMA1〉DMA2〉DMA3の順で優先されている。図2〜図4において、このときのメモリアクセスデータのバースト長は各DMAとも4CLKである。
【0011】
図3は、図2の状態からインターフェース(I/F)回路33のアクセスを高速化したときのアクセスデータとアクセス時間の関係を示すタイミングチャートである。
データアクセス期間が図2ではData3-1をアクセスするのに4ICLKであるが、高速化により、図3の場合は同じデータアクセスが2ICLKでよい。
しかしインターフェース(I/F)回路33のデータアクセス終了する期間は、Data3-2のアクセス終了時なのでICLK14で終了し、高速化しない図2に比べ2ICLKしか早くならない。
【0012】
そこで、インターフェース(I/F)回路33のDMA3回路43によるメモリアクセスの優先度を変えずに優先度の低いDMA3回路43によるメモリアクセスデータのみバースト長を、インターフェース(I/F)回路43より優位にあるDMAとの競合数により(この場合はDMA1、DMA2の2個)長くする。そして1メモリコマンドでアクセスさせる。
【0013】
図3は、8CKLにDat3-1、Dat3-2を1メモリコマンドでアクセスさせた場合のアクセスデータとアクセス時間の関係を示すタイミングチャートである。
このようにメモリアクセスデータのバースト長を長くし、1メモリコマンドでアクセスさせることにより、バースアービタによるWAIT状態を緩和し、I/F3のデータアクセス終了期間は、ICLK9となり、I/F3の高速化を有効なものにすることができる。
【0014】
これを具体的に行うには、メモリアービタ回路1(図1)がDMA3回路43の要求に対してその他のDMA回路との競合数(要求数)を確認し、予め決められた要求数以上の場合に、外部メモリアクセス3のバースト長を確定するbsize信号をバースト長の長い方に切り替えるようにする。
DMA1回路41,DMA2回路42に関しては固定のバースト長である。メモリインターフェース(I/F)回路2は、bsize信号によりバースト長を確定し、外部メモリ3にコマンドを発行しアクセスする。
【0015】
また、メモリアービタ回路1がDMA3回路43の要求受付時に競合数(他のDMA回路の要求数)を確認し、所定のバースト長を加算するように切り替える。更に、切り替えるバーストサイズを設定可能にする。
【0016】
本実施形態によれば、状況に応じて容易にバースト長を変更し、他のインターフェース(I/F)回路に影響を与えすぎないようにしてシステムのパフォーマンスの劣化を避けることができる。
【0017】
【発明の効果】
本発明によれば、高速化したインターフェース(I/F)回路に接続されている優先度の最も低いDMAが、他のDMAと競合した場合、優先度の最も低いDMAのみメモリアクセスデータのバースト長を、連続するメモリアドレスのデータの範囲で長くして、該DMAのメモリコマンド数を減らすことにより、当該システムのパフォーマンスの劣化を避けることができる。
【図面の簡単な説明】
【図1】本発明が適用されるDMAコントローラ装置の要部ブロック図である。
【図2】本発明の実施形態に係るアクセスデータとアクセス時間の関係を示すタイミングチャートである。
【図3】本発明の実施形態に係るアクセスデータとアクセス時間の関係を示すタイミングチャートである。
【図4】本発明の実施形態に係るアクセスデータとアクセス時間の関係を示すタイミングチャートである。
【符号の説明】
1・・メモリアービタ回路、2・・メモリI/F回路、3・・外部メモリ[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a DMA controller device that accesses a common memory device from a DMA through a bus.
[0002]
[Prior art]
Many DMAs are built in the controller device, and a circuit is formed so as to access a common memory device from these DMAs through a bus. Therefore, contention occurs on the bus at the time of access, and a memory arbiter is provided to mediate this. The memory arbiter arbitrates memory access and sequentially accesses the memory.
In recent years, the operating speed of memory devices has influenced system performance, and development of high-speed memory devices has progressed. As the memory device access speed increases, the system performance depends on the speed of the interface (I / F) circuit connected to the DMA. Therefore, as the memory device speed increases, the interface (I / F) circuit performance increases. The speed is also following up.
[0003]
[Problems to be solved by the invention]
However, in a system in which a plurality of interface (I / F) circuits are connected, each DMA is prioritized by a memory arbiter and is accessed for memory. Therefore, an interface (I / F) connected to a DMA with a lower priority is used. The circuit has a problem that when the memory access requests of a plurality of DMAs compete, even if the interface (I / F) circuit speeds up, the circuit performance is hardly useful.
[0004]
The present invention has been made in view of such problems, and a low-priority DMA connected to a high-speed interface (I / F) circuit is connected to another interface (I / F) circuit. in case of conflict with DMA and is also, it is desirable to make the deterioration of the performance of the system does not occur.
[0005]
[Means for Solving the Problems]
The invention according to
[0009]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described.
FIG. 1 is a block diagram of a main part of a DMA controller apparatus to which the present invention is applied. In response to a data transfer request from each device (not shown), the I /
The
[0010]
2 to 4 are timing charts showing the relationship between access data and access time. In the figure, CLK represents a memory access clock, and ICLK represents an I / F clock.
Each of DMA1, DMA2, and DMA3 is a memory command, so that the data accessed by the
Further, CMD1, CMD2, and CMD3 are memory commands for the interface (I / F)
The memory arbiter is prioritized in the order of DMA1>DMA2> DMA3. 2 to 4, the burst length of the memory access data at this time is 4 CLK for each DMA.
[0011]
FIG. 3 is a timing chart showing the relationship between access data and access time when the access speed of the interface (I / F)
In FIG. 2, the data access period is 4 ICLK for accessing Data 3-1, but in the case of FIG. 3, the same data access may be 2 ICLK for speeding up.
However, since the data access of the interface (I / F)
[0012]
Therefore, the burst length of only the memory access data by the
[0013]
FIG. 3 is a timing chart showing the relationship between the access data and the access time when Dat3-1 and Dat3-2 are accessed in 8 CKL with one memory command.
By increasing the burst length of the memory access data and accessing it with one memory command in this way, the WAIT state by the burst arbiter is relaxed, and the I / F3 data access end period becomes ICLK9, and the I / F3 speed increases. Can be made effective.
[0014]
In order to perform this specifically, the memory arbiter circuit 1 (FIG. 1) confirms the number of conflicts (request number) with other DMA circuits with respect to the request of the
The
[0015]
Further, when the
[0016]
According to this embodiment, it is possible to easily change the burst length according to the situation, and to avoid excessively affecting other interface (I / F) circuits, thereby avoiding deterioration of system performance.
[0017]
【The invention's effect】
According to the present invention, when a DMA having the lowest priority connected to an accelerated interface (I / F) circuit competes with another DMA, only the DMA having the lowest priority has a burst length of memory access data. By reducing the number of memory commands of the DMA by increasing the length in the range of data at consecutive memory addresses, it is possible to avoid the performance degradation of the system .
[Brief description of the drawings]
FIG. 1 is a block diagram of a main part of a DMA controller device to which the present invention is applied.
FIG. 2 is a timing chart showing a relationship between access data and access time according to the embodiment of the present invention.
FIG. 3 is a timing chart showing the relationship between access data and access time according to the embodiment of the present invention.
FIG. 4 is a timing chart showing the relationship between access data and access time according to the embodiment of the present invention.
[Explanation of symbols]
1.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001071686A JP4024005B2 (en) | 2001-03-14 | 2001-03-14 | DMA controller device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001071686A JP4024005B2 (en) | 2001-03-14 | 2001-03-14 | DMA controller device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2002269028A JP2002269028A (en) | 2002-09-20 |
JP4024005B2 true JP4024005B2 (en) | 2007-12-19 |
Family
ID=18929375
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001071686A Expired - Fee Related JP4024005B2 (en) | 2001-03-14 | 2001-03-14 | DMA controller device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4024005B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006172395A (en) * | 2004-12-20 | 2006-06-29 | Ricoh Co Ltd | Data transfer controller and data transfer control system |
JP5057833B2 (en) * | 2007-04-24 | 2012-10-24 | 株式会社日立製作所 | Transfer system, initiator device, and data transfer method |
JP5623150B2 (en) * | 2010-06-18 | 2014-11-12 | キヤノン株式会社 | Electronic device and control method thereof |
-
2001
- 2001-03-14 JP JP2001071686A patent/JP4024005B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2002269028A (en) | 2002-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100610730B1 (en) | Memory access scheduling method and apparatus for reducing memory access latency | |
US6073199A (en) | History-based bus arbitration with hidden re-arbitration during wait cycles | |
WO2011089660A1 (en) | Bus arbitration device | |
US8095744B2 (en) | Device for controlling access from a plurality of masters to shared memory composed of a plurality of banks each having a plurality of pages | |
JP4715801B2 (en) | Memory access control device | |
JPH04287261A (en) | Data transfer control system and magnetic disk controller | |
JP2010282405A (en) | Data processing system | |
JP4786209B2 (en) | Memory access device | |
JP2002540499A (en) | Arbitration method and system for arbitrating access to disk controller memory | |
US6782433B2 (en) | Data transfer apparatus | |
JP4408263B2 (en) | Data transfer system and data transfer method | |
JP4024005B2 (en) | DMA controller device | |
TW200400438A (en) | Bus arbiter for integrated circuit systems | |
JP2008040650A (en) | Bus arbitration device | |
JP3766377B2 (en) | Bus control device and information processing system | |
JP4054598B2 (en) | Memory control circuit, DMA request block, and memory access system | |
JP2000132505A (en) | Bus access method and device therefor, and device and system using the bus access method and device | |
CN104750640B (en) | Method and apparatus for arbitrating among multiple channels to access a resource | |
JP3599692B2 (en) | Data transmission equipment | |
JP4335327B2 (en) | Arbitration apparatus and method | |
US20010002481A1 (en) | Data access unit and method therefor | |
JP4610961B2 (en) | Access control device | |
JP3820831B2 (en) | Memory control method and apparatus | |
JPH02143363A (en) | Common memory control method in multiprocessor equipment | |
JP2002063130A (en) | Bus arbitration system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20060308 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060317 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060509 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20061106 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070105 |
|
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: 20071002 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20071002 |
|
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: 20101012 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111012 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121012 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131012 Year of fee payment: 6 |
|
LAPS | Cancellation because of no payment of annual fees |