JPH0353318A - Two-port memory - Google Patents

Two-port memory

Info

Publication number
JPH0353318A
JPH0353318A JP18729489A JP18729489A JPH0353318A JP H0353318 A JPH0353318 A JP H0353318A JP 18729489 A JP18729489 A JP 18729489A JP 18729489 A JP18729489 A JP 18729489A JP H0353318 A JPH0353318 A JP H0353318A
Authority
JP
Japan
Prior art keywords
timing control
computer
area
port memory
data
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
JP18729489A
Other languages
Japanese (ja)
Inventor
Satoru Tokisaki
時崎 悟
Reiko Horibatake
堀畑 令子
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.)
NEC Corp
NEC Robotics Engineering Ltd
Original Assignee
NEC Corp
NEC Robotics Engineering 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 NEC Corp, NEC Robotics Engineering Ltd filed Critical NEC Corp
Priority to JP18729489A priority Critical patent/JPH0353318A/en
Publication of JPH0353318A publication Critical patent/JPH0353318A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify the constitution of a computer system together with reduction of the cost by providing a timing control data store area (timing control area) to a 2-port memory in addition to a transfer data store area. CONSTITUTION:A 2-port memory 11 includes a transfer data store area 14 where the 1st and 2nd computers 12 and 13 write and read the transfer data independently of each other and a timing control area 15 where the write/read timing of both computers 12 and 13 are controlled. These two areas 14 and 15 are working independently of each other. Therefore the timing control data can be written into the independent area 15 of the memory 11. As a result, a timing control circuit can be omitted and the constitution of a computer system is simplified together with reduction of the cost.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、2つのコンピュータが互いに独立してデータ
の書き込みと読み出しを行うことのできる2ポートメモ
リに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a two-port memory that allows two computers to write and read data independently of each other.

〔従来の技術〕[Conventional technology]

2つのコンピュータが共有できる2ボートメモリでは、
双方の読み書きのタイミングを制御することが必要であ
り、従来からこのために専用のタイミング制御回路が設
けられていた。
With 2-board memory that can be shared by two computers,
It is necessary to control the timing of reading and writing on both sides, and a dedicated timing control circuit has conventionally been provided for this purpose.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

このように、2ポートメモリについてはこれを動作させ
るためにハードウエアからなるタイミング制御回路が必
要であり、コンピュータシステムの構或を複雑にする一
因となっていた。
As described above, the two-port memory requires a timing control circuit consisting of hardware to operate, which is one of the causes of complicating the structure of the computer system.

そこで本発明の目的は、このようなタイミング制御回路
を不要とすることのできる2ボートメモリを提供するこ
とにある。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a two-boat memory that can eliminate the need for such a timing control circuit.

〔課題を解決するための手段〕[Means to solve the problem]

本発明では、(i)2つのコンピュータが互いに独立し
て転送用データの書き込みと読み出しを行うために設け
られた転送用データ格納領域と、(11)これらのコン
ピュータの書き込みと読み出しのタイミングを制御する
タイミング制御用データを格納するタイミング制御用デ
ータ格納領域とを2ポートメモリに具備させる。
The present invention provides (i) a transfer data storage area provided for two computers to write and read transfer data independently of each other, and (11) control the timing of write and read by these computers. The two-port memory is provided with a timing control data storage area for storing timing control data.

すなわち本発明ではタイミング制御用のデータを2ポー
トメモリ内の独立した領域に書き込むことにして、上述
した目的を達戒する。
That is, the present invention achieves the above-mentioned purpose by writing timing control data into independent areas within the two-port memory.

〔実施例〕〔Example〕

以下、実施例につき本発明を詳細に説明する。 Hereinafter, the present invention will be explained in detail with reference to Examples.

第1図は本発明の一実施例における2ボートメモリを使
用したコンピュータシステムの構戊を表わしたものであ
る。本実施例で使用する2ポートメモリ11には、第1
および第2のコンピュータl2、13が互いに独7立し
て転送用データの書き込みと読み出しを行うために設け
られた転送用データ格納領域14と、これらのコンピュ
ータ12、13の書き込みと読み出しのタイミングを制
御するタイミング制御用データを格納したタイミング制
御エリアl5とがそれぞれ独立した領域として設けられ
ている。
FIG. 1 shows the structure of a computer system using two-board memory in one embodiment of the present invention. The two-port memory 11 used in this embodiment includes a first
and a transfer data storage area 14 provided for the second computers 12 and 13 to write and read transfer data independently of each other, and the write and read timings of these computers 12 and 13. A timing control area l5 storing timing control data to be controlled is provided as an independent area.

第2図はこの2ポートメモリへのデータの書き込みが行
われる際の手順を表わしたものである。
FIG. 2 shows the procedure for writing data into this two-port memory.

第1のコンピュータ12が2ポートメモリ11に対して
データを書き込む場合、このコンピュータ12は2ポー
トメモリ11内のタイミング制御エリア15を読み、第
2のコンピュータl3がこのメモリに対してどのような
処理を行っているかを判断する(第2図ステップの)。
When the first computer 12 writes data to the 2-port memory 11, this computer 12 reads the timing control area 15 in the 2-port memory 11, and the second computer 13 determines what processing to do with this memory. (step in Figure 2).

