JP2003016024A - Apparatus for memory control and lsi - Google Patents

Apparatus for memory control and lsi

Info

Publication number
JP2003016024A
JP2003016024A JP2002103027A JP2002103027A JP2003016024A JP 2003016024 A JP2003016024 A JP 2003016024A JP 2002103027 A JP2002103027 A JP 2002103027A JP 2002103027 A JP2002103027 A JP 2002103027A JP 2003016024 A JP2003016024 A JP 2003016024A
Authority
JP
Japan
Prior art keywords
bus
memory
time
bus master
transfer rate
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
JP2002103027A
Other languages
Japanese (ja)
Other versions
JP3987750B2 (en
Inventor
Hideyuki Kanzaki
英之 神崎
Masataka Ozaka
匡隆 尾坂
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2002103027A priority Critical patent/JP3987750B2/en
Publication of JP2003016024A publication Critical patent/JP2003016024A/en
Application granted granted Critical
Publication of JP3987750B2 publication Critical patent/JP3987750B2/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 an apparatus for memory control capable of adjusting memory access contention by ensuring with necessary time accuracy required transfer rates to each bus master. SOLUTION: When transfer rate information determining the rates and time intervals to define ranges to maintain the rates regarding respectively to bus masters A-C needed to transfer data between a unified memory 200 is written into a storage part 111 for information transfer rate from a storage device outside of an LSI 100, a generating means 112 for timing information determines the shortest time interval as a period and calculates every bus master based on memory bus bands necessary times to secure the rates for each period to determine as approved times for use of buses. An adjusting part 114 adds sequentially within each period with a lapse of time rights for use of the buses only worth of the corresponding approved times to all bus masters requiring bus requests.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、メモリアクセスを
制御するメモリ制御装置に関し、特にLSI(larg
e scale integrated circui
t)内部に含まれるメモリ制御装置であって、LSI内
部の複数の回路によるLSIの外部に接続されたメモリ
へのアクセスを制御するメモリ制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory control device for controlling memory access, and particularly to an LSI (large).
e scale integrated circuit
t) A memory control device included in the inside of the LSI, which relates to a memory control device for controlling access to a memory connected to the outside of the LSI by a plurality of circuits inside the LSI.

【0002】[0002]

【従来の技術】近年、情報のマルチメディア化等を背景
として、高速に映像、音声等を処理するために1又は複
数のDSP(Digital Signal Proc
essor)、MPU(Microprocessin
g Unit)を包含するLSIが開発されるようにな
ってきている。
2. Description of the Related Art In recent years, one or a plurality of DSPs (Digital Signal Proc) have been used for high-speed processing of video, audio, etc. against the backdrop of multimedia information.
essor), MPU (Microprocessin)
LSIs including g Unit) have been developed.

【0003】また、MPUの他にグラフィックス用のプ
ロセッサ、AV(Audio Visual)デコー
ダ、ハードディスクコントローラ等の独立した回路を搭
載した複合的で高機能なLSIも開発されるようになっ
てきている。このような複合的なLSIにおける内部の
各回路は独立したローカルメモリを用いてそれぞれの機
能を実現するための演算処理等を行うことができる独立
した回路であるが、各回路が同一のメモリを共用してそ
れぞれの機能を実現するための演算処理等を行うように
LSIを構成すれば部品コスト削減等を図ることができ
る。
In addition to the MPU, a complex and high-performance LSI equipped with independent circuits such as a graphics processor, an AV (Audio Visual) decoder, and a hard disk controller has been developed. Each internal circuit in such a composite LSI is an independent circuit that can perform arithmetic processing for realizing each function by using an independent local memory, but each circuit uses the same memory. If the LSI is configured so as to share the arithmetic processing and the like for realizing the respective functions, it is possible to reduce the component cost.

【0004】このためには、同一メモリへの各回路によ
るメモリアクセスの競合を調停するためのメモリ制御装
置をLSI内部に備える必要がある。メモリ制御装置
は、DSP、MPU等の複数の回路(以下、「バスマス
タ」という。)からのメモリへのアクセス要求、つまり
メモリバスについてのバスリクエストを調停し、ある時
刻においては、1つのバスマスタだけのアクセスを許可
する。即ち、メモリ制御装置は、ある時刻においては、
1つのバスマスタだけにメモリバスのバス使用権を付与
する。
To this end, it is necessary to provide a memory control device inside the LSI for arbitrating the competition of memory access by each circuit to the same memory. The memory control device arbitrates a memory access request from a plurality of circuits such as DSP and MPU (hereinafter referred to as “bus master”), that is, a bus request for a memory bus, and only one bus master at a certain time. Allow access. That is, the memory control device is
The bus use right of the memory bus is given to only one bus master.

【0005】これに対して、各バスマスタは、メモリア
クセスが必要になった時にメモリ制御装置にバスリクエ
ストを発し、バス使用権を取得するとメモリバスを利用
してメモリとの間でデータ転送を行う。ところで、バス
マスタには、例えば映像、音声のリアルタイム再生等の
実現のために、連続的に処理すべきデータがある場合に
おいて一定の転送レートでデータ転送が行われることを
要するものがある。
On the other hand, each bus master issues a bus request to the memory control device when a memory access is required, and when it acquires the bus use right, it uses the memory bus to transfer data to and from the memory. . By the way, some bus masters need to transfer data at a constant transfer rate when there is data to be continuously processed in order to realize, for example, real-time reproduction of video and audio.

【0006】一定の転送レートでデータ転送が行われる
ことを必要とするバスマスタは、内部の入出力用バッフ
ァのサイズやデータの処理方式その他の要因により、転
送レートが保たれるべき範囲となる時間間隔について固
有の要求をもっている。例えば、2ミリ秒(ms)間を
通して見た場合において500キロバイト/ミリ秒(K
B/ms)の転送レートが保たれていれば足りるバスマ
スタもあれば、これに対して転送レートの確保に関する
時間的余裕がなく、1ms間において500KB/ms
の転送レートが保たれていなければならないバスマスタ
もある。
A bus master that requires data transfer at a constant transfer rate takes a time within which the transfer rate should be maintained due to the size of the internal input / output buffer, the data processing method, and other factors. It has its own requirements for spacing. For example, when viewed through 2 milliseconds (ms), 500 kilobytes / millisecond (K
B / ms), it is sufficient for some bus masters to maintain the transfer rate, while there is no time margin for securing the transfer rate, and 500 KB / ms for 1 ms.
For some bus masters, the transfer rate must be maintained.

【0007】仮にメモリを独占できるとした場合には、
基本的にはバスマスタは、その転送レートを保つべき範
囲となる時間間隔をあけて繰り返しバスリクエストを発
する。以下、転送レートを保つべき範囲となる時間間隔
を、バスリクエスト周期という。一定の転送レートでの
データ転送を要求する複数のバスマスタとメモリ制御装
置とを内包するLSIを設計する場合においては、各バ
スマスタの要求する転送レートやバスリクエスト周期を
考慮してメモリ制御装置の調停機構を構築しなければな
らない。
If the memory can be monopolized,
Basically, the bus master repeatedly issues a bus request with a time interval within which the transfer rate should be maintained. Hereinafter, the time interval within which the transfer rate should be maintained is referred to as a bus request cycle. When designing an LSI that includes a plurality of bus masters that request data transfer at a constant transfer rate and a memory control device, the arbitration of the memory control device is performed in consideration of the transfer rate and the bus request cycle required by each bus master. The mechanism has to be built.

【0008】調停が適切である場合には各バスマスタは
要求する転送レートでデータ転送を行うことができる
が、調停が適切でなければ、いずれかのバスマスタがバ
スリクエスト周期内においては要求する転送レートでデ
ータ転送を行うことができないという問題が生じる。従
来のメモリ制御装置として一般的なものには、調停機構
としてバス使用権の先取り優先方式を用いたものや、各
バスマスタについて定めた優先度に基づき調停する方式
を用いたものがある。
If arbitration is appropriate, each bus master can transfer data at the transfer rate requested, but if arbitration is not appropriate, the transfer rate required by any bus master within the bus request period. Therefore, there arises a problem that data transfer cannot be performed. Generally, conventional memory control devices include a arbitration mechanism that uses a bus use right preemption priority method and an arbitration method that arbitrates based on a priority determined for each bus master.

【0009】[0009]

【発明が解決しようとする課題】以下、このような従来
のメモリ制御装置の問題点について説明する。メモリバ
スのバスバンド幅は約800KB/msであるとして、
連続的に処理すべきデータがある場合において、バスリ
クエスト周期が2msでありその2ms間に1000K
Bのデータを転送することを要求するバスマスタAと、
バスマスタAの半分しか時間的余裕がなくバスリクエス
ト周期が1msでありその1ms間に100KBのデー
タを転送することを要求するバスマスタBとの2つのバ
スマスタがLSIに含まれている場合を想定する。さら
に、先取り優先方式であるならばバスマスタAが先にバ
スリクエストを出した場合を想定し、優先度に基づき調
停する方式であるならばバスマスタAが優先度が高い場
合を想定する。
The problems of such a conventional memory control device will be described below. Assuming that the bus bandwidth of the memory bus is about 800 KB / ms,
When there is data to be processed continuously, the bus request cycle is 2 ms and 1000 K is in the 2 ms.
A bus master A requesting to transfer the data of B;
Assume that the LSI includes two bus masters, a bus master B having a time margin of 1 ms and a bus request cycle of 1 ms, and a bus master B requesting to transfer 100 KB of data in the 1 ms. Further, it is assumed that the bus master A issues a bus request first if it is the preemption priority method, and that the bus master A has a high priority if it is the method of arbitrating based on the priority.

【0010】この場合において、従来のメモリ制御装置
にバスマスタAからのバスリクエストがあると、メモリ
制御装置はバスマスタAにバス使用権を与えてデータの
転送を許可する。これを受けてバスマスタAが1000
KBのデータを転送するとその転送に1ms以上かかる
ため、メモリ制御装置はバスマスタBからの1ms毎の
バスリクエストに即座に応じることができなくなる。
In this case, when the conventional memory control device receives a bus request from the bus master A, the memory control device gives the bus master A a bus use right to permit data transfer. In response to this, the bus master A 1000
Since it takes 1 ms or more to transfer the KB data, the memory control device cannot immediately respond to the bus request from the bus master B every 1 ms.

【0011】このため、バスマスタBにとってはメモリ
アクセスの待ち時間が1msより大きくなってしまい、
バスマスタBとメモリとの間でのデータ転送量は1ms
単位の各周期においては100KBに統一されず、転送
にむらが生じてしまう。即ちバスマスタBが必要とする
転送レートがバスリクエスト周期内において保たれなく
なる。
Therefore, the waiting time for memory access for the bus master B becomes longer than 1 ms,
The data transfer amount between the bus master B and the memory is 1 ms.
It is not unified to 100 KB in each cycle of the unit, and uneven transfer occurs. That is, the transfer rate required by the bus master B cannot be maintained within the bus request cycle.

【0012】このようにバス使用権の先取り優先方式或
いは優先度に基づき調停する方式を用いた調停機構をも
つ従来のメモリ制御装置は、長期的には各バスマスタが
必要とする転送レートを保証することができるかもしれ
ないが、短期間においてその転送レートの保証ができな
いという問題を有する。この問題を解決するためには、
各バスマスタが必要とする転送レートや、転送レートが
保証されるべき範囲となる時間間隔等を予め考慮してメ
モリ制御装置を設計しておく必要がある。
As described above, the conventional memory control device having the arbitration mechanism using the bus use right preemption priority method or the arbitration method based on the priority guarantees the transfer rate required by each bus master in the long term. However, there is a problem that the transfer rate cannot be guaranteed in a short period of time. To solve this problem,
It is necessary to design the memory control device in consideration of the transfer rate required by each bus master, the time interval within which the transfer rate should be guaranteed, and the like.

【0013】しかしながら、LSIがどのような装置中
に実装されるかによって、各バスマスタに要求される処
理の内容が変化し、これにより各バスマスタの要求する
転送レートやバスリクエスト周期が変化するため、各バ
スマスタの具体的な処理内容を予め考慮してメモリ制御
装置を設計しておくことは困難である。また、年々LS
Iは高機能化しており、将来的にLSIに新たな回路を
盛り込む場合の開発コスト抑制の見地からは、LSIに
包含する各回路が何であろうとその各回路についてのデ
ータ転送レートの保証が行えるような汎用性の高いメモ
リ制御装置の設計開発が要請される。メモリ制御装置の
汎用性が高ければ、その設計資産の長期的活用が図れる
からである。
However, the content of the processing required by each bus master changes depending on the device in which the LSI is mounted, and the transfer rate and bus request cycle required by each bus master change accordingly. It is difficult to design the memory control device in consideration of the specific processing contents of each bus master in advance. Also, year by year LS
Since I is highly functional, from the viewpoint of suppressing the development cost when a new circuit is incorporated in the LSI in the future, the data transfer rate of each circuit can be guaranteed regardless of the circuit included in the LSI. Design and development of such a versatile memory control device is required. This is because if the memory control device has high versatility, its design assets can be utilized for a long time.

【0014】そこで、本発明はかかる要請に鑑みてなさ
れたものであり、各バスマスタに対して、要求された転
送レートを必要な時間的精度で保証してメモリアクセス
の競合を調停する汎用的なメモリ制御装置を提供するこ
とを目的とする。また、そのメモリ制御装置及びバスマ
スタを含むLSIを提供することを目的とする。
Therefore, the present invention has been made in view of such a demand, and is a general-purpose technique for arbitrating contention of memory access by guaranteeing a required transfer rate to each bus master with necessary time accuracy. An object is to provide a memory control device. Another object is to provide an LSI including the memory control device and the bus master.

【0015】[0015]

【課題を解決するための手段】上記目的を達成するため
に、本発明に係るメモリ制御装置は、メモリを共用する
複数のバスマスタのいずれかに対し選択的にメモリバス
の使用権を付与することによりメモリへのアクセス競合
を調停するメモリ制御装置であって、複数のバスマスタ
それぞれについて、当該バスマスタがメモリとの間でデ
ータを転送する際の転送レートと当該転送レートで転送
が行われることが保証されるべき範囲を定める時間間隔
とを示す転送レート情報を保持する保持手段と、各バス
マスタに対応する前記時間間隔のうち最も小さいもの以
下の時間を単位時間として定める単位時間算定手段と、
各バスマスタについて、対応する転送レートによって前
記単位時間において転送できるデータ量をVとした場合
にメモリバスのバスバンド幅に基づいてVの転送に要す
る時間であるバス使用許可時間を求めるバス使用許可時
間算定手段と、時間経過を周期的に前記単位時間で区分
して得られる複数の単位時間帯それぞれにおいて、各バ
スマスタに対して、対応するバス使用許可時間だけメモ
リバスの使用権を付与する使用権付与手段とを備えるこ
とを特徴とする。
In order to achieve the above object, a memory control device according to the present invention selectively grants a right to use a memory bus to any of a plurality of bus masters sharing a memory. Is a memory control device that arbitrates access competition to the memory by guaranteeing that, for each of a plurality of bus masters, the transfer rate at which the bus master transfers data to and from the memory and that the transfer is performed at the transfer rate Holding means for holding transfer rate information indicating a time interval defining a range to be performed, unit time calculating means for defining a time equal to or smaller than the smallest of the time intervals corresponding to each bus master as a unit time,
For each bus master, when the amount of data that can be transferred in the unit time according to the corresponding transfer rate is V, the bus use permission time that is the time required for V transfer based on the bus bandwidth of the memory bus is obtained. In the calculating unit and in each of a plurality of unit time zones obtained by periodically dividing the elapsed time by the unit time, a right of use for granting a right of use of the memory bus to each bus master for a corresponding bus use permission time And providing means.

