JPH07121429A - Dual port memory circuit - Google Patents

Dual port memory circuit

Info

Publication number
JPH07121429A
JPH07121429A JP5287804A JP28780493A JPH07121429A JP H07121429 A JPH07121429 A JP H07121429A JP 5287804 A JP5287804 A JP 5287804A JP 28780493 A JP28780493 A JP 28780493A JP H07121429 A JPH07121429 A JP H07121429A
Authority
JP
Japan
Prior art keywords
circuit
data bus
output
data
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
JP5287804A
Other languages
Japanese (ja)
Inventor
Hiroyuki Shirasago
宏之 白砂
Kazuo Fukuda
一生 福田
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 Avionics Co Ltd
Original Assignee
Nippon Avionics 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 Avionics Co Ltd filed Critical Nippon Avionics Co Ltd
Priority to JP5287804A priority Critical patent/JPH07121429A/en
Publication of JPH07121429A publication Critical patent/JPH07121429A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a dual port memory circuit suitable for inter-processor communication dealing with massive data by using a random access memory and giving priority over one access as against memory access signals from two CPU by means of a mediation circuit. CONSTITUTION:A data bus connected to the data terminal DATA of SRAM 1 is connected to the data bus of a first port-side through a data bus input circuit 4 and an output circuit 5, and is connected to the data bus of a second port-side through an input circuit 6 and an output circuit 7. Address bus input circuits 2 and 3 and data bus input circuits 4 add 6 are constituted by three states buffers. The buses are connection-controlled by an access control signal inputted to an output enable terminal OE, and the access control signal is generated by the mediation circuit. The data bus output circuits 5 and 7 are constituted by the latch circuits of eight bits, and eight-bit data of SRAM 1 is fetched by a strobe signal which the mediation circuit generates.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、デュアルポートメモリ
回路に係り、特に大量のデータを扱うプロセッサ間通信
での使用に好適なデュアルポートメモリ回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dual port memory circuit, and more particularly to a dual port memory circuit suitable for use in interprocessor communication handling a large amount of data.

【0002】[0002]

【従来の技術】デュアルポートメモリ回路は、2方向か
ら任意にアクセスして任意に書き込みと読み出しが行え
ることから、プロセッサ間通信では2つのCPUの共用
バッファとして使用される。
2. Description of the Related Art A dual-port memory circuit is used as a shared buffer for two CPUs in interprocessor communication because it can arbitrarily access and write and read from two directions.

【0003】ここに、従来では、半導体デバイスたるデ
ュアルポートメモリが入手可能であるが、このものは、
最大でも8Kバイトの容量しかないので、それ以上の大
量のデータを扱うプロセッサ間通信では、複数のデュア
ルポートメモリを使用することになる。
Heretofore, a dual-port memory, which is a semiconductor device, has heretofore been available.
Since it has a maximum capacity of 8 Kbytes, a plurality of dual port memories are used for interprocessor communication handling a large amount of data.

【0004】[0004]

【発明が解決しようとする課題】市販のデュアルポート
メモリの価格はランダムアクセスメモリの数倍もする
が、使用個数が小数なら問題は少ない。しかし、例えば
128Kバイトのデュアルポートメモリ回路を構成する
場合には、16個の市販のデュアルポートメモリを使用
することとなり、かかる多数の使用では非常に高価なも
のになるという問題がある。
Although the price of a commercially available dual-port memory is several times as high as that of a random access memory, if the number of used dual-port memories is small, the problem is small. However, for example, when configuring a 128-Kbyte dual-port memory circuit, 16 commercially available dual-port memories are used, and there is a problem that such a large number of uses makes it very expensive.

【0005】本発明は、このような従来の問題に鑑みな
されたもので、その目的は、低価格で且つ任意容量への
拡張の容易化が図れるデュアルポートメモリ回路を提供
することにある。
The present invention has been made in view of such conventional problems, and an object thereof is to provide a dual port memory circuit which can be easily expanded to an arbitrary capacity at low cost.

【0006】[0006]

