JPH0289142A - Dual port ram access circuit - Google Patents

Dual port ram access circuit

Info

Publication number
JPH0289142A
JPH0289142A JP23889788A JP23889788A JPH0289142A JP H0289142 A JPH0289142 A JP H0289142A JP 23889788 A JP23889788 A JP 23889788A JP 23889788 A JP23889788 A JP 23889788A JP H0289142 A JPH0289142 A JP H0289142A
Authority
JP
Japan
Prior art keywords
circuit
cpu
access
time
dual port
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
JP23889788A
Other languages
Japanese (ja)
Inventor
Kiyoshi Iwai
清 岩井
Masatoshi Ohashi
大橋 正利
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.)
Nippon Board Computer Co Ltd
Original Assignee
Nippon Board Computer 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 Nippon Board Computer Co Ltd filed Critical Nippon Board Computer Co Ltd
Priority to JP23889788A priority Critical patent/JPH0289142A/en
Publication of JPH0289142A publication Critical patent/JPH0289142A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To shorten queuing time and to improve the throughput of CPU by providing a timing circuit setting the continuation time of an access enable signal and the operation time of latch circuits in a bus arbiter circuit. CONSTITUTION:The bus arbiter circuit 3 receives a signal from the timing circuit 7 and cuts the access enable signal after the write necessary time of a dual port RAM 1 has passed from the time when buffer circuits 4a and 5a become active, for example. The bus arbiter circuit 3 receives the signal from the timing circuit 7 and outputs a signal which stops a latch operation after the reading necessary time of RAM 1 passes from the time when the buffer circuit 4a and a latch circuit 6a become active. Thus, the queuing time of CPU is shortened and the throughput can be improved since access requests can be received in a short period even if the access requests are outputted from the other CPU before the access cycle of one CPU terminates.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、一つのデュアルポートRAMに二つのCPU
が相互にアクセスできるようになっているデュアルポー
トRAMアクセス回路に関するものである。
[Detailed Description of the Invention] (Industrial Application Field) The present invention provides two CPUs in one dual port RAM.
The present invention relates to a dual port RAM access circuit in which two ports can access each other.

〔従来技術とその課題〕[Conventional technology and its issues]

二つのCPU間で通信を行う場合、両者間にデュアルポ
ートRAMを設置して、それに両方のCPUからアクセ
スできるようにする方式がある。
When communicating between two CPUs, there is a method in which a dual port RAM is installed between them so that both CPUs can access it.

この方式を実現する回路としては従来、図−3のような
回路が用いられている。
Conventionally, a circuit as shown in FIG. 3 has been used to implement this method.

図−3において、lはデュアルポートRAM、2a・2
bはデュアルポートRAMIを介して通信を行う第一と
第二のCPU、3はデュアルポートRAMIにどちらの
CPUがアクセスするかを調停するバスアービタ回路、
4aはデュアルポートRAMIと第一のC=PCI2a
間のアドレスバッファ回路、5aは同じくデータバッフ
ァ回路、4bはデュアルポートRAMIと第二のCPU
2 b間のアドレスバッファ回路、5bは同じくデータ
パフフッ回路である。
In Figure-3, l is dual port RAM, 2a.
b is a first and second CPU that communicate via the dual port RAMI; 3 is a bus arbiter circuit that arbitrates which CPU accesses the dual port RAMI;
4a is dual port RAMI and first C=PCI2a
5a is the same data buffer circuit, 4b is the dual port RAMI and the second CPU.
The address buffer circuit between 2b and 5b is also a data puff circuit.

いま第一のCPU2aからバスアービタ回路3にアクセ
ス要求が出され、第二のCPU2 bがアクセス状態に
ないときは、バスアービタ回路3からアクセスイネーブ
ル信号が出され、第一のCPU2aがデュアルポートR
AMIにアクセス可能な状態となる。この状態は第一の
CPU2aのアクセスサイクルが終了するまで継続する
Now, when the first CPU 2a issues an access request to the bus arbiter circuit 3 and the second CPU 2b is not in the access state, the bus arbiter circuit 3 issues an access enable signal, and the first CPU 2a
The AMI becomes accessible. This state continues until the access cycle of the first CPU 2a ends.