【0016】また、本発明に係るメモリ制御装置は、1
つのメモリ中の互いに独立したメモリ領域にアクセスす
る複数のバスマスタに対し、選択的にメモリバスの使用
権を付与することによりメモリへのアクセス競合を調停
するメモリ制御装置であって、複数のバスマスタそれぞ
れについて、当該バスマスタがメモリとの間でデータを
転送する際の転送レートと当該転送レートで転送が行わ
れることが保証されるべき範囲を定める時間間隔とを示
す転送レート情報を保持する保持手段と、各バスマスタ
に対応する前記時間間隔のうち最も小さいもの以下の時
間を単位時間として定める単位時間算定手段と、各バス
マスタについて、対応する転送レートによって前記単位
時間において転送できるデータ量をVとした場合にメモ
リバスのバスバンド幅に基づいてVの転送に要する時間
であるバス使用許可時間を求めるバス使用許可時間算定
手段と、時間経過を周期的に前記単位時間で区分して得
られる複数の単位時間帯それぞれにおいて、各バスマス
タに対して、対応するバス使用許可時間だけメモリバス
の使用権を付与する使用権付与手段とを備えることを特
徴とする。
Further, the memory control device according to the present invention is
A memory control device that arbitrates access competition to a memory by selectively granting a right to use a memory bus to a plurality of bus masters that access mutually independent memory areas in one memory. A holding unit that holds transfer rate information indicating a transfer rate when the bus master transfers data to and from the memory and a time interval that defines a range in which the transfer should be guaranteed at the transfer rate. A unit time calculating means for setting a time equal to or smaller than the smallest one of the time intervals corresponding to each bus master as a unit time, and for each bus master, V is a data amount that can be transferred in the unit time according to a corresponding transfer rate. Based on the bus bandwidth of the memory bus, the time required for V transfer is the bus license. In each of a plurality of unit time zones obtained by periodically dividing the elapsed time into the unit time, the bus use permission time calculating unit for obtaining the time, and for each bus master, the bus use permission time corresponding to the corresponding bus use permission time And a usage right granting means for granting a usage right.

【0017】上記構成により、各バスマスタが要求する
転送レートに関する条件に、何ら統一がない場合であっ
ても、転送待ちの余裕が最小であるバスマスタの転送レ
ートに関する条件が満足できるように転送レートの調整
を行うこととなるため、各バスマスタが必要な時間的精
度で転送レートを一定に保ってデータ転送を行うことが
できるようになる。
With the above configuration, even if there is no uniformity in the conditions regarding the transfer rates required by the respective bus masters, the transfer rates of the bus masters are satisfied so that the conditions concerning the transfer rates of the bus masters with the minimum transfer waiting margin can be satisfied. Since the adjustment is performed, it becomes possible for each bus master to perform data transfer while keeping the transfer rate constant with required time accuracy.

【0018】また、このメモリ制御装置を用いれば、各
バスマスタの転送レートに関する条件を変更する必要が
あるときにも、記憶されている転送レート情報を書き替
えるのみで、各バスマスタの要求に応じた転送レートで
各バスマスタにメモリとの間でデータ転送を行わせるこ
とができるようになる。このことから、アクセス競合制
御の対象となるバスマスタを取り替えても、このメモリ
制御装置を活用することができるといえる。
Further, by using this memory control device, even when the condition regarding the transfer rate of each bus master needs to be changed, the stored transfer rate information is simply rewritten to meet the request of each bus master. It becomes possible for each bus master to transfer data to and from the memory at the transfer rate. From this, it can be said that this memory control device can be utilized even if the bus master that is the target of access conflict control is replaced.

【0019】また、本発明に係るLSIは、メモリを共
用する複数の回路と、当該複数の回路のいずれかに対し
選択的にメモリバスの使用権を付与することによりメモ
リへのアクセス競合を調停するメモリ制御装置とを含む
LSIであって、前記各回路は、メモリとの間で一定の
転送レートでデータを転送することを要する回路であ
り、前記メモリ制御装置は、前記各回路について、当該
回路がメモリとの間でデータを転送する際の転送レート
と当該転送レートで転送が行われることが保証されるべ
き範囲を定める時間間隔とを示す転送レート情報を保持
する保持手段と、各回路に対応する前記時間間隔のうち
最も小さいもの以下の時間を単位時間として定める単位
時間算定手段と、各回路について、対応する転送レート
によって前記単位時間に転送できるデータ量をVとした
場合にメモリバスのバスバンド幅に基づいてVの転送に
要する時間であるバス使用許可時間を求めるバス使用許
可時間算定手段と、時間経過を周期的に前記単位時間で
区分して得られる複数の単位時間帯それぞれにおいて、
各回路に対して、対応するバス使用許可時間だけメモリ
バスの使用権を付与する使用権付与手段とを備えること
を特徴とする。
Further, the LSI according to the present invention arbitrates access competition to the memory by selectively granting the right to use the memory bus to a plurality of circuits sharing the memory and the plurality of circuits. An LSI including a memory control device, and the circuits are circuits that require data to be transferred at a constant transfer rate to and from the memory. A holding unit that holds transfer rate information indicating a transfer rate when the circuit transfers data to and from the memory and a time interval that defines a range in which the transfer should be guaranteed at the transfer rate, and each circuit. Unit time calculating means for determining a time equal to or smaller than the smallest one of the time intervals corresponding to the unit time, and the unit time according to the corresponding transfer rate for each circuit. When the amount of data that can be transferred to V is V, bus usage permission time calculating means for determining a bus usage permission time that is the time required for V transfer based on the bus bandwidth of the memory bus, and the unit of time elapsed periodically. In each of multiple unit time zones obtained by dividing by time,
Each circuit is provided with a usage right granting means for granting a usage right of the memory bus for a corresponding bus usage permission time.

【0020】上記構成により、LSIの複数の内部回路
それぞれが、互いに共用するメモリとの間で、必要な時
間的精度で必要とする転送レートを保ってデータ転送を
行うことができるようになる。
With the above structure, each of the plurality of internal circuits of the LSI can transfer data to and from the shared memory with the required transfer rate at the required time accuracy.

【0021】[0021]

【発明の実施の形態】以下、本発明に係るメモリ制御装
置の実施の形態であるメモリ制御部と複数のバスマスタ
を含むLSIについて説明する。 <実施の形態1> <構成>図1は、本発明の実施の形態1に係るメモリ制
御部を含むLSI100の構成図である。なお、図1に
は、LSI100の他にユニファイドメモリ200を示
している。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An LSI including a memory control unit and a plurality of bus masters, which is an embodiment of a memory control device according to the present invention, will be described below. <First Embodiment><Configuration> FIG. 1 is a configuration diagram of an LSI 100 including a memory control unit according to a first embodiment of the present invention. Note that FIG. 1 shows a unified memory 200 in addition to the LSI 100.

【0022】LSI100は、情報家電機器やその他の
機器に搭載されるLSIであり、メモリ制御部110、
バスマスタA121、バスマスタB122、バスマスタ
C123及びクロックジェネレータ190を備え、ユニ
ファイドメモリ200に接続されている。なお、図1に
は示していないが、LSI100は、他の外部装置にも
接続されている。
The LSI 100 is an LSI mounted on information home appliances and other devices, and includes a memory controller 110,
A bus master A 121, a bus master B 122, a bus master C 123, and a clock generator 190 are provided and are connected to the unified memory 200. Although not shown in FIG. 1, the LSI 100 is also connected to other external devices.

【0023】ここで、クロックジェネレータ190は、
クロック信号をメモリ制御部110、バスマスタA〜C
及びユニファイドメモリ200に供給する回路である。
バスマスタA121、B122及びC123は、例え
ば、ユニファイドメモリ200を主記憶として用いるM
PUやユニファイドメモリ200に画像データ等を格納
するDSP等であり、互いに独立してユニファイドメモ
リ200にアクセスしデータ転送を行う。即ち、バスマ
スタA〜Cそれぞれは、データ転送の必要がある場合に
メモリ制御部110に対してREQ信号線を通じてバス
リクエストを発し、メモリ制御部110からGNT信号
線を通じてバス使用権を得て、バス使用権を得ている間
においてクロックジェネレータ190からのクロック信
号に基づくタイミングでメモリ制御部110の調停部1
14と同期してデータの転送を行う。
Here, the clock generator 190 is
The clock signal is sent to the memory control unit 110 and the bus masters A to C.
And a circuit to be supplied to the unified memory 200.
The bus masters A121, B122 and C123 use, for example, the unified memory 200 as a main memory.
A PU or a DSP that stores image data and the like in the unified memory 200, and independently accesses the unified memory 200 to perform data transfer. That is, each of the bus masters A to C issues a bus request to the memory control unit 110 through the REQ signal line when data transfer is required, obtains the bus use right from the memory control unit 110 through the GNT signal line, and The arbitration unit 1 of the memory control unit 110 at a timing based on the clock signal from the clock generator 190 while obtaining the usage right.
Data is transferred in synchronization with 14.

【0024】図1においては、各バスマスタからのバス
リクエストをそれぞれREQ−A、REQ−B、REQ
−Cで表し、各バスマスタへのバス使用権の付与をそれ
ぞれGNT−A、GNT−B、GNT−Cで表してい
る。なお、データの転送は、メモリアドレスの指定と、
ユニファイドメモリへのデータの書き込み或いはユニフ
ァイドメモリからのデータの読み出しによってなされ、
これによりアドレスとデータとがメモリバス上を伝送さ
れる。各バスマスタがユニファイドメモリ200との間
で転送するデータは、例えば外部装置から入力されたデ
ータに基づいてバスマスタが生成した、ディスプレイ装
置に出力するための映像データである。
In FIG. 1, the bus requests from the bus masters are REQ-A, REQ-B and REQ, respectively.
-C, and GNT-A, GNT-B, and GNT-C represent the granting of the bus use right to each bus master. In addition, data transfer is performed by specifying the memory address and
By writing data to the unified memory or reading data from the unified memory,
As a result, the address and the data are transmitted on the memory bus. The data transferred between each bus master and the unified memory 200 is, for example, video data generated by the bus master based on the data input from the external device and output to the display device.

【0025】各バスマスタは、それぞれ独立してデータ
転送の処理を行うものであり、例えばディスプレイ装置
に出力する映像が途切れないようにする等のため、一定
の転送レートでユニファイドメモリとの間でデータを転
送しなければならないものである。但し、バスマスタが
常に連続してユニファイドメモリとの間でデータ転送を
行うとは限らない。例えば外部装置からデータが連続し
て入力されている等により、送出すべきデータが生成さ
れ蓄積されている期間においてはバスマスタは連続的に
ユニファイドメモリへのデータ転送を行うが、外部装置
からデータが入力されない等によって、送出すべきデー
タが蓄積されていない期間においてはバスマスタはユニ
ファイドメモリへのデータ転送を行わない。
Each bus master independently performs a data transfer process. For example, in order to prevent the video output to the display device from being interrupted, for example, the bus master and the unified memory have a fixed transfer rate. The data must be transferred. However, the bus master does not always continuously perform data transfer with the unified memory. For example, the bus master continuously transfers data to the unified memory during the period in which the data to be sent is generated and accumulated due to continuous input of data from the external device. Is not input, the bus master does not transfer data to the unified memory during a period in which data to be transmitted is not accumulated.

【0026】また、メモリ制御部110は、外部装置か
ら伝えられる転送レート情報に基づいて、各バスマスタ
のユニファイドメモリ200へのアクセスを調停するも
のであり、転送レート情報記憶部111、タイミング情
報生成部112、タイミング情報格納部113及び調停
部114を有する。ここで、転送レート情報記憶部11
1は、外部装置から伝えられる転送レート情報を記憶す
るためのメモリ領域である。なお、転送レート情報につ
いては、後に詳しく説明する。
The memory control unit 110 arbitrates the access to the unified memory 200 of each bus master based on the transfer rate information transmitted from the external device, and the transfer rate information storage unit 111 and the timing information generation unit. It has a unit 112, a timing information storage unit 113, and an arbitration unit 114. Here, the transfer rate information storage unit 11
Reference numeral 1 is a memory area for storing transfer rate information transmitted from an external device. The transfer rate information will be described later in detail.

【0027】タイミング情報生成部112は、転送レー
ト情報記憶部111に記憶されている転送レート情報を
参照してタイミング情報を生成しタイミング情報格納部
113に格納する機能を有するものである。なお、タイ
ミング情報については後に詳しく説明する。タイミング
情報格納部113は、タイミング情報を格納するための
メモリ領域である。
The timing information generation unit 112 has a function of referring to the transfer rate information stored in the transfer rate information storage unit 111 to generate timing information and storing it in the timing information storage unit 113. The timing information will be described later in detail. The timing information storage unit 113 is a memory area for storing timing information.

【0028】調停部114は、タイミング情報格納部1
13に格納されているタイミング情報を参照し、クロッ
クジェネレータ190からのクロック信号に基づき所定
のタイミングで、各バスマスタからのバスリクエストの
有無を検査し、バスリクエストを発しているバスマスタ
に順次選択的にバス使用権を与える機能を有する。各バ
スマスタはREQ信号線をアクティブにすることにより
調停部114にバスリクエストを発し、調停部114は
いずれかのバスマスタへのGNT信号線をアクティブに
することによりそのバスマスタにバス使用権を付与す
る。なお、バスマスタはデータ転送の必要がある限りに
おいてREQ信号線をアクティブにし続ける。
The arbitration unit 114 includes the timing information storage unit 1.
13, the presence / absence of a bus request from each bus master is checked at a predetermined timing based on the clock signal from the clock generator 190, and the bus master issuing the bus request is selectively and sequentially selected. It has the function of giving the right to use the bus. Each bus master issues a bus request to the arbitration unit 114 by activating the REQ signal line, and the arbitration unit 114 grants the bus use right to the bus master by activating the GNT signal line to any of the bus masters. The bus master keeps the REQ signal line active as long as data transfer is necessary.