タイミング制御エリア15には、次の5つの状態のいず
れかを示すタイミング制御用データが格納されている。
The timing control area 15 stores timing control data indicating one of the following five states.

(i)2ボートメモリ11はいずれのコンピュータl2
、13からもアクセスされていない。
(i) The two-board memory 11 is connected to either computer l2.
, 13 has not been accessed.

( ii )第1のコンピュータl2が2ボートメモリ
l1に書き込み中。
(ii) The first computer l2 is writing to the two-board memory l1.

( iii )第2のコンピュータ13が2ポートメモ
リl1に書き込み中。
(iii) The second computer 13 is writing to the 2-port memory l1.

(iv)第1のコンピュータ12による2ボートメモリ
11への書き込みが完了。
(iv) Writing to the two-board memory 11 by the first computer 12 is completed.

(V)第2のコンピュータ13による2ポートメモリ1
1への書き込みが完了。
(V) 2-port memory 1 by second computer 13
Writing to 1 is complete.

今、第lのコンピュータ12が第2のコンピュータ13
に対してデータの転送を行うものとする。第1のコンピ
ュータ12はステップ■で前記した(i)の状態と判別
したとき(Y〉、この2ポートメモリl1の転送用デー
タ格納領域14に対してデータの書き込みを行うことが
できる。この場合、第1のコンピュータl2は2ポート
メモリ1.1にデータを書き込む前にタイミング制御エ
リア15に前記した( ii )の状態を示すデータを
書き込む(ステップ■〉。そして、その直後に再度、タ
イミング制御エリア15を読み(ステップ■)、それが
今書いたデータであれば(Y)、第lのコンピュータ1
2が2ボートメモリ11の使用権を獲得したと判断する
。そして、実際に2ポートメモリ11へのデータの書き
込みを開始する(ステップ■)。第1のコンピュータ1
2は、この書き込みが終了した時点でタイミング制御エ
リア15に対して前記した( iv )の状態を示すデ
ータを書いて(ステップ■)、処理を終了させる(エン
ド)。
Now, the l-th computer 12 is the second computer 13
Data will be transferred to. When the first computer 12 determines the state (i) described above in step (2) (Y), it can write data to the transfer data storage area 14 of the 2-port memory l1. In this case , the first computer l2 writes data indicating the state (ii) described above into the timing control area 15 before writing data to the two-port memory 1.1 (step ■). Immediately after that, the timing control is performed again. Read area 15 (step ■), and if it is the data you just wrote (Y), the lth computer 1
2 has acquired the right to use the 2-board memory 11. Then, writing of data to the two-port memory 11 is actually started (step ■). first computer 1
2 writes data indicating the state of (iv) described above to the timing control area 15 at the time when this writing is completed (step ■), and ends the process (end).

なお、ステップので2ポートメモリ11が前記した(i
)以外の場合であった場合には、(i)の状態になるま
で第1のコンピュータ12はデータの書き込みを待機す
ることになる(ステップ■;N)。同様に、ステップ■
で第2のコンビュータl3と書き込みが競合して使用権
を獲得できなかったような場合には(N)、ステップの
に戻って(i)の状態になるまで第1のコンピュータ1
2はデータの書き込みを待機することになる。
Note that the 2-port memory 11 in step (i
), the first computer 12 waits to write data until the state (i) is reached (step 2; N). Similarly, step ■
If the right to use could not be acquired due to writing conflict with the second computer 13 (N), return to step 1 and write to the first computer 1 until the state of (i) is reached.
2 will wait for data to be written.

第3図は、第1のコンピュータが2ポートメモリにデー
タを書き込んだ後に第2のコンピュータがこのデータを
読み出す場合の動作を表わしたものである。
FIG. 3 shows the operation when the second computer reads data after the first computer writes data to the two-port memory.

第2のコンピュータ13は、2ボートメモリ11内のタ
イミング制゜御エリア15を読み、前記した( iv 
>の状態であったときには読み出すべきデニタが存在す
るものと判断する(第3図ステップ■;Y)。そして、
第2のコンピュータ13はこの転送用データ格納領域1
4に書き込まれたデータの読み出しを行う(ステップ■
)。第2のコンピュータl3は、この読み出しが終了し
た時点で、タイミング制御エリア15に前記した(l)
の状態を表わしたデータの書き込みを行う(ステップ■
)。ステップのにおいて読み出すべきデータがないと判
別したときには(N)、読み出しの処理を行わない。
The second computer 13 reads the timing control area 15 in the two-board memory 11 and performs the above (iv)
>, it is determined that there is a data to be read (step 3; Y in FIG. 3). and,
The second computer 13 has this transfer data storage area 1.
Read the data written in step 4 (step ■
). When the second computer l3 completes this reading, the second computer l3 displays the above (l) in the timing control area 15.
Writes data representing the state of (step ■
). If it is determined in step 2 that there is no data to be read (N), no read processing is performed.

以上、第1のコンピュータ12から第2のコンビューク
13に対するデータの転送について説明したが、第2の
コンピュータ13から第1のコンピュータ12へのデー
タの転送についても同様な処理動作でこれを行うことが
できる。
The above has described the transfer of data from the first computer 12 to the second computer 13, but it is also possible to transfer data from the second computer 13 to the first computer 12 using similar processing operations. can.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、2ボートメモリに
転送用データ格納領域の他にタイミング制御用データ格
納領域(タイミング制御エリア)を設けたので、ここに
各メモリの書き込みの状態を示すデータを格納すること
によって余計な回路を設けることなくタイミング制御を
行うことができる。したがって、2ポートメモリを使用
したコンピュータシステムの構或を簡略化し、コストの
低減を図ることができるという効果がある。
As explained above, according to the present invention, a timing control data storage area (timing control area) is provided in the two-boat memory in addition to the transfer data storage area. By storing , timing control can be performed without providing an extra circuit. Therefore, it is possible to simplify the structure of a computer system using a two-port memory and to reduce costs.

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

図面は本発明の一実施例を説明するためのもので、この
うち第l図は2ポートメモリを使用したコンピュータシ
ステムのシステム構或図、第2図は2ボートメモリへの
データの書き込み時の制御を示した流れ図、第3図は2
ボートメモリからデータを読み出す場合の制御を表わし
た流れ図である。 11・・・・・・2ボートメモリ、 12・・・・・・第1のコンピュータ、l3・・・・・
・第2のコンピュータ、l4・・・・・・転送用データ
格納領域、15・・・・・・タイミング制i卸エリア。
The drawings are for explaining one embodiment of the present invention, of which Figure 1 is a system configuration diagram of a computer system using a 2-port memory, and Figure 2 is a diagram showing the system configuration of a computer system using a 2-port memory. A flowchart showing the control, Figure 3 is 2
3 is a flowchart showing control when reading data from a boat memory. 11...2 boat memory, 12...1st computer, l3...
・Second computer, l4...Transfer data storage area, 15...timing control i-distribution area.

Claims (1)

【特許請求の範囲】 2つのコンピュータが互いに独立して転送用データの書
き込みと読み出しを行うために設けられた転送用データ
格納領域と、 これらのコンピュータの書き込みと読み出しのタイミン
グを制御するタイミング制御用データを格納するタイミ
ング制御用データ格納領域 とを独立した領域として具備することを特徴とする2ポ
ートメモリ。
[Claims] A transfer data storage area provided for two computers to write and read transfer data independently of each other, and a timing control area for controlling the write and read timings of these computers. A two-port memory comprising a timing control data storage area for storing data as an independent area.
JP18729489A 1989-07-21 1989-07-21 Two-port memory Pending JPH0353318A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18729489A JPH0353318A (en) 1989-07-21 1989-07-21 Two-port memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18729489A JPH0353318A (en) 1989-07-21 1989-07-21 Two-port memory

Publications (1)

Publication Number Publication Date
JPH0353318A true JPH0353318A (en) 1991-03-07

Family

ID=16203480

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18729489A Pending JPH0353318A (en) 1989-07-21 1989-07-21 Two-port memory

Country Status (1)

Country Link
JP (1) JPH0353318A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5582435A (en) * 1994-07-27 1996-12-10 Toyoda Gosei Co., Ltd. Resin pipe provided with retainer fitting

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5887645A (en) * 1981-11-20 1983-05-25 Hitachi Ltd Correspondence system between computers
JPS63142455A (en) * 1986-12-05 1988-06-14 Hitachi Ltd Semiconductor storage device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5887645A (en) * 1981-11-20 1983-05-25 Hitachi Ltd Correspondence system between computers
JPS63142455A (en) * 1986-12-05 1988-06-14 Hitachi Ltd Semiconductor storage device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5582435A (en) * 1994-07-27 1996-12-10 Toyoda Gosei Co., Ltd. Resin pipe provided with retainer fitting

Similar Documents

Publication Publication Date Title
JPH0353318A (en) Two-port memory
JPH0222748A (en) Non-volatile memory control circuit
JP2522412B2 (en) Communication method between programmable controller and input / output device
JPH02132543A (en) Information processor
JP2581144B2 (en) Bus control device
JP2940722B2 (en) Development support system
JPH0447350A (en) Main storage read/response control
JP2793258B2 (en) Data setting method for positioning control device
JPS6280754A (en) Memory access controller
JPH01321540A (en) Interface circuit
JPH04333950A (en) Information processing system
JPH0351907A (en) Computer system
JPH04248655A (en) Information processor
JPS5983235A (en) Interface system between processors
JPH0449459A (en) Dma transfer method
JPH03220654A (en) Microcomputer
JPS63228359A (en) Data transfer control system
JPS59128621A (en) Controlling device of dma
JPS61276042A (en) Memory controller
JPS62168246A (en) Memory writing control system
JPS6353588A (en) Display device
JPS6121542A (en) Data transfer device
JPH02275526A (en) Rapid data transfer circuit
JPS6383854A (en) Data transfer circuit
JPH064488A (en) Command transfer system