JPH0520212A - Control circuit using dual port RAM - Google Patents
Control circuit using dual port RAMInfo
- Publication number
- JPH0520212A JPH0520212A JP3197185A JP19718591A JPH0520212A JP H0520212 A JPH0520212 A JP H0520212A JP 3197185 A JP3197185 A JP 3197185A JP 19718591 A JP19718591 A JP 19718591A JP H0520212 A JPH0520212 A JP H0520212A
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- port
- dpram
- control circuit
- output
- 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
- Static Random-Access Memory (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
(57)【要約】
【目的】 DPRAMの一方にウェイト機能を持たない
CPUを接続した場合の、DPRAM同時アクセスによ
る異常を検出して誤動作を未然に防止すること。
【構成】 DPRAMからウェイト機能を持たないCP
Uに向けて出力されるBUSY信号を受けて、このCP
UによるDPRAMのアクセスを禁止するエラー信号を
出力する異常検出回路4を設けた。
(57) [Abstract] [Purpose] To prevent malfunction by detecting an abnormality due to simultaneous access of DPRAM when a CPU without a wait function is connected to one side of DPRAM. [Structure] CP that does not have wait function from DPRAM
Upon receiving the BUSY signal output to U, this CP
An abnormality detection circuit 4 for outputting an error signal for prohibiting access of the DPRAM by U is provided.
Description
【0001】[0001]
【産業上の利用分野】本発明は、両側のポートからメモ
リのどの番地に対しても独立して非同期に読み出し、書
き込み動作が可能なデュアルポートRAM(以下、DP
RAMという)を用いる制御回路に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dual port RAM (hereinafter referred to as DP) capable of independently asynchronously reading and writing from any port of both sides to any address of the memory.
Control circuit using RAM).
【0002】[0002]
【従来の技術】一般に、DPRAMの両側のポートには
それぞれウェイト機能を有するCPUを接続して、1つ
の制御回路(システム)を構築することが行われてい
る。2. Description of the Related Art Generally, a control circuit (system) is constructed by connecting a CPU having a wait function to each port on both sides of a DPRAM.
【0003】このような制御回路において、2つのポー
トからメモリの同一番地が選択された場合の動作を考え
ると、両ポートが読み出しモードで動作している場合は
問題ないが、一方のポートが書き込みモードで動作する
場合は、書き込みによって読み出し動作中の逆ポートの
読み出しデータが途中で変化する可能性がある。Considering the operation when the same address of the memory is selected from two ports in such a control circuit, there is no problem when both ports are operating in the read mode, but one port writes. In the case of operating in the mode, the read data of the reverse port during the read operation may change in the middle due to writing.
【0004】また、両ポートとも書き込み動作の場合
は、互いに逆データを書き込んでメモリの内容が不定と
なる可能性があり、この場合も問題となる。Further, in the case of a write operation at both ports, there is a possibility that the contents of the memory may become indefinite by writing the opposite data to each other, and this also poses a problem.
【0005】このような背景から、両ポートが読み出し
及び書き込みのどちらのモードで動作しているかには係
わりなく、後着側ポートのBUSY(ビジー)端子から
対応するCPUのウェイト端子にBUSY信号を送り、
BUSY信号がオフになるまで、言い換えるとDPRA
MをアクセスしているCPUのアクセス動作が終了する
まで、後着側のCPUからのアクセス動作を禁止するよ
うに制御するDPRAMが既に提案されている。From this background, the BUSY signal is sent from the BUSY (busy) terminal of the post-arrival port to the corresponding wait terminal of the CPU regardless of which mode the ports are operating in, the read or the write. Send,
Until the BUSY signal turns off, in other words DPRA
There has already been proposed a DPRAM that controls so that the access operation from the later-arriving CPU is prohibited until the access operation of the CPU accessing M is completed.
【0006】この場合、両CPU共に、ウェイト端子
(ポート)を有し、ウェイト機能が果たされるようにな
っているから上記の制御が可能な訳であるが、回路によ
ってはCPUの汎用性を広げたり、低コスト化を図るた
め、一方をウェイト機能を持たないCPUとする場合も
ある。In this case, both CPUs have a wait terminal (port) so that the wait function can be achieved, so the above control is possible, but the versatility of the CPU is expanded depending on the circuit. Alternatively, in order to reduce the cost, one of them may be a CPU having no wait function.
【0007】[0007]
【発明が解決しようとする課題】上記のように、一方の
CPUをウェイト機能付き、他方のCPUをウェイト機
能無しとした場合、2つのポートからメモリの同一番地
が選択され、かつ、ウェイト機能を持たないCPUが後
着の時は、前述のような不都合を生じることになる。As described above, when one CPU is provided with the wait function and the other CPU is not provided with the wait function, the same address of the memory is selected from two ports and the wait function is provided. When the CPU that does not have the latter arrives later, the above-mentioned inconvenience occurs.
【0008】本発明は、DPRAMの2つのポートに接
続されるCPUのうち、一方をウェイト機能を持たない
ものとした場合の、DPRAM同時アクセスによる異常
を検出して、誤動作を未然に防止することができるDP
RAMを用いる制御回路を提供することを目的とする。According to the present invention, when one of the CPUs connected to the two ports of the DPRAM has no wait function, an abnormality caused by simultaneous access to the DPRAM is detected to prevent malfunction. DP that can
It is an object to provide a control circuit that uses a RAM.
【0009】[0009]
【課題を解決するための手段】上記の目的を達成するた
めに、本発明では、ウェイト機能を持たない第2のCP
Uに対して出力されるDPRAMからのBUSY信号
と、DPRAMをアクセスしている第1及び第2のCP
Uからのアドレスラッチ信号とからエラー信号を生成
し、このエラー信号を第2のCPUに出力して、第2の
CPUによるアクセスを禁止させる異常検出回路を設け
たことを特徴としている。In order to achieve the above object, the present invention provides a second CP having no weight function.
BUSY signal from DPRAM output to U, and first and second CPs accessing DPRAM
An error detection circuit for generating an error signal from the address latch signal from U and outputting the error signal to the second CPU to prohibit access by the second CPU is provided.
【0010】[0010]
【作用】DPRAMからのBUSY信号は、異常検出回
路を構成する(第1の負論理入力)アンドゲートの一方
に入力される。The BUSY signal from the DPRAM is input to one of the AND gates (first negative logic input) forming the abnormality detection circuit.
【0011】一方、この(第1の負論理入力)アンドゲ
ートの他方の入力端子に出力端子を接続した、異常検出
回路を構成する(第2の負論理入出力)アンドゲートの
各入力端子には第1と第2のCPUのそれぞれのアドレ
スラッチ信号が入力される。On the other hand, an output terminal is connected to the other input terminal of the (first negative logic input) AND gate, and an output terminal is connected to each input terminal of the (second negative logic input / output) AND gate which constitutes an abnormality detection circuit. Receives the address latch signals of the first and second CPUs.
【0012】そして、前記(第1の負論理入力)アンド
ゲートの出力は、異常検出回路を構成するDフリップフ
ロップのCK端子に入力され、Q出力よりエラー信号が
出力される。このエラー信号が第2のCPUに取り込ま
れると、第2のCPUはDPRAMへのアクセスを禁止
する。The output of the (first negative logic input) AND gate is input to the CK terminal of the D flip-flop forming the abnormality detection circuit, and the Q output outputs an error signal. When this error signal is taken in by the second CPU, the second CPU prohibits access to the DPRAM.
【0013】[0013]
【実施例】以下、本発明の実施例を図面に基づき説明す
る。Embodiments of the present invention will be described below with reference to the drawings.
【0014】図1は、本発明の実施例に係るDPRAM
を用いる制御回路の構成図であり、1はウェイト機能を
有する第1のCPU、2はウェイト機能を持たない第2
のCPU、3は両側に、各CPU1,2のポートに接続
されるポートを持つDPRAM、4は異常検出回路であ
る。FIG. 1 shows a DPRAM according to an embodiment of the present invention.
FIG. 2 is a configuration diagram of a control circuit that uses a CPU, where 1 is a first CPU having a wait function and 2 is a second CPU not having a wait function.
CPU 3 is DPRAM having ports on both sides connected to the ports of CPUs 1 and 2, and 4 is an abnormality detection circuit.
【0015】異常検出回路4は、負論理入出力アンドゲ
ート41と、この負論理入出力アンドゲート41の出力
端子が一方の入力端子と接続される負論理入力アンドゲ
ート42と、この負論理入力アンドゲートの出力端子が
CK端子に接続されるDフリップフロップ43と、この
Dフリップフロップ43のCLR端子をリセット及びク
リアするための信号を送出する負論理入出力オアゲート
44とから構成されている。The abnormality detection circuit 4 includes a negative logic input / output AND gate 41, a negative logic input AND gate 42 to which an output terminal of the negative logic input / output AND gate 41 is connected to one input terminal, and this negative logic input. It is composed of a D flip-flop 43 whose output terminal is connected to the CK terminal, and a negative logic input / output OR gate 44 which sends out a signal for resetting and clearing the CLR terminal of the D flip-flop 43.
【0016】図1において、(1)ないし(12)は各
部の信号であり、図2はそのタイミングチャートを示し
ているが、ここでDPRAM3の同一アドレスを第1の
CPU1、第2のCPU2の双方からアクセスし、か
つ、第2のCPU2が後着だった場合は、DPRAM3
のBUSY端子からBUSY信号(10)が本来第2の
CPU2に出力されるのであるが、第2のCPU2はウ
ェイト端子を持っていないので、本実施例では異常検出
回路4の負論理入力アンドゲート42のもう一方の入力
端子に入力させている。In FIG. 1, (1) to (12) are signals of respective parts, and FIG. 2 shows a timing chart thereof. Here, the same address of the DPRAM 3 is assigned to the first CPU 1 and the second CPU 2. If both are accessed and the second CPU 2 arrives later, DPRAM3
The BUSY signal (10) is originally output to the second CPU 2 from the BUSY terminal, but since the second CPU 2 does not have a wait terminal, the negative logic input AND gate of the abnormality detection circuit 4 is used in this embodiment. It is input to the other input terminal of 42.
【0017】一方、第1のCPU1のアドレスラッチ出
力(4)と第2のCPU2のアドレスラッチ出力(9)
との論理積が負論理入出力アンドゲート41でとられ、
この出力が負論理入力アンドゲート42の一方の入力端
子に入力される。On the other hand, the address latch output (4) of the first CPU 1 and the address latch output (9) of the second CPU 2
ANDed with the negative logic input / output AND gate 41,
This output is input to one input terminal of the negative logic input AND gate 42.
【0018】両者の論理積による出力信号(11)は図
2の(11)のようになり、これがDフリップフロップ
43のCK端子に入力されると、Q出力からはエラー信
号(12)が出力され、第2のCPU2に取り込まれ
る。The output signal (11) resulting from the logical product of the two is as shown in (11) of FIG. 2, and when this is input to the CK terminal of the D flip-flop 43, an error signal (12) is output from the Q output. And is taken into the second CPU 2.
【0019】第2のCPU2は、このエラー信号(1
2)によつて、DPRAM3へのアクセスが禁止され、
また、BUSY信号(10)がオフとなって始めて、ア
クセスが可能となる。The second CPU 2 receives this error signal (1
2), access to the DPRAM3 is prohibited,
Further, the access becomes possible only after the BUSY signal (10) is turned off.
【0020】[0020]
【発明の効果】以上説明したように、本発明によれば、
ウェイト機能を持たないCPUをDPRAMの一方のポ
ートに接続した場合でも、このCPUへのBUSY信号
を受けて、異常検出を行い、このCPUによるDPRA
Mのアクセスを禁止する異常検出回路を設けたから、D
PRAMの同時アクセス時に発生するトラブル(読み出
しデータが途中で変化するトラブルや、書き込みデータ
の内容が不定になるトラブル)を未然に防止し、誤動作
のない制御を行うことができる。As described above, according to the present invention,
Even when a CPU having no wait function is connected to one port of DPRAM, it receives a BUSY signal to this CPU to detect an abnormality, and DPRA by this CPU
Since an abnormality detection circuit that prohibits M access is provided, D
It is possible to prevent a trouble (a trouble that the read data changes in the middle or a trouble that the content of the write data becomes indefinite) that occurs when the PRAMs are simultaneously accessed, and perform control without malfunction.
【図1】本発明の実施例に係るDPRAMを用いる制御
回路の全体構成図である。FIG. 1 is an overall configuration diagram of a control circuit using a DPRAM according to an embodiment of the present invention.
【図2】図1に示す回路の各部の信号波形のタイミング
チャートである。FIG. 2 is a timing chart of signal waveforms at various parts of the circuit shown in FIG.
1 第1のCPU 2 第2のCPU 3 DPRAM 4 異常検出回路 41 負論理入出力アンドゲート 42 負論理入力アンドゲート 43 Dフリップフロップ 1st CPU 2 Second CPU 3 DPRAM 4 Abnormality detection circuit 41 Negative logic input / output AND gate 42 Negative logic input AND gate 43 D flip-flop
Claims (2)
ウェイト機能付きの第1のCPUを接続し、他方のポー
トにウェイト機能を持たない第2のCPUを接続した制
御回路において、 前記第1のCPUから前記デュアルポートRAMを一方
のポートを介してアクセスする場合、他方のポートから
出力されるビジー信号と、前記第1および第2のCPU
のアドレスラッチポート端子から出力されるアドレスラ
ッチ信号とを取り込んで、エラー信号を生成し、前記第
2のCPUに出力してこの第2のCPUによるデュアル
ポートRAMのアクセスを禁止する異常検出回路を設け
たことを特徴とするデュアルポートRAMを用いる制御
回路。1. A control circuit in which a first CPU having a wait function is connected to one port of a dual port RAM and a second CPU having no wait function is connected to the other port of the dual CPU, wherein the first CPU is provided. When the dual port RAM is accessed from one port via one port, the busy signal output from the other port and the first and second CPUs
Of the address latch signal output from the address latch port terminal of the CPU, generates an error signal, outputs the error signal to the second CPU, and prohibits the access of the dual port RAM by the second CPU. A control circuit using a dual port RAM, which is provided.
フリップフロップとで構成したことを特徴とする請求項
1記載のデュアルポートRAMを用いる制御回路。2. The control circuit using a dual port RAM according to claim 1, wherein the abnormality detection circuit is composed of a plurality of logic gates and flip-flops.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3197185A JPH0520212A (en) | 1991-07-11 | 1991-07-11 | Control circuit using dual port RAM |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3197185A JPH0520212A (en) | 1991-07-11 | 1991-07-11 | Control circuit using dual port RAM |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0520212A true JPH0520212A (en) | 1993-01-29 |
Family
ID=16370221
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3197185A Pending JPH0520212A (en) | 1991-07-11 | 1991-07-11 | Control circuit using dual port RAM |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0520212A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100720663B1 (en) * | 2005-08-03 | 2007-05-21 | 경북대학교 산학협력단 | Dual-port RAM synchronization device and microprocessor using the device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01258291A (en) * | 1988-04-07 | 1989-10-16 | Toshiba Corp | Access controller for dual port memory |
| JPH0290260A (en) * | 1988-09-27 | 1990-03-29 | Fujitsu Ltd | Asynchronous access system for dual port memory |
| JPH03127162A (en) * | 1989-10-12 | 1991-05-30 | Yaskawa Electric Mfg Co Ltd | How to access CPU shared memory |
-
1991
- 1991-07-11 JP JP3197185A patent/JPH0520212A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01258291A (en) * | 1988-04-07 | 1989-10-16 | Toshiba Corp | Access controller for dual port memory |
| JPH0290260A (en) * | 1988-09-27 | 1990-03-29 | Fujitsu Ltd | Asynchronous access system for dual port memory |
| JPH03127162A (en) * | 1989-10-12 | 1991-05-30 | Yaskawa Electric Mfg Co Ltd | How to access CPU shared memory |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100720663B1 (en) * | 2005-08-03 | 2007-05-21 | 경북대학교 산학협력단 | Dual-port RAM synchronization device and microprocessor using the device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5255239A (en) | Bidirectional first-in-first-out memory device with transparent and user-testable capabilities | |
| US4592019A (en) | Bus oriented LIFO/FIFO memory | |
| US5963979A (en) | System for updating inactive system memory using dual port memory | |
| US20020034119A1 (en) | Semiconductor memory device having data masking pin and memory system including the same | |
| US6366992B2 (en) | Method and system for bypassing pipelines in a pipelined memory command generator | |
| JPH0520212A (en) | Control circuit using dual port RAM | |
| JPH10132908A5 (en) | ||
| JP3988340B2 (en) | Image processing apparatus and copying apparatus having the same | |
| US5802384A (en) | Vector data bypass mechanism for vector computer | |
| JP2914843B2 (en) | Dynamic semiconductor memory | |
| JPS6211382B2 (en) | ||
| JPH0340417B2 (en) | ||
| JPH07182849A (en) | FIFO memory | |
| JP2725680B2 (en) | Bus error detection circuit | |
| KR930000764B1 (en) | Dynamic type memory | |
| JPS6095661A (en) | Address checking circuit | |
| JP2723843B2 (en) | Dual port memory control circuit | |
| SU1119077A1 (en) | Buffer storage | |
| JPH05265701A (en) | FIFO memory | |
| JPS6325899A (en) | Semiconductor memory device | |
| JP2591304B2 (en) | Memory monitoring circuit | |
| JPH0831064B2 (en) | Memory diagnostic circuit | |
| JPH0421123A (en) | Fifo register | |
| JPS6052455B2 (en) | Parity detection function check method | |
| JPH0289300A (en) | Semiconductor memory element |