【0029】<データ>図2は、転送レート情報記憶部
111が外部装置から伝えられて記憶している転送レー
ト情報のデータ構成及び内容例を示す図である。同図に
示すように、転送レート情報300は、バスマスタA〜
Cについて、リクエスト周期302と1回のデータ転送
量303との組を対応付けた情報である。転送レート情
報は、例えば、LSIの外部に配置されメモリ及びCP
Uを備えておりLSI100を制御する外部装置等によ
って、LSI内の各バスマスタがユニファイドメモリ2
00にアクセスしてデータ転送を伴う処理を開始するよ
り前に設定されるものである。
<Data> FIG. 2 is a diagram showing a data structure and an example of contents of the transfer rate information stored in the transfer rate information storage unit 111 transmitted from an external device. As shown in the figure, the transfer rate information 300 includes bus masters A to
About C, it is the information which matched the group of the request period 302 and the data transfer amount 303 of 1 time. The transfer rate information may be, for example, a memory and a CP provided outside the LSI.
Each bus master in the LSI is controlled by the unified memory 2 by an external device or the like that includes U and controls the LSI 100.
It is set before accessing 00 to start the processing involving data transfer.

【0030】ここで、リクエスト周期302は、連続的
に処理すべきデータがある場合において各バスマスタが
必要とする転送レートが、保たれるべき範囲となる時間
間隔である。なお、連続的に処理すべきデータがある場
合において、各バスマスタは基本的にそのリクエスト周
期302以下の周期でバスリクエストを発する。また、
1回のデータ転送量303は、対応するリクエスト周期
302において各バスマスタが転送する必要のあるデー
タの量である。
Here, the request period 302 is a time interval within which the transfer rate required by each bus master when there is data to be continuously processed is within a range to be maintained. When there is data to be continuously processed, each bus master basically issues a bus request at a cycle below the request cycle 302. Also,
The one-time data transfer amount 303 is the amount of data that each bus master needs to transfer in the corresponding request cycle 302.

【0031】同図の例では、連続的にデータ転送を行う
必要がある場合において、バスマスタAは、2000マ
イクロ秒(μs)毎に1000キロバイト(KB)のデ
ータ転送を行わなければならず、バスマスタBは、10
00μs毎に100KBのデータ転送を行わなければな
らず、バスマスタCは、4000μs毎に400KBの
データ転送を行わなければならないことを示している。
In the example shown in the figure, when it is necessary to continuously transfer data, the bus master A must transfer 1000 kilobytes (KB) of data every 2000 microseconds (μs). B is 10
This indicates that 100 KB of data must be transferred every 00 μs, and the bus master C must transfer 400 KB of data every 4000 μs.

【0032】即ち、バスマスタAは2000usの範囲
において500KB/msの転送レートを保って転送を
行う必要のあるバスマスタであり、バスマスタBは10
00usの範囲において100KB/msの転送レート
を保って転送を行う必要があるバスマスタであり、バス
マスタCは4000usの範囲において100KB/m
sの転送レートを保って転送を行う必要があるバスマス
タであることを同図の転送レート情報300は示してい
る。バスマスタA〜Cにおいては、バスマスタBが転送
レートの確保に関する時間的余裕の最も小さいものであ
り、バスマスタCが転送レートの確保に関する時間的余
裕が最も大きいものである。
That is, the bus master A is a bus master that needs to maintain the transfer rate of 500 KB / ms in the range of 2000 us, and the bus master B is 10
The bus master C is a bus master that needs to transfer at a transfer rate of 100 KB / ms in the range of 00 us, and the bus master C is 100 KB / m in the range of 4000 us.
The transfer rate information 300 in the figure indicates that the bus master needs to transfer data at a transfer rate of s. Of the bus masters A to C, the bus master B has the smallest time margin for securing the transfer rate, and the bus master C has the largest time margin for securing the transfer rate.

【0033】なお、CPU等を備えた外部装置は、各バ
スマスタの仕様に合わせて、転送レート情報300を定
めてメモリ制御部110に入力すればよく、このように
メモリ制御部110の制御内容を定める転送レート情報
300を外部入力可能な構成としていることにより、メ
モリ制御部110は汎用的なものとなっている。図3
は、タイミング情報生成部112に生成されタイミング
情報格納部113に格納されるタイミング情報のデータ
構成及び内容例を示す図である。
The external device having a CPU or the like may determine the transfer rate information 300 according to the specifications of each bus master and input the transfer rate information 300 to the memory control unit 110. In this way, the control content of the memory control unit 110 is set. The memory control unit 110 is general-purpose because the determined transfer rate information 300 can be externally input. Figure 3
FIG. 4 is a diagram showing a data structure and an example of contents of timing information generated by the timing information generation unit 112 and stored in the timing information storage unit 113.

【0034】同図に示すように、タイミング情報400
は、リクエスト検出周期401と、各バスマスタについ
ての周期内バス使用許可時間402から構成される。こ
こで、リクエスト検出周期401は、調停部114がバ
スマスタA〜Cからのバスリクエストを検出する間隔と
してタイミング情報生成部112により定められる時間
を示す情報である。
As shown in the figure, timing information 400
Is composed of a request detection cycle 401 and an intra-cycle bus use permission time 402 for each bus master. Here, the request detection cycle 401 is information indicating a time determined by the timing information generation unit 112 as an interval at which the arbitration unit 114 detects a bus request from the bus masters A to C.

【0035】また、周期内バス使用許可時間402は、
リクエスト検出周期401において各バスマスタが必要
なデータの転送を行うことができるように、各バスマス
タに対してメモリバスの使用を許可すべき時間、即ちバ
ス使用権を付与すべき時間を示す情報である。なお、ユ
ニファイドメモリ200のメモリバスのバスバンド幅は
800KB/msであるものとしている。
The intra-cycle bus use permission time 402 is
This is information indicating the time at which each bus master should be permitted to use the memory bus, that is, the time at which the bus use right should be granted so that each bus master can transfer necessary data in the request detection period 401. . The bus bandwidth of the memory bus of the unified memory 200 is assumed to be 800 KB / ms.

【0036】なお、タイミング情報における各時間は、
実際には例えばクロックジェネレータ190が発するク
ロック信号のカウント数で表されている。 <動作>以下、上述の構成を備えるメモリ制御部110
の動作について説明する。外部装置から伝えられた転送
レート情報を転送レート情報記憶部111が記憶してい
る状態において、タイミング情報生成部112は、図4
に示す動作を行う。
Each time in the timing information is
Actually, for example, it is represented by the count number of the clock signal generated by the clock generator 190. <Operation> Hereinafter, the memory control unit 110 having the above-described configuration
The operation of will be described. In the state where the transfer rate information storage unit 111 stores the transfer rate information transmitted from the external device, the timing information generation unit 112 operates as shown in FIG.
Perform the operation shown in.

【0037】図4は、タイミング情報生成部112の動
作を示すフローチャートである。タイミング情報生成部
112は、転送レート情報に含まれている各バスマスタ
についてのリクエスト周期を参照し、最も短いリクエス
ト周期を、タイミング情報中のリクエスト検出周期とし
て定める(ステップS11)。続いて、タイミング情報
生成部112は、転送レート情報とステップS11にお
いて定めたリクエスト検出周期とを用いて、各バスマス
タについて、リクエスト検出周期あたりのデータ転送量
を求め(ステップS12)、その求めたデータ転送量を
メモリバスのバスバンド幅で割ることによって、タイミ
ング情報中の周期内バス使用許可時間を求める(ステッ
プS13)。なお、タイミング情報生成部112は、メ
モリバスのバスバンド幅をLSI内部のメモリ等に記憶
しており、それを活用してステップS13の演算を行
う。
FIG. 4 is a flow chart showing the operation of the timing information generator 112. The timing information generation unit 112 refers to the request cycle for each bus master included in the transfer rate information, and determines the shortest request cycle as the request detection cycle in the timing information (step S11). Subsequently, the timing information generation unit 112 uses the transfer rate information and the request detection period determined in step S11 to obtain the data transfer amount per request detection period for each bus master (step S12), and the obtained data. By dividing the transfer amount by the bus bandwidth of the memory bus, the in-cycle bus use permission time in the timing information is obtained (step S13). The timing information generation unit 112 stores the bus bandwidth of the memory bus in a memory or the like inside the LSI, and uses it to perform the calculation in step S13.

【0038】こうして、求められたタイミング情報は、
タイミング情報生成部112によってタイミング情報格
納部113に格納される。このようなタイミング情報生
成部112の動作は、例えばLSIに電流が供給され始
めてから短期間のうちに行われることが想定される。な
お、例えば、図2に例示する内容の転送レート情報30
0に基づいてタイミング情報生成部112により生成さ
れるタイミング情報は、図3に例示する内容のものとな
る。
The timing information thus obtained is
It is stored in the timing information storage unit 113 by the timing information generation unit 112. It is assumed that such an operation of the timing information generation unit 112 is performed within a short period of time, for example, after the current is supplied to the LSI. Note that, for example, the transfer rate information 30 having the content illustrated in FIG.
The timing information generated by the timing information generation unit 112 based on 0 has the content illustrated in FIG.

【0039】次に、タイミング情報が生成された後に、
調停部114が行う調停処理について説明する。図5
は、調停部114が行う調停処理を示すフローチャート
である。調停部114は、タイミング情報と、クロック
ジェネレータ190から一定間隔で供給されるクロック
信号とに基づいて、リクエスト検出周期毎に到来する時
刻(以下、「リクエスト検出タイミング」という。)を
待ち、リクエスト検出タイミングにおいて各バスマスタ
からバスリクエストが発されているか否かを検査する
(ステップS21)。
Next, after the timing information is generated,
The arbitration process performed by the arbitration unit 114 will be described. Figure 5
6 is a flowchart showing an arbitration process performed by the arbitration unit 114. Based on the timing information and the clock signal supplied from the clock generator 190 at regular intervals, the arbitration unit 114 waits for the time to arrive at each request detection cycle (hereinafter referred to as “request detection timing”) and then detects the request. It is checked at each timing whether or not a bus request is issued from each bus master (step S21).

【0040】調停部114は、ステップS21の検査時
において、いずれかのバスマスタからのバスリクエスト
が検出されていたか否かを判定し(ステップS22)、
いずれのバスマスタからもバスリクエストが検出されて
いなければ、ステップS21に戻り次のリクエスト検出
タイミングの到来を待つ。ステップS22において、バ
スリクエストが検出されていたと判定されると、調停部
114は、バスリクエストを発していたバスマスタの1
つにバス使用権を付与する(ステップS23)。
The arbitration unit 114 determines whether or not a bus request from any of the bus masters has been detected during the inspection in step S21 (step S22),
If no bus request is detected from any of the bus masters, the process returns to step S21 and waits for the next request detection timing. When it is determined in step S22 that the bus request has been detected, the arbitration unit 114 sets 1 of the bus master issuing the bus request.
Then, the bus use right is given (step S23).

【0041】調停部114は、あるバスマスタにバス使
用権を付与した後、クロック信号をカウントすることに
よりそのバスマスタについての周期内バス使用許可時間
が経過するのを待って、経過時にバス使用権の付与を中
止する(ステップS24)。即ち、ステップS23、S
24により、あるバスマスタへのGNT信号線を、周期
内バス使用許可時間だけアクティブにしその後にはイン
アクティブにする。
The arbitration unit 114, after granting a bus mastership to a certain bus master, waits for the in-cycle bus mastership permission time for that bus master to elapse by counting the clock signal, and at the time of elapse, the bus mastership The application is stopped (step S24). That is, steps S23 and S
By 24, the GNT signal line to a certain bus master is activated only for the in-cycle bus use permission time and then inactivated.

【0042】ステップS24の後、調停部114は、直
前のステップS21の検査時において、その検査後に既
にバス使用権を与えたバスマスタと異なるバスマスタか
らのバスリクエストが検出されていたか否かを判定し
(ステップS25)、検出されていなければステップS
21に戻り次のリクエスト検出タイミングの到来を待
つ。
After step S24, the arbitration unit 114 determines whether or not a bus request from a bus master different from the bus master that has already been granted the bus use right has been detected at the time of the immediately preceding inspection at step S21. (Step S25), if not detected, Step S25
The process returns to step 21 and waits for the arrival of the next request detection timing.

【0043】ステップS25において、検査後に既にバ
ス使用権を与えたバスマスタと異なるバスマスタからの
バスリクエストが検出されていたと判定すると、調停部
114はステップS23の処理に戻る。従って、時間の
経過をリクエスト検出周期の連続と表現すると、調停部
114は、各リクエスト検出周期において、その周期前
にバスリクエストを発している各バスマスタに対し、該
当する周期内バス使用許可時間分だけバス使用権を与え
ることになる。
When it is determined in step S25 that a bus request from a bus master different from the bus master to which the bus use right has already been given has been detected after the inspection, the arbitration unit 114 returns to the process of step S23. Therefore, if the passage of time is expressed as the continuation of the request detection cycle, the arbitration unit 114, in each request detection cycle, gives each bus master that has issued a bus request before that cycle, the amount of the bus use permission time within the corresponding cycle. You will only be given the right to use the bus.

【0044】図6は、バスマスタA〜Cからのバスリク
エストとメモリ制御部110によるバス使用権の付与と
の時間的変化を示すタイミングチャートである。これ
は、図2に例示した転送レート情報300に基づいてメ
モリ制御部110が各バスマスタによるメモリアクセス
の競合を調停した結果を示している。同図から明らかな
ように、リクエスト検出周期は、バスリクエスト周期の
最も短いバスマスタBに合わせて1000μsとなって
おり、リクエスト検出周期毎にバスリクエストを発して
いたバスマスタA、B、Cに順にそれぞれ625μs、
125μs、125μsずつバス使用権が付与されてい
る。メモリバスのバスバンド幅が800KB/msであ
るため、リクエスト検出周期内においてバスマスタAは
500KB、バスマスタBは100KB、バスマスタC
は100KBのデータの転送を行っていることになる。
FIG. 6 is a timing chart showing a temporal change between the bus request from the bus masters A to C and the grant of the bus use right by the memory control unit 110. This shows the result of the memory control unit 110 arbitrating the contention of the memory access by each bus master based on the transfer rate information 300 illustrated in FIG. As is clear from the figure, the request detection cycle is 1000 μs in total for the bus master B having the shortest bus request cycle, and the bus masters A, B, and C that have issued the bus request are sequentially arranged in each request detection cycle. 625 μs,
The bus use right is given to each of 125 μs and 125 μs. Since the bus bandwidth of the memory bus is 800 KB / ms, the bus master A is 500 KB, the bus master B is 100 KB, and the bus master C is within the request detection period.
Is transferring 100 KB of data.

