JP2002123420A - Memory access device - Google Patents

Memory access device

Info

Publication number
JP2002123420A
JP2002123420A JP2000313165A JP2000313165A JP2002123420A JP 2002123420 A JP2002123420 A JP 2002123420A JP 2000313165 A JP2000313165 A JP 2000313165A JP 2000313165 A JP2000313165 A JP 2000313165A JP 2002123420 A JP2002123420 A JP 2002123420A
Authority
JP
Japan
Prior art keywords
memory
memory access
access
cpu
unit
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.)
Pending
Application number
JP2000313165A
Other languages
Japanese (ja)
Inventor
Tadashi Shibata
忠司 芝田
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 JP2000313165A priority Critical patent/JP2002123420A/en
Publication of JP2002123420A publication Critical patent/JP2002123420A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Memory System (AREA)
  • Multi Processors (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a memory access device by which lowering in the performance of a CPU is suppressed to a minimum by shortening data access waiting time caused by the competition of memory access in a shared memory access device in which the CPU and a memory access means share a memory means. SOLUTION: The memory access request of a memory access means 4 is divided by an access dividing means 7, and the divided memory access instructions is interrupted by a memory access request from a CPU 3.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、CPUを含む複数
のメモリアクセス手段が、同一のメモリ手段を共有する
共有メモリアクセス装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a shared memory access device in which a plurality of memory access units including a CPU share the same memory unit.

【0002】[0002]

【従来の技術】近年、DRAMに代表されるメモリは、
主にパーソナルコンピュータの主記憶用に使用され、半
導体技術の進歩とともに大容量化している。一方、家電
製品でもデジタル化の流れとともにメモリが必要とされ
ているが、絶対的な必要メモリ容量はパーソナルコンピ
ュータに比べると少ない。
2. Description of the Related Art In recent years, memories typified by DRAMs are:
It is mainly used for main storage of personal computers, and its capacity has been increased with the progress of semiconductor technology. On the other hand, home appliances also require memory along with the trend of digitization, but the absolute required memory capacity is smaller than that of personal computers.

【0003】また、半導体技術の年々の進歩とパーソナ
ルコンピュータに対する需要の多さから、家電製品が必
要としている比較的小容量のメモリは市場から姿を消し
つつある。このような状況のなか、1つの大容量メモリ
を、CPUを含む複数のLSIが共有する共有メモリ方
式は、メモリの効率的使用と、メモリの共用化によるコ
ストダウンの観点から家電製品には必要とされている。
以下、従来の共有メモリアクセス装置について説明す
る。
[0003] Further, with the yearly progress of semiconductor technology and the large demand for personal computers, relatively small-capacity memories required by home electric appliances are disappearing from the market. Under such circumstances, a shared memory system in which a single large-capacity memory is shared by a plurality of LSIs including a CPU is required for home electric appliances from the viewpoint of efficient use of memory and cost reduction by sharing memory. It has been.
Hereinafter, a conventional shared memory access device will be described.

【0004】図5は従来の共有メモリアクセス装置のブ
ロック図であり、図中100、101はCPU,103
はCPU100もしくはCPU101が、他方のCPU
が共有メモリ102をアクセスしているため、共有メモ
リ102にアクセスできなかった場合に設定するアクセ
ス要求フラグ、104はCPU100もしくはCPU1
01が共有メモリ102をアクセスしている場合に設定
するセマフォである(特開平9−6735号公報参
照)。
FIG. 5 is a block diagram of a conventional shared memory access device. In FIG.
Is the CPU 100 or 101 and the other CPU
Are accessing the shared memory 102, the access request flag set when the shared memory 102 cannot be accessed.
A semaphore 01 is set when the shared memory 102 is being accessed (see Japanese Patent Application Laid-Open No. 9-6735).

【0005】以上のように構成された共有メモリアクセ
ス装置の動作を説明する。
[0005] The operation of the shared memory access device configured as described above will be described.

【0006】CPU100が共有メモリ102をアクセ
スする場合、CPU100は、セマフォ104を確認
し、もう一方のCPU101が共有メモリ102を使用
していないか確認する。
When the CPU 100 accesses the shared memory 102, the CPU 100 checks the semaphore 104 and checks whether the other CPU 101 uses the shared memory 102.

【0007】使用している場合は、CPU100は、C
PU101のメモリアクセスが終わった後共有メモリ1
02を使用することをCPU101に通知するため、ア
クセス要求フラグ103を設定する。
When used, the CPU 100
After the memory access of PU 101 is completed, shared memory 1
The access request flag 103 is set in order to notify the CPU 101 of the use of “02”.

【0008】CPU101は共有メモリ102に対する
アクセスを一定時間内に終了するように共有メモリをア
クセスしており、メモリアクセスが完了した時点で、ア
クセス要求フラグ103を確認し、もう一方のCPU
(この場合はCPU100)がアクセス要求を出してい
るかを確認し、アクセス要求があれば、セマフォを解除
し、CPU100に共有メモリのアクセスを譲る。
The CPU 101 accesses the shared memory so that the access to the shared memory 102 is completed within a predetermined time. When the memory access is completed, the CPU 101 checks the access request flag 103 and checks the other CPU.
(In this case, the CPU 100) confirms whether an access request has been issued, and if there is an access request, releases the semaphore and gives the CPU 100 access to the shared memory.

【0009】このようにCPU100,CPU101が
共有メモリをアクセスする時間を一定時間以内にするこ
とにより、CPU100,CPU101がメモリアクセ
スの競合によって待たされる時間を短くすることができ
る。
As described above, by setting the time during which the CPU 100 and the CPU 101 access the shared memory within a certain time, the time that the CPU 100 and the CPU 101 wait due to contention for memory access can be shortened.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、上記従
来のメモリアクセス方法では、一定時間のメモリアクセ
スが終了するたびに、他方のメモリアクセス要求の有無
をCPUが確認するため、その確認を行う間メモリに対
するアクセスが一時中断し、メモリの性能を十分生かせ
ないという問題があった。
However, in the above-mentioned conventional memory access method, the CPU checks the presence or absence of the other memory access request every time the memory access for a certain time is completed. There is a problem that access to the memory is temporarily interrupted and the performance of the memory cannot be fully utilized.

【0011】また、メモリアクセスを他方のCPUに譲
った場合、一定時間経過後、CPUは再度メモリアクセ
ス要求を行うが、その際、他方のCPUのメモリアクセ
スが一定時間よりも短時間で終了した場合、どちらのC
PUもメモリに対するアクセスが行なわれない期間が生
じ、メモリの使用効率の低下、CPUの待ち時間の増大
という問題が発生する。
When the memory access is transferred to the other CPU, the CPU issues a memory access request again after a lapse of a predetermined time. At that time, the memory access of the other CPU is completed in a shorter time than the predetermined time. If either C
The PU also has a period during which no access is made to the memory, which causes problems such as a reduction in memory use efficiency and an increase in CPU wait time.

【0012】本発明はかかる点に鑑み、共有メモリを使
用するシステムにおいて、CPUのデータ待ち時間の短
縮と、メモリの使用効率の向上を図ることを目的とす
る。
SUMMARY OF THE INVENTION In view of the foregoing, it is an object of the present invention to reduce the data waiting time of a CPU and improve the memory use efficiency in a system using a shared memory.

【0013】[0013]

【課題を解決するための手段】この目的を達成するた
め、本発明のメモリアクセス装置は、データを記憶する
メモリ手段と、前記メモリ手段にアクセスするCPU
と、前記メモリ手段にアクセスするメモリアクセス手段
と、前記CPUとメモリアクセス手段からのメモリアク
セス要求を調停する調停手段と、前記調停手段により調
停されたメモリアクセス要求を、一定長のデータをアク
セスする複数のデータアクセス命令に分割するアクセス
分割手段と、前記アクセス分割手段により分割されたメ
モリアクセス命令に基づき前記メモリ手段を制御するメ
モリ制御手段を備えたことを特徴とする。
In order to achieve this object, a memory access device according to the present invention comprises a memory means for storing data, and a CPU for accessing the memory means.
A memory access unit that accesses the memory unit; an arbitration unit that arbitrates a memory access request from the CPU and the memory access unit; and a memory access request arbitrated by the arbitration unit that accesses data of a predetermined length. An access division unit for dividing the data into a plurality of data access instructions, and a memory control unit for controlling the memory unit based on the memory access instructions divided by the access division unit.

【0014】この構成によって、アクセス分割手段は、
メモリアクセス手段からのメモリアクセス要求を、一定
長のデータをアクセスする複数のメモリアクセス命令に
分割し、その分割した個々のメモリアクセス命令をメモ
リ制御手段に発行するのに同期して、CPUからのメモ
リアクセス要求を記憶するCPUアクセス要求記憶手段
を調べ、CPUからの有効なアクセス要求がある場合
に、分割したメモリアクセス命令の間にCPUからのメ
モリアクセス命令を割り込ませることにより、CPUか
らのメモリ手段に対するデータアクセス時間を短時間に
処理することができる。
With this configuration, the access dividing means can
The memory access request from the memory access unit is divided into a plurality of memory access instructions for accessing data of a fixed length, and the divided individual memory access instructions are issued to the memory control unit in synchronization with the request from the CPU. The CPU access request storage means for storing the memory access request is checked, and when there is a valid access request from the CPU, the memory access instruction from the CPU is interrupted between the divided memory access instructions, thereby enabling the memory access from the CPU to be performed. Data access time to the means can be processed in a short time.

【0015】また、調停手段が、CPUからのメモリア
クセスを優先的に処理し、処理できない場合は、CPU
からのメモリアクセス要求をCPUアクセス要求記憶手
段に記憶させることにより、再アクセスによりCPUが
メモリ手段に対する同じアクセスを複数回、調停手段に
発行する必要がなくなり、CPUのメモリアクセスに伴
うオーバヘッドを削減することができる。
The arbitration means preferentially processes the memory access from the CPU.
By storing the memory access request from the CPU in the CPU access request storage means, the CPU does not need to issue the same access to the memory means a plurality of times to the arbitration means by re-access, thereby reducing the overhead associated with the memory access of the CPU. be able to.

【0016】また、アクセス分割手段が、CPUからの
メモリアクセスと、メモリアクセス手段からのメモリア
クセス、それぞれを一定長のデータをアクセスする複数
のメモリアクセス命令に分割し、交互にメモリ制御手段
に発行することにより、CPUとメモリアクセス手段の
メモリアクセス待ち時間を短縮することができ、CPU
とメモリアクセス手段の処理効率を向上させることがで
きる。
The access dividing means divides each of the memory access from the CPU and the memory access from the memory accessing means into a plurality of memory access instructions for accessing data of a fixed length, and issues them to the memory controlling means alternately. By doing so, the memory access waiting time between the CPU and the memory access means can be reduced,
And the processing efficiency of the memory access means can be improved.

【0017】[0017]

【発明の実施の形態】(第1の実施の形態)以下、本発
明の第1の実施の形態について、図面を参照しながら説
明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS (First Embodiment) A first embodiment of the present invention will be described below with reference to the drawings.

【0018】本実施形態では、説明のため、1つのCP
Uと、1つのメモリアクセス手段が共有メモリを共有す
る場合を考える。
In this embodiment, one CP is used for explanation.
Consider a case where U and one memory access unit share a shared memory.

【0019】図1は本発明の第1の実施の形態における
共有メモリアクセス装置のブロック図を示すものであ
る。
FIG. 1 is a block diagram showing a shared memory access device according to the first embodiment of the present invention.

【0020】図1において、1はデータを記憶するメモ
リ手段、2はメモリ手段1を制御するメモリ制御手段、
3はメモリ手段1に対してデータアクセスを行うCP
U,4はメモリ手段1に対して不定長のデータアクセス
を行うメモリアクセス手段、5はCPU3とメモリアク
セス手段4からのメモリ手段1に対するアクセスを調停
する調停手段、6は一ないし複数のCPU3からのメモ
リアクセス情報を記憶するCPUアクセス要求記憶手
段、7は調停手段5によって調停されたメモリアクセス
要求を一定長のデータをアクセスする複数のメモリアク
セス命令に分割し、メモリ制御手段2に対してメモリア
クセス命令を発行するアクセス分割手段である。
In FIG. 1, 1 is a memory means for storing data, 2 is a memory control means for controlling the memory means 1,
3 is a CP for performing data access to the memory means 1
U and 4 denote memory access means for performing indefinite-length data access to the memory means 1; 5 arbitration means for arbitrating access to the memory means 1 from the CPU 3 and the memory access means 4; The CPU access request storage means 7 for storing the memory access information of the memory device divides the memory access request arbitrated by the arbitration means 5 into a plurality of memory access instructions for accessing data of a fixed length. This is an access dividing unit that issues an access instruction.

【0021】図2はメモリアクセス要求と、メモリアク
セス命令との関係を示す図である。図中10はメモリア
クセス手段7から要求される256バイトのメモリアク
セス要求、11、12はアクセス分割手段7が256バ
イトのメモリアクセス要求10を分割処理し、メモリ制
御手段2に対して発行する前半128バイトのメモリア
クセス命令と、後半128バイトのメモリアクセス命令
である。
FIG. 2 is a diagram showing the relationship between a memory access request and a memory access instruction. In the figure, reference numeral 10 denotes a 256-byte memory access request requested by the memory access unit 7, and reference numerals 11 and 12 denote the first half of the access division unit 7 dividing the 256-byte memory access request 10 and issuing it to the memory control unit 2. These are a 128-byte memory access instruction and a latter-half 128-byte memory access instruction.

【0022】図3はアクセス分割手段7によって分割出
力されるメモリアクセス命令の構成を示す図である。図
中13はCPU3からの発行されるメモリアクセス要求
を、アクセス分割手段7により変換されたCPUメモリ
アクセス命令である。
FIG. 3 is a diagram showing the structure of a memory access instruction divided and outputted by the access dividing means 7. In the figure, reference numeral 13 denotes a CPU memory access instruction obtained by converting a memory access request issued from the CPU 3 by the access dividing means 7.

【0023】以上のように構成された本実施の形態の共
有メモリアクセス装置の動作を説明する。
The operation of the shared memory access device according to the present embodiment configured as described above will be described.

【0024】まず、メモリ手段1に対して、CPU3、
メモリアクセス手段4がアクセスしていない状態から、
メモリアクセス手段4が256バイトのデータをメモリ
手段1に書き込む場合について説明する。
First, for the memory means 1, the CPU 3,
From the state where the memory access means 4 is not accessing,
A case where the memory access unit 4 writes 256 bytes of data into the memory unit 1 will be described.

【0025】メモリアクセス手段4は調停手段5に対し
て256バイトのメモリアクセス要求10を発行する。
調停手段5は、CPU3からのメモリアクセス要求がな
いため、メモリアクセス手段4からの256バイトのメ
モリアクセス要求10を受け付ける。
The memory access unit 4 issues a 256 byte memory access request 10 to the arbitration unit 5.
The arbitration unit 5 accepts a 256 byte memory access request 10 from the memory access unit 4 because there is no memory access request from the CPU 3.

【0026】アクセス分割手段7は、調停手段5によっ
て調停された256バイトのメモリアクセス要求10を
前半の128バイトのメモリアクセス命令11と後半1
28バイトのメモリアクセス命令12に分割し、メモリ
制御手段2に前半128バイトのメモリアクセス命令1
1を発行する。
The access dividing means 7 converts the 256-byte memory access request 10 arbitrated by the arbitrating means 5 into the first half 128-byte memory access instruction 11 and the second half 1
It is divided into 28-byte memory access instructions 12 and the first half 128-byte memory access instructions 1
Issue 1.

【0027】次に、アクセス分割手段7は、CPUアク
セス要求記憶手段6にCPU3からの有効なメモリアク
セス要求情報が記憶されているかどうかを確認し、記憶
されていなければ、メモリ制御手段2において前半の1
28バイトのメモリアクセス命令11が処理された後、
後半128バイトのメモリアクセス命令12をメモリ制
御手段2に発行する。
Next, the access dividing means 7 checks whether or not valid memory access request information from the CPU 3 is stored in the CPU access request storage means 6. Of 1
After the 28-byte memory access instruction 11 has been processed,
A memory access instruction 12 of the latter 128 bytes is issued to the memory control means 2.

【0028】メモリ制御手段2は、アクセス分割手段7
からのメモリアクセス命令11、12に基づいてメモリ
手段1を制御し、実データアクセスをメモリ手段1に対
して行う。メモリアクセス手段4からのメモリアクセス
要求をすべて処理し終わった後、調停手段5はメモリア
クセス手段4に対して書き込みが完了したことを通知す
る。
The memory control means 2 includes an access division means 7
The memory unit 1 is controlled based on the memory access instructions 11 and 12 from the CPU 1 and actual data access is performed on the memory unit 1. After all the memory access requests from the memory access unit 4 have been processed, the arbitration unit 5 notifies the memory access unit 4 that the writing has been completed.

【0029】次に、メモリ手段1に対して、CPU3、
メモリアクセス手段4がアクセスしていない状態から、
CPU3がデータをメモリ手段1に書き込む場合につい
て説明する。
Next, for the memory means 1, the CPU 3,
From the state where the memory access means 4 is not accessing,
A case where the CPU 3 writes data to the memory means 1 will be described.

【0030】CPU3は、調停手段5に対してメモリ書
き込み要求を発行する。調停手段5は、アクセス分割手
段7が別のメモリアクセス要求を処理していないため、
CPU3からのメモリアクセス要求を受け付ける。
The CPU 3 issues a memory write request to the arbitration means 5. The arbitration unit 5 is configured so that the access division unit 7 does not process another memory access request.
A memory access request from the CPU 3 is accepted.

【0031】アクセス分割手段7は、調停手段5によっ
て調停されたメモリアクセス要求をCPUメモリアクセ
ス命令13としてメモリ制御手段2に発行し、メモリ制
御手段2は、CPUメモリアクセス命令13に基づき、
CPU3からの書き込み要求データをメモリ手段1に書
き込む。メモリ手段1にデータが書き込まれた後、調停
手段5は、CPU3に対して書き込みが完了したことを
通知する。
The access dividing means 7 issues the memory access request arbitrated by the arbitrating means 5 to the memory control means 2 as a CPU memory access instruction 13, and the memory control means 2
Write request data from the CPU 3 is written into the memory means 1. After the data is written in the memory means 1, the arbitration means 5 notifies the CPU 3 that the writing has been completed.

【0032】さらに、アクセス分割手段7が、メモリア
クセス手段4からの書き込み要求を分割処理している間
に、CPU3からのアクセス要求が発生した場合につい
て説明する。
Further, a case where an access request is issued from the CPU 3 while the access dividing means 7 is dividing the write request from the memory access means 4 will be described.

【0033】調停手段5は、CPU3からのメモリアク
セス要求を受け、アクセス分割手段7がメモリアクセス
手段4からのメモリアクセス要求を処理していることを
確認すると、CPUアクセス要求記憶手段6にCPU3
からのメモリアクセス要求情報を記憶させる。
When the arbitration unit 5 receives the memory access request from the CPU 3 and confirms that the access division unit 7 is processing the memory access request from the memory access unit 4, the arbitration unit 5 stores the CPU access request in the CPU access request storage unit 6.
Is stored.

【0034】アクセス分割手段7は、前半128バイト
のメモリアクセス命令11をメモリ制御手段2に発行し
終わった後、CPUアクセス要求記憶手段6に有効なメ
モリアクセス情報の有無を調べる。CPUアクセス要求
記憶手段6には有効なメモリアクセス情報があるので、
アクセス分割手段7は、後半128バイトのメモリアク
セス命令12をメモリ制御手段2に発行する前に、CP
Uアクセス要求記憶手段6に記憶されているメモリアク
セス要求をCPUメモリアクセス命令13としてメモリ
制御手段2に発行する。
After issuing the first-half 128-byte memory access instruction 11 to the memory control means 2, the access division means 7 checks the CPU access request storage means 6 for valid memory access information. Since the CPU access request storage means 6 has valid memory access information,
Before issuing the memory access instruction 12 of the latter half 128 bytes to the memory control means 2, the access dividing means 7
The memory access request stored in the U access request storage means 6 is issued to the memory control means 2 as a CPU memory access instruction 13.

【0035】その後、アクセス分割手段7は、CPUメ
モリアクセス命令13を発行し終わった後、CPUアク
セス要求記憶手段6に有効なメモリアクセス情報の有無
を調べる。有効なメモリアクセスがあれば、そのCPU
メモリアクセス要求をメモリ制御手段2に発行し、有効
なメモリアクセス要求がなければ、後半128バイトの
メモリアクセス命令12をメモリ制御手段2に発行し、
メモリアクセス手段4が要求した256バイトのメモリ
アクセス要求を完了させる。
After that, after issuing the CPU memory access instruction 13, the access dividing means 7 checks the CPU access request storage means 6 for valid memory access information. If there is a valid memory access, the CPU
A memory access request is issued to the memory control means 2. If there is no valid memory access request, a memory access instruction 12 of the latter half 128 bytes is issued to the memory control means 2.
The memory access request of 256 bytes requested by the memory access means 4 is completed.

【0036】以上のように本実施の形態によれば、アク
セス分割手段7がメモリアクセス手段4からのメモリア
クセス要求を分割し、複数のメモリアクセス命令11、
12を生成し、メモリアクセス命令11、12の間にC
PU3からのCPUメモリアクセス命令を挿入すること
により、CPU3は、短期間でメモリ手段1からデータ
をアクセスすることができる。
As described above, according to the present embodiment, the access dividing means 7 divides the memory access request from the memory access means 4 and
12 between memory access instructions 11 and 12
By inserting the CPU memory access command from the PU 3, the CPU 3 can access data from the memory means 1 in a short period of time.

【0037】また、調停手段5がCPU3からのメモリ
アクセス要求を優先的に処理し、処理できない場合はC
PU3からのメモリアクセス情報をCPUアクセス要求
記憶手段6に記憶させることにより、CPU1からのメ
モリアクセス時間をさらに、短くすることができる。
The arbitration means 5 preferentially processes a memory access request from the CPU 3, and if it cannot be processed, C
By storing the memory access information from the PU 3 in the CPU access request storage means 6, the memory access time from the CPU 1 can be further reduced.

【0038】(第2の実施の形態)以下、本発明の第2
の実施の形態について、図面を参照しながら説明する。
(Second Embodiment) Hereinafter, a second embodiment of the present invention will be described.
An embodiment will be described with reference to the drawings.

【0039】本実施の形態では、説明のため、第1の実
施の形態と同様に、1つのCPUと1つのメモリアクセ
ス手段が共有メモリを共有する場合を考える。
In the present embodiment, for the sake of explanation, a case is considered where one CPU and one memory access unit share a shared memory, as in the first embodiment.

【0040】図4はアクセス分割手段7から出力される
メモリアクセス命令の順番を示す図である。図中14,
15,16はそれぞれメモリアクセス手段4からのメモ
リアクセス要求に基づきアクセス分割手段7により分割
された第一、第二、第三のメモリアクセス命令、17,
18はそれぞれCPU3からのメモリアクセス要求に基
づきアクセス分割手段7により分割された第一、第二の
CPUメモリアクセス命令である。
FIG. 4 is a diagram showing the order of memory access instructions output from the access dividing means 7. 14,
Reference numerals 15 and 16 denote first, second and third memory access commands divided by the access division means 7 based on a memory access request from the memory access means 4, respectively.
Reference numerals 18 denote first and second CPU memory access commands, respectively, divided by the access dividing means 7 based on a memory access request from the CPU 3.

【0041】以上のように構成された本実施の形態の共
有メモリアクセス装置の動作を説明する。
The operation of the shared memory access device according to the present embodiment configured as described above will be described.

【0042】メモリアクセス手段4からメモリアクセス
要求を受けた調停手段5は、アクセス分割手段に対しメ
モリアクセス要求を発行する。アクセス分割手段7は、
第一〜第三のメモリアクセス命令14,15,16に分
割し、最初に第一のメモリアクセス命令をメモリ制御手
段2に発行する。
The arbitration unit 5 receiving the memory access request from the memory access unit 4 issues a memory access request to the access division unit. The access dividing means 7
It is divided into first to third memory access instructions 14, 15 and 16, and the first memory access instruction is first issued to the memory control means 2.

【0043】アクセス分割手段7は、次にCPUアクセ
ス記憶手段6に有効なメモリアクセス要求があるかどう
か確認し、有効なメモリアクセス要求があれば、そのメ
モリアクセス要求を第一、第二のCPUメモリアクセス
命令17,18に分割する。
The access dividing means 7 then checks whether there is a valid memory access request in the CPU access storage means 6, and if there is a valid memory access request, it divides the memory access request into the first and second CPUs. It is divided into memory access instructions 17 and 18.

【0044】アクセス分割手段7は、以降、第二,第三
のメモリアクセス命令15,16と、第一,第二のCP
Uメモリアクセス17,18を交互にメモリ制御手段2
に対して発行する。
The access dividing means 7 thereafter transmits the second and third memory access commands 15 and 16 and the first and second CPs.
U memory accesses 17 and 18 alternately
Issue for

【0045】以上のように本実施の形態によれば、CP
U3からのメモリアクセス要求と、メモリアクセス手段
4からのメモリアクセス要求をそれぞれ、アクセス分割
手段7により一定長のデータをアクセスする複数のメモ
リアクセス命令に分割し、それぞれを交互にメモリ制御
手段2に発行することにより、CPU3と、メモリアク
セス手段4からのメモリアクセス待ち時間をそれぞれ短
縮することが可能となる。
As described above, according to the present embodiment, the CP
The memory access request from U3 and the memory access request from memory access means 4 are each divided into a plurality of memory access instructions for accessing data of a fixed length by access dividing means 7, and each is alternately transmitted to memory control means 2. By issuing the command, the waiting time for memory access from the CPU 3 and the memory access unit 4 can be reduced.

【0046】尚、第1の実施の形態と第2の実施の形態
では、CPU3とメモリアクセス手段4の数をそれぞれ
1つとしたが、CPU3、メモリアクセス手段4は複数
個あっても同様の効果がある。
In the first embodiment and the second embodiment, the number of the CPU 3 and the number of the memory access means 4 are each one, but the same effect is obtained even if there are a plurality of the CPUs 3 and the memory access means 4. There is.

【0047】また、第1の実施の形態では、メモリアク
セス手段4は256バイトのデータを転送する例を示し
たが、それ以上、もしくはそれ以下の転送長でも同様の
効果がある。
Further, in the first embodiment, an example has been described in which the memory access means 4 transfers 256 bytes of data. However, a similar effect can be obtained even if the transfer length is longer or shorter.

【0048】[0048]

【発明の効果】以上のように本発明は、メモリアクセス
手段からのメモリアクセス要求をアクセス分割手段によ
り一定長のデータをアクセスする複数のメモリアクセス
命令に分割し、CPUからのメモリアクセス要求があれ
ば、メモリアクセス命令の間にCPUからのメモリアク
セス命令を割り込ませることにより、CPUからのメモ
リ手段に対するメモリアクセス時間を短縮することがで
きる優れた共有メモリアクセス装置を実現するものであ
る。
As described above, according to the present invention, a memory access request from a memory access unit is divided into a plurality of memory access instructions for accessing data of a fixed length by an access dividing unit. For example, an excellent shared memory access device can be realized in which a memory access instruction from a CPU is interrupted between memory access instructions, thereby shortening a memory access time from a CPU to a memory unit.

【0049】また、調停手段が、CPUからのメモリア
クセスを優先的に処理し、処理できない場合は、CPU
からのメモリアクセス要求をCPUアクセス要求記憶手
段に記憶させることにより、再アクセスによりCPUが
メモリ手段に対する同じアクセスを複数回、調停手段に
発行する必要がなくなり、CPUのメモリアクセスに伴
うオーバヘッドを削減することができる優れた共有メモ
リアクセス装置を実現するものである。
The arbitration means preferentially processes memory access from the CPU.
By storing the memory access request from the CPU in the CPU access request storage means, the CPU does not need to issue the same access to the memory means a plurality of times to the arbitration means by re-access, thereby reducing the overhead associated with the memory access of the CPU. The present invention realizes an excellent shared memory access device that can perform the above operations.

【0050】そして、アクセス分割手段が、CPUから
のメモリアクセスと、メモリアクセス手段からのメモリ
アクセス、それぞれを一定長のデータをアクセスする複
数のメモリアクセス命令に分割し、交互にメモリ制御手
段に発行することにより、CPUとメモリアクセス手段
のメモリアクセス待ち時間を短縮することができ、CP
Uとメモリアクセス手段の処理効率を向上させることが
できる。
The access dividing means divides each of the memory access from the CPU and the memory access from the memory accessing means into a plurality of memory access instructions for accessing data of a fixed length, and issues them alternately to the memory controlling means. By doing so, the memory access waiting time between the CPU and the memory access means can be reduced,
The processing efficiency of U and the memory access means can be improved.

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

【図1】本発明の第1の実施の形態における共有メモリ
アクセス装置のブロック図
FIG. 1 is a block diagram of a shared memory access device according to a first embodiment of the present invention;

【図2】図1のメモリアクセス要求とメモリアクセス命
令の関係図
FIG. 2 is a relationship diagram between a memory access request and a memory access instruction in FIG. 1;

【図3】図1のアクセス分割手段のメモリアクセス分割
を示す図
FIG. 3 is a diagram showing memory access division by the access division means of FIG. 1;

【図4】本発明の第2の実施の形態におけるアクセス分
割手段のメモリアクセス分割を示す図
FIG. 4 is a diagram showing memory access division by an access division unit according to a second embodiment of the present invention;

【図5】従来のメモリアクセス装置の構成を示すブロッ
ク図
FIG. 5 is a block diagram showing a configuration of a conventional memory access device.

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

1 メモリ手段 2 メモリ制御手段 3 CPU 4 メモリアクセス手段 5 調停手段 6 CPUアクセス要求記憶手段 7 アクセス分割手段 DESCRIPTION OF SYMBOLS 1 Memory means 2 Memory control means 3 CPU 4 Memory access means 5 Arbitration means 6 CPU access request storage means 7 Access division means

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】データを記憶するメモリ手段と、前記メモ
リ手段を制御するメモリ制御手段と、前記メモリ手段に
対してデータをアクセスする一ないし複数のCPUと、
前記メモリ手段に対してデータをアクセスする一ないし
複数のメモリアクセス手段と、前記一ないし複数のCP
Uと前記一ないし複数のメモリアクセス手段からのメモ
リアクセス要求を調停する調停手段と、前記調停手段に
接続され前記一ないし複数のCPUからのメモリアクセ
ス要求を記憶するCPUアクセス要求記憶手段と、前記
調停手段により調停されたメモリアクセスを一定長のデ
ータをアクセスする複数のメモリアクセス命令に分割
し、前記分割したメモリアクセス命令単位でメモリ制御
手段に対してメモリアクセス命令を発行するアクセス分
割手段を備えたことを特徴とするメモリアクセス装置。
1. A memory means for storing data, a memory control means for controlling said memory means, one or more CPUs for accessing data to said memory means,
One or more memory access means for accessing data to the memory means, and one or more CPs
U and an arbitration unit for arbitrating a memory access request from the one or more memory access units; a CPU access request storage unit connected to the arbitration unit and storing a memory access request from the one or more CPUs; An access division unit divides the memory access arbitrated by the arbitration unit into a plurality of memory access instructions for accessing data of a fixed length, and issues a memory access instruction to the memory control unit in units of the divided memory access instructions. A memory access device.
【請求項2】調停手段は、アクセス分割手段がメモリア
クセスを分割処理している場合は、一ないし複数のCP
Uからのアクセス要求を優先的に受け付け、前記一ない
し複数のCPUからのメモリアクセス要求をアクセス要
求記憶手段に記憶させ、 前記アクセス分割手段がメモリアクセスを分割処理して
いない場合は、前記一ないし複数のCPUからのメモリ
アクセス要求を優先的にメモリ分割手段に通知すること
を特徴とする請求項1記載のメモリアクセス装置。
2. The arbitration means according to claim 1, wherein said access division means divides the memory access by one or more CPs.
U. The access request from U is preferentially received, and the memory access request from the one or more CPUs is stored in an access request storage unit. 2. The memory access device according to claim 1, wherein a memory access request from a plurality of CPUs is notified to a memory dividing unit with priority.
【請求項3】アクセス分割手段は、調停手段が調停した
メモリアクセス要求を一定長のデータをアクセスする複
数のメモリアクセス命令に分割し、分割されたメモリア
クセス命令をメモリ制御手段に対して発行するのと同期
して、CPUアクセス要求記憶手段に記憶されている一
ないし複数のCPUからのメモリアクセス要求を確認
し、前記一ないし複数のCPUからのアクセス要求があ
る場合に、前記一ないし複数のCPUからのメモリアク
セス要求を、現在発行しているメモリアクセス命令の次
に割り込ませ、メモリ制御手段にメモリアクセス命令と
して発行することを特徴とする請求項1記載のメモリア
クセス装置。
3. The access dividing means divides the memory access request arbitrated by the arbitrating means into a plurality of memory access instructions for accessing data of a fixed length, and issues the divided memory access instructions to the memory control means. In synchronization with the above, a memory access request from one or more CPUs stored in the CPU access request storage means is confirmed, and when there is an access request from the one or more CPUs, 2. The memory access device according to claim 1, wherein a memory access request from the CPU is interrupted next to the currently issued memory access instruction, and is issued to the memory control means as a memory access instruction.
【請求項4】データを記憶するメモリ手段と、前記メモ
リ手段を制御するメモリ制御手段と、前記メモリ手段に
対してデータをアクセスするCPUと、前記メモリ手段
に対してデータをアクセスするメモリアクセス手段と、
前記CPUからのメモリアクセス要求と、前記メモリア
クセス手段からのアクセス要求を、それぞれ一定長のデ
ータをアクセスする複数のメモリアクセス命令に分割
し、分割されたメモリアクセス命令を交互に前記メモリ
制御手段に対して発行するアクセス分割手段を備えたこ
とを特徴とするメモリアクセス装置。
4. A memory means for storing data, a memory control means for controlling said memory means, a CPU for accessing data to said memory means, and a memory access means for accessing data to said memory means. When,
The memory access request from the CPU and the access request from the memory access unit are divided into a plurality of memory access instructions for accessing data of a fixed length, and the divided memory access instructions are alternately transmitted to the memory control unit. A memory access device, comprising: an access dividing unit for issuing the access division unit.
【請求項5】CPUとメモリアクセス手段とが、メモリ
手段を共有する場合、前記メモリアクセス手段のメモリ
アクセス要求を分割し、分割したメモリアクセスの間に
CPUからのメモリアクセス要求を割り込ませることを
特徴とするメモリアクセス方法。
5. When a CPU and a memory access unit share a memory unit, a memory access request of the memory access unit is divided, and a memory access request from the CPU is interrupted between the divided memory accesses. Characteristic memory access method.
JP2000313165A 2000-10-13 2000-10-13 Memory access device Pending JP2002123420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000313165A JP2002123420A (en) 2000-10-13 2000-10-13 Memory access device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000313165A JP2002123420A (en) 2000-10-13 2000-10-13 Memory access device

Publications (1)

Publication Number Publication Date
JP2002123420A true JP2002123420A (en) 2002-04-26

Family

ID=18792620

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000313165A Pending JP2002123420A (en) 2000-10-13 2000-10-13 Memory access device

Country Status (1)

Country Link
JP (1) JP2002123420A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007048274A (en) * 2005-07-14 2007-02-22 Canon Inc Memory control unit and method
KR100816038B1 (en) 2006-11-21 2008-03-21 엠텍비젼 주식회사 Method for accessing shared memory in multi-processor system
WO2008136332A1 (en) 2007-04-26 2008-11-13 Nec Corporation Memory access control device
US9898421B2 (en) 2012-12-28 2018-02-20 Huawei Technologies Co., Ltd. Memory access processing method, memory chip, and system based on memory chip interconnection
JP2021060726A (en) * 2019-10-04 2021-04-15 キヤノン株式会社 Data processing system and control method for data processing system
CN114896182A (en) * 2022-05-11 2022-08-12 地平线(上海)人工智能技术有限公司 Storage device, method, electronic apparatus, and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007048274A (en) * 2005-07-14 2007-02-22 Canon Inc Memory control unit and method
KR100816038B1 (en) 2006-11-21 2008-03-21 엠텍비젼 주식회사 Method for accessing shared memory in multi-processor system
WO2008136332A1 (en) 2007-04-26 2008-11-13 Nec Corporation Memory access control device
US9898421B2 (en) 2012-12-28 2018-02-20 Huawei Technologies Co., Ltd. Memory access processing method, memory chip, and system based on memory chip interconnection
JP2021060726A (en) * 2019-10-04 2021-04-15 キヤノン株式会社 Data processing system and control method for data processing system
US11416167B2 (en) 2019-10-04 2022-08-16 Canon Kabushiki Kaisha System, control method thereof, and storage medium
JP7419010B2 (en) 2019-10-04 2024-01-22 キヤノン株式会社 Data processing systems and methods of controlling data processing systems
CN114896182A (en) * 2022-05-11 2022-08-12 地平线(上海)人工智能技术有限公司 Storage device, method, electronic apparatus, and storage medium
CN114896182B (en) * 2022-05-11 2023-10-20 地平线(上海)人工智能技术有限公司 Storage device, method, electronic apparatus, and storage medium

Similar Documents

Publication Publication Date Title
US6708257B2 (en) Buffering system bus for external-memory access
US6317799B1 (en) Destination controlled remote DMA engine
US6502172B2 (en) Memory accessing and controlling unit
US6934820B2 (en) Traffic controller using priority and burst control for reducing access latency
US6636927B1 (en) Bridge device for transferring data using master-specific prefetch sizes
US5574868A (en) Bus grant prediction technique for a split transaction bus in a multiprocessor computer system
US20050253858A1 (en) Memory control system and method in which prefetch buffers are assigned uniquely to multiple burst streams
JP4676990B2 (en) Implementation of bufferless DMA controller using split transaction
JP3266470B2 (en) Data processing system with per-request write-through cache in forced order
JP2002123420A (en) Memory access device
US6567908B1 (en) Method of and apparatus for processing information, and providing medium
US6327636B1 (en) Ordering for pipelined read transfers
JP2684793B2 (en) Information processing device
US20010002481A1 (en) Data access unit and method therefor
JP2000227895A (en) Device and method for transferring image data
JP2004126645A (en) Memory controller
JPH11110342A (en) Method and device for connecting bus
JP3940701B2 (en) Disk array device and cache matching control method applied to the same
JP2664827B2 (en) Real-time information transfer control method
JPH0246967B2 (en)
JP2000029823A (en) Bus access control circuit
JPH07334453A (en) Memory access system
JPH02105250A (en) Data transfer system
JP2001290790A (en) Disk controller
JPH07101411B2 (en) Extended storage access controller