JPH03292558A - Shared memory controller - Google Patents
Shared memory controllerInfo
- Publication number
- JPH03292558A JPH03292558A JP9527890A JP9527890A JPH03292558A JP H03292558 A JPH03292558 A JP H03292558A JP 9527890 A JP9527890 A JP 9527890A JP 9527890 A JP9527890 A JP 9527890A JP H03292558 A JPH03292558 A JP H03292558A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- cpu
- address
- time
- signal
- 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
Links
- 238000011084 recovery Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 6
- 230000000630 rising effect Effects 0.000 description 3
- 238000004904 shortening Methods 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 2
- 239000013256 coordination polymer Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Landscapes
- Multi Processors (AREA)
Abstract
Description
【発明の詳細な説明】
[発明の目的]
(産業上の利用分野)
本発明は複数のCPUが時分割で同一のダイナミックメ
モリにアクセスできるようにした共有メモリ制御装置に
関する。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a shared memory control device that allows a plurality of CPUs to access the same dynamic memory in a time-sharing manner.
(従来の技術)
メモリへのアクセスタイムを短かくして、CPUの命令
実行速度を上げるためにCPUのステータス信号出力(
CPUが何を外部に対してしようとしているかを示すも
の)がアクティブになると、CPUの動作クロックに同
期したメモリ制御装置のクロックのアクティブエツジで
これを検知して、そのエツジでメモリサイクルを開始さ
せる。(Prior art) In order to shorten the access time to memory and increase the instruction execution speed of the CPU, the CPU status signal output (
When the CPU (which indicates what the CPU is trying to do to the outside world) becomes active, this is detected by the active edge of the memory control unit's clock, which is synchronized with the CPU's operating clock, and a memory cycle is started at that edge. .
しかしながら、第1のCPU及び第2のCPUが時分割
で同一のダイナミックメモリにアクセスできるようにし
た共有メモリ制御装置の場合、第1のCPUの出力する
アドレス信号と第2のCPUの出力するアドレス信号を
、どちらのCPUによるアクセスであるかによって切り
換えるためのアドレス切換え信号をまず変化させて、ア
ドレス信号が安定してがらメモリサイクルを発生する必
要があり、ダイナミックメモリへのアドレスのタイミン
グマージンを確保することと、メモリのアクセスタイム
を短かくすることが相克してしまう。However, in the case of a shared memory control device that allows the first CPU and the second CPU to access the same dynamic memory in a time-sharing manner, the address signal output from the first CPU and the address output from the second CPU It is necessary to first change the address switching signal to switch the signal depending on which CPU is accessing it, and then generate a memory cycle while the address signal is stable, ensuring a timing margin for the address to the dynamic memory. There is a conflict between shortening the memory access time and shortening the memory access time.
(発明が解決しようとする課題)
従来は、ダイナミックメモリへのアドレスのタイミング
マージンを確保することと、メモリのアクセスタイムを
短かくすることが相克するという問題があった。(Problems to be Solved by the Invention) Conventionally, there has been a problem in that ensuring a timing margin for addresses to dynamic memory and shortening memory access time conflict with each other.
そこで、この発明は、アドレスの切り換わり時間がメモ
リのサイクルタイムに影響しにくい共有メモリ制御装置
を提供することを目的とする。SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a shared memory control device in which address switching time does not easily affect memory cycle time.
[発明の構成]
(課題を解決するための手段)
本発明は上記課題を解決するため1:″、複数のCPU
が時分割で同一のダイナミックメモリにアクセスできる
ようにした共有メモリ制御装置において、選択されるC
PUからのメモリアクセス要求を、メモリサイクルの終
了するクロックエツジにも受け付けてアドレス切換え信
号を切り換え、次のクロックエツジでメモリサイクルを
開始させることを特徴とするものである。[Structure of the Invention] (Means for Solving the Problems) In order to solve the above problems, the present invention provides: 1. A plurality of CPUs.
The selected C
It is characterized in that a memory access request from the PU is also accepted at the clock edge at which the memory cycle ends, the address switching signal is switched, and the memory cycle is started at the next clock edge.
(作用)
本発明は、ダイナミックメモリのプリチャージ時間(読
み出したメモリセルの内容を回復するのに必要な時間)
と、ダイナミックメモリへのアドレスは、メモリ動作状
態の終了時には不要であることに着目し、メモリ動作状
態の終了時にも、選択されるCPUからのメモリアクセ
ス要求を受け付け、そこでアドレス切換え信号を選択さ
れるCPU側に変えて、プリチャージ時間中にアドレス
信号を安定させ、次にメモリ動作状態に入るようにした
ものである。(Function) The present invention provides a dynamic memory precharge time (the time required to recover the contents of a read memory cell).
Focusing on the fact that the address to the dynamic memory is not required at the end of the memory operation state, it accepts a memory access request from the selected CPU even at the end of the memory operation state, and then selects an address switching signal. Instead of the CPU side, the address signal is stabilized during the precharge time and then the memory operation state is entered.
(実施例) 以下図面を参照して本発明の実施例を詳細に説明する。(Example) Embodiments of the present invention will be described in detail below with reference to the drawings.
第1図は本発明の一実施例を示すブロック図、第2図は
第1図のシーケンス制御の一例に係るタイミング図、第
3図は従来の共有メモリ制御装置のシーケンス制御に係
るタイミング図である。FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a timing diagram relating to an example of sequence control in FIG. 1, and FIG. 3 is a timing diagram relating to sequence control of a conventional shared memory control device. be.
即ち、第1図において、第1のCPUIのアドレス信号
及び第2のCPU2のアドレス信号はマルチプレクサ(
MUX)3に加えられ、このマルチプレクサ3の出力ア
ドレス信号はダイナミックメモリ(DRAM)4に加え
られる。前記第1のCPU1のステータス信号(CAD
S)及び前記第2のCPU2のステータス信号(DSO
・DSI)は共有メモリ制御装置5に加えられ、この共
有メモリ制御装置5には動作クロック(CL K)が加
えられる。前記共有メモリ制御装置5からの行アドレス
ストローブ信号(RAS)及び列アドレスストローブ信
号(CAS)は前記ダイナミックメモリ4に加えられ、
前記共有メモリ制御装置5からのアドレス切換え信号(
C/D)及び行/列切換え信号(R/C)は前記マルチ
プレクサ3に加えれる。而して、前記第1のCPU1及
び第2のCPU2が時分割で前記ダイナミックメモリ4
にアクセスできるように構成されている。That is, in FIG. 1, the address signal of the first CPUI and the address signal of the second CPU2 are sent to the multiplexer (
MUX) 3, and the output address signal of this multiplexer 3 is applied to a dynamic memory (DRAM) 4. The status signal (CAD
S) and the status signal (DSO
・DSI) is applied to the shared memory control device 5, and an operating clock (CLK) is applied to this shared memory control device 5. A row address strobe signal (RAS) and a column address strobe signal (CAS) from the shared memory controller 5 are applied to the dynamic memory 4;
The address switching signal from the shared memory control device 5 (
C/D) and row/column switching signals (R/C) are applied to the multiplexer 3. Thus, the first CPU 1 and the second CPU 2 access the dynamic memory 4 in a time-sharing manner.
configured for access.
前記ダイナミックメモリ4へのアドレスは、アドレスス
トローブ信号(RAC,CAS)の立下がりエツジでラ
ッチされるので、メモリサイクル終了時にアドレスは不
要である。アドレス切換え信号(C/D)は、第1のC
PUIと第2のCPU2の出力するアドレス信号を切り
換える。Since the address to the dynamic memory 4 is latched at the falling edge of the address strobe signal (RAC, CAS), no address is required at the end of the memory cycle. The address switching signal (C/D) is the first C/D.
The address signals output by the PUI and the second CPU 2 are switched.
共有メモリ制御装置5は、第1のCPUIと第2のCP
U2のステータス信号出力を受けて同者の要求を調停し
て、メモリアクセス用のタイミング信号を発生させ、ま
た、前記アドレス切換え信号(C/D)を生成する。The shared memory control device 5 has a first CPUI and a second CPU
Upon receiving the status signal output from U2, it mediates the requests of the same party, generates a timing signal for memory access, and also generates the address switching signal (C/D).
共有メモリ制御装置5の動作クロック(CL K)は、
第1.第2のCPUI、2のクロックと同期しており、
共有メモリ制御装置5は、各CPUI。The operating clock (CLK) of the shared memory control device 5 is
1st. It is synchronized with the clock of the second CPUI, 2,
The shared memory control device 5 includes each CPUI.
2から出力されるステータス信号出力を動作クロック(
CLK)の立上がりエツジでサンプルする。The status signal output from 2 is connected to the operating clock (
Sample on the rising edge of CLK).
第2図の実施例では、第1のCPU1からのステータス
信号(CADS)出力が時刻21でサンプルされ、アド
レス切換え信号(C/D)は0′になっているので、第
1のCPUI側にマルチプレクサ3は向いている。一般
にCPUは、ステータス信号(CADS)出力とほぼ同
時にアドレス信号を出力するので、ダイナミックメモリ
4へのアドレス信号は、時刻21で既に安定しており、
時刻21の動作クロック(CLK)の立上がりエツジで
即座に行アドレスストローブ信号(RAS)をアクティ
ブにしてメモリ動作状態に入ることができる。このアド
レスは、列アドレスストローブ信号’(−CAS)立下
がりまで保てばよいので、時刻23でアドレス切換え信
号(C/D)を変化させることに不都合はない。そのた
め、時刻23で第2の(:PU2からのステータス信号
(DSO・DS I)出力を受けつけて、第2のCPU
2側にマルチプレクサ3を向けてよい。切り換えた時刻
23の次の動作クロック(CLK)の立上がりエツジ(
時刻24)でメモリ動作状態に入るようにしているので
、プリチャージ時間は確保されている。−度、第2のC
PU2側に向いたアドレス切換え信号(で/D)はメモ
リ動作状態から抜けるとき(時刻26)で元に戻せばよ
い。In the embodiment shown in FIG. 2, the status signal (CADS) output from the first CPU 1 is sampled at time 21, and the address switching signal (C/D) is 0'. Multiplexer 3 is suitable. Generally, the CPU outputs the address signal almost simultaneously with the output of the status signal (CADS), so the address signal to the dynamic memory 4 is already stable at time 21.
At the rising edge of the operating clock (CLK) at time 21, the row address strobe signal (RAS) can be activated immediately to enter the memory operating state. Since this address only needs to be maintained until the fall of the column address strobe signal '(-CAS), there is no problem in changing the address switching signal (C/D) at time 23. Therefore, at time 23, the status signal (DSO/DSI) output from the second (:PU2) is accepted, and the second CPU
The multiplexer 3 may be directed to the 2 side. The rising edge of the next operating clock (CLK) at the switched time 23 (
Since the memory operation state is entered at time 24), precharge time is secured. - degree, second C
The address switching signal (/D) directed toward the PU2 side can be returned to its original state when exiting the memory operating state (time 26).
一方、第3図の従来例では、第1のCPUIのステータ
ス信号(CADS)出力をサンプルした時点(時刻31
)で、アドレス切換え信号(if:/D)を決めている
ので、アドレス切換え信号(C/D)が安定してからマ
ルチプレクサ3からのアドレス信号出力が安定するのを
待ってメモリ動作状態に入らなければならず、その分、
メモリサイクルタイムを長くする必要がある。ダイナミ
ックメモリ4のアクセスタイムの短かいものを使えば緩
和されるが、コストアップにつながる恐れがある。また
、第1のCPUIと第2のCPU2が対等である点は有
利といえるが、反面、両者ともにCPUがステータス信
号を出力してからメモリ動作状態を終えるまでの時間(
メモリアクセスタイム)が第2図の実施例より長くなる
ので、第1と第2のCPU1.2が対等に動く必要があ
る場合は別として、第2のCPU2を副プロセツサとし
て使う場合は、むしろ、第1のCPUIのメモリアクセ
スタイムを短かくとった方が有利である。更に、この場
合、第2のCPU2の速度が第1のCPUIに比べて遅
いものを使うことも考えられ、このときは、第2のCP
U2側のメモリアクセスタイムが、実質的に第1のCP
UIより1クロック分長いことが無関係になる。On the other hand, in the conventional example shown in FIG.
), the address switching signal (if:/D) is determined, so wait until the address switching signal (C/D) becomes stable and then the address signal output from multiplexer 3 becomes stable before entering the memory operating state. I have to, and that's it.
Memory cycle time needs to be increased. This problem can be alleviated by using a dynamic memory 4 with a short access time, but this may lead to an increase in cost. Furthermore, although it can be said that it is advantageous that the first CPU 2 and the second CPU 2 are on the same level, the time from when the CPU outputs the status signal to when the memory operation state ends (
Since the memory access time (memory access time) is longer than that of the embodiment shown in FIG. 2, it is rather , it is advantageous to shorten the memory access time of the first CPUI. Furthermore, in this case, it is possible to use a second CPU 2 whose speed is slower than that of the first CPU, and in this case, the speed of the second CPU 2 may be lower than that of the first CPU.
The memory access time on the U2 side is substantially the same as that of the first CP.
The fact that it is one clock longer than the UI becomes irrelevant.
第2図の実施例では、2つのCPUの例としたが、第2
のCPUをDMA(DirectMemory Ac
cess)コントローラなどの能動デバイスに変えても
よい。In the embodiment shown in FIG. 2, there are two CPUs, but the second
DMA (Direct Memory Ac)
cess) controller.
[発明の効果]
以上説明したように本発明によれば、アドレス切換え時
間が、ダイナミックメモリのプリチャージ時間に重なる
ので、メモリサイクルをこのために延長する必要がなく
、ダイナミックメモリに与えるアドレスのタイミングマ
ージンを確保しつつ、メモリのサイクルタイムを小さく
することができる。特に、第2のCPUの命令実行サイ
クルタイムが、このメモリ装置の最小サイクルタイムよ
り大きいか等しいときは、第2のCPUのみがメモリア
クセスを続けているときでも、アドレス切換え時間は、
そのCPUのアクセスタイムに影響せず、第1のCPU
と競合しているときは切換え時間がプリチャージ時間と
重なるので、第2のCPUのアクセスによる第1のCP
U側の待ちを最小にすることができる。[Effects of the Invention] As explained above, according to the present invention, the address switching time overlaps with the precharging time of the dynamic memory, so there is no need to extend the memory cycle for this purpose, and the timing of the address given to the dynamic memory can be adjusted. It is possible to reduce the memory cycle time while ensuring a margin. In particular, when the instruction execution cycle time of the second CPU is greater than or equal to the minimum cycle time of this memory device, the address switching time is
the first CPU without affecting the access time of that CPU.
When there is a conflict with the first CPU, the switching time overlaps with the precharge time, so the first CPU
Waiting on the U side can be minimized.
第1図は本発明の一実施例を示すブロック図、第2図は
第1図のシーケンス制御の一例に係るタイミング図、第
3図は従来の共有メモリ制御装置のシーケンス制御に係
るタイミング図である。
1・・・第1のCPU、2・・・第2のCPU、3・・
・マルチプレクサ、4・・・ダイナミックメモリ、5・
・・共有メモリ制御装置。FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a timing diagram relating to an example of sequence control in FIG. 1, and FIG. 3 is a timing diagram relating to sequence control of a conventional shared memory control device. be. 1...First CPU, 2...Second CPU, 3...
・Multiplexer, 4... Dynamic memory, 5.
...Shared memory control device.
Claims (1)
クセスできるようにした共有メモリ制御装置において、
選択されるCPUからのメモリアクセス要求を、メモリ
サイクルの終了するクロックエッジにも受け付けてアド
レス切換え信号を切り換え、次のクロックエッジでメモ
リサイクルを開始させることを特徴とする共有メモリ制
御装置。In a shared memory control device that allows multiple CPUs to access the same dynamic memory in a time-sharing manner,
A shared memory control device characterized in that it accepts a memory access request from a selected CPU at the clock edge at which a memory cycle ends, switches an address switching signal, and starts the memory cycle at the next clock edge.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9527890A JPH03292558A (en) | 1990-04-11 | 1990-04-11 | Shared memory controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9527890A JPH03292558A (en) | 1990-04-11 | 1990-04-11 | Shared memory controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03292558A true JPH03292558A (en) | 1991-12-24 |
Family
ID=14133310
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP9527890A Pending JPH03292558A (en) | 1990-04-11 | 1990-04-11 | Shared memory controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03292558A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1996001451A1 (en) * | 1994-07-04 | 1996-01-18 | Creative Design Inc. | Coprocessor system and auxiliary arithmetic function-carrying external memory |
-
1990
- 1990-04-11 JP JP9527890A patent/JPH03292558A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1996001451A1 (en) * | 1994-07-04 | 1996-01-18 | Creative Design Inc. | Coprocessor system and auxiliary arithmetic function-carrying external memory |
CN1097784C (en) * | 1994-07-04 | 2003-01-01 | 任天堂株式会社 | Coorperating processing system and outer memory means with assisting calculating function |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0167853B1 (en) | Personal computer having normal and high speed execution modes | |
KR100275407B1 (en) | Fast access to a shared resource on a computer bus | |
JPH04230544A (en) | Data processing apparatus for dynamically setting timing of dynamic memory system | |
JPH08272733A (en) | Dma controller | |
JPH08221319A (en) | Semiconductor memory device | |
JPH03292558A (en) | Shared memory controller | |
JPH03144990A (en) | Memory device | |
JP2580999B2 (en) | DMA controller | |
US20040034748A1 (en) | Memory device containing arbiter performing arbitration for bus access right | |
JPH0143392B2 (en) | ||
JP3509981B2 (en) | Image display control method and device | |
JP3314395B2 (en) | Memory controller | |
JPH0612313A (en) | Memory device | |
JPH04372030A (en) | Memory access system for processor | |
JPH05334183A (en) | Method for controlling memory access and memory controller | |
JP2001043127A (en) | Memory controller | |
JPH01293458A (en) | Circuit for securing access cycle in computer system | |
JPH0142017B2 (en) | ||
JPS6014435B2 (en) | Storage device | |
JP3389152B2 (en) | DRAM control circuit | |
JPH03214275A (en) | Semiconductor integrated circuit | |
JPS63271561A (en) | Dma control circuit | |
JPS63271647A (en) | Memory circuit | |
KR20000075258A (en) | SDRAM controller | |
JPH04246764A (en) | Data processor |