【0045】従って、バスマスタAは2000msにお
いて1000KBのデータの転送を行い、バスマスタB
は1000msにおいて100KBのデータの転送を行
い、バスマスタCは4000msにおいて400KBの
データの転送を行っており、各バスマスタは、要求する
転送レートを要求する精度で確保してデータ転送を行え
ている。 <実施の形態2>以下、本発明の実施の形態2に係るメ
モリ制御部について説明する。実施の形態1で示したメ
モリ制御部110は、一定の転送レートでメモリとの間
でデータ転送を行う必要のあるバスマスタA〜C間での
メモリアクセスの競合を調停する機能を有するものであ
ったが、実施の形態2に係るメモリ制御部は、さらに一
定の転送レートを保つ必要がなく不定期にメモリとの間
でデータ転送を行うバスマスタDを加えたバスマスタA
〜D間でのメモリアクセスの競合を調停する機能を有す
るものである。
Therefore, the bus master A transfers 1000 KB of data in 2000 ms, and the bus master B transfers the data.
Performs data transfer of 100 KB in 1000 ms, the bus master C transfers data of 400 KB in 4000 ms, and each bus master can ensure the required transfer rate with the required accuracy and perform the data transfer. <Second Embodiment> A memory control unit according to the second embodiment of the present invention will be described below. The memory control unit 110 described in the first embodiment has a function of arbitrating the contention of the memory access between the bus masters A to C that needs to transfer data with the memory at a constant transfer rate. However, the memory control unit according to the second embodiment does not need to maintain a constant transfer rate, and the bus master A including the bus master D that transfers data to and from the memory irregularly is added.
It has a function of arbitrating the memory access contention between D to D.

【0046】<構成>図7は、本発明の実施の形態2に
係るメモリ制御部を含むLSI500の構成図である。
なお、図7には、LSI500の他にユニファイドメモ
リ200を示している。LSI500は、メモリ制御部
510、バスマスタA121、バスマスタB122、バ
スマスタC123、バスマスタD124及びクロックジ
ェネレータ190を備え、ユニファイドメモリ200に
接続されている。図7には示していないが、LSI50
0は、他の外部装置にも接続されている。
<Structure> FIG. 7 is a block diagram of an LSI 500 including a memory control unit according to the second embodiment of the present invention.
Note that FIG. 7 shows the unified memory 200 in addition to the LSI 500. The LSI 500 includes a memory control unit 510, a bus master A121, a bus master B122, a bus master C123, a bus master D124, and a clock generator 190, and is connected to the unified memory 200. Although not shown in FIG. 7, the LSI 50
0 is also connected to other external devices.

【0047】なお、LSI500の構成要素のうち実施
の形態1で示したLSI100の構成要素と基本的に同
様のものについては、図7において図1と同一の符号を
付しており、ここでは詳しい説明は省略する。ここで、
クロックジェネレータ190は、クロック信号をメモリ
制御部510、バスマスタA〜D及びユニファイドメモ
リ200に供給する回路である。
Note that among the constituent elements of the LSI 500, those basically the same as the constituent elements of the LSI 100 shown in the first embodiment are denoted by the same reference numerals in FIG. 7 as in FIG. The description is omitted. here,
The clock generator 190 is a circuit that supplies a clock signal to the memory control unit 510, the bus masters A to D, and the unified memory 200.

【0048】バスマスタD124は、バスマスタA〜C
とは独立してユニファイドメモリ200にアクセスしデ
ータ転送を行う。即ち、バスマスタDは、データ転送の
必要がある場合にメモリ制御部510に対してバスリク
エストを発し、メモリ制御部510からバス使用権を得
て、バス使用権を得ている間においてクロックジェネレ
ータ190からのクロック信号に基づくタイミングでメ
モリ制御部510の調停部514と同期してデータの転
送を行う。
The bus master D124 is the bus masters A to C.
Independently of this, the unified memory 200 is accessed and data is transferred. That is, the bus master D issues a bus request to the memory control unit 510 when data transfer is necessary, obtains the bus use right from the memory control unit 510, and while the bus use right is obtained, the clock generator 190 is obtained. Data is transferred in synchronization with the arbitration unit 514 of the memory control unit 510 at a timing based on the clock signal from

【0049】なお、バスマスタD124は、一定の転送
レートを保ってデータ転送を行う必要があるタイプつま
り定期的にバスリクエストを発するタイプ(以下、「定
期型」という。)のバスマスタA〜Cと異なり、不定期
にバスリクエストを発するタイプ(以下、「不定期型」
という。)のバスマスタであり、例えば、LSIが搭載
された装置のユーザからの入力に応じて外部から割込み
を受けて処理を行うMPU等である。
The bus master D124 is different from the bus masters A to C of the type that needs to transfer data at a constant transfer rate, that is, the type that periodically issues bus requests (hereinafter referred to as "periodic type"). , A type that issues a bus request irregularly (hereinafter, "irregular type"
Say. ) Is a bus master, and is, for example, an MPU or the like that receives an interrupt from the outside and performs processing in response to an input from a user of a device on which the LSI is mounted.

【0050】図7においては、各バスマスタからのバス
リクエストをそれぞれREQ−A、REQ−B、REQ
−C、REQ−Dで表し、各バスマスタへのバス使用権
の付与をそれぞれGNT−A、GNT−B、GNT−
C、GNT−Dで表している。また、メモリ制御部51
0は、外部装置から伝えられる転送レート情報に基づい
て、バスマスタA〜Dのユニファイドメモリ200への
アクセスを調停するものであり、転送レート情報記憶部
111、タイミング情報生成部112、タイミング情報
格納部113、調停部514及び不定期マスタ情報記憶
部515を有する。
In FIG. 7, the bus requests from the bus masters are REQ-A, REQ-B and REQ, respectively.
-C and REQ-D are used to give the bus use right to each bus master, GNT-A, GNT-B, and GNT-, respectively.
It is represented by C and GNT-D. In addition, the memory control unit 51
0 arbitrates access to the unified memory 200 of the bus masters A to D based on the transfer rate information transmitted from the external device, and includes a transfer rate information storage unit 111, a timing information generation unit 112, and timing information storage. It has a unit 113, an arbitration unit 514, and an irregular master information storage unit 515.

【0051】不定期マスタ情報記憶部515は、不定期
型のバスマスタを示す不定期マスタ情報を予め記憶して
いるメモリ領域である。不定期マスタ情報は調停部51
4が不定期型のバスマスタがどれであるかを認識するた
めに必要な情報である。調停部514は、不定期マスタ
情報記憶部515に記憶されている不定期マスタ情報と
タイミング情報格納部113に格納されているタイミン
グ情報とを参照し、クロックジェネレータ190からの
クロック信号に基づき所定のタイミングで、不定期型の
バスマスタ以外のバスマスタ、即ち定期型のバスマスタ
A〜Cからのバスリクエストの有無を検査してバスリク
エストを発しているバスマスタに順次選択的にバス使用
権を与え、さらにリクエスト検出周期内でバスマスタA
〜Cのいずれにもバス使用権を与えない時間が残ってい
るときには不定期型のバスマスタからバスリクエストが
発されている限りにおいてその不定期型のバスマスタに
バス使用権を与える。
The irregular master information storage unit 515 is a memory area in which irregular master information indicating irregular bus masters is stored in advance. The irregular master information is arbitration unit 51.
4 is information necessary for recognizing which of the irregular bus masters. The arbitration unit 514 refers to the irregular master information stored in the irregular master information storage unit 515 and the timing information stored in the timing information storage unit 113, and based on the clock signal from the clock generator 190, a predetermined value. At a timing, a bus master other than the aperiodic type bus master, that is, the presence / absence of a bus request from the regular type bus masters A to C is inspected, and the bus master issuing the bus request is sequentially and selectively granted the right to use the bus request. Bus master A within the detection cycle
When there is time left to grant the bus use right to none of C to C, the bus use right is given to the irregular bus master as long as a bus request is issued from the irregular bus master.

【0052】<動作>以下、上述の構成を備えるメモリ
制御部510の動作について説明する。タイミング情報
生成部112は、実施の形態1で示した動作と同様の動
作を行う(図4参照)。図8は、調停部514が行う調
停処理を示すフローチャートである。
<Operation> The operation of the memory control unit 510 having the above configuration will be described below. The timing information generation unit 112 performs the same operation as the operation described in the first embodiment (see FIG. 4). FIG. 8 is a flowchart showing the arbitration process performed by the arbitration unit 514.

【0053】調停部514は、タイミング情報と、クロ
ックジェネレータ190から一定間隔で供給されるクロ
ック信号とに基づいて、リクエスト検出タイミングが到
来するのを待ち、リクエスト検出タイミングにおいて不
定期型のバスマスタ以外の各バスマスタ、つまり定期型
の各バスマスタからバスリクエストが発されているか否
かを検査する(ステップS31)。
The arbitration unit 514 waits for the request detection timing to arrive on the basis of the timing information and the clock signal supplied from the clock generator 190 at regular intervals, and at the request detection timing, other than the irregular bus master. It is checked whether or not a bus request is issued from each bus master, that is, each regular bus master (step S31).

【0054】調停部514は、ステップS31の検査時
において、定期型のいずれかのバスマスタからのバスリ
クエストが検出されていたか否かを判定する(ステップ
S32)。ステップS32において、バスリクエストが
検出されていたと判定されると、調停部514は、バス
リクエストを発していた定期型のバスマスタの1つにバ
ス使用権を付与し(ステップS33)、クロック信号を
カウントすることによりそのバスマスタについての周期
内バス使用許可時間が経過するのを待って、経過時にバ
ス使用権の付与を中止する(ステップS34)。即ち、
ステップS33、S34により、定期型の1つのバスマ
スタへのGNT信号線を、周期内バス使用許可時間だけ
アクティブにしその後にはインアクティブにする。
The arbitration unit 514 determines whether or not a bus request from any of the regular type bus masters has been detected during the inspection in step S31 (step S32). When it is determined in step S32 that the bus request has been detected, the arbitration unit 514 grants the bus use right to one of the regular type bus masters that has issued the bus request (step S33) and counts the clock signal. By doing so, it waits for the in-cycle bus use permission time for the bus master to elapse, and when the time elapses, the grant of the bus use right is stopped (step S34). That is,
Through steps S33 and S34, the GNT signal line to one fixed-duration bus master is activated for the in-cycle bus use permission time and then inactivated.

【0055】ステップS34の後、調停部514は、直
前のステップS31の検査時において、その検査後に既
にバス使用権を与えたバスマスタと異なる定期型のバス
マスタからのバスリクエストが検出されていたか否かを
判定する(ステップS35)。ステップS35におい
て、検査後に既にバス使用権を与えたバスマスタと異な
る定期型のバスマスタからのバスリクエストが、ステッ
プS31の検査時において検出されていたと判定すると
調停部514はステップS33の処理に戻り、その他の
場合には調停部514は次のリクエスト検出タイミング
が到来しているか否かを判定し(ステップS36)、次
のリクエスト検出タイミングが到来していると判定した
場合にはステップS31の処理を行う。
After the step S34, the arbitration unit 514 determines whether or not a bus request from a regular type bus master different from the bus master which has already been granted the bus use right is detected after the inspection in the immediately preceding step S31. Is determined (step S35). If it is determined in step S35 that the bus request from the regular type bus master different from the bus master that has already been granted the bus use right after the inspection has been detected in the inspection in step S31, the arbitration unit 514 returns to the processing in step S33, and In the case of, the arbitration unit 514 determines whether or not the next request detection timing has arrived (step S36), and when it determines that the next request detection timing has arrived, performs the processing of step S31. .

【0056】また、ステップS32において、いずれの
バスマスタからもバスリクエストが検出されていない場
合には、調停部514は、ステップS33〜S35の処
理をスキップし、ステップS36の判定処理を行う。ス
テップS36において、次のリクエスト検出タイミング
が到来していないと判定した場合には、調停部514
は、不定期型のバスマスタからバスリクエストが発され
ているか否かを検査し(ステップS37)、バスリクエ
ストが検出された場合には、その不定期型のバスマスタ
にバス使用権を付与し(ステップS38)、その不定期
型のバスマスタからのバスリクエストが中止されたか或
いは次のリクエスト検出タイミングが到来した時点でバ
ス使用権の付与を中止し(ステップS39)、ステップ
S36の判定処理に戻る。
If no bus request is detected from any of the bus masters in step S32, the arbitration unit 514 skips the processes of steps S33 to S35 and performs the determination process of step S36. If it is determined in step S36 that the next request detection timing has not arrived, the arbitration unit 514
Checks whether or not a bus request is issued from the irregular bus master (step S37), and if a bus request is detected, grants the bus right to the irregular bus master (step S37). S38), when the bus request from the irregular bus master is stopped or when the next request detection timing arrives, the bus right is not granted (step S39), and the process returns to the determination process of step S36.

【0057】なお、ステップS37において、不定期型
のバスマスタからのバスリクエストが検出されない場合
にも、調停部514はステップS36の判定処理に戻
る。従って、時間の経過をリクエスト検出周期の連続と
表現すると、調停部514は、各リクエスト検出周期に
おいて、その周期前にバスリクエストを発している定期
型の各バスマスタに対し、該当する周期内バス使用許可
時間分だけバス使用権を与え、その周期内の残りの時間
において不定期型のバスマスタからバスリクエストが発
されていればその不定期型のバスマスタに対してバス使
用権を与える。
Even if no bus request from the irregular bus master is detected in step S37, the arbitration unit 514 returns to the determination processing in step S36. Therefore, if the passage of time is expressed as the continuation of the request detection cycle, the arbitration unit 514 uses the in-cycle bus for each regular type bus master that has issued a bus request before that cycle in each request detection cycle. The bus use right is given only for the permitted time, and if a bus request is issued from the irregular bus master in the remaining time in the cycle, the bus use right is given to the irregular bus master.

【0058】図9は、バスマスタA〜Dからのバスリク
エストとメモリ制御部510によるバス使用権の付与と
の時間的変化を示すタイミングチャートである。同図に
示すように、調停部514は、各リクエスト検出周期に
おいて、定期型のバスマスタA〜Cにバス使用権を付与
した時間の残り分において、不定期型のバスマスタDか
らバスリクエストが発されるとバスマスタDにバス使用
権を付与している。
FIG. 9 is a timing chart showing a temporal change between the bus request from the bus masters A to D and the grant of the bus use right by the memory control unit 510. As shown in the figure, in each request detection cycle, the arbitration unit 514 issues a bus request from the aperiodic type bus master D for the remainder of the time when the regular type bus masters A to C are granted the bus use right. Then, the bus master D is granted the bus use right.

【0059】なお、あるリクエスト検出タイミングから
始まるリクエスト検出周期内においてバス使用権が付与
されたバスマスタDがそのリクエスト検出周期内におい
てバスリクエストの発行を中止せずに次のリクエスト検
出タイミングが到来した場合には、そのバスマスタDへ
のバス使用権の付与は中止される。また、定期型のバス
マスタのうちでリクエスト検出タイミングにおいてバス
リクエストを発していなかったものがあれば、その分だ
けリクエスト検出周期内での、不定期型のバスマスタに
バス使用権を付与し得る時間が長くなる。
When the bus master D to which the bus use right is granted within the request detection period starting from a certain request detection timing arrives at the next request detection timing without stopping the issuance of the bus request within the request detection period. Then, the grant of the bus use right to the bus master D is stopped. Also, if there is a bus that does not issue a bus request at the request detection timing among the regular bus masters, the time during which the bus usage right can be granted to the irregular bus master within the request detection period become longer.