逆に第二のCPU2 bからアクセス要求が出され、第
一のCPU2aがアクセス状態にないときも同様である
Conversely, the same applies when an access request is issued from the second CPU 2b and the first CPU 2a is not in the access state.

これに対し第一のCPU2 aからバスアービタ回路3
にアクセス要求が出され、第二のCPU2bがアクセス
状態にあるときは、第一のCPU2aはバスアービタ回
路3の調停により、第二のCPU2 bのアクセスサイ
クルが終了するまで待たなければならない。
On the other hand, from the first CPU 2 a to the bus arbiter circuit 3
When an access request is issued to the second CPU 2b and the second CPU 2b is in the access state, the first CPU 2a has to wait until the access cycle of the second CPU 2b is completed through arbitration by the bus arbiter circuit 3.

第二のCPU2bからアクセス要求が出され、第二のC
PU2 bがアクセス状態にあるときも同様である。
An access request is issued from the second CPU 2b, and the second CPU 2b
The same applies when PU2 b is in the access state.

したがって両方のCPUから同時に、または僅かな時間
差でアクセス要求が出されたときは、図−4に示すよう
にアクセスできなかった方のCPU(図では第二)は、
他方のCPU (第一)のアクセスサイクルに近い時間
だけ待たされることになる。
Therefore, when access requests are issued from both CPUs at the same time or with a slight time difference, the CPU that could not access (the second one in the figure), as shown in Figure 4,
The wait time is approximately the same as the access cycle of the other CPU (first).

このため従来の回路では両方のCPUからのアクセス回
数が多くなると待ち時間が長くなる欠点がある。この待
ち時間はCPUの動作時間の遅延につながり、処理能力
の低下を引き起こす要因となる。
For this reason, the conventional circuit has the disadvantage that the waiting time increases as the number of accesses from both CPUs increases. This waiting time leads to a delay in the operating time of the CPU, and becomes a factor that causes a reduction in processing performance.

〔課題の解決手段とその作用〕[Means for solving problems and their effects]

CPUのアクセスサイクルは一般にRAMのデータの読
み書きに要する時間(アクセス開始からデータが確定す
るまでの時間)よりかなり長い。
The access cycle of the CPU is generally much longer than the time required to read and write data in the RAM (the time from the start of access until the data is finalized).

例えばCPUのアクセスサイクルが450n秒程度であ
るのに対し、RAMの読み書きに要する時間は12on
秒程度である。
For example, while the CPU access cycle is about 450 ns, the time required to read and write RAM is 12 ns.
It is about seconds.

したがってデュアルポートRAMの状態を考えると、ア
クセス開始後、データが確定し、61定したデータを他
の素子が保持できるならば、デュアルポートRAMに対
する一方のCPUの占有状態を解除し、他方のCPUの
アクセスを開始してもよいことになる。
Therefore, considering the state of the dual-port RAM, if the data is fixed after the start of access and other elements can hold the fixed data, the occupation state of one CPU for the dual-port RAM is released, and the other CPU You can now start accessing the .

そこで本発明は、二つのCPUがバスアービタ回路の調
停により一つのデュアルポートRAMに、それぞれアド
レスバッファ回路およびデータバッファ回路を介して、
相互にアクセスするようになっている回路において、上
記データバッファ回路にラッチ回路を設けて、デュアル
ポー)RAMへの1込みはデータバッファ回路を通して
行い、デュアルポートRAMからの読出しはラッチ回路
を通して行うようにし、かつ上記バスアービタ回路に、
アクセスイネーブル信号の犠続時間と、ラッチ回路の動
作時間を、デュアルボーLRAMの読み書きに要する時
間に設定するタイミング回路を設けたことを特徴とする
ものである。
Therefore, in the present invention, two CPUs are connected to one dual port RAM through arbitration by a bus arbiter circuit, respectively, through an address buffer circuit and a data buffer circuit.
In circuits that are designed to access each other, a latch circuit is provided in the data buffer circuit, so that writing to the dual-port RAM is performed through the data buffer circuit, and reading from the dual-port RAM is performed through the latch circuit. and to the above bus arbiter circuit,
The present invention is characterized by the provision of a timing circuit that sets the sacrifice time of the access enable signal and the operation time of the latch circuit to the time required for reading and writing from the dual baud LRAM.

