JPS5896359A - Writing and reading device for random access memory - Google Patents
Writing and reading device for random access memoryInfo
- Publication number
- JPS5896359A JPS5896359A JP19392481A JP19392481A JPS5896359A JP S5896359 A JPS5896359 A JP S5896359A JP 19392481 A JP19392481 A JP 19392481A JP 19392481 A JP19392481 A JP 19392481A JP S5896359 A JPS5896359 A JP S5896359A
- Authority
- JP
- Japan
- Prior art keywords
- data
- cpu
- bus
- ram
- address
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/16—Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
- G06F15/163—Interprocessor communication
- G06F15/167—Interprocessor communication using a common memory, e.g. mailbox
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multi Processors (AREA)
Abstract
Description
【発明の詳細な説明】
本発明は、2個の中央処理装置でランダムアクセスメモ
リを共有してデータの授受を行なう場合のランダムアク
セスメモリ書き込み読み出し装置に関し、特に簡単なハ
ードウェアで2個の中央処理装置から1個のランダムア
クセスメモリへ*S込み読み出しが可能なランダムアク
セスメモリ書き込み読み出し装置に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a random access memory writing/reading device for transmitting and receiving data by sharing a random access memory between two central processing units. The present invention relates to a random access memory write/read device capable of *S read/write from a processing device to one random access memory.
中央処理装置(以下CPUと略す)を2個以上用いる装
置においては、2個のCPUの間で情報のやりとりが必
要となる。この情報のやりとりには、2個のCPUの間
でランダムアクセスメモリ(以下RAMと略す)を共有
してデータの授受を行なう方法が多く用いられている。In a device that uses two or more central processing units (hereinafter abbreviated as CPU), it is necessary to exchange information between the two CPUs. For exchanging this information, a method is often used in which two CPUs share a random access memory (hereinafter abbreviated as RAM) to exchange data.
この方法はH速で大飯のデータの授受が比較的簡単なハ
ードウェアで実現できるという特徴を持つ。This method has the feature that it can transmit and receive large amounts of data at H speed using relatively simple hardware.
従来、2個のCPU0間でRAMを共有してデータの授
受を行なう場合には、RAMをどちらのCPUに接続す
るかを制御するアドレス及びデータバス切換えスイッチ
制御部を具備し、CPUがこの制御部の状態を読み込め
るハードウェアを具備している装置が用いられている。Conventionally, when data is exchanged by sharing a RAM between two CPUs, an address and data bus changeover switch control unit is provided to control which CPU the RAM is connected to, and the CPU performs this control. A device is used that is equipped with hardware that can read the state of the part.
第1図に従来の2個のCPUでRAA%を共有してデー
タの授受を行なうRAM書き込み読み出し装置の具体例
の基本の構成図を示す。(1)はCPU−A1+21は
CPU−B である。on 、 (12はそれぞれCP
U−A(1)、 B+2+のアドレスバス、(’+1
、 QQはそれぞn、 CP U−A(11,、B(
21のデータバスである。(3)はアドレス及びデータ
バスの切換えスイッチIIJa部テ、CP U−A(1
1,B(210) :I ントロールバスaS、αQか
らの信号に誹ってその状態が変えられ、1ビツトのフラ
グで実現できる。(6)はアドレスバス切換えスイッチ
で、RAM(71のアドレス線QをCPUのアドレスバ
スan 、 a2の一方と接続する。aυ、(L2のど
ちらと接続するかはバス切換えスイッチ(3)の状態に
誹り決まる。同じ誹うに(8月よデータバス切換えスイ
ッチで、RAM(7)のデータ線(ロ)をバス切換えス
イッチ(3)の状態によりCPUのデータバス(9)、
α0のどちらかと接続する。(4) 、 (51はそれ
ぞれCPU−A(11とB 121へバス切換えスイッ
チ(31の状態を読み込む制御部で、それぞれCPU
−A (11、B +2+のコントロールバスQ5 、
Mからの信号により制御される。一般的には、この続
み込みはバス切換えスイッチ(3)の出力とCPUのデ
ータバスの一部を接続することにより実現する。FIG. 1 shows a basic configuration diagram of a specific example of a conventional RAM write/read device in which two CPUs share RAA% and exchange data. In (1), CPU-A1+21 is CPU-B. on , (12 are each CP
U-A(1), B+2+ address bus, ('+1
, QQ are n, CPU U-A(11,, B(
21 data buses. (3) is the address and data bus selector switch IIJa section, CPU U-A (1
1, B (210): I The state is changed by the signals from the control buses aS and αQ, and can be realized with a 1-bit flag. (6) is an address bus changeover switch that connects the address line Q of RAM (71) to one of the CPU's address buses an and a2.Which of aυ and (L2 to connect to) depends on the state of the bus changeover switch (3). In the same way (August), the data bus selection switch switches the RAM (7) data line (b) to the CPU data bus (9), depending on the state of the bus selection switch (3).
Connect to either α0. (4) , (51 is a control unit that reads the status of the bus changeover switch (31) to CPU-A (11 and B 121), respectively.
−A (11, B +2+ control bus Q5,
Controlled by signals from M. Generally, this continuation is realized by connecting the output of the bus changeover switch (3) to a part of the data bus of the CPU.
上記のハードウェアで、CPU−AfllからCPU−
B (2)にデータの授受を行なう手順を示す。まずC
PU−A(IIはコントロールバス(至)に信号を出し
てバス切換えスイッチ(3)を制御し、アドレスバス切
換えスイ5チ(6)及びデータバス切換えスイッチ(3
)はアドレスバスαりとアドレス線(至)及びデータバ
ス(9)とデータ線α◆を接続する。すなわちRAM(
71はCPU−A(11に接続されたことになる。ここ
でCPU−A (11はCPU−B(21に送りたいデ
ータをRAM+7)に書き込むこの間CPU −B (
21は続み込み制御部(5)を通してバス切換えスイッ
チ(3)の状態を読み込んでCPU−A(1)がRAM
(7)を使用中であることがわかる。With the above hardware, from CPU-Aflll to CPU-
B (2) shows the procedure for exchanging data. First, C
PU-A (II) outputs a signal to the control bus (to) to control the bus changeover switch (3), and the address bus changeover switch (6) and data bus changeover switch (3).
) connects the address bus α and the address line (to) and the data bus (9) and the data line α◆. In other words, RAM (
71 is connected to CPU-A (11). Here, CPU-A (11 writes the data to be sent to CPU-B (RAM+7) to CPU-B (21).
21 reads the status of the bus changeover switch (3) through the continuation control unit (5), and the CPU-A (1) stores it in the RAM.
It can be seen that (7) is in use.
次にCPU−A(11がRAM(71へデータの書き込
みが終了するとコントロールバス(ト)に信号を出して
バス切換えスイッチ(3)を制御し、アドレスバス切換
えり線σ◆を接続する。すなわちRA M (7)はC
PU −B (21に接続されたことになる。この時C
PU−B(21は読み込み制御部(5)を通してバス切
換えスイッチ(3)の状態を読み込んでRA M (7
1がCPU−B+2+に接続されたことがわかる。これ
で、CPU−A(11がRAM+7)に書き込んだデー
タを使用できるわけである。CPU−B’ (z+から
CPU−A(11にデータを送る場合も上述と同様の手
順で行なわれる。以上のように従来の方式ではバス切換
えスイッチ(3)の状態をCPUに読み込むための読み
込み制御部(4)と(5)が必要であり、さらに(41
,、+51を制御するためのコントロール信号が必聾で
ある。Next, when the CPU-A (11) finishes writing data to the RAM (71), it sends a signal to the control bus (G) to control the bus changeover switch (3) and connect the address bus changeover line σ◆. RAM (7) is C
PU-B (will be connected to 21. At this time, C
The PU-B (21) reads the state of the bus changeover switch (3) through the read control unit (5) and then reads the state of the bus changeover switch (3) and transfers it to the RAM (7).
1 is connected to CPU-B+2+. The data written to CPU-A (11 RAM+7) can now be used. When sending data from CPU-B' (z+ to CPU-A (11), the same procedure as above is used. Control units (4) and (5) are required, and (41
, , +51 is required.
本発明は、上記2つの読み込み制御部と、さらにこれら
を制御するコントロール信号を必要としないで、2個の
CPUでRAMを共有してデータの授受を行なうことを
可能とするRAM書き込み読み出し装置を提供するもの
であり、特に、アドレス切換Aスイッチで選択されたア
ドレスバスとRAMのアドレス線を接続し、データバス
切換Aスイッチで選択されたデータバスとRAMのデー
タ線を接続し、CPUのデータバスの少なくとも1ビツ
トをプルアップまたはプルダウンし、tjl記RA M
に定められたアドレスに対して少なくとも1ビツトに“
OIIまたは1″を書き込み、このデータを読み出すこ
とにより2個のCPUの前記RAMへの書き込み読み出
し時期を調節するようにしたことを特徴とするものであ
る。The present invention provides a RAM write/read device that enables two CPUs to share RAM and exchange data without requiring the above-mentioned two read control units and further control signals to control them. In particular, it connects the address bus selected by the address switch A switch to the address line of the RAM, connects the data bus selected by the data bus switch A switch to the data line of the RAM, and transfers the data of the CPU. Pull up or pull down at least one bit of the bus and write RAM
At least 1 bit “
The present invention is characterized in that by writing OII or 1'' and reading this data, the writing and reading timings of the two CPUs to and from the RAM are adjusted.
以下、本発明の一実施例を図面に基づいて説明する。第
2図は本発明の基本構成図である。+11〜(3)及び
(6)〜Q6は第1図のものと同じであるので、説明を
省略する。そしてCPU −A (11、B +21の
データバス((1) 、 QGの少なくとも1本づつは
txi 、 aMjに示す様にプルアップ(またはプル
ダウン)される。Hereinafter, one embodiment of the present invention will be described based on the drawings. FIG. 2 is a basic configuration diagram of the present invention. Since +11 to (3) and (6) to Q6 are the same as those in FIG. 1, their explanations will be omitted. At least one of each of the data buses (1) and QG of CPU-A (11, B +21) is pulled up (or pulled down) as shown by txi and aMj.
上記ハードウェアでCPU−A (11からCPU−B
i21にデータの授受を行なう手順を示す。まずCPU
−A(1)はコントロールバス(至)に信号を出してバ
ス切換えスイッチ(3)を制御し、アドレスバス切換え
スイッチ(6)及びデータバス切換Aスイッチ(8)は
アトはCPLJ−B121に送りたいデータをRAM
(71に書き込む。さらにCPU−A(1)はRAM(
71の定められたアドレスに対し7て、データバス(9
1、QQがプルアップ(またはプルダウン)さねている
少なくとも1ビツトに“’o”(または“1”)を書き
込む。この間CPU−Bt2+はRA M (71の上
述の定められたアドレスを読み出ししようとすると、R
AM(71はCPU−’B(21に接続、されていない
ために、RAM(7)の上述の定めらtまたアドレスの
内容は読み出せず、プルアップgls(またはプルダウ
ン部)(至)でプルアップ(またはプルダウン)さrま
た少な(とも1個のデータ“1”(または“0”)が結
果として得らjる。すなわちCPU−B121はRA
M +71の上述の定められたアドレスの内容が読み出
せないことにより、CPU−A(11がRA M (7
)を使用中であることがわかる。次にCPU−A (1
1がRAM(7)へデータの書き込みが終了するとコン
トロールバス(ハ)に信号を出して(3)を制御し、ア
ドレスバス切換えスイッチ(6)及びデータバス切換え
スイッチ(8月よアドレスバス(ロ)とアドレス線(至
)及びデータバス萌とデータ線Q4とを接続する。With the above hardware, CPU-A (from 11 to CPU-B)
The procedure for sending and receiving data to i21 is shown below. First, the CPU
-A (1) sends a signal to the control bus (to) to control the bus changeover switch (3), and the address bus changeover switch (6) and data bus changeover A switch (8) send a signal to the CPLJ-B121. RAM the data you want
(Writes to 71. Furthermore, CPU-A (1) writes to RAM (
For the specified address of 71, the data bus (9
1. Write "'o" (or "1") to at least one bit that QQ is pulling up (or pulling down). During this time, when the CPU-Bt2+ tries to read the above-mentioned address of RAM (71),
Since AM (71) is not connected to CPU-B (21), the contents of the above-mentioned address of RAM (7) cannot be read, and the pull-up gls (or pull-down section) (to) When the pull-up (or pull-down) is performed, one data “1” (or “0”) is obtained as a result. That is, the CPU-B 121 is
Since the content of the above-determined address of M+71 cannot be read, CPU-A (11 is
) is in use. Next, CPU-A (1
When 1 finishes writing data to RAM (7), it sends a signal to the control bus (c) to control (3), and the address bus changeover switch (6) and the data bus changeover switch (address bus (ro) ) and the address line (to) and the data bus Moe and the data line Q4 are connected.
すなわちRAM (71はCPU−B(2)に接続さt
またことになる。この時、CPU−B121はRAM(
71の上述の定めらねたアドレスを読み出ししようとす
ると、RAM(7)はCPU−B(2目こ接続されてい
るため、RA M +7)の上述の定めらねたアドレス
の内容として少なくとも1個のデータ“θ″(または1
″)が結果として得られる。すなわちCPU−B(21
はRAM (7)の上述の定められたアドレスの内容が
読み出せることにより、CPU−B121がRAM(7
)を使用できることがわかる。That is, RAM (71 is connected to CPU-B (2)
It will happen again. At this time, the CPU-B121 uses the RAM (
When attempting to read the above-mentioned unspecified address of 71, RAM (7) reads at least 1 as the content of the above-mentioned unspecified address of CPU-B (since the second one is connected, RAM +7). data “θ” (or 1
″) is obtained as a result, i.e. CPU-B(21
The CPU-B 121 reads out the contents of the above-mentioned specified address in RAM (7).
) can be used.
CPU−B(21からCP[J −A (1)にデータ
を送る場合も上述と同様の手順で行なわれる。When data is sent from CPU-B (21) to CP[J-A (1), the same procedure as described above is performed.
上記で述べたR A M (7)の定められたアドレス
へのデータのWき込みはいづれかのCPUが一度行なっ
ておけば充分であるが、CPUがRAM +7)の定め
られたアドレスに対して、データバスがプルアップ部(
またはプルダウン)されている少なくとも1ビツトに“
0′°(または“1”)の書き込み動作を行ない、次に
同じアドレスを読み出して少なくとも1個のデータ″0
′′(または“1”)が得られた場合にRA M (7
)がその書き込み読み出し動作をしたCPUに接続され
ていることを知る方法もある。It is sufficient for any CPU to write the data to the specified address of RAM (7) mentioned above once, but if the CPU writes the data to the specified address of RAM +7). , the data bus has a pull-up section (
or pull-down) to at least one bit “
Perform a write operation of 0'° (or "1"), then read the same address and write at least one data "0".
'' (or “1”), RAM (7
) is connected to the CPU that performed the read/write operation.
また上記実施例かられかるように、第2図のハードウェ
ア構成だけで、RAMの定められたアドレスに対して、
データバスがプルアップ(またはプルダウン)さねてい
る少なくとも1ビツトに“0”(または“1”)を書き
込み、RAMの同一のアドレスのデータが読み出せて“
0”(または“1”)であるか、読み出せなくて1″(
または“0″)であるかを判別することにより、RAM
がどちらのCPUに接続されているかを知り、そのRA
Mへの書き込み読み出しの時期を調節することが可能と
なる。Also, as can be seen from the above embodiment, with only the hardware configuration shown in FIG.
By writing “0” (or “1”) to at least one bit that the data bus is pulling up (or pulling down), the data at the same address in the RAM can be read.
0” (or “1”), or it cannot be read and it is 1” (
or “0”).
Find out which CPU is connected to that RA
It becomes possible to adjust the timing of writing to and reading from M.
以上の説明かられかるように、本発明のRAM書き込み
読み出し装置によれば、より少ない/A−ドウエアによ
り2個のCPU間でRAMを共有して、RAMへの書き
込み読み出しが行なλるものであり、工業上極めて有益
である。As can be seen from the above description, according to the RAM writing/reading device of the present invention, RAM can be shared between two CPUs and writing/reading to/from RAM can be performed with less /A-ware. Therefore, it is extremely useful industrially.
第1図は従来の2個のCPUを使用したRAM書き込み
読み出し装置の基本構成図、第2図は本発明による2個
のCPUを使用したRAM書き込み読み出し装置の一実
施例の基本構成図である。
(1)・・・CPU−A、12+・・・CPU−B、+
31・・・アドレス及びデータバス切換えスイッチ制卸
部、(6)・・・アドレスバス切換えスイッチ、(7)
・・・RAM、(3)・・・データバス切換えスイッチ
、(Q) QQ−・・CPLI−A、Bのデータバス、
αυ側・・・CPU−A、Bのアドレスバス、口・・・
RAMのアドレス線、α尋・・・RAMのデータ線、(
至)QQ・・・CPU−A 、 Bのコントロールバス
、αη(至)・・・プルアップ部(またはプルダウン部
)
代理人 森本義弘
第1図
q
第?図FIG. 1 is a basic configuration diagram of a conventional RAM writing/reading device using two CPUs, and FIG. 2 is a basic configuration diagram of an embodiment of a RAM writing/reading device using two CPUs according to the present invention. . (1)...CPU-A, 12+...CPU-B, +
31...Address and data bus changeover switch control section, (6)...Address bus changeover switch, (7)
...RAM, (3)...data bus selector switch, (Q) QQ-...data bus of CPLI-A, B,
αυ side...CPU-A, B address bus, port...
RAM address line, α fathom...RAM data line, (
To) QQ...CPU-A, B control bus, αη (to)...Pull-up section (or pull-down section) Agent Yoshihiro Morimoto Figure 1 q No.? figure
Claims (1)
スバスのうち1個のアドレスバスを制御信号により選択
するアドレスバス切換えスイッチと、前記2個の中央処
理装置のデータバスのうち1個のデータバスを制御信号
により選択するデータバス切換えスイッチと、前記アド
レスバス切換えスイッチと前記データバス切換えスイッ
チを制御するスイッチ制御部と、ランダムアクセスメモ
リとを具備し、前記アドレスバス切換えスイッチで選択
さjたアドレスバスと前記ランダムアクセスメモリのア
ドレス線を接続]7、前記データバス切換えスイッチで
選択されたデータバスと前記ランダムアクセスメモリの
データ線を接続し、前記中央処理装置のデータバスの少
なくとも1ビツトをプルアップまたはプルダウンし、前
記ランダムアクセスメモリの定められたアドレスに対し
て少なくとも1ビツトに“0”または“1”を書き込み
、このデータを読み出すことにより2個の前記中央処理
装置の前記ランダムアクセスメモリへの書き込み読み出
し時期を調節するようにしたランダムアクセスメモリ書
き込み読み出し装置。1. Two central processing units, an address bus changeover switch that selects one address bus of the two CPU address buses by a control signal, and one of the data buses of the two central processing units. a data bus changeover switch that selects one data bus by a control signal; a switch control section that controls the address bus changeover switch and the data bus changeover switch; and a random access memory, the selected data bus being selected by the address bus changeover switch. 7. Connect the data bus selected by the data bus changeover switch and the data line of the random access memory, and connect at least one of the data buses of the central processing unit. By pulling up or down one bit, writing "0" or "1" in at least one bit to a predetermined address of the random access memory, and reading this data, A random access memory write/read device that adjusts the timing of reading/writing to a random access memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP19392481A JPS6051150B2 (en) | 1981-12-01 | 1981-12-01 | Random access memory write/read device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP19392481A JPS6051150B2 (en) | 1981-12-01 | 1981-12-01 | Random access memory write/read device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS5896359A true JPS5896359A (en) | 1983-06-08 |
JPS6051150B2 JPS6051150B2 (en) | 1985-11-12 |
Family
ID=16315999
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP19392481A Expired JPS6051150B2 (en) | 1981-12-01 | 1981-12-01 | Random access memory write/read device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6051150B2 (en) |
-
1981
- 1981-12-01 JP JP19392481A patent/JPS6051150B2/en not_active Expired
Also Published As
Publication number | Publication date |
---|---|
JPS6051150B2 (en) | 1985-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4716525A (en) | Peripheral controller for coupling data buses having different protocol and transfer rates | |
US4380798A (en) | Semaphore register including ownership bits | |
JPS6126103B2 (en) | ||
US4594654A (en) | Circuit for controlling external bipolar buffers from an MOS peripheral device | |
US5428801A (en) | Data array conversion control system for controlling conversion of data arrays being transferred between two processing systems | |
JPS5896359A (en) | Writing and reading device for random access memory | |
US5566350A (en) | Information device for providing fast data transfer with minimum overhead | |
JPH0715670B2 (en) | Data processing device | |
JP3266610B2 (en) | DMA transfer method | |
US4330842A (en) | Valid memory address pin elimination | |
SU1543415A1 (en) | Device for interfacing two computers | |
JPH03219359A (en) | Interface circuit | |
JP2610971B2 (en) | Direct memory access method between central processing units | |
JP2563807B2 (en) | Direct memory access control circuit | |
JPS6352259A (en) | Data communication method | |
JPH0813042B2 (en) | Direction control method | |
JPS58213336A (en) | Communication controller | |
JPH1031647A (en) | Cpu board having data bus width conversion control circuit | |
JPH04333954A (en) | Information processor | |
JPS6345661A (en) | Buffer memory circuit | |
JPS60117847A (en) | Data control circuit | |
JPH0664561B2 (en) | Simultaneous writing circuit | |
JPS61264419A (en) | Bus connection system using capacitance memory | |
JPH02171949A (en) | Dma transfer system | |
JPH04120648A (en) | Common bus connecting device |