【0060】<調停処理の変形例>以下、上述した調停
部514による調停処理を、不定期型のバスマスタに対
して、より早くバス使用権を与えるように変形した例に
ついて説明する。図10は、調停部514が行う調停処
理の変形例を示すフローチャートである。
<Modified Example of Arbitration Processing> An example in which the above-described arbitration processing by the arbitration unit 514 is modified so that the bus mastership of an irregular bus master is granted earlier will be described. FIG. 10 is a flowchart showing a modified example of the arbitration process performed by the arbitration unit 514.

【0061】まず、調停部514は、リクエスト検出タ
イミングが到来した時において定期型のバスマスタの各
バスマスタからバスリクエストが発されているか否かを
検査し、バスリクエストが検出されていた全てのバスマ
スタについての周期内バス使用許可時間の総和を求め、
リクエスト検出周期からその総和を減算して得られる時
間を、余剰時間として定める(ステップS51)。ここ
で、余剰時間は、リクエスト検出周期内においてバス使
用権をある不定期型のバスマスタに付与しうる時間を意
味する。
First, the arbitration unit 514 checks whether or not a bus request is issued from each bus master of the regular type bus master when the request detection timing arrives, and checks all the bus masters for which the bus request has been detected. Calculate the total bus permission time within the cycle of
The time obtained by subtracting the total from the request detection cycle is set as the surplus time (step S51). Here, the surplus time means a time during which the bus use right can be given to a certain irregular bus master within the request detection period.

【0062】続いて調停部514は、ステップS31の
検査時において、定期型のいずれかのバスマスタからの
バスリクエストが検出されていたか否かを判定する(ス
テップS52)。ステップS52において、バスリクエ
ストが検出されていたと判定した場合には、調停部51
4は、バスリクエストを発していた定期型のバスマスタ
の1つにバス使用権を付与し(ステップS53)、クロ
ック信号をカウントすることによりそのバスマスタにつ
いての周期内バス使用許可時間が経過するのを待って、
経過時にバス使用権の付与を中止する(ステップS5
4)。即ち、ステップS53、S54により、定期型の
1つのバスマスタへのGNT信号線を、周期内バス使用
許可時間だけアクティブにしその後にはインアクティブ
にする。
Subsequently, the arbitration unit 514 determines whether or not a bus request from any of the regular type bus masters has been detected during the inspection in step S31 (step S52). If it is determined in step S52 that the bus request has been detected, the arbitration unit 51
4 grants the bus use right to one of the regular type bus masters that has issued the bus request (step S53), and counts the clock signal so that the in-cycle bus use permission time for the bus master elapses. wait,
When the time elapses, the grant of the bus use right is canceled (step S5).
4). That is, in steps S53 and S54, the GNT signal line to one fixed-duration bus master is activated for the in-cycle bus use permission time and then inactivated.

【0063】また、ステップS52において、バスリク
エストが検出されていなかったと判定した場合には、調
停部514はステップS53及びS54の処理をスキッ
プしステップS55の判定処理を行う。ステップS54
の後、調停部514は、次のリクエスト検出タイミング
が到来しているかを判定し(ステップS55)、到来し
ていればステップS51の処理に戻り、到来していなけ
れば余剰時間が0でないかを判定する(ステップS5
6)。
When it is determined in step S52 that the bus request has not been detected, the arbitration unit 514 skips the processes of steps S53 and S54 and performs the determination process of step S55. Step S54
After that, the arbitration unit 514 determines whether or not the next request detection timing has arrived (step S55), and if it has arrived, returns to the processing of step S51, and if it has not arrived, checks whether the surplus time is 0 or not. Judgment (step S5
6).

【0064】ステップS56において調停部514は余
剰時間が0でないと判定した場合、即ち余剰時間がある
と判定した場合には、不定期型のバスマスタからバスリ
クエストが発されているか否かを検査して(ステップS
57)、バスリクエストを検出したときにはその不定期
型のバスマスタに対してバス使用権を付与し、バス使用
権を付与している時間の経過に合わせて余剰時間をカウ
ントダウンし(ステップS58)、その不定期型のバス
マスタからのバスリクエストが中止された時、或いは余
剰時間が0になった時にバス使用権の付与を中止し(ス
テップS59)、再びステップS56の判定処理に戻
る。
In step S56, when the arbitration unit 514 determines that the surplus time is not 0, that is, when the surplus time is present, the arbitration unit 514 checks whether a bus request is issued from the irregular bus master. (Step S
57) When a bus request is detected, the bus mastership is granted to the irregular bus master, and the surplus time is counted down in accordance with the elapsed time of the bus mastership (step S58). When the bus request from the irregular bus master is cancelled, or when the surplus time becomes zero, the grant of the bus use right is canceled (step S59), and the process returns to the determination process of step S56.

【0065】なお、ステップS51によって定められた
余剰時間は、ステップS58で不定期型のバスマスタに
バス使用権を付与した時間分だけカウントダウンされ
る。但し、余剰時間のカウントダウンは余剰時間が0に
なった時点で停止する。ステップS56において余剰時
間が0であると判定した場合、或いはステップS57に
おいて不定期型のバスマスタからのバスリクエストを検
出した場合には、調停部514は既にバス使用権を付与
したバスマスタ以外の定期型のバスマスタからのバスリ
クエストがステップS51において検出されていたか否
かを判定し(ステップS60)、検出されていなければ
ステップS55の処理に戻り、検出されていればステッ
プS53の処理に戻る。
The surplus time determined in step S51 is counted down by the time when the bus right is given to the irregular bus master in step S58. However, the countdown of the surplus time is stopped when the surplus time becomes zero. If it is determined in step S56 that the surplus time is 0, or if a bus request from an irregular bus master is detected in step S57, the arbitration unit 514 determines that the regular type other than the bus master to which the bus use right has already been granted. It is determined whether or not the bus request from the bus master has been detected in step S51 (step S60). If not detected, the process returns to step S55, and if detected, the process returns to step S53.

【0066】また、ステップS55において調停部51
4は、次のリクエスト検出タイミングが到来していると
判定した場合には、次のリクエスト検出タイミングにお
いて定期型の各バスマスタからのバスリクエストを検査
するステップS51の処理に戻る。このような変形した
調停処理により調停部514は、不定期型のバスマスタ
がバスリクエストを発していた時点でデータ転送を行っ
ている定期型のバスマスタに対し、周期内バス使用許可
時間分のバス使用権を付与し終え次第、その不定期型の
バスマスタにバス使用権を付与するため、不定期型のバ
スマスタは、データ転送の必要が生じると迅速にデータ
転送を開始することができるようになる。即ち、調停部
はこのような変形した調停処理を行うことで、不定期型
のバスマスタによるメモリアクセスについてのアクセス
レイテンシを抑えることができるようになる。
Further, in step S55, the arbitration unit 51
When it is determined that the next request detection timing has come, 4 returns to the process of step S51 for inspecting the bus request from each regular type bus master at the next request detection timing. With such a modified arbitration process, the arbitration unit 514 causes the regular-type bus master, which is transferring data at the time when the irregular-type bus master issues a bus request, to use the bus for the in-cycle bus use permission time. As soon as the right is granted, the bus mastership is given to the irregular bus master, so that the irregular bus master can start data transfer promptly when data transfer is necessary. That is, the arbitration unit can suppress the access latency for the memory access by the irregular bus master by performing the modified arbitration process.

【0067】図11は、バスマスタA〜Dからのバスリ
クエストと、調停部514の行う調停処理を変形した場
合におけるメモリ制御部510によるバス使用権の付与
との時間的変化を示すタイミングチャートである。同図
に示すように、調停部514は、定期型のバスマスタA
にバス使用権を付与している間に不定期型のバスマスタ
Dからバスリクエストが発されると、バスマスタAの次
にバスマスタDにバス使用権を与え、続いて定期型のバ
スマスタB及びCに順次バス使用権を付与し、次のリク
エスト検出周期において定期型のバスマスタA及びBに
順次バス使用権を付与し、バスマスタBにバス使用権を
付与している間に不定期型のバスマスタDからバスリク
エストが発されると、バスマスタBの次にバスマスタD
にバス使用権を与え、続いて定期型のバスマスタCにバ
ス使用権を付与している。 <補足>以上、本発明に係るメモリ制御装置について実
施の形態1、2に基づいて説明したが、本発明はこれら
の実施の形態に限られないことは勿論である。即ち、 (1)両実施の形態で示したバスマスタは、複数であれ
ばいくつであっても差し支えない。但し、定期型の全て
のバスマスタについて、転送レートと、転送レートを保
つべき範囲になる時間間隔とを示す転送レート情報をL
SIに入力する必要があり、不定期型のバスマスタが存
在する場合には全ての不定期型のバスマスタを特定する
ための不定期マスタ情報が不定期マスタ情報記憶部51
5に記憶されている必要がある。
FIG. 11 is a timing chart showing a temporal change between the bus request from the bus masters A to D and the grant of the bus use right by the memory control unit 510 when the arbitration process performed by the arbitration unit 514 is modified. . As shown in the figure, the arbitration unit 514 is a regular bus master A.
When a bus request is issued from an irregular bus master D while granting the bus use right to the bus master D, the bus use right is given to the bus master D next to the bus master A, and then to the fixed type bus masters B and C. Sequential bus usage rights are granted, and the regular bus masters A and B are sequentially granted bus usage rights in the next request detection cycle. While the bus master B is granted the bus usage right, the irregular bus master D When a bus request is issued, the bus master B is followed by the bus master D.
To the regular-type bus master C, and then to the regular bus master C. <Supplement> Although the memory control device according to the present invention has been described above based on the first and second embodiments, it is needless to say that the present invention is not limited to these embodiments. That is, (1) The number of bus masters shown in both embodiments may be any number as long as it is plural. However, for all of the regular type bus masters, transfer rate information indicating the transfer rate and the time interval within which the transfer rate should be maintained is set to L.
When there is an irregular bus master that needs to be input to SI, irregular master information for specifying all irregular bus masters is irregular master information storage unit 51.
Must be stored in 5.

【0068】なお、LSIにユニファイドメモリが複数
接続されていてもよく、この場合には、メモリ制御部
は、ユニファイドメモリ毎に、実施の形態1或いは2で
示したようにそのユニファイドメモリにアクセスする全
てのバスマスタ間でのアクセス競合を調停するものであ
ればよい。 (2)実施の形態1で示したメモリ制御部110及び実
施の形態2で示したメモリ制御部510は、全てハード
ウェア回路として構築されていてもよいし、MPUとメ
モリからなりそのメモリ中のプログラムをMPUが実行
することにより調停機能を実現するように構築されてい
てもよい。 (3)両実施の形態では、転送レート情報は各バスマス
タについてのリクエスト周期と1回のデータ転送量とか
らなる情報であることとしたが、転送レート情報は転送
レートと、転送レートが保証されるべき最小時間間隔と
を示す情報であれば、どのような情報の組合わせであっ
てもよい。 (4)両実施の形態で示した転送レート情報は、外部装
置から入力されるものとしたが、初期値を予め記憶して
おいてもよい。
A plurality of unified memories may be connected to the LSI, and in this case, the memory control unit, for each unified memory, has the unified memory as described in the first or second embodiment. It is only necessary to arbitrate access conflicts between all bus masters that access the. (2) The memory control unit 110 shown in the first embodiment and the memory control unit 510 shown in the second embodiment may all be constructed as a hardware circuit, or may be composed of an MPU and a memory. It may be constructed so that the MPU executes the program to realize the arbitration function. (3) In both of the embodiments, the transfer rate information is the information including the request period for each bus master and the data transfer amount of one time, but the transfer rate information guarantees the transfer rate and the transfer rate. Any combination of information may be used as long as the information indicates the minimum time interval to be used. (4) Although the transfer rate information shown in both embodiments is input from an external device, an initial value may be stored in advance.

【0069】また、転送レート情報は随時入力可能であ
ることとし、転送レート情報の入力がなされる毎にタイ
ミング情報生成部112はその転送レート情報に基づい
てタイミング情報を生成してタイミング情報格納部11
3に格納することとしてもよい。調停部114及び調停
部514はタイミング情報に基づいて各バスマスタへの
バス使用権の付与の時間を決定するものであるため、動
的な調停制御が実現されるようになる。
The transfer rate information can be input at any time, and every time the transfer rate information is input, the timing information generating section 112 generates timing information based on the transfer rate information and the timing information storing section. 11
3 may be stored. Since the arbitration unit 114 and the arbitration unit 514 determine the time for granting the bus use right to each bus master based on the timing information, dynamic arbitration control can be realized.

【0070】なお、実施の形態2ではバスマスタを定期
型と不定期型とに分類したが、これは転送レートの保証
が必要なデータ転送を行うか否かによる分類であって、
LSIに外部から入力される転送レート情報の内容に応
じて、同じバスマスタであっても、定期型となる場合や
不定期型になる場合があり得る。 (5)両実施の形態において示したタイミング情報生成
部112が参照するメモリバスのバスバンド幅は、LS
Iの外部から入力可能であることとしてもよい。 (6)実施の形態1で示したメモリ制御部110及び実
施の形態2で示したメモリ制御部510は、リクエスト
検出周期等のリクエスト検出タイミングを特定するため
の情報を各バスマスタに伝えることとし、これを受けて
各バスマスタはリクエスト検出タイミングに合わせてバ
スリクエストを発行することとしてもよい。 (7)両実施の形態では、バスマスタに対するバス使用
権の付与は、GNT信号線をアクティブにすることによ
り実現し、バス使用権の付与の中止は、GNT信号線を
インアクティブにすることにより実現することとした
が、本発明はこれらの実現方式に限定されることはな
く、バスマスタにバス使用の許可及び禁止を伝えること
のできる方式であれば、どのような方式によって実現し
てもよい。
In the second embodiment, the bus masters are classified into the regular type and the non-periodic type, but this is the classification depending on whether or not the data transfer for which the guarantee of the transfer rate is required is performed.
Depending on the content of transfer rate information input to the LSI from the outside, even the same bus master may be of a regular type or an irregular type. (5) The bus bandwidth of the memory bus referred to by the timing information generation unit 112 shown in both embodiments is LS.
It may be possible to input from the outside of I. (6) The memory control unit 110 shown in the first embodiment and the memory control unit 510 shown in the second embodiment transmit information for specifying the request detection timing such as the request detection period to each bus master, In response to this, each bus master may issue a bus request at the request detection timing. (7) In both embodiments, the grant of the bus use right to the bus master is realized by activating the GNT signal line, and the suspension of the grant of the bus use right is realized by inactivating the GNT signal line. However, the present invention is not limited to these implementation methods, and may be implemented by any method as long as it is a method that can notify the bus master of permission or prohibition of bus use.