このようにすると、デュアルポートRAMへのデータの
書込み時には、それに要する時間が経過すると、アクセ
スイネーブル信号がカントされ、デュアルポートRAM
がフリーになるから、他方のCPUがアクセス可能とな
る。またデュアルポートRAMからのデータの読出し時
には、読み出されたデータがラッチ回路に保持されると
、ラッチ動作が終了しくその後はラッチ回路からデータ
が読み出される)、やはりデュアルポートRAMがフリ
ーになるから、他方のCPUがアクセス可能となる。
In this way, when writing data to the dual port RAM, the access enable signal is canted after the time required for writing data has elapsed, and the data is written to the dual port RAM.
becomes free and can be accessed by the other CPU. Also, when reading data from the dual port RAM, once the read data is held in the latch circuit, the latch operation ends and the data is read from the latch circuit after that), so the dual port RAM becomes free. , the other CPU can access it.

〔実施例〕〔Example〕

以下、本発明の実施例を図−1を参照して詳細に説明す
る。
Hereinafter, embodiments of the present invention will be described in detail with reference to FIG.

図−1において図−3と同一部分には同一符号が付しで
ある。この回路の特徴は、データバッファ回路5a・5
bにそれぞれラッチ回路6a・6bを設けて、デュアル
ポートRAMIへの書込みはデータバッファ回路5a・
5bを通して行い、デュアルポートRAMIからの読出
しはラッチ回路6a・6bを通して行うようにし、かつ
バスアービタ回路3に、アクセスイネーブル信号の継続
時間と、ラッチ回路6a・6bの動作時間を設定するタ
イミング回路7を設けたことである。
In FIG. 1, the same parts as in FIG. 3 are given the same reference numerals. The feature of this circuit is that the data buffer circuits 5a and 5
Latch circuits 6a and 6b are provided in the dual port RAMI, respectively, and data buffer circuits 5a and 5b are used for writing to the dual port RAMI.
The bus arbiter circuit 3 is provided with a timing circuit 7 for setting the duration of the access enable signal and the operation time of the latch circuits 6a and 6b. This is what we have set up.

タイミング回路7は例えばデイレイラインで横成するこ
とができる。このタイミング回路7は、例えばデュアル
ポートRAMIの読み書きに要する時間が120 n秒
である場合、アクセス開始後、12On秒でラッチ回路
6aまたは6bのラッチ動作を停止させる信号を出し、
150n秒でバスアービタ回路3からのアクセスイネー
ブル信号をカントする信号を出すようにしである。
The timing circuit 7 can be implemented as a delay line, for example. For example, if the time required to read and write the dual port RAMI is 120 n seconds, the timing circuit 7 outputs a signal to stop the latch operation of the latch circuit 6a or 6b 12 On seconds after the start of access.
A signal for canting the access enable signal from the bus arbiter circuit 3 is output every 150 ns.

したがって例えば第一のCPU2aから書き込み要求が
出された場合、第二のCPU2 bのアクセス要求がな
ければ、バスアーとり回路3は直ちにアクセスイネーブ
ル信号を出し、アドレスバ。
Therefore, for example, when a write request is issued from the first CPU 2a, if there is no access request from the second CPU 2b, the bus takeover circuit 3 immediately issues an access enable signal and writes the address bar.

ファ回路4aおよびデータバッファ回路5a・がアクテ
ィーブになって、デュアルポートRAMIにデータが書
き込まれる。バスアービタ回路3は、バッファ回路4a
・5aがアクティープになってからデュアルポー)RA
MIの1込み所要時間経過後、タイミング回路7からの
信号を受けてアクセスイネーブル信号をカットし、デュ
アルポートRAMIを両方のCPU2a・2bからフリ
ーにする。この状態では第一のCPU2 aはアクセス
サイクルが終了していないが、アクセス開始から一定時
間(例えば450n秒)経過後、アクセスサイクルが終
了する。
The buffer circuit 4a and the data buffer circuit 5a become active, and data is written to the dual port RAMI. The bus arbiter circuit 3 includes a buffer circuit 4a
・Since 5a became active, dual port) RA
After the MI 1-inclusion time has elapsed, the access enable signal is cut in response to a signal from the timing circuit 7, and the dual port RAMI is freed from both CPUs 2a and 2b. In this state, the access cycle of the first CPU 2a has not yet ended, but the access cycle ends after a certain period of time (for example, 450 ns) has elapsed since the start of the access.