【課題を解決するための手段】前記目的を達成するため
に、本発明のデュアルポートメモリ回路は次の如き構成
を有する。即ち、本発明のデュアルポートメモリ回路
は、ランダムアクセスメモリと;前記ランダムアクセス
メモリのアドレスバスと第1ポート側アドレスバス及び
第2ポート側アドレスバスとの接続制御をそれぞれ行う
第1ポート側アドレスバス入力回路及び第2ポート側ア
ドレスバス入力回路と; 前記ランダムアクセスメモリ
のデータバスと第1ポート側データバス及び第2ポート
側データバスとの接続制御をそれぞれ行う第1ポート側
データバス入出力回路及び第2ポート側データバス入出
力回路と; 第1ポート側CPU及び第2ポート側CP
Uのメモリアクセス信号を受けて前記第1ポート側のア
ドレスバス入力回路及びデータバス入出力回路と前記第
2ポート側のアドレスバス入力回路及びデータバス入出
力回路の何れか一方を優先して動作させる調停回路と;
を備えたことを特徴とするものである。
In order to achieve the above object, the dual port memory circuit of the present invention has the following configuration. That is, the dual port memory circuit of the present invention includes a random access memory; a first port side address bus for controlling connection between the address bus of the random access memory, the first port side address bus and the second port side address bus, respectively. An input circuit and a second port side address bus input circuit; a first port side data bus input / output circuit for respectively controlling connection between the data bus of the random access memory and the first port side data bus and the second port side data bus And a second port side data bus input / output circuit; a first port side CPU and a second port side CP
In response to the memory access signal of U, one of the address bus input circuit and the data bus input / output circuit on the side of the first port and the address bus input circuit and the data bus input / output circuit on the side of the second port is operated with priority. An arbitration circuit for
It is characterized by having.

【0007】[0007]

【作用】次に、前記の如く構成される本発明のデュアル
ポートメモリ回路の作用を説明する。安価に入手でき、
かつ大容量のものの入手が容易なランダムアクセスメモ
リを使用し、調停回路により2つのCPUからのメモリ
アクセス信号に対して何れか一方のアクセスを優先させ
るようにしてある。
Next, the operation of the dual port memory circuit of the present invention constructed as described above will be described. Cheaply available,
In addition, a random access memory, which has a large capacity and is easily available, is used, and the arbitration circuit gives priority to one of the accesses to the memory access signals from the two CPUs.

【0008】斯くして、本発明によれば、低価格で且つ
任意容量への拡張の容易化が図れるので、大量のデータ
を扱うプロセッサ間通信に好適なデュアルポートメモリ
回路を提供できる。
Thus, according to the present invention, it is possible to provide a dual port memory circuit suitable for interprocessor communication handling a large amount of data, because it can be inexpensively and easily expanded to an arbitrary capacity.

【0009】[0009]

【実施例】以下、本発明の実施例を図面を参照して説明
する。図1及び図2は、本発明の一実施例に係るデュア
ルポートメモリ回路を示す。図1において、1はランダ
ムアクセスメモリ(RAM)たるスタティックランダム
アクセスメモリ(SRAM)であり、このSRAM1は
2つのマイクロプロセッサ(CPU)の共用バッファで
ある。図1では、一方のマイクロプロセッサ(CPU
1)側を第1ポート側(図中左方)とし、他方のマイク
ロプロセッサ(CPU2)側を第2ポート側(図中右
方)とし、そのことを示してある。なお、本実施例で
は、SRAM1は例えば128Kバイトのものである。
従って、データは8ビットであるが、アドレスは17ビ
ットとなっている。
Embodiments of the present invention will be described below with reference to the drawings. 1 and 2 show a dual port memory circuit according to an embodiment of the present invention. In FIG. 1, 1 is a static random access memory (SRAM) which is a random access memory (RAM), and this SRAM 1 is a shared buffer of two microprocessors (CPU). In FIG. 1, one microprocessor (CPU
The side 1) is the first port side (left side in the figure), and the other microprocessor (CPU2) side is the second port side (right side in the figure), which is shown. In the present embodiment, the SRAM 1 is 128 Kbytes, for example.
Therefore, the data is 8 bits, but the address is 17 bits.

【0010】SRAM1のアドレス端子(ADR)に接
続されるアドレスバス及びチップセレクト端子(CS)
に接続されるセレクト信号線は、第1ポート側のアドレ
スバス入力回路2を介して第1ポート側のアドレスバス
及びメモリチップセレクト信号線(P1CMCS−)と
接続され、第2ポート側のアドレスバス入力回路3を介
して第2ポート側のアドレスバス及びメモリチップセレ
クト信号線(P2CMCS−)と接続される。なお、信
号名の末尾に−(マイナス)があるのは“0”のとき意
味がある、即ちローアクティブであることを示す。以
下、同様である。
Address bus and chip select terminal (CS) connected to the address terminal (ADR) of SRAM 1
Is connected to the address bus on the first port side and the memory chip select signal line (P1CMCS-) via the address bus input circuit 2 on the side of the first port, and the address bus on the side of the second port. It is connected to the address bus on the second port side and the memory chip select signal line (P2CMCS-) via the input circuit 3. It should be noted that the fact that the signal name has a- (minus) at the end indicates that it has a meaning when it is "0", that is, it is low active. The same applies hereinafter.