【0071】例えば、バス使用権の付与をある信号線を
瞬間的にアクティブにすることによりバスマスタに通知
し、バス使用権の付与の中止を別の信号線を瞬間的にア
クティブにすることによりバスマスタに通知することと
してもよい。また、実施の形態で示した定期型のバスマ
スタは、データ転送の必要がある限りにおいてREQ信
号線をアクティブにし続けるものとしたが、バスリクエ
ストを発する方式はこれに限定されることはない。例え
ば、メモリ制御部110及びメモリ制御部510は、転
送レート情報に基づいて各バスマスタに対してリクエス
ト検出周期内で転送可能なデータ量を通知することとし
てもよく、各バスマスタはその通知されたデータ量の送
信が必要となれば瞬間的にREQ信号線をアクティブに
することとしてもよい。 (8)両実施の形態で示したユニファイドメモリ200
は、特定のメモリアーキテクチャを有するメモリに限定
されることはなく、いかなるメモリでも差し支えない。
For example, the bus mastership is notified to the bus master by instantaneously activating a certain signal line, and the suspension of the bus mastership is instantaneously activated by another signal line. May be notified. Further, although the regular type bus master described in the embodiment keeps the REQ signal line active as long as data transfer is necessary, the method of issuing a bus request is not limited to this. For example, the memory control unit 110 and the memory control unit 510 may notify each bus master of the amount of data that can be transferred within the request detection period based on the transfer rate information, and each bus master will notify the notified data. The REQ signal line may be activated momentarily when the amount of transmission is required. (8) Unified memory 200 shown in both embodiments
Is not limited to a memory having a particular memory architecture and can be any memory.

【0072】また、両実施の形態で示したバスマスタと
ユニファイドメモリと間を結ぶメモリバスは、アドレス
バスとデータバスとの別々の信号線で構成されるものと
しても、共通の信号線で構成されるものとしてもよい。
共通の信号線で構成される場合には、バスマスタとユニ
ファイドメモリとの間でアドレス情報とデータとが時分
割で伝送されることになる。また、バスマスタとユニフ
ァイドメモリとの間のバスはメモリ制御部内のインタフ
ェース部を介して接続されていることとしてインタフェ
ース部においてアドレスデコード等の処理を行うことと
してもよい。 (9)各実施の形態で示したLSIにおいては、基本的
には各バスマスタは、1つのユニファイドメモリ中の互
いに独立したメモリ領域にアクセスすることが想定され
ているが、各バスマスタは、重複したメモリ領域にアク
セスするものであっても差し支えない。 (10)実施の形態2では、タイミング情報生成部11
2が転送レート情報に示される定期型のバスマスタのリ
クエスト周期のうち最も短いリクエスト周期をリクエス
ト検出周期とし、そのリクエスト検出周期毎にバスリク
エストを発している定期型の各バスマスタへのバス使用
権の付与を行うこととしたが、リクエスト検出周期は、
定期型のバスマスタのリクエスト周期のうち最も短いも
の以下であればよい。
Further, the memory bus connecting between the bus master and the unified memory shown in both embodiments is composed of a common signal line even if it is composed of separate signal lines of an address bus and a data bus. It may be done.
In the case of the common signal line, address information and data are transmitted in a time division manner between the bus master and the unified memory. Further, the bus between the bus master and the unified memory may be connected via the interface unit in the memory control unit, and the interface unit may perform processing such as address decoding. (9) In the LSI described in each embodiment, it is basically assumed that each bus master accesses memory areas independent of each other in one unified memory, but each bus master is duplicated. It does not matter even if the memory area is accessed. (10) In the second embodiment, the timing information generator 11
2 is the request detection cycle which is the shortest request cycle among the request cycles of the regular bus masters indicated in the transfer rate information, and the bus usage right to each regular bus master issuing a bus request at each request detection cycle. Although it was decided to grant, the request detection cycle is
It may be less than or equal to the shortest request cycle of the regular bus master.

【0073】例えば定期型のバスマスタのリクエスト周
期のうち最も短いものの半分をリクエスト検出周期と定
めることとしてもよく、リクエスト検出周期を短くする
と、不定期型のバスマスタからのバスリクエストを受け
てからバス使用権の付与までに要する時間を短くするこ
とができるようになる。なお、定期型のバスマスタのリ
クエスト周期のうち最も短いものに対して、どの程度の
割合の時間を、リクエスト検出周期とするかを示す情報
をLSIの外部から入力できるようにし、その情報に基
づいてリクエスト検出周期を決定することとしてもよ
い。
For example, half of the shortest request cycle of the regular bus master may be set as the request detection cycle. When the request detection cycle is shortened, the bus is used after receiving the bus request from the irregular bus master. The time required to grant the right can be shortened. It should be noted that it is possible to input from outside the LSI information indicating what proportion of time is the request detection period for the shortest request period of the regular bus master, and based on that information, The request detection cycle may be determined.

【0074】[0074]

【発明の効果】以上説明したように本発明に係るメモリ
制御装置は、メモリを共用する複数のバスマスタのいず
れかに対し選択的にメモリバスの使用権を付与すること
によりメモリへのアクセス競合を調停するメモリ制御装
置であって、複数のバスマスタそれぞれについて、当該
バスマスタがメモリとの間でデータを転送する際の転送
レートと当該転送レートで転送が行われることが保証さ
れるべき範囲を定める時間間隔とを示す転送レート情報
を保持する保持手段と、各バスマスタに対応する前記時
間間隔のうち最も小さいもの以下の時間を単位時間とし
て定める単位時間算定手段と、各バスマスタについて、
対応する転送レートによって前記単位時間において転送
できるデータ量をVとした場合にメモリバスのバスバン
ド幅に基づいてVの転送に要する時間であるバス使用許
可時間を求めるバス使用許可時間算定手段と、時間経過
を周期的に前記単位時間で区分して得られる複数の単位
時間帯それぞれにおいて、各バスマスタに対して、対応
するバス使用許可時間だけメモリバスの使用権を付与す
る使用権付与手段とを備えることを特徴とする。
As described above, the memory control device according to the present invention selectively grants the right to use the memory bus to any of a plurality of bus masters sharing the memory, thereby competing for access to the memory. A memory control device that arbitrates, and for each of a plurality of bus masters, a transfer rate when the bus master transfers data to and from the memory, and a time period that determines a range in which the transfer should be guaranteed at the transfer rate. Holding means for holding transfer rate information indicating an interval, unit time calculating means for defining a time equal to or shorter than the smallest one of the time intervals corresponding to each bus master as a unit time, and each bus master,
Bus usage permission time calculating means for obtaining a bus usage permission time which is the time required for V transfer based on the bus bandwidth of the memory bus when the amount of data that can be transferred in the unit time according to the corresponding transfer rate is V; In each of a plurality of unit time zones obtained by periodically dividing the passage of time by the unit time, a right-of-use grant means for granting a right of use of the memory bus to each bus master for a corresponding bus-use permission time. It is characterized by being provided.

【0075】また、本発明に係るメモリ制御装置は、1
つのメモリ中の互いに独立したメモリ領域にアクセスす
る複数のバスマスタに対し、選択的にメモリバスの使用
権を付与することによりメモリへのアクセス競合を調停
するメモリ制御装置であって、複数のバスマスタそれぞ
れについて、当該バスマスタがメモリとの間でデータを
転送する際の転送レートと当該転送レートで転送が行わ
れることが保証されるべき範囲を定める時間間隔とを示
す転送レート情報を保持する保持手段と、各バスマスタ
に対応する前記時間間隔のうち最も小さいもの以下の時
間を単位時間として定める単位時間算定手段と、各バス
マスタについて、対応する転送レートによって前記単位
時間において転送できるデータ量をVとした場合にメモ
リバスのバスバンド幅に基づいてVの転送に要する時間
であるバス使用許可時間を求めるバス使用許可時間算定
手段と、時間経過を周期的に前記単位時間で区分して得
られる複数の単位時間帯それぞれにおいて、各バスマス
タに対して、対応するバス使用許可時間だけメモリバス
の使用権を付与する使用権付与手段とを備えることを特
徴とする。
Further, the memory control device according to the present invention is
A memory control device that arbitrates access competition to a memory by selectively granting a right to use a memory bus to a plurality of bus masters that access mutually independent memory areas in one memory. A holding unit that holds transfer rate information indicating a transfer rate when the bus master transfers data to and from the memory and a time interval that defines a range in which the transfer should be guaranteed at the transfer rate. A unit time calculating means for setting a time equal to or smaller than the smallest one of the time intervals corresponding to each bus master as a unit time, and for each bus master, V is a data amount that can be transferred in the unit time according to a corresponding transfer rate. Based on the bus bandwidth of the memory bus, the time required for V transfer is the bus license. In each of a plurality of unit time zones obtained by periodically dividing the elapsed time into the unit time, the bus use permission time calculating unit for obtaining the time, and for each bus master, the bus use permission time corresponding to the corresponding bus use permission time And a usage right granting means for granting a usage right.

【0076】これらにより、各バスマスタが要求する転
送レートに関する条件に、何ら統一がない場合であって
も、転送待ちの余裕が最小であるバスマスタの転送レー
トに関する条件が満足できるように転送レートの調整を
行うこととなるため、各バスマスタが必要な時間的精度
で転送レートを一定に保ってデータ転送を行うことがで
きるようになる。
As a result, even if the conditions concerning the transfer rates required by the respective bus masters are not unified, the transfer rates are adjusted so that the conditions concerning the transfer rates of the bus masters with the minimum transfer waiting margin can be satisfied. Therefore, it becomes possible for each bus master to perform data transfer while keeping the transfer rate constant with the required time accuracy.

【0077】また、このメモリ制御装置を用いれば、各
バスマスタの転送レートに関する条件を変更する必要が
あるときにも、記憶されている転送レート情報を書き替
えるのみで、各バスマスタの要求に応じた転送レートで
各バスマスタにメモリとの間でデータ転送を行わせるこ
とができるようになる。このことから、アクセス競合制
御の対象となるバスマスタを取り替えても、このメモリ
制御装置を活用することができるといえる。
Further, by using this memory control device, even when it is necessary to change the condition regarding the transfer rate of each bus master, the stored transfer rate information is simply rewritten to meet the request of each bus master. It becomes possible for each bus master to transfer data to and from the memory at the transfer rate. From this, it can be said that this memory control device can be utilized even if the bus master that is the target of access conflict control is replaced.

【0078】ここで、前記メモリ制御装置は、各バスマ
スタからのバスリクエストを検出する検出手段を備え、
前記使用権付与手段は、前記検出手段により、前記各単
位時間帯の始期以前にバスリクエストが検出されたとこ
ろの各バスマスタに対して、当該単位時間帯において前
記使用権を付与することとしてもよい。これにより、メ
モリを共用するバスマスタは、転送すべきデータがある
場合にバスリクエストを発せばバス使用権を得て必要と
する転送レートを保ってデータ転送を行うことができる
ようになる。なお、これによりメモリ制御装置の回路構
成が、ある単位時間内においてバスリクエストを検知す
るとそのバスリクエストを発したバスマスタにその単位
時間内にバス使用権を付与する方式を採用する場合に比
べると簡易なものとなり得る。
Here, the memory control device includes a detection means for detecting a bus request from each bus master,
The usage right granting unit may grant the usage right in the unit time zone to each bus master whose bus request is detected by the detecting unit before the start of each unit time slot. . As a result, the bus master sharing the memory can perform the data transfer while maintaining the required transfer rate by acquiring the bus right when issuing the bus request when there is data to be transferred. As a result, the circuit configuration of the memory control device is simpler than that when a bus request is detected within a certain unit time, and the bus master that issued the bus request is granted the bus use right within that unit time. Can be anything.

【0079】また、前記バスマスタは、メモリとの間で
データを転送する際に一定の転送レートが保たれること
を要する定期型バスマスタと、その他の不定期型バスマ
スタとに分類でき、前記保持手段は、複数の定期型バス
マスタそれぞれについて前記転送レート情報を保持する
ものであり、前記バス使用許可時間算定手段は、各定期
型バスマスタについて前記バス使用許可時間を求め、前
記使用権付与手段は、前記各単位時間帯において、当該
単位時間帯の始期以前にバスリクエストが検出されたと
ころの各定期型バスマスタに、対応するバス使用許可時
間だけメモリバスの使用権を付与し、前記検出手段によ
り前記バスリクエストが検出されたところの各定期型バ
スマスタに対応するバス使用許可時間の総和を、前記単
位時間から減じた残りの時間を上限として不定期型のバ
スマスタにメモリバスのバス使用権を付与することとし
てもよい。
The bus master can be classified into a regular bus master that requires a constant transfer rate when transferring data to and from a memory, and other irregular bus masters. Holds the transfer rate information for each of a plurality of fixed type bus masters, the bus use permission time calculating means obtains the bus use permission time for each fixed type bus master, and the use right granting means In each unit time zone, each regular bus master whose bus request is detected before the start of the unit time zone is given a right to use the memory bus for the corresponding bus use permission time, and the bus means is detected by the detecting means. The sum of the bus use permission time corresponding to each regular type bus master where the request is detected is subtracted from the unit time. The Rino time may be granted irregular type bus use right of the memory bus to the bus master as the upper limit.

【0080】これにより、一定の転送レートを保ってデ
ータ転送を行う必要がある定期型バスマスタと、その他
の不定期型バスマスタとがメモリを共用する場合におい
ても、定期型バスマスタは必要な時間的精度で転送レー
トを一定に保ってデータを行うことができるようにな
る。また、前記使用権付与手段は、前記各単位時間帯に
おいて、前記検出手段により定期型バスマスタにバス使
用権を付与している間に不定期型バスマスタからのバス
リクエストが検出された場合には当該定期型バスマスタ
へのバス使用権の付与が終了し次第、当該不定期型バス
マスタにバス使用権を付与することとしてもよい。
As a result, even when the regular bus master that needs to transfer data at a constant transfer rate and the other irregular bus master share the memory, the regular bus master needs the necessary time accuracy. With this, it becomes possible to perform data while keeping the transfer rate constant. Further, the usage right granting means is operable to detect the bus request from the irregular bus master during the unit time period while the detecting means grants the bus usage right to the regular bus master. The bus usage right may be granted to the irregular bus master as soon as the bus usage right is granted to the regular bus master.

【0081】これにより、不定期型のバスマスタはデー
タ転送の必要が生じてから迅速にデータ転送を行うこと
ができるようになる。また、前記保持手段は、前記転送
レート情報を前記メモリ制御装置の外部から取得して保
持することとしてもよい。これにより、各バスマスタの
機能変更等によって転送レートを変更する必要がある場
合においても、外部から適切な転送レート情報を与える
ことができ、その結果としてバスマスタ間でのメモリア
クセスの競合は適切に調停されるようになる。
As a result, the irregular bus master can quickly perform data transfer after the need for data transfer occurs. Further, the holding unit may acquire and hold the transfer rate information from outside the memory control device. As a result, even when it is necessary to change the transfer rate by changing the function of each bus master, it is possible to provide appropriate transfer rate information from the outside, and as a result, memory access contention between bus masters is properly arbitrated. Will be done.