第一のCPU2aのアクセスサイクルが終了しないうち
に例えば図−2のように第二のCPU2bからアクセス
要求が出された場合、バスアービタ回路3は第一のCP
U側へのアクセスイネーブル信号がカントされた時点で
、第二のCPU2bからアクセス要求を受は入れること
ができる。
For example, if an access request is issued from the second CPU 2b as shown in FIG. 2 before the access cycle of the first CPU 2a is completed, the bus arbiter circuit 3
At the time when the access enable signal to the U side is canted, an access request can be accepted from the second CPU 2b.

次に例えば第一のCPU2aから読み出し要求が出され
た場合は、第二のCPU2 bのアクセス要求がなけれ
ば、バスアービタ回路3は直ちにアクセスイネーブル信
号を出し、アドレスバッファ回路4aおよびラッチ回路
6aがアクティープになり、デュアルポートRAMIの
データが確定した後、ラッチ動作が行われる。バスアー
ビタ回路3は、アドレスバッファ回路4aおよびラッチ
回路6aがアクティーブになってからデュアルポートR
AMIの読出し所要時間経過後、タイミング回路7から
の信号を受けてラッチ動作を停止する信号を出し、デュ
アルポートRAMIを両方のCPU2a・2bからフリ
ーにする。その後、第一のCPU2aはアクセスサイク
ルが終了するまでの間にラッチ回路6aからラッチされ
たデータを読み出す。
Next, for example, when a read request is issued from the first CPU 2a, if there is no access request from the second CPU 2b, the bus arbiter circuit 3 immediately issues an access enable signal, and the address buffer circuit 4a and latch circuit 6a are activated. After the data in the dual port RAMI is determined, a latch operation is performed. After the address buffer circuit 4a and latch circuit 6a become active, the bus arbiter circuit 3
After the time required to read the AMI has elapsed, a signal is received from the timing circuit 7 to issue a signal to stop the latch operation, thereby freeing the dual port RAMI from both CPUs 2a and 2b. Thereafter, the first CPU 2a reads the latched data from the latch circuit 6a until the access cycle ends.

上記の第一のCPU2aのアクセスサイクルが終了しな
いうちに第二のCPU2 bからアクセス要求が出され
た場合、バスアーとり回路3はラッチ回路6aのラッチ
動作を停止させた時点で、第二のCPU2 bからアク
セス要求を受は入れることができる。
If an access request is issued from the second CPU 2b before the access cycle of the first CPU 2a is completed, the bus arrester circuit 3 stops the latch operation of the latch circuit 6a, and then transfers the access request to the second CPU 2b. It is possible to accept an access request from b.

第二のCPU2 bのアクセスサイクルが終了しないう
ちに第一のCPU2aからアクセス要求が出された場合
も同様である。
The same applies when the first CPU 2a issues an access request before the access cycle of the second CPU 2b ends.

(発明の効果〕 以上説明したように本発明によれば、一方のCPUのア
クセスサイクルが終了しないうちに他方のCPtJから
アクセス要求が出された場合でも、短時間のうちにその
アクセス要求を受は入れることができるから、CPUの
待ち時間が短縮され、処理能力を高めることができる利
点がある。
(Effects of the Invention) As explained above, according to the present invention, even if an access request is issued from the other CPU before the access cycle of one CPU is completed, the access request is received within a short time. can be inserted, which has the advantage of shortening CPU waiting time and increasing processing capacity.

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

図−1は本発明の一実施例に係るデュアルポー)RAM
アクセス回路のブロック図、図−2は同回路の動作タイ
ミングの説明図、図−3は従来のデュアルポートRAM
アクセス回路のブロック図、図−4は同回路の動作タイ
ミングの説明図である。 1:デュアルポートRAM、2a2b:CPU、3;バ
スアービタ回路、4a・4b:アドレスバッファ回路、
5a・5b:データバッファ回路、6a・6b:ラッチ
回路、7:タイミング回路。
Figure 1 shows a dual-port RAM according to an embodiment of the present invention.
A block diagram of the access circuit, Figure 2 is an explanatory diagram of the circuit's operation timing, and Figure 3 is a conventional dual port RAM.
FIG. 4, a block diagram of the access circuit, is an explanatory diagram of the operation timing of the access circuit. 1: Dual port RAM, 2a2b: CPU, 3: Bus arbiter circuit, 4a/4b: Address buffer circuit,
5a and 5b: data buffer circuit, 6a and 6b: latch circuit, 7: timing circuit.