【0011】SRAM1のデータ端子(DATA)に接
続されるデータバスは、データバス入力回路4及びデー
タバス出力回路5を介して第1ポート側のデータバスと
接続され、データバス入力回路6及びデータバス出力回
路7を介して第2ポート側のデータバスと接続される。
The data bus connected to the data terminal (DATA) of the SRAM 1 is connected to the data bus on the first port side via the data bus input circuit 4 and the data bus output circuit 5, and is connected to the data bus input circuit 6 and the data bus. It is connected to the data bus on the second port side via the bus output circuit 7.

【0012】アドレスバス入力回路(2、3)とデータ
バス入力回路(4、6)は、共にスリーステートバッフ
ァで構成され、出力イネーブル端子(OE)に入力する
アクセス制御信号(P1ACES−、P2ACES−)
によりバスの接続制御を行うが、このアクセス制御信号
(P1ACES−、P2ACES−)は調停回路(図
2)で生成される。
The address bus input circuits (2, 3) and the data bus input circuits (4, 6) are both three-state buffers, and access control signals (P1ACES-, P2ACES-) input to the output enable terminal (OE). )
The connection control of the bus is carried out by this, and this access control signal (P1ACES-, P2ACES-) is generated by the arbitration circuit (FIG. 2).

【0013】データバス出力回路(5、7)は、8ビッ
トのラッチ回路で構成され、調停回路(図2)が生成す
るストローブ信号(P1RWSTB−、P2RWSTB
−)によりSRAM1の8ビットデータを取り込む。対
応するポート側のデータバスへの出力は、ゲート(8、
9)においてメモリチップセレクト信号(P1CMCS
−、P2CMCS−)とメモリリード信号(P1MRD
−、P2MRD−)が共にローアクティブの条件が成立
したときに行われる。
The data bus output circuits (5, 7) are composed of 8-bit latch circuits, and strobe signals (P1RWSTB-, P2RWSTB) generated by the arbitration circuit (FIG. 2).
The 8-bit data of SRAM 1 is fetched by (-). The output to the data bus on the corresponding port side is the gate (8,
9), the memory chip select signal (P1CMCS)
-, P2CMCS-) and memory read signal (P1MRD)
-, P2MRD-) are both performed when the low active condition is satisfied.

【0014】SRAM1の出力イネーブル端子(OE)
にはゲート10を介してゲート11とゲート12の何れ
か一方の出力が制御信号として印加されるが、ゲート1
1(12)は、CPU1(2)からのメモリリード信号
P1MRD−(P2MRD−)と調停回路(図2)から
のアクセス制御信号P1ACES−(P2ACES−)
が共にローアクティブであるときに出力を発する。
Output enable terminal (OE) of SRAM 1
The output of either the gate 11 or the gate 12 is applied as a control signal to the gate 1 through the gate 10.
1 (12) is a memory read signal P1MRD- (P2MRD-) from the CPU 1 (2) and an access control signal P1ACES- (P2ACES-) from the arbitration circuit (FIG. 2).
Emits an output when both are low active.

【0015】要するに、SRAM1は、調停回路(図
2)からのアクセス制御信号P1ACES−(P2AC
ES−)の期間内におけるCPU1(2)のメモリリー
ド信号P1MRD−(P2MRD−)により出力イネー
ブルの動作状態になる。
In short, the SRAM 1 has the access control signal P1ACES- (P2AC) from the arbitration circuit (FIG. 2).
The output enable operation state is set by the memory read signal P1MRD- (P2MRD-) of the CPU1 (2) within the period of ES-).

【0016】SRAM1のライトイネーブル端子(W
E)には、ゲート13を介してゲート14とゲート15
の何れか一方の出力が制御信号として印加されるが、ゲ
ート14(15)は、CPU1(2)からのメモリライ
ト信号P1MWR−(P2MWR−)と調停回路(図
2)からのストローブ信号P1RWSTB−(P2RW
STB−)が共にローアクティブであるときに出力を発
する。
The write enable terminal (W
E) includes gate 14 and gate 15 through gate 13.
One of the outputs is applied as a control signal, but the gate 14 (15) causes the memory write signal P1MWR- (P2MWR-) from the CPU 1 (2) and the strobe signal P1RWSTB- from the arbitration circuit (FIG. 2). (P2RW
Outputs when both STB-) are active low.