【0082】また、前記保持手段は前記転送レート情報
を、前記メモリ制御装置の外部の装置により書き替え可
能な領域に保持することとしてもよい。これにより、各
バスマスタの転送レート等を変更する必要がある場合に
おいても、外部から転送レート情報を随時書き替えるこ
とにより、バスマスタ間でのメモリアクセスの競合は適
切に調停されるようになる。
Further, the holding means may hold the transfer rate information in an area rewritable by a device external to the memory control device. As a result, even when it is necessary to change the transfer rate of each bus master and the like, by rewriting the transfer rate information from outside as needed, contention of memory access between bus masters can be appropriately arbitrated.

【0083】また、前記メモリ制御装置は、前記各バス
マスタとバス使用許可用の各信号線で接続されており、
前記使用権付与手段は、バスマスタへのバス使用許可時
間だけのバス使用権の付与を、当該バスマスタと接続さ
れている前記信号線をバス使用許可時間だけアクティブ
にすることにより行うこととしてもよい。これにより、
時間を制限したバス使用権の付与を1本の信号線で簡易
に実現することが可能になる。
Further, the memory control device is connected to the bus masters by signal lines for permitting bus use,
The usage right granting means may grant the bus usage right to the bus master for the bus usage permission time only by activating the signal line connected to the bus master for the bus usage permission time. This allows
It becomes possible to easily realize the granting of the bus use right whose time is limited by one signal line.

【0084】また、前記単位時間算定手段は、各バスマ
スタに対応する前記時間間隔のうち最も小さいものの時
間を単位時間として定めることとしてもよい。これによ
り、転送待ちの余裕が最小であるバスマスタを基準とす
ることで、比較的簡単に各バスマスタの転送レートの調
整を行うことができるようになる。また、本発明に係る
LSIは、メモリを共用する複数の回路と、当該複数の
回路のいずれかに対し選択的にメモリバスの使用権を付
与することによりメモリへのアクセス競合を調停するメ
モリ制御装置とを含むLSIであって、前記各回路は、
メモリとの間で一定の転送レートでデータを転送するこ
とを要する回路であり、前記メモリ制御装置は、前記各
回路について、当該回路がメモリとの間でデータを転送
する際の転送レートと当該転送レートで転送が行われる
ことが保証されるべき範囲を定める時間間隔とを示す転
送レート情報を保持する保持手段と、各回路に対応する
前記時間間隔のうち最も小さいもの以下の時間を単位時
間として定める単位時間算定手段と、各回路について、
対応する転送レートによって前記単位時間に転送できる
データ量をVとした場合にメモリバスのバスバンド幅に
基づいてVの転送に要する時間であるバス使用許可時間
を求めるバス使用許可時間算定手段と、時間経過を周期
的に前記単位時間で区分して得られる複数の単位時間帯
それぞれにおいて、各回路に対して、対応するバス使用
許可時間だけメモリバスの使用権を付与する使用権付与
手段とを備えることを特徴とする。
Further, the unit time calculating means may determine the time of the smallest one of the time intervals corresponding to each bus master as the unit time. As a result, the transfer rate of each bus master can be adjusted relatively easily by using the bus master having the minimum transfer waiting margin as a reference. Further, the LSI according to the present invention is a memory control that arbitrates access competition to a memory by selectively granting a right to use a memory bus to a plurality of circuits that share a memory. An LSI including a device, wherein each of the circuits is
The memory control device is a circuit that requires data to be transferred at a constant transfer rate to and from a memory, and the memory control device relates to the transfer rate when the circuit transfers data to and from the memory, and A holding unit that holds transfer rate information indicating a time interval that defines a range in which transfer should be guaranteed at a transfer rate, and a unit time that is equal to or less than the smallest of the time intervals corresponding to each circuit. For the unit time calculation method and each circuit defined as
Bus usage permission time calculating means for obtaining a bus usage permission time which is a time required for the transfer of V based on the bus bandwidth of the memory bus when the amount of data that can be transferred in the unit time according to the corresponding transfer rate is V; In each of a plurality of unit time zones obtained by periodically dividing the passage of time by the unit time, a usage right granting unit that grants a right to use the memory bus to each circuit for a corresponding bus usage permission time. It is characterized by being provided.

【0085】これにより、LSIの複数の内部回路それ
ぞれが、互いに共用するメモリとの間で、必要な時間的
精度で必要とする転送レートを保ってデータ転送を行う
ことができるようになる。
As a result, each of the plurality of internal circuits of the LSI can perform data transfer with the memory shared by the LSIs while maintaining the required transfer rate with the required time accuracy.

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

【図1】本発明の実施の形態1に係るメモリ制御部を含
むLSI100の構成図である。
FIG. 1 is a configuration diagram of an LSI 100 including a memory control unit according to a first embodiment of the present invention.

【図2】転送レート情報記憶部111が外部装置から伝
えられて記憶している転送レート情報のデータ構成及び
内容例を示す図である。
FIG. 2 is a diagram showing a data configuration and an example of contents of transfer rate information transmitted from an external device and stored in a transfer rate information storage unit 111.

【図3】タイミング情報生成部112に生成されタイミ
ング情報格納部113に格納されるタイミング情報のデ
ータ構成及び内容例を示す図である。
FIG. 3 is a diagram showing a data configuration and an example of contents of timing information generated by a timing information generation unit 112 and stored in a timing information storage unit 113.

【図4】タイミング情報生成部112の動作を示すフロ
ーチャートである。
FIG. 4 is a flowchart showing an operation of the timing information generation unit 112.

【図5】調停部114が行う調停処理を示すフローチャ
ートである。
5 is a flowchart showing an arbitration process performed by an arbitration unit 114. FIG.

【図6】バスマスタA〜Cからのバスリクエストとメモ
リ制御部110によるバス使用権の付与との時間的変化
を示すタイミングチャートである。
6 is a timing chart showing a temporal change between a bus request from the bus masters A to C and a grant of the bus use right by the memory control unit 110. FIG.

【図7】本発明の実施の形態2に係るメモリ制御部を含
むLSI500の構成図である。
FIG. 7 is a configuration diagram of an LSI 500 including a memory control unit according to a second embodiment of the present invention.

【図8】調停部514が行う調停処理を示すフローチャ
ートである。
FIG. 8 is a flowchart showing an arbitration process performed by an arbitration unit 514.

【図9】バスマスタA〜Dからのバスリクエストとメモ
リ制御部510によるバス使用権の付与との時間的変化
を示すタイミングチャートである。
9 is a timing chart showing a temporal change between a bus request from the bus masters A to D and a bus usage right granted by the memory control unit 510. FIG.

【図10】調停部514が行う調停処理の変形例を示す
フローチャートである。
FIG. 10 is a flowchart showing a modified example of the arbitration process performed by the arbitration unit 514.

【図11】バスマスタA〜Dからのバスリクエストと、
調停部514の行う調停処理を変形した場合におけるメ
モリ制御部510によるバス使用権の付与との時間的変
化を示すタイミングチャートである。
FIG. 11 shows a bus request from the bus masters A to D,
9 is a timing chart showing a temporal change with the grant of the bus use right by the memory control unit 510 when the arbitration processing performed by the arbitration unit 514 is modified.

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

100、500 LSI 110、510 メモリ制御部 111 転送レート情報記憶部 112 タイミング情報生成部 113 タイミング情報格納部 114、514 調停部 121〜124 バスマスタ 190 クロックジェネレータ 200 ユニファイドメモリ 515 不定期マスタ情報記憶部 100,500 LSI 110, 510 memory control unit 111 Transfer rate information storage unit 112 Timing Information Generation Unit 113 Timing information storage section 114, 514 Mediation section 121-124 Bus Master 190 clock generator 200 Unified memory 515 Irregular master information storage unit

Claims (19)