Claims (1)

【特許請求の範囲】[Claims]  1.二つのCPUがバスアービタ回路の調停によりー
つのデュアルポートRAMに、それぞれアドレスバッフ
ァ回路およびデータバッファ回路を介して、相互にアク
セスするようになっている回路において、上記データバ
ッファ回路にラッチ回路を設けて、デュアルポートRA
Mへの書込みはデータバッファ回路を通して行い、デュ
アルポートRAMからの読出しはラッチ回路を通して行
うようにし、かつ上記バスアービタ凹路に、アクセスイ
ネーブル信号の継続時間と、ラッチ回路の動作時間を、
デュアルポートRAMの読み書きに要する時間に設定す
るタイミング回路を設けたことを特徴とするデュアルポ
ートRAMアクセス回路。
1. In a circuit in which two CPUs mutually access one dual port RAM through arbitration by a bus arbiter circuit via an address buffer circuit and a data buffer circuit, a latch circuit is provided in the data buffer circuit. Dual port RA
Writing to M is performed through the data buffer circuit, reading from the dual port RAM is performed through the latch circuit, and the duration time of the access enable signal and the operation time of the latch circuit are set in the bus arbiter path.
A dual-port RAM access circuit characterized in that a timing circuit is provided to set the time required for reading and writing to the dual-port RAM.
JP23889788A 1988-09-26 1988-09-26 Dual port ram access circuit Pending JPH0289142A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23889788A JPH0289142A (en) 1988-09-26 1988-09-26 Dual port ram access circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23889788A JPH0289142A (en) 1988-09-26 1988-09-26 Dual port ram access circuit

Publications (1)

Publication Number Publication Date
JPH0289142A true JPH0289142A (en) 1990-03-29

Family

ID=17036896

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23889788A Pending JPH0289142A (en) 1988-09-26 1988-09-26 Dual port ram access circuit

Country Status (1)

Country Link
JP (1) JPH0289142A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0683700A (en) * 1991-12-30 1994-03-25 Gold Star Co Ltd Apparatus and method for controlling memory access of multiprocessor system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58208862A (en) * 1982-05-31 1983-12-05 Toshiba Corp Shared memory controlling system
JPS6289156A (en) * 1985-10-15 1987-04-23 Nec Corp Two port ram

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58208862A (en) * 1982-05-31 1983-12-05 Toshiba Corp Shared memory controlling system
JPS6289156A (en) * 1985-10-15 1987-04-23 Nec Corp Two port ram

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0683700A (en) * 1991-12-30 1994-03-25 Gold Star Co Ltd Apparatus and method for controlling memory access of multiprocessor system

Similar Documents

Publication Publication Date Title
US5398211A (en) Structure and method for providing prioritized arbitration in a dual port memory
JP2821534B2 (en) Dual port random access memory device
JPS63115260A (en) Interleave type access for global memory by high preference source
JP3039557B2 (en) Storage device
US5519872A (en) Fast address latch with automatic address incrementing
US4729090A (en) DMA system employing plural bus request and grant signals for improving bus data transfer speed
US6532507B1 (en) Digital signal processor and method for prioritized access by multiple core processors to shared device
US6026455A (en) Architecture and method for providing guaranteed access for a retrying bus master to a data transfer bridge connecting two buses in a computer system
JPH0289142A (en) Dual port ram access circuit
JPH0343804A (en) Sequence controller
JPS6341103B2 (en)
JP2610971B2 (en) Direct memory access method between central processing units
JPS5886623A (en) Memory control system
JP3019323B2 (en) Direct access to image memory
JPH0214741B2 (en)
JP2554423Y2 (en) Memory controller
JPH0370816B2 (en)
JP2928036B2 (en) Logic semiconductor integrated circuit
JP2976417B2 (en) Multiprocessor system
JPH02211571A (en) Information processor
JPS61117651A (en) Interface device
JPH01239664A (en) Common memory arbitration device
JPH0764849A (en) Shared memory controller for processor
JPH0142017B2 (en)
JPS63279359A (en) Data transfer device for multi-cpu