【0017】要するに、SRAM1は、調停回路(図
2)からのストローブ信号P1RWSTB−(P2RW
STB−)の期間内におけるCPU1(2)メモリライ
ト信号P1MWR−(P2MWR−)によりライトイネ
ーブルの動作状態となる。
In short, the SRAM1 has the strobe signal P1RWSTB- (P2RW) from the arbitration circuit (FIG. 2).
During the period of STB-), the CPU 1 (2) memory write signal P1MWR- (P2MWR-) enables the write enable operation state.

【0018】次に、調停回路について説明する。図2に
おいて、上段が第1ポート(CPU1)側の制御回路
で、下段が第2ポート(CPU2)側の制御回路であ
り、それぞれ4個のフリップフロップ(F/F1〜同
4)(F/F5〜同8)を中心に同様に構成され、3個
のフリップフロップ(F/F2〜同4)(F/F6〜同
8)は同一のクロックCKで動作するが、インバータ2
1によって下段制御回路の(F/F6〜同8)は、上段
制御回路の(F/F2〜同4)よりも半クロック遅れた
タイミングで動作することとし、CPU1と同2が同時
にアクセスした場合でも支障なく競合制御ができるよう
になっている。
Next, the arbitration circuit will be described. In FIG. 2, the upper stage is the control circuit on the side of the first port (CPU1), and the lower stage is the control circuit on the side of the second port (CPU2), each of which has four flip-flops (F / F1 to 4) (F / F1). F5 to 8) and the three flip-flops (F / F2 to 4) (F / F6 to 8) operate with the same clock CK.
1 causes the lower control circuits (F / F6 to 8) to operate at a timing delayed by half a clock from the upper control circuits (F / F2 to 4), and when the CPUs 1 and 2 simultaneously access However, it is possible to perform competitive control without any trouble.

【0019】CPU1(2)からのメモリチップセレク
ト信号P1CMCS−(P2CMCS−)はインバータ
22(23)で反転されてF/F1(5)のD端子に印
加される。またCPU1(2)からのメモリリード信号
P1MRD−(P2MRD−)とメモリライト信号P1
MWR−(P2MWR−)の何れか一方がゲート24
(25)を介してF/F1(5)のクロック端子CKに
印加される。
The memory chip select signal P1CMCS- (P2CMCS-) from the CPU 1 (2) is inverted by the inverter 22 (23) and applied to the D terminal of the F / F 1 (5). Further, the memory read signal P1MRD- (P2MRD-) and the memory write signal P1 from the CPU1 (2)
One of the MWR- (P2MWR-) is the gate 24.
It is applied to the clock terminal CK of F / F1 (5) via (25).

【0020】要するに、F/F1(5)は、メモリリー
ド信号P1MRD−(P2MRD−)またはメモリライ
ト信号P1MWR−(P2MWR−)が“1”から
“0”に立ち下がるタイミングでインバータ22(2
3)の出力“1”を取り込み、正相出力Q+を“1”に
する。
In short, the F / F 1 (5) is driven by the inverter 22 (2) at the timing when the memory read signal P1MRD- (P2MRD-) or the memory write signal P1MWR- (P2MWR-) falls from "1" to "0".
The output “1” of 3) is taken in and the positive phase output Q + is set to “1”.

【0021】ゲート26はF/F1の正相出力Q+とF
/F6の逆相出力Q−が共に“1”のとき、F/F2の
D端子への出力を“1”にする。F/F6の逆相出力Q
−が“0”である期間の信号が前述した第2ポート側の
アクセス制御信号P2ACES−である。
The gate 26 has the positive phase outputs Q + and F of F / F1.
When the opposite-phase outputs Q- of / F6 are both "1", the output to the D terminal of F / F2 is set to "1". F / F6 negative phase output Q
The signal in the period in which-is "0" is the access control signal P2ACES- on the second port side described above.

