JPS6289161A - Access method for single memory through plural cpu - Google Patents
Access method for single memory through plural cpuInfo
- Publication number
- JPS6289161A JPS6289161A JP23055585A JP23055585A JPS6289161A JP S6289161 A JPS6289161 A JP S6289161A JP 23055585 A JP23055585 A JP 23055585A JP 23055585 A JP23055585 A JP 23055585A JP S6289161 A JPS6289161 A JP S6289161A
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- address
- dram
- cpus
- range
- 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
Landscapes
- Multi Processors (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、複数のCPU (中央処理装置)にて単一
のメモリを共有して使用する際のアクセス方法に関する
。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an access method when a single memory is shared and used by a plurality of CPUs (central processing units).
近年メモリとしてDRAM (ダイナミック・ランダム
・アクセス・メモリ)が使用されることが多いが、DR
AMは漏洩電流による記憶内容の破壊を防止するため、
周期的に記憶内容の書換え(リフレッシュ)を行う必要
があり、このリフレッシュを行うDRAMコントローラ
が不可欠である。DRAM (dynamic random access memory) is often used as memory in recent years, but DR
In order to prevent the memory contents from being destroyed due to leakage current, AM
It is necessary to periodically rewrite (refresh) the memory contents, and a DRAM controller that performs this refresh is essential.
ところで近年、複数系統、たとえば2系統のポートを有
し、それぞれのポートから同一のDMA?lをコントロ
ール可能なりRAMコントローラが実用化されている(
たとえば、米国Intel Corp製DRAMコント
ローラ8207等)。By the way, in recent years, there are multiple systems, for example, two systems of ports, and each port has the same DMA? A RAM controller that can control l has been put into practical use (
For example, the DRAM controller 8207 manufactured by Intel Corp.).
このようなI)RAMコントローラは2系統のポートを
有しているので、1個のDRAMを2系統の装置にて共
有してアクセスすることが可能である。そのような具体
的用途としては、たとえばCPUと表示装置のコントロ
ーラとで1個のDRA?Iを共有し、CPUにてデータ
処理を行いつつ表示装置にデータを表示するような用途
があり、このような場合にはプログラムの実行に伴うデ
ータの変化の様子が容易に観察し得る。Since such an I) RAM controller has two systems of ports, one DRAM can be shared and accessed by two systems of devices. As a specific example of such a use, for example, one DRA may be used as a CPU and a controller for a display device. There are applications in which data is displayed on a display device while data processing is performed by a CPU by sharing I, and in such a case, it is easy to observe changes in data as a program is executed.
ところで、上述の如きDRAMコントローラを利用すれ
ば、2個のCPUにて1個のDRA?1を共有すること
が可能であり、たとえば1個のCPUにてデータの入力
処理を行いつつ、他の1個のCPUにてデータの処理を
行う、等の並行処理が可能となる。しかし、両方のCP
Uのプログラムがそれぞれ異なり、またこれらのプログ
ラムが共に両方のCPUに共有されるDRAMに外部か
らロードされる場合には、当然ながらそれぞれをDRA
Mの異なるアドレスに格納せねばならない。しかし、C
PUによっては、特定の目的、たとえば割込み処理等の
際に特定のアドレスを使用するように予め決められてい
るCPt1が存在する。従って、このような特定のアド
レスを特定の目的に使用するように予め決められている
CPυ同±2個にて、前述のような2系統のポートを有
するDRAMコントローラを使用して1個のDRAMを
共有する構成とした場合には、1個のDRA?Iの同一
のアドレスを両方のCPUが使用する可能性が生じるた
め、実用化には難点が生じる。By the way, if you use the above-mentioned DRAM controller, you can use 2 CPUs with 1 DRA? 1 can be shared, and parallel processing such as, for example, performing data input processing using one CPU while processing data using another CPU becomes possible. However, both CP
If the programs in U are different, and if these programs are both loaded externally into DRAM shared by both CPUs, then it is natural that they should be
must be stored at different addresses in M. However, C
Depending on the PU, there is a CPt1 that is predetermined to use a specific address for a specific purpose, such as interrupt processing. Therefore, with ±2 CPυ that are predetermined to use such specific addresses for specific purposes, one DRAM is If the configuration is such that one DRA? Since there is a possibility that both CPUs use the same address of I, there is a problem in practical implementation.
本発明は上述の如き事情に鑑みてなされたものであり、
それぞれが特定の用途に特定範囲のアドレスを使用する
ように構成されている2個のCPUにて1個のDRAM
を共有する場合に、DRAMコントローラと一方のCP
Uとを接続するアドレスラインの一部のラインの信号を
変換することにより、そのCPUのアドレスを他方のC
PUが使用する特定範囲のアドレスとは異なるアドレス
に置換してDRAMにアクセスする構成としている。こ
のような構成を採ることにより、同一範囲のアドレスを
それぞれ特定の用途に使用するように構成されているC
PU同±同価2個も1個のDRAMを共有することを容
易に可能とした複数CPUによる単一メモリのアクセス
方法を提供するものである。The present invention has been made in view of the above circumstances,
One DRAM with two CPUs, each configured to use a specific range of addresses for a specific purpose.
If the DRAM controller and one CP
By converting the signals of some of the address lines connecting the CPU to the other CPU,
The configuration is such that the address in the specific range used by the PU is replaced with an address different from that used to access the DRAM. By adopting such a configuration, C
The present invention provides a method for accessing a single memory by a plurality of CPUs, which allows two PUs of the same ± same value to easily share one DRAM.
本発明は、1個のDRAM (ダイナミック・ランダム
・アクセス・メモリ)をアクセスするための複数系統の
ポートを有するDRAMコントローラに各別のアドレス
ラインにて接続され、それぞれ特定のアドレスの範囲を
特定用途に使用すべく構成された複数個のCrtlにて
前記DRAMを共有する複数CPUによる単一メモリの
アクセス方法において、前記複数個のCPUの内の一の
CPUのアドレスを他のCPUが使用する特定のアドレ
スの範囲とは異なる範囲のアドレスに置換して前記DR
AMに与えるべく、前記一のCPUのアドレスラインの
一部のラインの信号を変換して前記メモリに与えること
を特徴とする。The present invention is connected to a DRAM controller having multiple ports for accessing one DRAM (dynamic random access memory) through separate address lines, and each has a specific address range for a specific purpose. In the method for accessing a single memory by a plurality of CPUs sharing the DRAM in a plurality of Crtl configured to be used for The address range of the DR is replaced with an address in a range different from that of the DR.
The present invention is characterized in that signals on some of the address lines of the one CPU are converted and applied to the memory in order to be applied to the AM.
以下、本発明をその実施例を示す図面に基づいて詳述す
る。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below based on drawings showing embodiments thereof.
第1図は本発明方法を実施するための回路構成の一例を
示している。FIG. 1 shows an example of a circuit configuration for implementing the method of the present invention.
図中1,2は同一規格のCPUであり、本実施例では共
に”oooooo’から“003FFH”までのアドレ
スは割込み処理のためのヘクタアドレスとして予め定め
られている。また、両CPU1.2はそれぞれメモリと
のアクセスのためにA0からA19までの20ビツトの
アドレスラインからなるアドレスバス11.21を有し
ている他、DOから015までの16ビツトの共通のデ
ータバス5にてダイナミック・ランダム・アクセス・メ
モリ (以下、DRAMという)4と接続されている。In the figure, 1 and 2 are CPUs of the same standard, and in this embodiment, the addresses from "oooooo" to "003FFH" are predetermined as hector addresses for interrupt processing. Each has an address bus 11.21 consisting of 20-bit address lines from A0 to A19 for accessing the memory, as well as a common data bus 5 of 16 bits from DO to 015 for dynamic random - Connected to access memory (hereinafter referred to as DRAM) 4.
DRAM 4をコントロールし、あるいはリフレッシュ
するためのメモリコントローラ(以下、DRAMコント
ローラという)3は20ビツトのポートを2系統有して
おり、これらに上述のCPt11.2それぞれのアドレ
スバス11.21が接続されている。またこのDRAM
コントローラ3と両CPυ1,2との間はコントロール
ライン12.22にてそれぞれ接続されており、両CP
UI 、 2によるデータのDRAM 4への書込み及
びデータの読出しの際の同期信号等の授受を行っている
。The memory controller (hereinafter referred to as DRAM controller) 3 for controlling or refreshing the DRAM 4 has two systems of 20-bit ports, to which the address buses 11.21 of the above-mentioned CPt 11.2 are connected. has been done. Also this DRAM
Controller 3 and both CPυ1 and 2 are connected through control lines 12 and 22, respectively, and both CPυ
The UI 2 sends and receives synchronization signals and the like when writing data to the DRAM 4 and reading data.
叶へM4は前述の如くデータバス5にて両CPt1l、
2と接続され、またアドレスバス6にてDRAMコント
ローラ3によりコントロールされ、リフレフシュされる
。To Kano, M4 connects both CPt1l and CPt1l on data bus 5 as mentioned above.
2, and is controlled and refreshed by the DRAM controller 3 via the address bus 6.
さて第1図に示す回路構成においては、CPUIの20
ビツトのアドレスバス11の内、上位の2ピント、即ち
A19. AlBの両アドレスラインはCPUIとは切
離されていて、ハイレベル(具体的には、+5ボルト)
の信号が与えられている。このような構成を採ることに
より、CPUからアドレスバス12に出力された“0O
OOOH”〜“3FFFFH”の範囲のアドレスはDR
AMコントローラ3に入力された時点では’C00OO
H2〜“FFFFFH″の範囲に置換される。換言すれ
ば第2図に示すように、CPUIにおけるooooon
”〜″3FFFFH”の範囲のアドレスはDRAM d
上では“cooooH”〜@FFFFFH″の範囲のア
ドレスに相当し、DRAM 4の”ooooon’〜“
3FFFFH”の範囲のアドレスはCPU2のみが使用
することになる。Now, in the circuit configuration shown in Figure 1, the CPU
The upper two pins of the bit address bus 11, namely A19. Both address lines of AlB are separated from the CPUI and are at high level (specifically, +5 volts).
signal is given. By adopting such a configuration, “0O” output from the CPU to the address bus 12
Addresses in the range ``OOOH'' to ``3FFFFH'' are DR.
'C00OO when input to AM controller 3
It is replaced in the range of H2 to "FFFFFFH". In other words, as shown in FIG.
Addresses in the range “~”3FFFFH” are DRAM d
In the above example, it corresponds to the addresses in the range “cooooH” to “@FFFFFH”, and “oooooon’ to “”
Addresses in the range 3FFFFH" are used only by the CPU 2.
従って、CPUIのプログラムエリアにはC00OOH
”〜“FFFFFH”の範囲のアドレスを使用しないよ
うにすれば、同一のアドレス“oooooo”〜“00
3FFH”を割込み処理のためのベクタアドレスとして
使用する両CPUI、2にて1個のDRAM4を共有す
ることが容易に可能となる。Therefore, the CPU program area contains C00OOH.
” to “FFFFFFH”, the same address “oooooo” to “00
3FFH'' as a vector address for interrupt processing, it becomes possible for both CPUs 2 to easily share one DRAM 4.
以上のように本発明によれば、特定の用途のために固定
されたアドレスを使用するような規格の複数個のCPU
にて1個のDRAMを共有可能であり、複数のCPUを
より小数のDRAM及びDRAMコントローラにて使用
することが可能となる。As described above, according to the present invention, a plurality of CPUs of a standard that uses a fixed address for a specific purpose
One DRAM can be shared by multiple CPUs, and a smaller number of DRAMs and DRAM controllers can be used by multiple CPUs.
なお、上記実施例では、2個のCPUにて1個のDRA
Mを共有する構成とじてか、CPUが3個以上の場合に
も本発明が適用可能であることは勿論である。また上記
実施例では、2個のCPUは同一規格のものを使用して
いるので、両CPUが特定の用途に使用する特定範囲の
アドレスは同一範囲となっているが、それぞれ異なる範
囲のアドレスを使用するような規格のCPUを使用する
場合にも、信号を変換するアドレスラインを適宜に選択
すれば、上述同様の効果は容易に達成し得ることは勿論
である。Note that in the above embodiment, two CPUs operate one DRA.
It goes without saying that the present invention is applicable not only to a configuration in which M is shared, but also to a configuration in which there are three or more CPUs. Furthermore, in the above embodiment, since the two CPUs use the same standard, the specific range of addresses used by both CPUs for specific purposes is the same range, but they each use addresses in different ranges. It goes without saying that the same effect as described above can be easily achieved even when using a CPU of the same standard as that used in the present invention, by appropriately selecting the address line for converting the signal.
【図面の簡単な説明】
図面は本発明の実施例を示すものであり、第1図は本発
明が実施される回路のブロック図、第2図は2個のCP
U及び1個のメモリのアドレスの関係を示す模式図であ
る。
1.2・・・CPU 3・・・oRu+コントロ
ーラ4・・・DRAM[BRIEF DESCRIPTION OF THE DRAWINGS] The drawings show an embodiment of the present invention, and FIG. 1 is a block diagram of a circuit in which the present invention is implemented, and FIG. 2 is a block diagram of a circuit in which the present invention is implemented.
FIG. 3 is a schematic diagram showing the relationship between addresses of U and one memory. 1.2...CPU 3...oRu+controller 4...DRAM
Claims (1)
ス・メモリ)をアクセスするための複数系統のポートを
有するDRAMコントローラに各別のアドレスラインに
て接続され、それぞれ特定のアドレスの範囲を特定用途
に使用すべく構成された複数個のCPUにて前記DRA
Mを共有する複数CPUによる単一メモリのアクセス方
法において、 前記複数個のCPUの内の一のCPUのアドレスを他の
CPUが使用する特定のアドレスの範囲とは異なる範囲
のアドレスに置換して前記DRAMに与えるべく、前記
一のCPUのアドレスラインの一部のラインの信号を変
換して前記メモリに与えることを特徴とする複数CPU
による単一メモリのアクセス方法。[Claims] 1. Connected to a DRAM controller having multiple ports for accessing one DRAM (Dynamic Random Access Memory) through separate address lines, each having a specific address. A plurality of CPUs are configured to use the range for a specific purpose.
In the single memory access method by multiple CPUs sharing M, the address of one of the multiple CPUs is replaced with an address in a range different from the specific address range used by the other CPUs. A plurality of CPUs, characterized in that signals of some of the address lines of the one CPU are converted and applied to the memory in order to be applied to the DRAM.
How to access a single memory by.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP23055585A JPS6289161A (en) | 1985-10-15 | 1985-10-15 | Access method for single memory through plural cpu |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP23055585A JPS6289161A (en) | 1985-10-15 | 1985-10-15 | Access method for single memory through plural cpu |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6289161A true JPS6289161A (en) | 1987-04-23 |
Family
ID=16909590
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP23055585A Pending JPS6289161A (en) | 1985-10-15 | 1985-10-15 | Access method for single memory through plural cpu |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6289161A (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS55134463A (en) * | 1979-04-04 | 1980-10-20 | Toshiba Corp | Multiprocessor |
-
1985
- 1985-10-15 JP JP23055585A patent/JPS6289161A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS55134463A (en) * | 1979-04-04 | 1980-10-20 | Toshiba Corp | Multiprocessor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5317709A (en) | Microcomputer including memory controller for DRAM | |
JPH0218780A (en) | Refresh circuit | |
US4601018A (en) | Banked memory circuit | |
JP2007095054A (en) | Arbitration for memory device by command | |
JPS6289161A (en) | Access method for single memory through plural cpu | |
KR20020090907A (en) | Embedded memory access method and system for application specific integrated circuits | |
US6425020B1 (en) | Systems and methods for passively transferring data across a selected single bus line independent of a control circuitry | |
KR950009451A (en) | Data processing system | |
EP0487901A2 (en) | Disk controller using a video ram | |
KR0164810B1 (en) | Dram having an improved page hit ratio | |
JPH01227299A (en) | Refresh control system for memory | |
JP2005267369A (en) | Memory control device and method | |
JPH04314095A (en) | Data processing system | |
JP3061810B2 (en) | Dynamic RAM refresh control method | |
JPH01245350A (en) | Wait control system | |
US6035372A (en) | Dynamic RAM in a microprocessor system | |
JPH0370052A (en) | Address translation circuit, memory controller, information processor, and recorder | |
KR960025066A (en) | Dual port memory system using commercial DRAM | |
JPS6139298A (en) | Control device of dynamic random access memory | |
KR19980056135A (en) | Synchronous DRAM with Dual Port | |
JPH0525331B2 (en) | ||
JPS6231091A (en) | System for controlling refresh of dynamic memory | |
JPS63229694A (en) | Refreshment controller | |
JP2004152420A (en) | Semiconductor device | |
JPS62295091A (en) | Display circuit |