【特許請求の範囲】[Claims] 【請求項1】 メモリを共用する複数のバスマスタのい
ずれかに対し選択的にメモリバスの使用権を付与するこ
とによりメモリへのアクセス競合を調停するメモリ制御
装置であって、 複数のバスマスタそれぞれについて、当該バスマスタが
メモリとの間でデータを転送する際の転送レートと当該
転送レートで転送が行われることが保証されるべき範囲
を定める時間間隔とを示す転送レート情報を保持する保
持手段と、 各バスマスタに対応する前記時間間隔のうち最も小さい
もの以下の時間を単位時間として定める単位時間算定手
段と、 各バスマスタについて、対応する転送レートによって前
記単位時間において転送できるデータ量をVとした場合
にメモリバスのバスバンド幅に基づいてVの転送に要す
る時間であるバス使用許可時間を求めるバス使用許可時
間算定手段と、 時間経過を周期的に前記単位時間で区分して得られる複
数の単位時間帯それぞれにおいて、各バスマスタに対し
て、対応するバス使用許可時間だけメモリバスの使用権
を付与する使用権付与手段とを備えることを特徴とする
メモリ制御装置。
1. A memory controller for arbitrating access competition to a memory by selectively granting a right to use a memory bus to any one of a plurality of bus masters sharing a memory, and for each of the plurality of bus masters. Holding means for holding transfer rate information indicating a transfer rate when the bus master transfers data to and from the memory and a time interval defining a range in which the transfer should be guaranteed to be performed at the transfer rate, When a unit time calculating means that determines a time less than or equal to the smallest one of the time intervals corresponding to each bus master as a unit time and V is a data amount that can be transferred in the unit time according to a corresponding transfer rate for each bus master, Based on the bus bandwidth of the memory bus, the bus use permission time, which is the time required to transfer V, is calculated. In each of a plurality of unit time zones that are obtained by calculating the bus use permission time and periodically dividing the elapsed time by the unit time, each bus master is given the right to use the memory bus for the corresponding bus use permission time. A memory control device, comprising: a usage right granting means for granting.
【請求項2】 前記メモリ制御装置は、各バスマスタか
らのバスリクエストを検出する検出手段を備え、 前記使用権付与手段は、前記検出手段により、前記各単
位時間帯の始期以前にバスリクエストが検出されたとこ
ろの各バスマスタに対して、当該単位時間帯において前
記使用権を付与することを特徴とする請求項1記載のメ
モリ制御装置。
2. The memory control device includes detection means for detecting a bus request from each bus master, and the usage right granting means detects the bus request before the start of each unit time zone by the detection means. 2. The memory control device according to claim 1, wherein the usage right is given to each of the bus masters that have been executed in the unit time zone.
【請求項3】 前記バスマスタは、メモリとの間でデー
タを転送する際に一定の転送レートが保たれることを要
する定期型バスマスタと、その他の不定期型バスマスタ
とに分類でき、 前記保持手段は、複数の定期型バスマスタそれぞれにつ
いて前記転送レート情報を保持するものであり、 前記バス使用許可時間算定手段は、各定期型バスマスタ
について前記バス使用許可時間を求め、 前記使用権付与手段は、 前記各単位時間帯において、 当該単位時間帯の始期以前にバスリクエストが検出され
たところの各定期型バスマスタに、対応するバス使用許
可時間だけメモリバスの使用権を付与し、 前記検出手段により前記バスリクエストが検出されたと
ころの各定期型バスマスタに対応するバス使用許可時間
の総和を、前記単位時間から減じた残りの時間を上限と
して不定期型のバスマスタにメモリバスのバス使用権を
付与することを特徴とする請求項2記載のメモリ制御装
置。
3. The bus master can be classified into a regular bus master that needs to maintain a constant transfer rate when transferring data to and from a memory, and other irregular bus masters, and the holding means. Is for holding the transfer rate information for each of a plurality of fixed type bus masters, the bus use permission time calculating means obtains the bus use permission time for each fixed type bus master, and the use right granting means is In each unit time zone, each regular bus master whose bus request was detected before the start of the unit time zone is given a right to use the memory bus for the corresponding bus use permission time, and the bus means is detected by the detection means. Remaining amount obtained by subtracting the sum of the bus use permission time corresponding to each regular type bus master where the request is detected from the unit time. 3. The memory control apparatus according to claim 2, wherein the bus mastership of the memory bus is given to the irregular bus master with an upper limit of a predetermined time.
【請求項4】 前記使用権付与手段は、前記各単位時間
帯において、 前記検出手段により定期型バスマスタにバス使用権を付
与している間に不定期型バスマスタからのバスリクエス
トが検出された場合には当該定期型バスマスタへのバス
使用権の付与が終了し次第、当該不定期型バスマスタに
バス使用権を付与することを特徴とする請求項3記載の
メモリ制御装置。
4. The usage right granting means detects a bus request from an irregular bus master while granting the bus usage right to the regular bus master by the detecting means in each of the unit time zones. 4. The memory control device according to claim 3, wherein the non-periodic type bus master is granted the bus use right as soon as the grant of the bus use right to the regular type bus master is completed.
【請求項5】 前記保持手段は、前記転送レート情報を
前記メモリ制御装置の外部から取得して保持することを
特徴とする請求項4記載のメモリ制御装置。
5. The memory control device according to claim 4, wherein the holding unit acquires and holds the transfer rate information from outside the memory control device.
【請求項6】 前記保持手段は前記転送レート情報を、
前記メモリ制御装置の外部の装置により書き替え可能な
領域に保持することを特徴とする請求項4記載のメモリ
制御装置。
6. The holding means stores the transfer rate information,
5. The memory control device according to claim 4, wherein the memory control device is held in a rewritable area by a device external to the memory control device.
【請求項7】 前記メモリ制御装置は、前記各バスマス
タとバス使用許可用の各信号線で接続されており、 前記使用権付与手段は、バスマスタへのバス使用許可時
間だけのバス使用権の付与を、当該バスマスタと接続さ
れている前記信号線をバス使用許可時間だけアクティブ
にすることにより行うことを特徴とする請求項4記載の
メモリ制御装置。
7. The memory control device is connected to the bus masters via signal lines for permitting bus use, and the use right granting means grants a bus use right to a bus master for a bus use permission time only. 5. The memory control device according to claim 4, wherein the signal line connected to the bus master is activated for a bus use permission time.
【請求項8】 前記単位時間算定手段は、各バスマスタ
に対応する前記時間間隔のうち最も小さいものの時間を
単位時間として定めることを特徴とする請求項1記載の
メモリ制御装置。
8. The memory control device according to claim 1, wherein the unit time calculation means determines a time of the smallest one of the time intervals corresponding to each bus master as a unit time.
【請求項9】 前記保持手段は、前記転送レート情報を
前記メモリ制御装置の外部から取得して保持することを
特徴とする請求項1記載のメモリ制御装置。
9. The memory control device according to claim 1, wherein the holding means acquires and holds the transfer rate information from outside the memory control device.
【請求項10】 1つのメモリ中の互いに独立したメモ
リ領域にアクセスする複数のバスマスタに対し、選択的
にメモリバスの使用権を付与することによりメモリへの
アクセス競合を調停するメモリ制御装置であって、 複数のバスマスタそれぞれについて、当該バスマスタが
メモリとの間でデータを転送する際の転送レートと当該
転送レートで転送が行われることが保証されるべき範囲
を定める時間間隔とを示す転送レート情報を保持する保
持手段と、 各バスマスタに対応する前記時間間隔のうち最も小さい
もの以下の時間を単位時間として定める単位時間算定手
段と、 各バスマスタについて、対応する転送レートによって前
記単位時間において転送できるデータ量をVとした場合
にメモリバスのバスバンド幅に基づいてVの転送に要す
る時間であるバス使用許可時間を求めるバス使用許可時
間算定手段と、 時間経過を周期的に前記単位時間で区分して得られる複
数の単位時間帯それぞれにおいて、各バスマスタに対し
て、対応するバス使用許可時間だけメモリバスの使用権
を付与する使用権付与手段とを備えることを特徴とする
メモリ制御装置。
10. A memory control device for arbitrating access competition to a memory by selectively granting a right to use a memory bus to a plurality of bus masters that access mutually independent memory areas in one memory. Transfer rate information indicating, for each of the plurality of bus masters, a transfer rate when the bus master transfers data to and from the memory and a time interval that defines a range in which the transfer should be guaranteed at the transfer rate. Holding unit for holding the unit, unit time calculating unit for setting a time equal to or smaller than the smallest one of the time intervals corresponding to each bus master as a unit time, and data for each bus master that can be transferred in the unit time at a corresponding transfer rate. When it is necessary to transfer V based on the bus bandwidth of the memory bus when the amount is V The bus usage permission time calculating means for obtaining the bus usage permission time and the corresponding bus usage for each bus master in each of a plurality of unit time zones obtained by periodically dividing the elapsed time by the unit time. A memory control device comprising: a usage right granting means for granting a usage right of a memory bus only for a permission time.
【請求項11】 前記メモリ制御装置は、各バスマスタ
からのバスリクエストを検出する検出手段を備え、 前記使用権付与手段は、前記検出手段により、前記各単
位時間帯の始期以前にバスリクエストが検出されたとこ
ろの各バスマスタに対して、当該単位時間帯において前
記使用権を付与することを特徴とする請求項10記載の
メモリ制御装置。
11. The memory control device comprises detection means for detecting a bus request from each bus master, and the usage right grant means detects the bus request before the start of each unit time zone by the detection means. 11. The memory control device according to claim 10, wherein the usage right is given to each of the bus masters that have been processed in the unit time zone.
【請求項12】 前記バスマスタは、メモリとの間でデ
ータを転送する際に一定の転送レートが保たれることを
要する定期型バスマスタと、その他の不定期型バスマス
タとに分類でき、 前記保持手段は、複数の定期型バスマスタそれぞれにつ
いて前記転送レート情報を保持するものであり、 前記バス使用許可時間算定手段は、各定期型バスマスタ
について前記バス使用許可時間を求め、 前記使用権付与手段は、 前記各単位時間帯において、 当該単位時間帯の始期以前にバスリクエストが検出され
たところの各定期型バスマスタに、対応するバス使用許
可時間だけメモリバスの使用権を付与し、 前記検出手段により前記バスリクエストが検出されたと
ころの各定期型バスマスタに対応するバス使用許可時間
の総和を、前記単位時間から減じた残りの時間を上限と
して不定期型のバスマスタにメモリバスのバス使用権を
付与することを特徴とする請求項11記載のメモリ制御
装置。
12. The bus master can be classified into a regular bus master that requires a constant transfer rate when transferring data to and from a memory, and other irregular bus masters, and the holding means. Is for holding the transfer rate information for each of a plurality of fixed type bus masters, the bus use permission time calculating means obtains the bus use permission time for each fixed type bus master, and the use right granting means is In each unit time zone, each regular bus master whose bus request was detected before the start of the unit time zone is given a right to use the memory bus for the corresponding bus use permission time, and the bus means is detected by the detection means. The sum of the bus use permission time corresponding to each regular type bus master where the request is detected is subtracted from the unit time. 12. The memory control device according to claim 11, wherein the bus mastership of the memory bus is given to the irregular bus master with the remaining time as an upper limit.
【請求項13】 前記使用権付与手段は、前記各単位時
間帯において、 前記検出手段により定期型バスマスタにバス使用権を付
与している間に不定期型バスマスタからのバスリクエス
トが検出された場合には当該定期型バスマスタへのバス
使用権の付与が終了し次第、当該不定期型バスマスタに
バス使用権を付与することを特徴とする請求項12記載
のメモリ制御装置。
13. The usage right granting means detects a bus request from an irregular bus master while granting the bus usage right to the regular bus master by the detecting means in each of the unit time zones. 13. The memory control device according to claim 12, wherein the bus usage right is granted to the irregular bus master as soon as the bus usage right is granted to the regular bus master.
【請求項14】 メモリを共用する複数の回路と、当該
複数の回路のいずれかに対し選択的にメモリバスの使用
権を付与することによりメモリへのアクセス競合を調停
するメモリ制御装置とを含むLSIであって、 前記各回路は、メモリとの間で一定の転送レートでデー
タを転送することを要する回路であり、 前記メモリ制御装置は、 前記各回路について、当該回路がメモリとの間でデータ
を転送する際の転送レートと当該転送レートで転送が行
われることが保証されるべき範囲を定める時間間隔とを
示す転送レート情報を保持する保持手段と、 各回路に対応する前記時間間隔のうち最も小さいもの以
下の時間を単位時間として定める単位時間算定手段と、 各回路について、対応する転送レートによって前記単位
時間に転送できるデータ量をVとした場合にメモリバス
のバスバンド幅に基づいてVの転送に要する時間である
バス使用許可時間を求めるバス使用許可時間算定手段
と、 時間経過を周期的に前記単位時間で区分して得られる複
数の単位時間帯それぞれにおいて、各回路に対して、対
応するバス使用許可時間だけメモリバスの使用権を付与
する使用権付与手段とを備えることを特徴とするLS
I。
14. A plurality of circuits that share a memory, and a memory control device that arbitrates access competition to a memory by selectively granting a right to use a memory bus to any one of the plurality of circuits. In the LSI, each of the circuits is a circuit that needs to transfer data to and from the memory at a constant transfer rate, and the memory control device includes: Holding means for holding transfer rate information indicating a transfer rate at the time of transferring data and a time interval defining a range in which the transfer should be guaranteed at the transfer rate, and the time interval corresponding to each circuit. A unit time calculating means that determines the time less than the smallest one as the unit time, and the amount of data that can be transferred in the unit time according to the corresponding transfer rate for each circuit When V is set, the bus use permission time calculating means for obtaining the bus use permission time which is the time required for V transfer based on the bus bandwidth of the memory bus, and the time lapse are periodically obtained by dividing the time by the unit time. In each of the plurality of unit time zones, the LS is provided with a usage right granting unit that grants a usage right of the memory bus to each circuit for a corresponding bus usage permission time.
I.
【請求項15】 前記各回路は、前記メモリ中の互いに
独立したメモリ領域との間でデータの転送を行う回路で
あることを特徴とする請求項14記載のLSI。
15. The LSI according to claim 14, wherein each of the circuits is a circuit that transfers data between memory areas independent of each other in the memory.
【請求項16】 前記メモリ制御装置は、前記各回路か
らのバスリクエストを検出する検出手段を備え、 前記使用権付与手段は、前記検出手段により、前記各単
位時間帯の始期以前にバスリクエストが検出されたとこ
ろの各回路に対して、当該単位時間帯において前記使用
権を付与することを特徴とする請求項14記載のLS
I。
16. The memory control device includes detection means for detecting a bus request from each of the circuits, and the usage right granting means causes the detection means to detect a bus request before the start of each unit time zone. 15. The LS according to claim 14, wherein the usage right is given to each of the detected circuits in the unit time zone.
I.
【請求項17】 前記回路は、メモリとの間でデータを
転送する際に一定の転送レートが保たれることを要する
定期型バスマスタと、その他の不定期型バスマスタとに
分類でき、 前記保持手段は、複数の定期型バスマスタそれぞれにつ
いて前記転送レート情報を保持するものであり、 前記バス使用許可時間算定手段は、各定期型バスマスタ
について前記バス使用許可時間を求め、 前記使用権付与手段は、 前記各単位時間帯において、 当該単位時間帯の始期以前にバスリクエストが検出され
たところの各定期型バスマスタに、対応するバス使用許
可時間だけメモリバスの使用権を付与し、 前記検出手段により前記バスリクエストが検出されたと
ころの各定期型バスマスタに対応するバス使用許可時間
の総和を、前記単位時間から減じた残りの時間を上限と
して不定期型のバスマスタにメモリバスのバス使用権を
付与することを特徴とする請求項16記載のLSI。
17. The circuit can be classified into a regular bus master that requires a constant transfer rate when transferring data to and from a memory, and other irregular bus masters. Is for holding the transfer rate information for each of a plurality of fixed type bus masters, the bus use permission time calculating means obtains the bus use permission time for each fixed type bus master, and the use right granting means is In each unit time zone, each regular bus master whose bus request was detected before the start of the unit time zone is given a right to use the memory bus for the corresponding bus use permission time, and the bus means is detected by the detection means. The sum of the bus use permission time corresponding to each regular type bus master where the request is detected is subtracted from the unit time and the remaining 17. The LSI according to claim 16, wherein the bus mastership of the memory bus is given to the irregular bus master with a time limit as an upper limit.
【請求項18】 前記使用権付与手段は、前記各単位時
間帯において、 前記検出手段により定期型バスマスタにバス使用権を付
与している間に不定期型バスマスタからのバスリクエス
トが検出された場合には当該定期型バスマスタへのバス
使用権の付与が終了し次第、当該不定期型バスマスタに
バス使用権を付与することを特徴とする請求項17記載
のLSI。
18. The usage right granting means detects a bus request from an irregular bus master while granting the bus usage right to the regular bus master by the detecting means in each of the unit time zones. 18. The LSI according to claim 17, wherein the non-periodic bus master is granted the bus usage right as soon as the grant of the bus usage right to the regular bus master is completed.
【請求項19】 前記保持手段は、前記転送レート情報
を前記LSIの外部から取得して保持することを特徴と
する請求項14記載のLSI。
19. The LSI according to claim 14, wherein the holding unit acquires and holds the transfer rate information from outside the LSI.
JP2002103027A 2001-04-25 2002-04-04 Memory control device and LSI Expired - Fee Related JP3987750B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002103027A JP3987750B2 (en) 2001-04-25 2002-04-04 Memory control device and LSI

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2001127502 2001-04-25
JP2001-127502 2001-04-25
JP2002103027A JP3987750B2 (en) 2001-04-25 2002-04-04 Memory control device and LSI

Publications (2)

Publication Number Publication Date
JP2003016024A true JP2003016024A (en) 2003-01-17
JP3987750B2 JP3987750B2 (en) 2007-10-10

Family

ID=26614175

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002103027A Expired - Fee Related JP3987750B2 (en) 2001-04-25 2002-04-04 Memory control device and LSI

Country Status (1)

Country Link
JP (1) JP3987750B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060094915A (en) * 2005-02-25 2006-08-30 소니 가부시끼 가이샤 Information processing apparatus and method, memory control device and method, recording medium, and program
JP2008027245A (en) * 2006-07-21 2008-02-07 Matsushita Electric Ind Co Ltd Memory access controller and memory access control method
JP2008292542A (en) * 2007-05-22 2008-12-04 Nec Electronics Corp Image processor and image processing method
WO2011016168A1 (en) * 2009-08-05 2011-02-10 パナソニック株式会社 Memory access device and video processing system
JP2015095177A (en) * 2013-11-13 2015-05-18 株式会社リコー Data transfer device, image processor, data transfer method and data transfer program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060094915A (en) * 2005-02-25 2006-08-30 소니 가부시끼 가이샤 Information processing apparatus and method, memory control device and method, recording medium, and program
US7313031B2 (en) 2005-02-25 2007-12-25 Sony Corporation Information processing apparatus and method, memory control device and method, recording medium, and program
JP2008027245A (en) * 2006-07-21 2008-02-07 Matsushita Electric Ind Co Ltd Memory access controller and memory access control method
JP2008292542A (en) * 2007-05-22 2008-12-04 Nec Electronics Corp Image processor and image processing method
WO2011016168A1 (en) * 2009-08-05 2011-02-10 パナソニック株式会社 Memory access device and video processing system
JP2015095177A (en) * 2013-11-13 2015-05-18 株式会社リコー Data transfer device, image processor, data transfer method and data transfer program

Also Published As

Publication number Publication date
JP3987750B2 (en) 2007-10-10

Similar Documents

Publication Publication Date Title
US6820152B2 (en) Memory control device and LSI
US5901295A (en) Address and data bus arbiter for pipelined transactions on a split bus
JP2009271944A (en) Arbitration device and arbitration method of guaranteeing local concentrated access by low bandwidth, moving image processing apparatus containing arbitration device, and integrated circuit
US5818464A (en) Method and apparatus for arbitrating access requests to a shared computer system memory by a graphics controller and memory controller
JP5662585B2 (en) Arbitration of stream transactions based on information related to stream transactions
US6212589B1 (en) System resource arbitration mechanism for a host bridge
EP1811393B1 (en) Method and system for data transfer
US6415367B1 (en) Apparatus for reducing asynchronous service latency in a time slot-based memory arbitration scheme
JPH08263312A (en) Method and apparatus for bus arbitration
JP3987750B2 (en) Memory control device and LSI
EP1238342B1 (en) Apparatus for memory resource arbitration based on dedicated time slot allocation
US6412049B1 (en) Method for minimizing CPU memory latency while transferring streaming data
US5708783A (en) Data bus arbiter for pipelined transactions on a split bus
US20040117530A1 (en) Avoidance of extended bus occupancy through simple control operation
JPH1125036A (en) Arbitration system and method for arbitorating access
US5815676A (en) Address bus arbiter for pipelined transactions on a split bus
JPH1139255A (en) Bus arbitration device and method therefor
JPH10149311A (en) Memory controller
US7747806B2 (en) Resource use management device, resource use management system, and control method for a resource use management device
JP3124544B2 (en) Bus controller
JP4898527B2 (en) RESOURCE USE MANAGEMENT DEVICE, RESOURCE USE MANAGEMENT SYSTEM, AND RESOURCE USE MANAGEMENT DEVICE CONTROL METHOD
JP2000250852A (en) Bus arbitrating device, bus system and bus arbitrating method
JPH11232215A (en) Bus controller, bus master device and method for controlling bus control system
JP2004062333A (en) Picture processor
JPH09160868A (en) Bus arbitration device and method therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050301

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070418

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070424

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070525

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070713

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

LAPS Cancellation because of no payment of annual fees