【0022】ゲート27はF/F5の正相出力Q+とF
/F2の逆相出力Q−が共に“1”のとき、F/F6の
D端子への出力を“1”にする。F/F2の逆相出力Q
−が“0”である期間の信号が前述した第1ポート側の
アクセス制御信号P1ACES−である。
The gate 27 has the positive phase outputs Q + and F of F / F5.
When the opposite-phase outputs Q- of / F2 are both "1", the output to the D terminal of F / F6 is set to "1". Reverse phase output Q of F / F2
The signal in the period in which-is "0" is the access control signal P1ACES- on the first port side described above.

【0023】F/F2(6)の正相出力Q+はF/F3
(7)のD端子に印加され、F/F3(7)の正相出力
Q+はゲート28(29)及び同30(31)の一方の
入力となる。
The positive phase output Q + of F / F2 (6) is F / F3
The positive phase output Q + of the F / F 3 (7) applied to the D terminal of (7) becomes one input of the gate 28 (29) and the gate 30 (31).

【0024】ゲート28(29)は、F/F4(8)の
正相出力Q+を他方の入力とし、両入力の何れか一方を
F/F4(8)のD端子に出力する。F/F4(8)の
正相出力Q+が“1”である期間の信号は、CPU1
(2)へのレデイ信号P1RDY+(P2RDY+)と
なる。
The gate 28 (29) uses the positive phase output Q + of the F / F 4 (8) as the other input, and outputs either one of the both inputs to the D terminal of the F / F 4 (8). The signal during the period when the positive phase output Q + of the F / F 4 (8) is “1” is the CPU 1
The ready signal P1RDY + (P2RDY +) to (2) is obtained.

【0025】ゲート30(31)は、F/F3(7)の
正相出力Q+とF/F4(8)の逆相出力Q−が共に
“1”である期間内前述したゲート14(15)および
データバス出力回路5(7)へのローアクティブのスト
ローブ信号P1RWSTB−(P2RWSTB−)を出
力する。
The gate 30 (31) is in the above-described gate 14 (15) during the period in which both the positive phase output Q + of the F / F 3 (7) and the negative phase output Q- of the F / F 4 (8) are "1". And a low-active strobe signal P1RWSTB- (P2RWSTB-) to the data bus output circuit 5 (7).

【0026】なお、ゲート32(33)は、CPU1
(2)からのリセット信号RES−とF/F3(7)の
逆相出力Q−(“0”)の一方をクリア信号としてF/
F1(5)のクリア端子CLRに出力する。
The gate 32 (33) is connected to the CPU 1
One of the reset signal RES- from (2) and the opposite phase output Q-("0") of the F / F3 (7) is used as a clear signal for F /
Output to the clear terminal CLR of F1 (5).

【0027】また、ゲート34(35)は、インバータ
22(23)の出力とゲート24(25)の出力が共に
“1”以外のときクリア信号をF/F2〜同4(F/F
6〜同8)のクリア端子CLRに出力する。
Further, the gate 34 (35) outputs a clear signal from F / F2 to 4 (F / F) when the output of the inverter 22 (23) and the output of the gate 24 (25) are other than "1".
6 to 8) Output to the clear terminal CLR.

【0028】以下、具体的な競合制御動作を図3を参照
して説明する。F/F1と同5はCPUからのリセット
信号RES−によりクリアされ、正相出力Q+を“0”
にしている。また、F/F2〜同4は、P1CMCS−
とP1MRD−/P1MWR−がローアクティブになる
以前はゲート34の出力によってクリアされ、正相出力
Q+を“0”にしている。同様に、F/F6〜同8は、
P2CMCS−とP2MRD−/P2MWR−がローア
クティブになる以前はゲート35の出力によってクリア
され、正相出力Q+を“0”にしている。
The specific competition control operation will be described below with reference to FIG. F / F1 and 5 are cleared by the reset signal RES- from the CPU, and the positive phase output Q + is "0".
I have to. In addition, F / F2 to 4 are P1CMCS-
Before and P1MRD- / P1MWR- become low active, they are cleared by the output of the gate 34, and the positive phase output Q + is set to "0". Similarly, F / F6 to 8 are
Before P2CMCS- and P2MRD- / P2MWR- become low active, they are cleared by the output of the gate 35, and the positive phase output Q + is set to "0".

【0029】P1CMCS−がローアクティブとなり、
P1MRD−/P1MWR−がローアクティブとなる
と、F/F1は正相出力Q+を“1”にする。同様にP
2CMCS−がローアクティブとなり、P2MRD−/
P2MWR−がローアクティブとなると、F/F5は正
相出力Q+を“1”にする。
P1CMCS- becomes low active,
When P1MRD- / P1MWR- becomes low active, F / F1 sets the positive phase output Q + to "1". Similarly P
2CMCS- becomes low active and P2MRD- /
When P2MWR- becomes low active, F / F5 sets the positive phase output Q + to "1".

【0030】図3は、CPU1が先にアクセスし、F/
F1が正相出力Q+を“1”にし、F/F2が正相出力
Q+を“1”にした後にCPU2がアクセスし、F/F
5が正相出力Q+を“1”にした場合を示すが、F/F
2と同6は半クロックずれたタイミングで動作するの
で、F/F1と同5が正相出力Q+を“1”にするタイ
ミングが同時でも、常にゲート26と同27の作用によ
ってF/F2と同6の何れか一方が先に正相出力Q+を
“1”にし、何れか他方は正相出力Q+を“1”にする
のが禁止される。
In FIG. 3, the CPU 1 accesses first and F /
After F1 sets the positive phase output Q + to "1" and F / F2 sets the normal phase output Q + to "1", the CPU2 accesses the F / F
5 shows the case where the positive phase output Q + is set to "1".
Since 2 and 6 operate at a timing shifted by a half clock, even if the F / F1 and 5 both set the positive phase output Q + to "1" at the same time, the gates 26 and 27 always act as F / F2. It is prohibited that either one of the same 6 first sets the positive phase output Q + to "1" and the other one sets the normal phase output Q + to "1".

【0031】F/F1が正相出力Q+を“1”にする
と、その直後のクロックCKの前縁でF/F2は、正相
出力Q+を“1”(P1ACES+)にし、逆相出力Q
−から“0”のP1ACES−が出力される。
When the F / F1 sets the positive phase output Q + to "1", the F / F2 sets the positive phase output Q + to "1" (P1ACES +) at the leading edge of the clock CK immediately after that, and the negative phase output Q +.
The P1ACES- of "0" is output from-.

【0032】これにより、アドレスバス入力回路2が第
1ポート側のアドレスバス及びチップセレクト信号線の
接続をし、データバス入力回路4が第1ポート側のデー
タバスを接続する。一方、データバス出力回路5は、ゲ
ート8の作用によってメモリリード信号P1MRD−の
入力時のみ出力イネーブルとなる。
As a result, the address bus input circuit 2 connects the address bus on the first port side and the chip select signal line, and the data bus input circuit 4 connects the data bus on the first port side. On the other hand, the data bus output circuit 5 is enabled by the gate 8 only when the memory read signal P1MRD- is input.

【0033】F/F2が正相出力Q+を“1”にする
と、その次のクロックCKの前縁でF/F3が正相出力
Q+を“1”に、逆相出力Q−を“0”にするので、F
/F1がクリアされる。F/F2は、D端子入力が
“0”となるので、F/F3が正相出力Q+を“1”に
した次のクロックCKの前縁で、正相出力Q+を“0”
に、逆相出力を“1”にする。
When the F / F2 sets the positive phase output Q + to "1", the F / F3 sets the normal phase output Q + to "1" and the negative phase output Q- to "0" at the next leading edge of the clock CK. So F
/ F1 is cleared. Since the D terminal input of the F / F2 is "0", the normal phase output Q + is "0" at the leading edge of the next clock CK when the F / F3 sets the normal phase output Q + to "1".
Then, the reverse phase output is set to "1".

【0034】これにより第1ポート側のバス接続は解除
されるが、ゲート30から出力されるストローブ信号P
1RWSTBは、F/F2が正相出力Q+を“1”にし
た後F/F3が正相出力Q+を“1”にするまでは
“1”(P1RWSTB+)で、F/F3が正相出力Q
+を“1”にした後F/F2が正相出力Q+を“0”に
するまでは“0”(P1RWSTB−)である。
As a result, the bus connection on the first port side is released, but the strobe signal P output from the gate 30 is output.
1RWSTB is "1" (P1RWSTB +) until F / F3 sets the positive phase output Q + to "1" after the F / F2 sets the positive phase output Q + to "1", and the F / F3 outputs the positive phase output Q.
It is "0" (P1RWSTB-) until the F / F2 sets the positive phase output Q + to "0" after the + is set to "1".

【0035】F/F2が正相出力Q+を“0”にするそ
の同じクロックCKの前縁でF/F4が正相出力Q+を
“1”に、逆相出力Q−を“0”にする。F/F4が正
相出力Q+を“1”にすると、CPU1へレデイ信号P
1RDY+が与えられる。それを確認してCPU1はP
1MRD−/P1MWR−を“1”にするので、そのタ
イミングで、F/F3と同4はクリアされる。また、C
PU1はP1CMCS−を“1”にする。これにより、
CPU1からのアクセスが終了する。
F / F2 sets the positive phase output Q + to "0" At the leading edge of the same clock CK, the F / F4 sets the normal phase output Q + to "1" and the negative phase output Q- to "0". . When the F / F4 sets the positive phase output Q + to "1", the ready signal P is sent to the CPU1.
1RDY + is provided. After confirming this, the CPU1 P
Since 1MRD- / P1MWR- is set to "1", F / F3 and 4 are cleared at that timing. Also, C
PU1 sets P1CMCS- to "1". This allows
The access from the CPU 1 ends.

【0036】以上要するに、第1ポート側は、アクセス
制御信号P1ACES−の期間内SRAM1にアクセス
できる。具体的には、ライトモードでは、ゲート14に
よりSRAM1はP1ACES−の期間内におけるP1
RWSTB−の期間内においてライトイネーブルとな
り、第1ポート側のデータバスに乗せられたデータがデ
ータバス入力回路4を介してSRAM1に書き込まれ
る。
In summary, the first port side can access the SRAM1 within the period of the access control signal P1ACES-. Specifically, in the write mode, the gate 14 causes the SRAM 1 to operate as P1 within the period of P1ACES-.
Write enable is enabled within the period of RWSTB-, and the data put on the data bus on the first port side is written to the SRAM 1 via the data bus input circuit 4.

【0037】また、リードモードでは、ゲート8により
データバス出力回路5が出力イネーブルとなると共に、
ゲート11によりSRAM1はP1ACES−の期間内
出力イネーブルとなり、P1ACES−の期間内におい
てP1RESTB+がP1RWSTB−へ変化するとき
SRAM1のリードデータ8ビットがデータバス出力回
路5にラッチされ、第1ポート側のデータバス上に出力
される。
In the read mode, the gate 8 enables the output of the data bus output circuit 5, and
The gate 11 enables the SRAM 1 to output within the period of P1ACES-, and when P1RESTB + changes to P1RWSTB- during the period of P1ACES-, 8 bits of the read data of the SRAM1 are latched by the data bus output circuit 5 and the data on the first port side is latched. It is output on the bus.

【0038】以上の動作期間においてF/F5は正相出
力Q+を“1”にしているので、F/F2が逆相出力Q
−を“1”にすると、これによりゲート27が開いてF
/F6のD端子に“1”が入力し、F/F2が逆相出力
Q−を“1”にしたクロックCKの後縁でF/F6は正
相出力Q+を“1”にし、第2ポート側についてのバス
接続制御が同様の手順で行われる。
During the above operation period, the F / F5 keeps the positive phase output Q + at "1", so that the F / F2 outputs the negative phase output Q +.
When-is set to "1", this opens the gate 27 and F
"1" is input to the D terminal of the / F6, and the F / F2 sets the positive phase output Q + to "1" at the trailing edge of the clock CK where the F / F2 sets the negative phase output Q- to "1", and the second Bus connection control on the port side is performed in the same procedure.

【0039】[0039]

【発明の効果】以上説明したように、本発明のデュアル
ポートメモリ回路では、安価に入手でき、かつ大容量の
ものの入手が容易なランダムアクセスメモリを使用し、
調停回路により2つのCPUからのメモリアクセス信号
に対して何れか一方のアクセスを優先させるようにして
あるので、低価格で且つ任意容量への拡張の容易化が図
れるので、大量のデータを扱うプロセッサ間通信に好適
なデュアルポートメモリ回路を提供できる効果がある。
As described above, the dual port memory circuit of the present invention uses the random access memory which can be obtained at a low cost and has a large capacity,
Since the arbitration circuit gives priority to one of the memory access signals from the two CPUs, the processor can handle a large amount of data at a low price and can be easily expanded to an arbitrary capacity. There is an effect that a dual port memory circuit suitable for inter-communication can be provided.

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

【図1】本発明のデュアルポートメモリ回路におけるラ
ンダムアクセスメモリとバス接続制御回路等の回路図で
ある。
FIG. 1 is a circuit diagram of a random access memory, a bus connection control circuit and the like in a dual port memory circuit of the present invention.

【図2】本発明のデュアルポートメモリ回路における調
停回路の回路図である。
FIG. 2 is a circuit diagram of an arbitration circuit in the dual port memory circuit of the present invention.

【図3】調停回路の各部の動作タイムチャートである。FIG. 3 is an operation time chart of each part of the arbitration circuit.

【符号の説明】[Explanation of symbols]

1 スタティックランダムアクセスメモリ(SRAM) 2 アドレスバス入力回路 3 アドレスバス入力回路 4 データバス入力回路 5 データバス出力回路 6 データバス入力回路 7 データバス出力回路 8〜15 ゲート 21〜31 ゲート F/F1〜F/F8 フリップフロップ 1 static random access memory (SRAM) 2 address bus input circuit 3 address bus input circuit 4 data bus input circuit 5 data bus output circuit 6 data bus input circuit 7 data bus output circuit 8 to 15 gates 21 to 31 gates F / F1 to F / F8 flip-flop

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ランダムアクセスメモリと; 前記ラン
ダムアクセスメモリのアドレスバスと第1ポート側アド
レスバス及び第2ポート側アドレスバスとの接続制御を
それぞれ行う第1ポート側アドレスバス入力回路及び第
2ポート側アドレスバス入力回路と; 前記ランダムア
クセスメモリのデータバスと第1ポート側データバス及
び第2ポート側データバスとの接続制御をそれぞれ行う
第1ポート側データバス入出力回路及び第2ポート側デ
ータバス入出力回路と; 第1ポート側CPU及び第2
ポート側CPUのメモリアクセス信号を受けて前記第1
ポート側のアドレスバス入力回路及びデータバス入出力
回路と前記第2ポート側のアドレスバス入力回路及びデ
ータバス入出力回路の何れか一方を優先して動作させる
調停回路と; を備えたことを特徴とするデュアルポー
トメモリ回路。
1. A random access memory; a first port side address bus input circuit and a second port for respectively controlling connection between the address bus of the random access memory and the first port side address bus and the second port side address bus. Side address bus input circuit; first port side data bus input / output circuit and second port side data for respectively controlling connection between the data bus of the random access memory and the first port side data bus and the second port side data bus Bus input / output circuit; CPU on the first port side and second
In response to the memory access signal from the port side CPU, the first
A port side address bus input circuit and a data bus input / output circuit, and an arbitration circuit that preferentially operates one of the second port side address bus input circuit and the data bus input / output circuit. And a dual port memory circuit.
JP5287804A 1993-10-22 1993-10-22 Dual port memory circuit Pending JPH07121429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5287804A JPH07121429A (en) 1993-10-22 1993-10-22 Dual port memory circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5287804A JPH07121429A (en) 1993-10-22 1993-10-22 Dual port memory circuit

Publications (1)

Publication Number Publication Date
JPH07121429A true JPH07121429A (en) 1995-05-12

Family

ID=17721970

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5287804A Pending JPH07121429A (en) 1993-10-22 1993-10-22 Dual port memory circuit

Country Status (1)

Country Link
JP (1) JPH07121429A (en)

Similar Documents

Publication Publication Date Title
JP2538067B2 (en) Random access memory circuit having condition writing means
US5079693A (en) Bidirectional FIFO buffer having reread and rewrite means
US4835684A (en) Microcomputer capable of transferring data from one location to another within a memory without an intermediary data bus
JPS5925254B2 (en) Digital data processing equipment
JPH0636313B2 (en) Dual Access Single Chip Integrated Circuit Digital Storage
JPH07121429A (en) Dual port memory circuit
JPS63226735A (en) Register circuit
JPS6024980B2 (en) microcomputer
JPH0528770A (en) Multiport memory circuit
JP2000132451A (en) Memory control circuit
JPH0514359B2 (en)
JP3048762B2 (en) Semiconductor integrated circuit device
JPS60134956A (en) Information processing system
JP3057749B2 (en) I / O port
JPS63142589A (en) Semiconductor memory
JPH01121965A (en) Microprocessor
JPH0454522Y2 (en)
JPS6220043A (en) Random access memory capable of asynchronous simultaneous access for multiprocessor
JPH06301641A (en) Electronic computer
JPS6080193A (en) Memory system
JPS6385842A (en) Information processor
JPH0442329A (en) Data processor
JPS6149271A (en) Semiconductor device
JP2002024164A (en) Access controller
JPS63159966A (en) Single-chip microcomputer